/*
Theme Name: Alimentation Performance
*/
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;700&family=DM+Sans:wght@400;700&display=swap');

/* ==========================================================================
   GABARIT « CLINIQUE CLAIRE » — pool sante / bien-etre
   Quatre procedes le rendent reconnaissable, et ce sont les seuls qui comptent :
   1. une TETE A DOUBLE ETAGE (marque · recherche large · bouton plein, puis le rail
      des 7 rubriques en capitales etroites) ;
   2. un RUBAN DE REASSURANCE DATE, aplat plein largeur, colle sous le bloc de tete —
      la date qu'il affiche est la vraie date de derniere revision, lue dans WordPress ;
   3. la PASTILLE de rubrique : capitales etroites 11 px, coins 999 px, posee en
      surimpression sur l'image des cartes, reprise en tete d'article et dans le fil d'ariane ;
   4. une BANDE SOMBRE « Outils » a trois tuiles calculateur, puis la grille 3x3 des
      rubriques illustrees et les portraits ronds 72 px des auteurs.
   Blanc froid, un vert clinique, aucun gris pur, aucune ombre portee lourde.
   ========================================================================== */

/* ---------- 1. JETONS ------------------------------------------------------ */
:root{
  --fond:#f5f7f8;            /* blanc froid, jamais #fff */
  --encre:#151b1e;           /* encre verte tres sombre, jamais #000 */
  --doux:#151B1E;            /* texte de service : dates, chapos courts (6,8:1 sur --fond) */
  --filet:#C7CACB;           /* le filet 1 px des cartes et des etages — choisi, verdatre */
  --surf:#E4E7E8;            /* l'aplat : ruban, encadres, tuiles (attendu par jr_vignette) */
  --sombre-bloc:#151B1E;     /* le fond de la bande « Outils », dans les deux themes */
  --sombre-txt:#F5F7F8;      /* texte sur la bande sombre (contraste 16:1) */
  --sombre-doux:#F5F7F8;     /* texte secondaire sur la bande sombre (8:1) */
  --sombre-filet:#1A1F22;
  --accent:#1c6e8a;
  --accent2:#1c6e8a;
  --accent-txt:color-mix(in srgb, #1c6e8a 0%, 151b1e);
  --accent2-txt:color-mix(in srgb, #1c6e8a 0%, 151b1e);
  --accent-lavis:color-mix(in srgb, #1c6e8a 12%, #f5f7f8);
  --accent-bord:color-mix(in srgb, #1c6e8a 34%, #C7CACB);
  --accent-sur-sombre:color-mix(in srgb, #1c6e8a 45%, #FFFFFF);
  --accent2-sur-sombre:color-mix(in srgb, #1c6e8a 45%, #FFFFFF);
  /* un aplat d'accent qui PORTE du texte ne peut pas dependre de la clarte de l'accent :
     on l'assombrit franchement en clair, on l'eclaircit franchement en sombre. */
  --plein:color-mix(in srgb, #1c6e8a 86%, #151b1e);
  --plein-txt:#f5f7f8;
  --titre:'Urbanist','Iowan Old Style',Georgia,'Times New Roman',serif;
  --courant:'DM Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
  --rayon:8px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --fond:#0f1315; --encre:#ecf1f2; --doux:#818687; --filet:#131719; --surf:#101416;
    --sombre-bloc:#0F1315; --sombre-filet:#121618;
    --accent-txt:color-mix(in srgb, #1c6e8a 0%, ffffff);
    --accent2-txt:color-mix(in srgb, #1c6e8a 0%, ffffff);
    --accent-lavis:color-mix(in srgb, #57a8c4 16%, #0f1315);
    --accent-bord:color-mix(in srgb, #57a8c4 40%, #131719);
    --plein:color-mix(in srgb, #57a8c4 80%, #FFFFFF);
    --plein-txt:#0f1315;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --fond:#0f1315; --encre:#ecf1f2; --doux:#818687; --filet:#131719; --surf:#101416;
  --sombre-bloc:#0F1315; --sombre-filet:#121618;
  --accent-txt:color-mix(in srgb, #1c6e8a 0%, ffffff);
  --accent2-txt:color-mix(in srgb, #1c6e8a 0%, ffffff);
  --accent-lavis:color-mix(in srgb, #57a8c4 16%, #0f1315);
  --accent-bord:color-mix(in srgb, #57a8c4 40%, #131719);
  --plein:color-mix(in srgb, #57a8c4 80%, #FFFFFF);
  --plein-txt:#0f1315;
  color-scheme:dark;
}

/* ---------- 2. SOCLE ------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--fond);color:var(--encre);
  font-family:var(--courant);font-size:18px;line-height:1.7;
  -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:3px;text-decoration-thickness:1px}
:focus-visible{outline:2px solid var(--accent-txt);outline-offset:2px}
h1,h2,h3,h4{font-family:var(--titre);font-weight:600;margin:0;line-height:1.2;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:.6rem .9rem;
  background:var(--encre);color:var(--fond);z-index:99;border-radius:var(--rayon)}
.cq-cadre{width:min(1200px,100% - 2.4rem);margin-inline:auto}
.cq-point{color:var(--filet);padding-inline:.4em}
.cq-fleche{color:var(--doux);padding-inline:.45em}

/* --- LA PASTILLE : la signature de la famille ----------------------------- */
.cq-pastille{display:inline-block;font-family:var(--courant);font-size:11px;font-weight:700;
  line-height:1;letter-spacing:.04em;text-transform:uppercase;font-stretch:87.5%;
  padding:.42rem .66rem;border-radius:999px;background:var(--accent-lavis);
  color:var(--accent-txt);border:1px solid var(--accent-bord);white-space:nowrap}
a.cq-pastille:hover{text-decoration:none;border-color:var(--accent-txt)}
/* variante posee SUR l'image : aplat opaque, jamais du texte pose sur une photo (R-0025) */
.cq-pastille--sur{position:absolute;left:12px;bottom:12px;background:var(--fond);
  color:var(--accent-txt);border-color:var(--filet)}

/* --- textes courants partages --------------------------------------------- */
.cq-chapo{font-family:var(--titre);font-size:17.5px;line-height:1.6;color:var(--doux);margin-top:.5rem}
.cq-chapo--court{font-size:16px;line-height:1.55}
.cq-meta{font-size:13px;line-height:1.5;color:var(--doux);margin-top:.6rem;
  display:flex;flex-wrap:wrap;align-items:center}
.cq-sur-titre{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent2-txt);margin-bottom:.4rem}

/* --- le visuel des cartes : 16:9, en tete, pleine largeur de la carte ------ */
.cq-visuel{position:relative;margin:0;overflow:hidden;
  border-radius:var(--rayon) var(--rayon) 0 0;background:var(--surf)}
.cq-visuel img{width:100%;aspect-ratio:16/9;object-fit:cover}
.cq-visuel .jr-plaque{aspect-ratio:16/9}
.jr-plaque{border-radius:var(--rayon) var(--rayon) 0 0}

/* ---------- 3. LA TETE A DOUBLE ETAGE -------------------------------------- */
.cq-tete{background:var(--fond);position:sticky;top:0;z-index:30;
  border-bottom:1px solid var(--filet)}
.cq-etage1{border-bottom:1px solid var(--filet)}
.cq-etage1-in{display:flex;align-items:center;gap:1.2rem;min-height:56px;padding-block:.5rem}
.cq-marque a{display:flex;align-items:center;gap:.6rem}
.cq-marque a:hover{text-decoration:none}
.cq-mono{display:inline-flex;width:34px;flex:0 0 auto;color:var(--accent)}
.cq-mono svg{width:100%;height:auto;fill:currentColor}
.cq-marque-bloc{display:flex;flex-direction:column;line-height:1.05}
.cq-marque-mot{font-family:var(--titre);font-weight:700;font-size:clamp(21px,2.4vw,27px);
  letter-spacing:-.015em;color:var(--encre)}
.cq-baseline{font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--doux);margin-top:.15rem}

.cq-loupe{flex:1 1 420px;max-width:420px;margin-inline:auto;display:flex;
  border:1px solid var(--filet);border-radius:999px;background:var(--surf);overflow:hidden}
.cq-loupe input{flex:1 1 auto;min-width:0;font:inherit;font-size:14px;padding:.5rem .95rem;
  border:0;background:transparent;color:var(--encre)}
.cq-loupe input::placeholder{color:var(--doux)}
.cq-loupe input:focus{outline:none}
.cq-loupe:focus-within{border-color:var(--accent-txt)}
.cq-loupe-btn{font:inherit;font-size:12px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;padding:.5rem 1rem;border:0;cursor:pointer;
  background:transparent;color:var(--accent-txt)}

.cq-bouton{flex:0 0 auto;font-size:13.5px;font-weight:700;letter-spacing:.01em;
  padding:.6rem 1.15rem;border-radius:999px;background:var(--plein);
  color:var(--plein-txt);border:1px solid var(--plein)}
.cq-bouton:hover{text-decoration:none;filter:brightness(.93)}
.cq-burger{display:none;background:none;border:1px solid var(--filet);border-radius:var(--rayon);
  padding:.5rem .55rem;cursor:pointer}
.cq-burger span{display:block;width:18px;height:1.6px;background:var(--encre);margin:3.5px 0}

.cq-rail-in{display:flex;gap:0;align-items:stretch;min-height:40px;
  overflow-x:auto;scrollbar-width:none}
.cq-rail-in::-webkit-scrollbar{display:none}
.cq-rail-in a{display:inline-flex;align-items:center;white-space:nowrap;
  padding:0 .85rem;font-size:12px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;font-stretch:87.5%;color:var(--doux);
  border-bottom:2px solid transparent}
.cq-rail-in a:first-child{padding-left:0}
.cq-rail-in a:hover{text-decoration:none;color:var(--encre);border-bottom-color:var(--accent-bord)}
.cq-rail-in a.is-actif{color:var(--accent-txt);border-bottom-color:var(--accent)}

/* ---------- 4. LE BLOC DE TETE : 8 colonnes + 2 cartes empilees ------------ */
.cq-tete-bloc{padding-block:2rem 1.6rem}
.cq-tete-bloc-in{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1.5rem}
.cq-carte{display:flex;flex-direction:column;border:1px solid var(--filet);
  border-radius:var(--rayon);background:var(--fond);overflow:hidden}
.cq-carte:hover{border-color:var(--accent-bord)}
.cq-carte-corps{padding:1rem 1.1rem 1.15rem}
.cq-carte-titre{font-size:26px;font-weight:600;line-height:1.24}
.cq-carte-titre--petit{font-size:20px}
.cq-carte--majeure{grid-row:span 2}
.cq-carte--majeure .cq-carte-titre{font-size:clamp(26px,3.1vw,36px);line-height:1.16}
.cq-carte--majeure .cq-carte-corps{padding:1.3rem 1.5rem 1.6rem}
.cq-carte--appoint .cq-visuel img,.cq-carte--appoint .cq-visuel .jr-plaque{aspect-ratio:16/9}

/* ---------- 5. LE RUBAN DE REASSURANCE DATE -------------------------------- */
.cq-ruban{background:var(--surf);border-block:1px solid var(--filet)}
.cq-ruban-in{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  padding-block:.95rem}
.cq-ruban-item{display:flex;flex-direction:column;gap:.12rem;padding-inline:1.6rem;
  min-width:0}
.cq-ruban-item:first-child{padding-left:0}
.cq-ruban-item:last-child{padding-right:0}
.cq-ruban-item + .cq-ruban-item{border-left:1px solid var(--filet)}
.cq-ruban-cle{font-size:10.5px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;
  font-stretch:87.5%;color:var(--doux)}
.cq-ruban-val{font-family:var(--titre);font-size:18px;font-weight:600;line-height:1.25;
  color:var(--accent2-txt)}
.cq-ruban-lien{font-size:13.5px;line-height:1.4;color:var(--doux);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.cq-ruban-lien:hover{color:var(--encre)}

/* ---------- 6. LES SECTIONS DE L'ACCUEIL ----------------------------------- */
.cq-section{padding-block:2.4rem}
.cq-section-tete{margin-bottom:1.3rem;padding-bottom:.7rem;border-bottom:1px solid var(--filet)}
.cq-section-titre{font-size:clamp(22px,2.6vw,29px);font-weight:600;letter-spacing:-.01em}
.cq-section-titre--petit{font-size:22px}
.cq-section-chapo{font-size:15.5px;line-height:1.6;color:var(--doux);margin-top:.35rem;
  max-width:min(66ch,100%)}
.cq-grille-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}

/* ---------- 7. LA BANDE SOMBRE « OUTILS » ---------------------------------- */
.cq-sombre{background:var(--sombre-bloc);color:var(--sombre-txt);margin-block:.6rem}
.cq-sombre-in{padding-block:2.6rem 2.8rem}
.cq-sombre-tete{margin-bottom:1.5rem}
.cq-sombre-titre{font-size:clamp(24px,3vw,32px);color:var(--sombre-txt);
  padding-bottom:.5rem;border-bottom:1px solid var(--sombre-filet)}
.cq-sombre-chapo{font-size:15px;line-height:1.6;color:var(--sombre-doux);margin-top:.7rem;
  max-width:min(72ch,100%)}
.cq-outils{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}
.cq-outil{display:flex;flex-direction:column;gap:.55rem;padding:1.15rem 1.2rem 1.25rem;
  border:1px solid var(--sombre-filet);border-radius:var(--rayon);
  background:color-mix(in srgb, #ffffff 4%, transparent)}
.cq-outil-titre{font-size:19px;font-weight:600;color:var(--sombre-txt)}
.cq-outil-note{font-size:13.5px;line-height:1.5;color:var(--sombre-doux)}
.cq-outil-champs{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.2rem}
.cq-outil-champs label{flex:1 1 120px;display:flex;flex-direction:column;gap:.25rem;
  font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  font-stretch:87.5%;color:var(--sombre-doux)}
.cq-unite{color:var(--accent-sur-sombre);letter-spacing:.04em}
.cq-outil-champs input{font:inherit;font-size:16px;font-weight:600;letter-spacing:0;
  text-transform:none;padding:.5rem .6rem;border:1px solid var(--sombre-filet);
  border-radius:var(--rayon);background:var(--sombre-bloc);color:var(--sombre-txt);
  color-scheme:dark;width:100%;min-width:0}
.cq-outil-champs input:focus-visible{outline:2px solid var(--accent-sur-sombre);outline-offset:1px}
.cq-outil-sortie{display:flex;align-items:baseline;gap:.5rem;margin-top:auto;padding-top:.7rem;
  border-top:1px solid var(--sombre-filet)}
.cq-outil-sortie output{font-family:var(--titre);font-size:38px;font-weight:700;line-height:1;
  color:var(--sombre-doux);font-variant-numeric:tabular-nums}
.cq-outil.is-calcule .cq-outil-sortie output{color:var(--accent-sur-sombre)}
.cq-outil-legende{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  font-stretch:87.5%;color:var(--sombre-doux)}

/* ---------- 8. LA GRILLE 3x3 DES RUBRIQUES --------------------------------- */
.cq-grille-rub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}
.cq-tuile-rub{display:flex;flex-direction:column;border:1px solid var(--filet);
  border-radius:var(--rayon);overflow:hidden;background:var(--fond)}
.cq-tuile-rub:hover{border-color:var(--accent-bord)}
.cq-visuel--rub img,.cq-visuel--rub .jr-plaque{aspect-ratio:3/2}
.cq-tuile-corps{padding:.95rem 1.05rem 1.1rem;display:flex;flex-direction:column;gap:.3rem;flex:1 1 auto}
.cq-tuile-titre{font-size:21px;font-weight:600}
.cq-tuile-compte{margin-top:auto;padding-top:.55rem;font-size:12px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;font-stretch:87.5%;color:var(--accent-txt);
  font-variant-numeric:tabular-nums}

/* ---------- 9. LE BLOC AUTEURS : portraits ronds 72 px --------------------- */
.cq-auteurs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.4rem}
.cq-auteur{display:flex;gap:.9rem;align-items:flex-start;padding:1rem;
  background:var(--surf);border-radius:var(--rayon);border:1px solid var(--filet)}
.cq-portrait{flex:0 0 auto;width:72px;height:72px;border-radius:999px;overflow:hidden;
  background:var(--fond);border:2px solid var(--accent-bord)}
.cq-portrait img{width:72px;height:72px;object-fit:cover;border-radius:999px}
.cq-auteur-nom{font-family:var(--titre);font-size:18px;font-weight:600;line-height:1.25}
.cq-auteur-bio{font-size:13.5px;line-height:1.5;color:var(--doux);margin-top:.2rem}
.cq-auteur-compte{margin-top:.35rem;font-size:11px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;font-stretch:87.5%;color:var(--accent-txt)}

/* ---------- 10. L'ARTICLE -------------------------------------------------- */
.cq-article{padding-block:1.8rem 2.6rem}
.cq-ariane{display:flex;align-items:center;flex-wrap:wrap;gap:.15rem;font-size:12.5px;
  color:var(--doux);margin-bottom:1rem}
.cq-art-pastille{margin-bottom:.7rem}
.cq-art-titre{font-size:clamp(29px,4.1vw,46px);font-weight:700;line-height:1.1;
  letter-spacing:-.015em}
.cq-art-dates{display:flex;flex-wrap:wrap;align-items:center;font-size:13.5px;color:var(--doux);
  margin-top:.9rem;padding-block:.7rem;border-top:1px solid var(--filet);
  border-bottom:1px solid var(--filet)}
.cq-art-auteur{font-weight:600;color:var(--encre)}
.cq-art-maj{font-weight:600;color:var(--accent2-txt)}
.cq-art-photo{margin:1.5rem 0 0;border-radius:var(--rayon);overflow:hidden;background:var(--surf)}
.cq-art-photo img{width:100%;aspect-ratio:16/9;object-fit:cover}
.cq-art-photo figcaption{font-size:12.5px;line-height:1.45;color:var(--doux);
  padding:.55rem .8rem;background:var(--surf)}
.cq-art-corps{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:2.6rem;
  margin-top:1.8rem;align-items:start}
.cq-art-colonne{min-width:0;max-width:min(72ch,100%)}

/* le chapo : encadre surf a filet gauche 4 px accent */
.cq-art-chapo{font-family:var(--titre);font-size:20px;line-height:1.55;color:var(--encre);
  background:var(--surf);border-left:4px solid var(--accent);
  border-radius:0 var(--rayon) var(--rayon) 0;padding:1rem 1.2rem}

/* les encadres de la famille — la classe est aussi disponible dans le contenu WP */
.cq-encadre,.cq-texte .cq-encadre{background:var(--accent-lavis);border:1px solid var(--accent-bord);
  border-radius:var(--rayon);padding:1.05rem 1.2rem;margin:1.6rem 0}
.cq-encadre-titre{font-family:var(--courant);font-size:11.5px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;font-stretch:87.5%;color:var(--accent-txt);margin-bottom:.6rem}
.cq-encadre-note{font-size:12.5px;line-height:1.5;color:var(--doux);margin-top:.7rem}
.cq-retenir-liste{counter-reset:cq;display:grid;gap:.5rem}
.cq-retenir-liste li{counter-increment:cq;position:relative;padding-left:1.9rem;
  font-size:16.5px;line-height:1.5}
.cq-retenir-liste li::before{content:counter(cq);position:absolute;left:0;top:.05em;
  width:1.4rem;height:1.4rem;border-radius:999px;background:var(--plein);color:var(--plein-txt);
  font-size:11.5px;font-weight:700;display:grid;place-items:center;font-family:var(--courant)}
.cq-sources-liste li{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem;
  padding:.45rem 0;border-bottom:1px solid var(--accent-bord);font-size:15px;line-height:1.45}
.cq-sources-liste li:last-child{border-bottom:0}
.cq-sources-liste a{color:var(--accent-txt);text-decoration:underline;text-underline-offset:3px}
.cq-source-hote{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  font-stretch:87.5%;color:var(--doux)}

/* la FAQ en accordeon */
.cq-faq{margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--filet)}
.cq-faq-liste{margin-top:.9rem;display:grid;gap:.6rem}
.cq-faq-item{border:1px solid var(--filet);border-radius:var(--rayon);background:var(--surf)}
.cq-faq-item summary{cursor:pointer;list-style:none;padding:.85rem 1.05rem;
  font-family:var(--titre);font-size:18px;font-weight:600;line-height:1.35;
  display:flex;align-items:baseline;gap:.6rem}
.cq-faq-item summary::-webkit-details-marker{display:none}
.cq-faq-item summary::before{content:"+";flex:0 0 auto;color:var(--accent-txt);
  font-family:var(--courant);font-weight:700;font-size:17px}
.cq-faq-item[open] summary::before{content:"–"}
.cq-faq-item[open] summary{border-bottom:1px solid var(--filet)}
.cq-faq-corps{padding:.85rem 1.05rem 1rem;font-size:16.5px;line-height:1.65}
.cq-faq-corps p{margin:0 0 .8rem}
.cq-faq-corps p:last-child{margin-bottom:0}

/* le sommaire collant, 240 px a droite */
.cq-art-rail{position:sticky;top:112px}
.cq-sommaire{border:1px solid var(--filet);border-radius:var(--rayon);
  background:var(--fond);padding:.95rem 1rem 1.05rem}
.cq-sommaire-titre{font-family:var(--courant);font-size:11px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;font-stretch:87.5%;color:var(--doux);
  padding-bottom:.55rem;border-bottom:1px solid var(--filet);margin-bottom:.6rem}
.cq-sommaire-liste{counter-reset:so;display:grid;gap:.05rem}
.cq-sommaire-liste li{counter-increment:so}
.cq-sommaire-liste a{display:block;padding:.36rem 0 .36rem 1.5rem;position:relative;
  font-size:14.5px;line-height:1.4;color:var(--doux)}
.cq-sommaire-liste a::before{content:counter(so,decimal-leading-zero);position:absolute;left:0;
  top:.42rem;font-size:10.5px;font-weight:700;color:var(--accent-txt);
  font-variant-numeric:tabular-nums}
.cq-sommaire-liste a:hover{color:var(--encre)}
.cq-art-pied{margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--filet)}
.cq-section--lies{padding-top:2.2rem;border-top:1px solid var(--filet);margin-top:1.6rem}

/* signature produite par jr_signature */
.sb-signature{display:flex;gap:1rem;align-items:flex-start}
.sb-signature img{width:72px;height:72px;border-radius:999px;border:2px solid var(--accent-bord)}
.sb-signature-nom{font-family:var(--titre);font-weight:600;font-size:18px}
.sb-signature-bio{font-size:14.5px;color:var(--doux);margin-top:.25rem;line-height:1.55}
.sb-date{font-size:12.5px;color:var(--doux);margin-top:.4rem}

/* ---------- 11. LE CONTENU WORDPRESS REEL ---------------------------------- */
.cq-texte{font-size:18px;line-height:1.75;margin-top:1.5rem}
.cq-texte p{margin:0 0 1.2rem}
.cq-texte h2{font-size:clamp(23px,2.6vw,28px);font-weight:600;line-height:1.25;
  margin:2.2rem 0 .8rem;padding-top:.7rem;border-top:1px solid var(--filet);scroll-margin-top:120px}
.cq-texte h3{font-size:21px;font-weight:600;margin:1.7rem 0 .55rem;
  padding-left:.75rem;border-left:3px solid var(--accent-bord);scroll-margin-top:120px}
.cq-texte h4{font-size:18px;font-weight:700;margin:1.3rem 0 .4rem;font-family:var(--courant)}
.cq-texte ul{margin:0 0 1.2rem}
.cq-texte ul li{position:relative;padding-left:1.35rem;margin-bottom:.5rem}
.cq-texte ul li::before{content:"";position:absolute;left:.15rem;top:.72em;width:7px;height:7px;
  border-radius:999px;background:var(--accent)}
.cq-texte ol{list-style:decimal;margin:0 0 1.2rem;padding-left:1.5rem}
.cq-texte ol li{margin-bottom:.5rem;padding-left:.2rem}
.cq-texte ol li::marker{color:var(--accent-txt);font-weight:700}
.cq-texte a{color:var(--accent-txt);text-decoration:underline;text-underline-offset:3px}
.cq-texte blockquote{margin:1.7rem 0;padding:1rem 1.2rem;background:var(--surf);
  border-left:4px solid var(--accent2);border-radius:0 var(--rayon) var(--rayon) 0;
  font-family:var(--titre);font-size:19px;line-height:1.55;color:var(--encre)}
.cq-texte blockquote p:last-child{margin-bottom:0}
.cq-texte blockquote cite{display:block;margin-top:.5rem;font-size:13px;font-style:normal;
  font-family:var(--courant);color:var(--doux)}
.cq-texte figure{margin:1.6rem 0}
.cq-texte figure img,.cq-texte img{border-radius:var(--rayon)}
.cq-texte figcaption{font-size:12.5px;line-height:1.45;color:var(--doux);margin-top:.45rem}
.cq-texte table{width:100%;border-collapse:collapse;font-size:15.5px;margin:1.6rem 0}
.cq-texte th,.cq-texte td{border-bottom:1px solid var(--filet);padding:.65rem .6rem;text-align:left}
.cq-texte th{font-family:var(--courant);font-size:11.5px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;font-stretch:87.5%;background:var(--surf)}
.cq-texte > table,.cq-texte .wp-block-table{display:block;overflow-x:auto;max-width:100%}
.cq-texte hr{border:0;border-top:1px solid var(--filet);margin:2rem 0}
.cq-texte code{font-size:.9em;background:var(--surf);padding:.1em .35em;border-radius:4px}

/* ---------- 12. LA RUBRIQUE ------------------------------------------------ */
.cq-rub-tete{padding-block:1.8rem 1.4rem}
.cq-rub-titre{font-size:clamp(28px,4vw,42px);font-weight:700;line-height:1.12;letter-spacing:-.015em}
.cq-rub-chapo{font-family:var(--titre);font-size:18.5px;line-height:1.6;color:var(--doux);
  margin-top:.6rem;max-width:min(62ch,100%)}
.cq-pagination{display:flex;flex-wrap:wrap;gap:.4rem;padding-top:1.8rem;margin-top:1.8rem;
  border-top:1px solid var(--filet);font-size:14px;font-weight:600}
.cq-pagination .page-numbers{padding:.45rem .8rem;border:1px solid var(--filet);
  border-radius:var(--rayon);color:var(--doux)}
.cq-pagination .page-numbers:hover{text-decoration:none;color:var(--encre);border-color:var(--accent-bord)}
.cq-pagination .current{background:var(--plein);border-color:var(--plein);color:var(--plein-txt)}

/* ---------- 13. LE PIED ---------------------------------------------------- */
.cq-pied{margin-top:2.4rem;background:var(--surf);border-top:1px solid var(--filet)}
.cq-pied-haut{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.1fr;gap:1.8rem;
  padding-block:2.4rem 2rem}
.cq-mono--pied{width:38px;color:var(--accent)}
.cq-pied-nom{font-family:var(--titre);font-size:24px;font-weight:700;margin-top:.5rem}
.cq-pied-baseline{font-size:10.5px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;
  color:var(--doux);margin-top:.2rem}
.cq-pied-note{font-size:13.5px;line-height:1.55;color:var(--doux);margin-top:.8rem;
  max-width:min(42ch,100%)}
.cq-pied-titre{font-family:var(--courant);font-size:11px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;font-stretch:87.5%;color:var(--encre);
  padding-bottom:.5rem;border-bottom:1px solid var(--filet);margin-bottom:.7rem}
.cq-pied-liste li{display:flex;justify-content:space-between;gap:.6rem;
  padding:.3rem 0;font-size:14.5px}
.cq-pied-compte{font-size:11.5px;color:var(--doux);font-variant-numeric:tabular-nums}
.cq-pied input[type="search"],.cq-pied input[type="text"]{font:inherit;font-size:14px;width:100%;
  padding:.5rem .7rem;border:1px solid var(--filet);border-radius:999px;
  background:var(--fond);color:var(--encre)}
.cq-pied .search-form{display:flex;flex-wrap:wrap;gap:.45rem}
.cq-pied label{flex:1 1 100%}
.cq-pied button[type="submit"],.cq-pied input[type="submit"]{font:inherit;font-size:11.5px;
  font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:.5rem 1rem;
  border:1px solid var(--plein);background:var(--plein);color:var(--plein-txt);
  border-radius:999px;cursor:pointer}
.cq-ours{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  padding-block:.9rem 1.1rem;border-top:1px solid var(--filet);font-size:12.5px;color:var(--doux)}
.cq-bascule{font:inherit;font-size:11.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;padding:.45rem .9rem;border:1px solid var(--filet);
  border-radius:999px;background:var(--fond);color:var(--encre);cursor:pointer}

/* ---------- 14. LA 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:.05em;
  text-transform:uppercase;font-stretch:87.5%;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}

/* ---------- 15. REPLIS ----------------------------------------------------- */
@media (max-width: 1080px){
  .cq-tete-bloc-in{grid-template-columns:minmax(0,1fr)}
  .cq-carte--majeure{grid-row:auto}
  .cq-grille-3,.cq-grille-rub{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cq-outils{grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}
  .cq-auteurs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cq-art-corps{grid-template-columns:minmax(0,1fr)}
  .cq-art-rail{position:static}
  .cq-sommaire{max-width:min(72ch,100%)}
  .cq-pied-haut{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cq-loupe{flex:1 1 240px}
}
@media (max-width: 760px){
  body{font-size:17px;padding-bottom:64px}
  /* l'etage 2 se replie : la barre basse prend le relais, le burger le rouvre */
  .cq-tete{position:static}
  .cq-rail{max-height:0;overflow:hidden;border-bottom:0}
  .cq-rail.is-ouvert{max-height:none;overflow:visible;border-top:1px solid var(--filet)}
  .cq-rail-in{flex-direction:column}
  .cq-rail-in a{width:100%;padding:.6rem 0;border-bottom:1px solid var(--filet)}
  .cq-burger{display:block;order:-1}
  .cq-etage1-in{flex-wrap:wrap;gap:.7rem}
  .cq-loupe{order:3;flex:1 1 100%;max-width:none;margin-inline:0}
  .cq-bouton{margin-left:auto;font-size:12.5px;padding:.5rem .9rem}
  .cq-baseline{display:none}
  .cq-tete-bloc{padding-block:1.3rem 1.1rem}
  .cq-grille-3,.cq-grille-rub,.cq-auteurs,.cq-outils,.cq-pied-haut{grid-template-columns:minmax(0,1fr)}
  .cq-ruban-in{grid-template-columns:minmax(0,1fr);row-gap:.85rem}
  .cq-ruban-item{padding-inline:0}
  .cq-ruban-item + .cq-ruban-item{border-left:0;border-top:1px solid var(--filet);padding-top:.85rem}
  .cq-carte-titre{font-size:22px}
  .cq-section{padding-block:1.8rem}
  .cq-art-corps{gap:1.6rem}
  .sb-nav-mobile{display:flex}
}
@media (max-width: 480px){
  .cq-cadre{width:min(1200px,100% - 1.6rem)}
  .cq-marque-mot{font-size:20px}
  .cq-mono{width:28px}
  .cq-bouton{font-size:12px;padding:.45rem .75rem}
  .cq-carte-titre,.cq-carte--majeure .cq-carte-titre{font-size:21px}
  .cq-outil-sortie output{font-size:32px}
  .cq-outil-champs label{flex:1 1 100%}
  .cq-auteur{flex-direction:column}
  .cq-texte{font-size:17px}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
@media print{
  .cq-rail,.sb-nav-mobile,.cq-art-rail,.cq-bascule,.cq-sombre,.cq-loupe,.cq-bouton{display:none!important}
}

/* garde-fou : un display:grid/flex de classe bat l'attribut hidden */
[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}
