/*
Theme Name: FNVT
*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Karla:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ==========================================================================
   GABARIT « QUOTIDIEN HUMANISTE »
   Un quotidien de reflexion : on y entre pour un texte long, pas pour un flux.
   Les quatre partis pris qui le distinguent de tout le reste du reseau :
   1. la DOUBLE REGLE — un filet d'accent au-dessus ET au-dessous de la marque,
      reprise en tete de rubrique et en pied de page ;
   2. le GENRE en surtitre, en garalde italique bas-de-casse — jamais de capitales
      espacees (c'est la marque de fabrique des autres familles, pas de celle-ci) ;
   3. une une en COLONNE UNIQUE de 760 px, centree dans un grand blanc ;
   4. des listes de titres SANS AUCUNE IMAGE, datees « 3 sept. », en trois colonnes.
   Aucune ombre nulle part, des marges interieures de carte tres larges (24 px).
   ========================================================================== */

/* ---------- 1. JETONS ----------------------------------------------------- */
:root{
  --fond:#fdfdfb;           /* un blanc calme, legerement casse */
  --encre:#1e2a33;          /* une ardoise bleutee, jamais du noir */
  --doux:#5e6b74;
  --filet:#e2e8ea;          /* gris CHOISI, tire vers le bleu-vert */
  --surf:#f0f5f6;           /* l'aplat du bloc de dialogue */
  --accent:#2C5495;
  --accent-txt:color-mix(in srgb, #2C5495 80%, #0d1c24);
  --titre:'Cormorant Garamond','Times New Roman',Georgia,serif;
  --courant:'Karla',Verdana,'Helvetica Neue',Helvetica,sans-serif;
  --rayon:3px;
  --air:1.6rem;             /* la respiration interieure, volontairement large */
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --fond:#12181c; --encre:#eaf0f2; --doux:#9dabb3; --filet:#232d33; --surf:#192126;
    --accent-txt:color-mix(in srgb, #2C5495 72%, #ffffff);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --fond:#12181c; --encre:#eaf0f2; --doux:#9dabb3; --filet:#232d33; --surf:#192126;
  --accent-txt:color-mix(in srgb, #2C5495 72%, #ffffff);
  color-scheme:dark;
}

/* ---------- 2. SOCLE ------------------------------------------------------ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fond);color:var(--encre);font-family:var(--courant);
  font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;
  text-decoration-color:var(--accent)}
:focus-visible{outline:2px solid var(--accent-txt);outline-offset:3px}
h1,h2,h3{font-family:var(--titre);font-weight:600;margin:0;line-height:1.18;letter-spacing:0;text-wrap:balance}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
.sb-oeil,.sb-oeil-txt{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sb-oeil:focus{left:.5rem;top:.5rem;width:auto;height:auto;padding:.5rem .8rem;background:var(--encre);color:var(--fond);z-index:99}
.qh-env{width:min(1180px,100% - 2.6rem);margin-inline:auto}
.qh-colonne{width:min(760px,100%);margin-inline:auto}
.qh-sep{color:var(--filet);padding-inline:.4em}

/* la double regle — le geste signature du gabarit */
.qh-regle{display:block;height:1px;width:100%;background:var(--accent);opacity:.85}
.qh-regle--court{width:min(220px,60%);margin-inline:auto}

/* le genre : garalde italique bas-de-casse, jamais de capitales espacees */
.qh-genre{font-family:var(--titre);font-style:italic;font-size:17px;font-weight:500;
  color:var(--accent-txt);margin-bottom:.35rem}
.qh-chapo{font-family:var(--titre);font-style:italic;font-size:19.5px;line-height:1.5;
  color:var(--doux);margin-top:.8rem}
.qh-chapo--court{font-size:16px;font-style:normal;font-family:var(--courant);line-height:1.5}
.qh-signe{font-size:13px;color:var(--doux);margin-top:.9rem}
.qh-date{font-size:12.5px;color:var(--doux);white-space:nowrap}
.qh-titre-bloc{font-family:var(--titre);font-size:clamp(24px,3vw,32px);font-weight:600;
  text-align:center;margin-bottom:.4rem}
.qh-titre-note{font-size:13.5px;color:var(--doux);text-align:center;margin-bottom:1.6rem;
  max-width:52ch;margin-inline:auto}
.qh-photo{margin:0}
.qh-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--rayon)}
.qh-photo--une img{aspect-ratio:4/3}
.qh-photo figcaption{font-size:12.5px;color:var(--doux);margin-top:.5rem;font-style:italic}
.jr-plaque{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;
  background:var(--plaque,var(--surf));color:#fff;font-family:var(--titre);font-weight:600;
  font-size:52px;border-radius:var(--rayon)}

/* ---------- 3. LA TETE : bandeau centre tres aere ------------------------- */
.qh-tete{background:var(--fond)}
.qh-tete-in{position:relative;text-align:center;padding-block:1.9rem 1.1rem}
.qh-marque-bloc{width:min(560px,100%);margin-inline:auto;display:flex;flex-direction:column;gap:.55rem}
.qh-marque a{display:inline-flex;align-items:center;justify-content:center;gap:.55rem}
.qh-marque a:hover{text-decoration:none}
.qh-mono{display:inline-flex;width:clamp(24px,3.4vw,34px);color:var(--accent)}
.qh-mono svg{width:100%;height:auto;fill:currentColor}
.qh-marque-mot{font-family:var(--titre);font-weight:600;font-size:clamp(28px,5.4vw,46px);
  line-height:1;letter-spacing:.005em;color:var(--encre)}
.qh-jour{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--doux);margin-top:.85rem}
.qh-baseline{font-family:var(--titre);font-style:italic;font-size:16px;color:var(--doux);margin-top:.2rem}
.qh-burger{position:absolute;left:0;top:2rem;display:none;background:none;
  border:1px solid var(--filet);border-radius:var(--rayon);padding:.5rem .55rem;cursor:pointer}
