/* Le Deuxième Regard — thème « Aube sur lin » v2.0.0 */

:root {
    --nuit: #160827;
    --lin: #F2EDE3;
    --creme: #FBF8F2;
    --encre: #2B2521;
    --gris: #736A60;
    --gris-clair: #ADA396;
    --filet: #DDD3C4;
    --bandeau-lettrine: #E8E0D1;
    --violet: #4B3B8F;
    --violet-clair: #C9B8F2;
    --clair-sur-nuit: #F3EFFB;
    --nav-sur-nuit: #D9D2EE;
    --s1: #D6463A;
    --s2: #E0862F;
    --s3: #D9A92B;
    --s4: #3F8F63;
    --s5: #3A6FB8;
    --s6: #7550B0;
    --serif: var(--gh-font-heading, 'Instrument Serif', Georgia, 'Times New Roman', serif);
    --sans: var(--gh-font-body, 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lin); color: var(--encre); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--encre); }
img { max-width: 100%; height: auto; }
::selection { background: var(--violet); color: #fff; }

.wrap { max-width: 1232px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--nuit); color: var(--clair-sur-nuit); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 84px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { color: var(--clair-sur-nuit); font-weight: 800; font-size: 13px; letter-spacing: 0.24em; }
.brand:hover { color: #fff; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--nav-sur-nuit); font-size: 14px; font-weight: 600; }
.site-nav a:hover, .site-nav .nav-current a { color: #fff; }

/* ---------- Accueil : bandeau ---------- */
.hero { background: var(--nuit); color: var(--clair-sur-nuit); padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.hero-text { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; }
.hero-image { grid-column: span 6; }
.hero-image img { display: block; width: 100%; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--violet); text-transform: uppercase; }
.eyebrow-light { color: var(--violet-clair); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.04; margin: 0; text-wrap: pretty; }

.intro { padding-top: 72px; text-align: center; }
.intro p { max-width: 780px; margin: 0 auto; font-size: 21px; line-height: 1.65; color: var(--gris); }

/* ---------- Les regards ---------- */
.regards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 72px; padding-bottom: 88px; }
.regard-card, .post-card { background: var(--creme); border-radius: 4px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card-kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--gris); text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
.dot-1 { background: var(--s1); } .dot-5 { background: var(--s5); }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; margin: 0; color: var(--encre); }
.card-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--gris); flex-grow: 1; }
.card-link { font-size: 14px; font-weight: 700; }
.card-meta { margin: 0; font-size: 12px; font-weight: 600; color: var(--gris); }

/* ---------- La méthode ---------- */
.methode { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; padding-bottom: 88px; }
.methode-intro { grid-column: span 4; display: flex; flex-direction: column; gap: 18px; }
.methode-intro p { margin: 0; color: var(--gris); }
.methode .dr-decodage { grid-column: span 8; margin: 0; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1.02; margin: 0; }