.qh-burger span{display:block;width:18px;height:1px;background:var(--encre);margin:4px 0}

.qh-rubriques{border-block:1px solid var(--filet);background:var(--fond);position:sticky;top:0;z-index:20}
.qh-rubriques-in{display:flex;justify-content:center;gap:.2rem;overflow-x:auto;scrollbar-width:none;min-height:46px;align-items:center}
.qh-rubriques-in::-webkit-scrollbar{display:none}
.qh-rubriques-in a{white-space:nowrap;padding:.55rem .8rem;font-size:14px;font-weight:500;color:var(--encre)}
.qh-rubriques-in a:hover{text-decoration:none;color:var(--accent-txt)}
.qh-rubriques-in a.is-actif{color:var(--accent-txt);font-weight:700}
.qh-rub--contact{color:var(--doux)!important;font-style:italic}

/* ---------- 4. LA UNE : colonne unique dans un grand blanc ---------------- */
.qh-une{padding-block:3rem 2.6rem}
.qh-une-titre{font-size:clamp(30px,5vw,48px);line-height:1.08;font-weight:600;margin-bottom:1.2rem}
.qh-une-art .qh-chapo{font-size:20px}

/* ---------- 5. L'ESPACE DU DIALOGUE : deux textes qui se font face -------- */
.qh-debat{background:var(--surf);padding-block:2.8rem 3rem;margin-block:1rem}
.qh-debat-grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
  width:min(980px,100%);margin-inline:auto}
.qh-face{display:grid;grid-template-columns:88px minmax(0,1fr);gap:1.1rem;align-items:start;
  padding-inline:var(--air)}
.qh-face:first-child{padding-left:0}
.qh-face:last-child{padding-right:0}
/* le filet vertical d'accent, 2 px : c'est LUI qui fait le face-a-face */
.qh-face + .qh-face{border-left:2px solid var(--accent)}
.qh-portrait{margin:0}
.qh-portrait img{width:88px;height:88px;object-fit:cover;border-radius:50%}
.qh-portrait .jr-plaque{width:88px;height:88px;aspect-ratio:1/1;border-radius:50%;font-size:32px}
.qh-face-titre{font-size:23px;line-height:1.22}

/* ---------- 6. LA SELECTION : cartes tres aerees, aucune ombre ------------ */
.qh-selection{padding-block:2.8rem}
.qh-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.2rem}
.qh-grille--rub{padding-block:2rem}
.qh-carte{border:1px solid var(--filet);border-radius:var(--rayon);background:var(--fond);
  overflow:hidden;box-shadow:none}
.qh-carte-corps{padding:var(--air)}          /* 24 px de marge interieure, releve sur le vrai site */
.qh-carte-titre{font-size:22px;line-height:1.22}
.qh-carte .qh-date{margin-top:.9rem}
.qh-carte .qh-photo img{border-radius:0}

/* ---------- 7. LES COLONNES DE TITRES NUS -------------------------------- */
.qh-lecture{padding-block:1rem 3rem}
.qh-lecture-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.qh-lecture-col{padding-inline:var(--air)}
.qh-lecture-col:first-child{padding-left:0}
.qh-lecture-col:last-child{padding-right:0}
.qh-lecture-col + .qh-lecture-col{border-left:1px solid var(--filet)}
.qh-lecture-titre{font-size:24px;font-weight:600}
.qh-lecture-chapo{font-size:13.5px;color:var(--doux);margin-top:.3rem;padding-bottom:.7rem;
  border-bottom:1px solid var(--accent)}
.qh-nus li{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
  padding:.75rem 0;border-bottom:1px solid var(--filet)}
.qh-nus a{font-family:var(--titre);font-size:19px;font-weight:500;line-height:1.28}
.qh-lecture-pied{margin-top:.9rem;font-size:13px;font-style:italic;color:var(--accent-txt)}

/* ---------- 8. ARTICLE ---------------------------------------------------- */
.qh-article{padding-block:2.6rem 3rem}
.qh-ariane{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--doux);margin-bottom:1.1rem}
.qh-art-titre{font-size:clamp(32px,5.2vw,52px);line-height:1.06;font-weight:600}
.qh-art-chapo{font-family:var(--titre);font-style:italic;font-size:21px;line-height:1.5;
  color:var(--doux);margin-top:1rem}
.qh-signe--art{padding-top:.9rem;margin-top:1.2rem;border-top:1px solid var(--filet)}
.qh-photo--article{width:min(980px,100%);margin:2rem auto}
.qh-photo--article img{aspect-ratio:16/9}
.qh-texte{margin-top:2.2rem;font-family:var(--titre);font-size:21px;line-height:1.66}
.qh-texte p{margin:0 0 1.3rem}
.qh-texte h2{font-size:29px;margin:2.4rem 0 .8rem}
.qh-texte h2::after{content:"";display:block;width:120px;height:1px;background:var(--accent);margin-top:.6rem}
.qh-texte h3{font-size:24px;margin:1.8rem 0 .5rem;font-style:italic}
.qh-texte ul{margin:0 0 1.3rem}
.qh-texte ul li{position:relative;padding-left:1.3rem;margin-bottom:.5rem}
.qh-texte ul li::before{content:"—";position:absolute;left:0;color:var(--accent)}
.qh-texte ol{list-style:decimal;margin:0 0 1.3rem;padding-left:1.4rem}
.qh-texte a{color:var(--accent-txt);text-decoration:underline;text-underline-offset:4px}
.qh-texte blockquote{margin:2rem auto;padding:0 0 0 1.4rem;border-left:1px solid var(--accent);
  font-size:24px;font-style:italic;line-height:1.42;color:var(--encre)}