/* ---------- Dispositif des quatre temps (aussi utilisable dans les articles) ---------- */
.dr-decodage { background: var(--creme); border-radius: 4px; padding: 40px; display: flex; flex-direction: column; gap: 28px; margin: 40px 0; }
.dr-bloc { display: flex; flex-direction: column; gap: 10px; }
.dr-bloc p { margin: 0; font-size: 16px; line-height: 1.6; }
.dr-label { font-size: 11px !important; font-weight: 800; letter-spacing: 0.16em; color: var(--gris); text-transform: uppercase; }
.dr-citation { font-family: var(--serif); font-size: 28px !important; line-height: 1.35 !important; color: var(--encre); }
.dr-source { font-size: 12px !important; color: var(--gris); }
.dr-source a { color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.dr-filet { height: 1px; background: var(--filet); border: 0; margin: 0; }
.dr-lectures { list-style: none; counter-reset: lecture; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dr-lectures li { counter-increment: lecture; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.6; }
.dr-lectures li::before { content: counter(lecture); width: 22px; height: 22px; border-radius: 11px; background: var(--s1); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dr-lectures li:nth-child(6n+2)::before { background: var(--s2); }
.dr-lectures li:nth-child(6n+3)::before { background: var(--s5); }
.dr-lectures li:nth-child(6n+4)::before { background: var(--s4); }
.dr-lectures li:nth-child(6n+5)::before { background: var(--s6); }
.dr-lectures li:nth-child(6n+6)::before { background: var(--s3); }
.dr-autre .dr-label { color: var(--s4); }
.dr-question { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.3; text-align: center; color: var(--violet); }

/* ---------- Liste des décodages ---------- */
.decodages { padding-bottom: 88px; }
.decodages .section-title { margin-bottom: 32px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { color: var(--encre); }
.post-card:hover { color: var(--encre); box-shadow: 0 0 0 1px var(--filet); }
.post-card .card-title { font-size: 30px; }
.empty { margin: 0; font-size: 18px; color: var(--gris); }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; font-size: 14px; color: var(--gris); }

/* ---------- Inscription ---------- */
.newsletter-section { padding: 0 0 88px; }
.closing + .newsletter-section { padding-top: 88px; }
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; border-radius: 4px; background: var(--bandeau-lettrine); }
.newsletter-title { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 6px; }
.newsletter-text p { margin: 0; font-size: 15px; color: var(--gris); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; width: min(520px, 100%); }
.newsletter-form input { flex: 1 1 220px; min-height: 48px; border: 1px solid transparent; border-radius: 3px; background: var(--creme); padding: 12px 16px; font: inherit; font-size: 15px; color: var(--encre); }
.newsletter-form input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.newsletter-form button { min-height: 48px; border: 0; border-radius: 3px; background: var(--violet); color: #fff; padding: 12px 22px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.newsletter-form button:hover { background: var(--encre); }
.newsletter-form.loading button { opacity: 0.6; }
.form-msg { display: none; flex-basis: 100%; margin: 4px 0 0; font-size: 14px; }
.newsletter-form.success .form-success { display: block; color: var(--s4); }
.newsletter-form.error .form-error { display: block; color: var(--s1); }

/* ---------- Clôture ---------- */
.closing { background: var(--nuit); padding: 88px 0; }
.closing p { margin: 0 auto; max-width: 980px; text-align: center; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 50px); line-height: 1.2; color: var(--clair-sur-nuit); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 32px 0; font-size: 13px; color: var(--gris); }
.site-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav-footer a { color: var(--gris); font-size: 13px; }
.site-nav-footer a:hover, .site-nav-footer .nav-current a { color: var(--encre); }

/* ---------- Articles et pages ---------- */
.article-head { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
.article-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin: 0; text-wrap: pretty; }
.article-dek { margin: 0; font-size: 21px; line-height: 1.55; color: var(--gris); }
.article-image { margin: 0 auto 40px; }
.article-image img { display: block; width: 100%; border-radius: 4px; }
.gh-content { padding-bottom: 72px; font-size: 18px; line-height: 1.75; }
.gh-content > * { margin: 0 0 24px; }
.gh-content h2, .gh-content h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 48px 0 16px; }
.gh-content h2 { font-size: 38px; }
.gh-content h3 { font-size: 30px; }
.gh-content a { text-decoration: underline; text-underline-offset: 3px; }
.gh-content blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--violet); font-family: var(--serif); font-size: 26px; line-height: 1.4; }
.gh-content figure { margin: 32px 0; }
.gh-content figcaption { margin-top: 8px; font-size: 13px; color: var(--gris); text-align: center; }
.gh-content img { border-radius: 4px; }
.gh-content hr { border: 0; height: 1px; background: var(--filet); margin: 48px 0; }
.kg-width-wide { position: relative; width: min(1040px, 92vw); max-width: none; left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; max-width: none; left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
    .hero-text, .hero-image, .methode-intro, .methode .dr-decodage { grid-column: 1 / -1; }
    .regards, .post-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 42px; }
    .newsletter { flex-direction: column; align-items: stretch; }
    .dr-decodage { padding: 28px; }
    .dr-citation { font-size: 24px !important; }
}
@media (max-width: 560px) {
    .wrap, .wrap-narrow { padding: 0 20px; }
    .hero { padding-top: 24px; }
    .regard-card, .post-card { padding: 28px; }
    .card-title { font-size: 30px; }
    .intro p { font-size: 19px; }
}