.qh-texte table{width:100%;border-collapse:collapse;font-family:var(--courant);font-size:15px;margin:1.6rem 0}
.qh-texte th,.qh-texte td{border-bottom:1px solid var(--filet);padding:.65rem .5rem;text-align:left}
.qh-texte th{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-family:var(--courant)}
.qh-art-pied{margin-top:2.6rem;padding-top:1.4rem;border-top:1px solid var(--accent)}
.qh-selection--suite{padding-top:2.6rem;margin-top:2rem;border-top:1px solid var(--filet)}
.sb-signature{display:flex;gap:1.1rem;align-items:flex-start}
.sb-signature img{width:72px;height:72px;border-radius:50%}
.sb-signature-nom{font-family:var(--titre);font-weight:600;font-size:19px}
.sb-signature-bio{font-size:14.5px;color:var(--doux);margin-top:.3rem;line-height:1.5}
.sb-date{font-size:12.5px;color:var(--doux);margin-top:.4rem}
.sb-fil-bloc h2{font-family:var(--titre);font-size:22px;margin-bottom:.6rem}
.sb-fil li{display:flex;justify-content:space-between;gap:.8rem;padding:.6rem 0;border-bottom:1px solid var(--filet)}
.sb-fil-heure{font-size:12.5px;color:var(--doux)}
.sb-fil a{font-family:var(--titre);font-size:18px}

/* ---------- 9. RUBRIQUE --------------------------------------------------- */
.qh-rub-tete{text-align:center;padding-block:2.8rem 1.6rem;display:flex;flex-direction:column;gap:.7rem}
.qh-rub-titre{font-size:clamp(30px,4.6vw,44px);font-weight:600}
.qh-rub-chapo{font-family:var(--titre);font-style:italic;font-size:19px;color:var(--doux);
  max-width:min(620px,100%);margin-inline:auto}
.qh-rub-n{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-txt)}
.qh-pagination{display:flex;justify-content:center;gap:.5rem;padding-block:1.4rem 3rem;font-size:14px}
.qh-pagination .page-numbers{padding:.45rem .85rem;border:1px solid var(--filet);border-radius:var(--rayon)}
.qh-pagination .current{border-color:var(--accent);color:var(--accent-txt);font-weight:700}

/* ---------- 10. PIED ------------------------------------------------------ */
.qh-pied{margin-top:2rem;border-top:1px solid var(--filet);background:var(--fond)}
.qh-pied-marque-bloc{width:min(520px,100%);margin:2.4rem auto 0;text-align:center;
  display:flex;flex-direction:column;gap:.55rem}
.qh-pied-marque{font-family:var(--titre);font-weight:600;font-size:28px;display:flex;
  align-items:center;justify-content:center;gap:.5rem}
.qh-mono--pied{display:inline-flex;width:26px;color:var(--accent)}
.qh-mono--pied svg{width:100%;height:auto;fill:currentColor}
.qh-pied-baseline{font-family:var(--titre);font-style:italic;font-size:15px;color:var(--doux)}
.qh-pied-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding-block:2.4rem}
.qh-pied-col{padding-inline:var(--air)}
.qh-pied-col:first-child{padding-left:0}
.qh-pied-col:last-child{padding-right:0}
.qh-pied-col + .qh-pied-col{border-left:1px solid var(--filet)}
.qh-pied-titre{font-family:var(--titre);font-size:20px;font-weight:600;padding-bottom:.5rem;
  border-bottom:1px solid var(--accent);margin-bottom:.8rem}
.qh-pied-liste li{display:flex;justify-content:space-between;gap:.6rem;padding:.35rem 0;font-size:15px}
.qh-pied-n{font-size:12px;color:var(--doux)}
.qh-nus--pied a{font-size:16px}
.qh-pied input[type="search"],.qh-pied input[type="text"]{font:inherit;font-size:14px;width:100%;
  padding:.55rem .7rem;margin-top:1rem;border:1px solid var(--filet);border-radius:var(--rayon);
  background:var(--fond);color:var(--encre)}
.qh-pied button[type="submit"],.qh-pied input[type="submit"]{font:inherit;font-size:13px;
  margin-top:.5rem;padding:.5rem 1rem;border:1px solid var(--accent);border-radius:var(--rayon);
  background:none;color:var(--accent-txt);cursor:pointer}
.qh-ours{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  padding-block:1rem 1.3rem;border-top:1px solid var(--filet);font-size:12.5px;color:var(--doux)}
.qh-bascule{font:inherit;font-size:12.5px;padding:.45rem .9rem;border:1px solid var(--filet);
  border-radius:var(--rayon);background:none;color:var(--encre);cursor:pointer}

/* ---------- 11. BARRE MOBILE BASSE --------------------------------------- */
.sb-nav-mobile{display:none;position:fixed;left:0;right:0;bottom:0;z-index:40;
  background:var(--fond);border-top:1px solid var(--filet);padding-bottom:env(safe-area-inset-bottom)}
.sb-nav-mobile-item{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:.45rem .2rem .5rem;font-size:10px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--doux);text-align:center}
.sb-nav-mobile-item:hover{text-decoration:none}
.sb-nav-mobile-item.is-actif{color:var(--accent-txt)}
.sb-nav-ico{display:block;width:20px;height:20px}
.sb-nav-ico svg{width:100%;height:100%;stroke:currentColor;fill:none}

/* ---------- 12. REPLIS ---------------------------------------------------- */
@media (max-width: 1080px){
  .qh-grille,.qh-lecture-grille,.qh-pied-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qh-lecture-col:nth-child(odd),.qh-pied-col:nth-child(odd){padding-left:0;border-left:0}
  .qh-lecture-col,.qh-pied-col{padding-block:1rem}
}
@media (max-width: 760px){
  .qh-burger{display:block}
  .qh-tete-in{padding-block:1.4rem .9rem}
  .qh-rubriques{position:static;max-height:0;overflow:hidden;border-top:0}
  .qh-rubriques.is-ouvert{max-height:none;overflow:visible;border-top:1px solid var(--filet)}
  .qh-rubriques-in{flex-direction:column;align-items:stretch}
  .qh-rubriques-in a{border-bottom:1px solid var(--filet);text-align:center}
  .qh-une{padding-block:1.8rem 1.6rem}
  .qh-debat-grille,.qh-grille,.qh-lecture-grille,.qh-pied-grille{grid-template-columns:minmax(0,1fr)}
  .qh-face{padding-inline:0;padding-block:1.4rem;grid-template-columns:64px minmax(0,1fr)}
  .qh-face + .qh-face{border-left:0;border-top:2px solid var(--accent)}
  .qh-portrait img,.qh-portrait .jr-plaque{width:64px;height:64px}
  .qh-lecture-col,.qh-pied-col{padding-inline:0;border-left:0}
  .qh-lecture-col + .qh-lecture-col,.qh-pied-col + .qh-pied-col{border-top:1px solid var(--filet);padding-top:1.4rem}
  .sb-nav-mobile{display:flex}
  body{padding-bottom:64px}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
@media print{.qh-rubriques,.sb-nav-mobile,.qh-bascule{display:none!important}}

/* garde-fou : un display:grid/flex de classe bat l attribut hidden (vu sur gratuit-urbain, 04/09) */
[hidden]{display:none!important}

/* P-470 — la 1re carte de l accueil porte grid-column:span 2 en style INLINE.
   Sur telephone la grille n a plus qu une colonne : le span fabrique une colonne
   implicite dimensionnee sur le contenu (526px dans un ecran de 390) et pousse la page.
   !important est indispensable : on annule un style inline. */
@media (max-width:760px){.sb-grille>*{grid-column:auto!important}}

/* P-470 — la plume cite ses sources en URL BRUTE entre parentheses. Une URL ne
   contient aucun point de coupure : le paragraphe fait 677px de large dans une colonne
   de 329 et la page deborde de 351px sur telephone. Le piege : AUCUN element ne depasse
   le viewport (getBoundingClientRect ne voit rien), c est le contenu qui deborde de son
   propre element — seul scrollWidth > clientWidth le montre. */
.sb-corps{overflow-wrap:anywhere}

/* P-491 — display:contents : le h1 de la marque n existe pas pour la mise en page. */
.sb-marque-h1{display:contents}
