/*
Theme Name: Maternité Maintenant
*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Karla:wght@400;700&display=swap');

/* ==========================================================================
   GABARIT « OS ET MOUVEMENT » — un site d'ORIENTATION avant d'etre un magazine.
   Quatre partis pris, et ce sont les seuls :
   1. TROIS PORTES avant tout le reste : le triptyque de parcours par public occupe
      la pleine largeur au-dessus du bloc de tete. On choisit d'abord ou on en est.
   2. L'ACCESSIBILITE EST LA FORME : corps Karla 19px/1.8, contrastes
      francs, cibles de 48px minimum, cartes entierement cliquables, focus epais.
   3. LE CHEVRON : un triangle plein de 10px en accent devant chaque lien de parcours
      et chaque pli ; il pivote d'un quart de tour quand le pli s'ouvre.
   4. AUCUN JS MAISON POUR LES PLIS : <details>/<summary> natifs, donc clavier et
      lecteur d'ecran servis sans une ligne de script.
   ========================================================================== */

/* ---------- 1. JETONS ---------------------------------------------------- */
:root{
  --fond:#f6f6f4;            /* lilas tres pale — jamais un blanc pur */
  --encre:#1c1c1c;           /* violet-noir d'encre */
  --doux:#1C1C1C;            /* le gris CHOISI, violace : chapos, dates, comptes (7,2:1 sur fond) */
  --filet:#C3C3C1;           /* le bord de 2px des cartes, teinte lilas */
  --surf:#DFDFDE;            /* l'aplat des bandes et des encadres */
  --profond:#1D1D1D;         /* l'aplat sombre « Ou trouver de l'aide », dans les deux themes */
  --sur-profond:#E3E3E1;     /* le texte sur cet aplat (13:1) */
  --sur-profond-doux:#F6F6F4;/* son texte secondaire (8,7:1) */
  --accent:#c1502c;       /* la teinte principale, tiree par site */
  --accent2:#B74C2A;     /* la seconde teinte : uniquement « A dire a votre medecin » */
  --accent-txt:color-mix(in srgb, #c1502c 0%, #1a1a1a);
  --accent2-txt:color-mix(in srgb, #c1502c 0%, #1a1a1a);
  --accent-clair:color-mix(in srgb, #c1502c 40%, #ffffff);
  --accent-lavis:color-mix(in srgb, #c1502c 10%, #f6f6f4);
  --titre:'Nunito', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --courant:'Karla', 'Lucida Grande', 'Segoe UI', system-ui, sans-serif;
  --rayon:8px;
  --cible:48px;              /* la hauteur minimale de TOUTE zone cliquable */
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --fond:#17181a; --encre:#f2f1ee; --doux:#F2F1EE; --filet:#1B1C1E; --surf:#18191B;
    --profond:#191A1C; --sur-profond:#F2F1EE; --sur-profond-doux:#F2F1EE;
    --accent-txt:color-mix(in srgb, #c1502c 0%, #ffffff);
    --accent2-txt:color-mix(in srgb, #c1502c 0%, #ffffff);
    --accent-clair:color-mix(in srgb, #e0895f 55%, #ffffff);
    --accent-lavis:color-mix(in srgb, #e0895f 16%, #17181a);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --fond:#17181a; --encre:#f2f1ee; --doux:#F2F1EE; --filet:#1B1C1E; --surf:#18191B;
  --profond:#191A1C; --sur-profond:#F2F1EE; --sur-profond-doux:#F2F1EE;
  --accent-txt:color-mix(in srgb, #c1502c 0%, #ffffff);
  --accent2-txt:color-mix(in srgb, #c1502c 0%, #ffffff);
  --accent-clair:color-mix(in srgb, #e0895f 55%, #ffffff);
  --accent-lavis:color-mix(in srgb, #e0895f 16%, #17181a);
  color-scheme:dark;
}

/* ---------- 2. SOCLE ----------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:1.5rem}
body{margin:0;background:var(--fond);color:var(--encre);
  font-family:var(--courant);font-size:19px;line-height:1.8;overflow-x:hidden;
  -webkit-font-smoothing:antialiased}
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:2px}
:focus-visible{outline:3px solid var(--accent-txt);outline-offset:3px;border-radius:2px}
h1,h2,h3,h4{font-family:var(--titre);font-weight:700;margin:0;line-height:1.22;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:.6rem;top:.6rem;width:auto;height:auto;padding:.8rem 1.1rem;z-index:99;
  background:var(--encre);color:var(--fond);border-radius:var(--rayon);font-weight:700}
.om-large{width:min(1240px,100% - 2.8rem);margin-inline:auto}
.jr-plaque{border-radius:var(--rayon)}

/* LE CHEVRON — le signe du site. Triangle plein, 10px, il pivote quand un pli s'ouvre. */
.om-chev{display:inline-block;flex:0 0 auto;width:10px;height:10px;margin-right:.6rem;
  background:var(--accent);clip-path:polygon(0 0,100% 50%,0 100%);
  transform:translateY(1px)}
@media (prefers-reduced-motion: no-preference){
  .om-chev{transition:transform .18s ease}
}
details[open] > summary .om-chev{transform:rotate(90deg) translateX(1px)}

.om-etiquette{font-size:14px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent-txt);margin-bottom:.5rem;line-height:1.4}
.om-section-titre{font-size:clamp(26px,3.2vw,36px);letter-spacing:-.01em}
.om-section-titre--petit{font-size:23px}
.om-section-titre--clair{color:var(--sur-profond)}
.om-section-chapo{font-size:18px;color:var(--doux);margin-top:.5rem;max-width:62ch}
.om-section-chapo--clair{color:var(--sur-profond-doux)}
.om-section-tete{display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem;
  flex-wrap:wrap;margin-bottom:1.6rem}
.om-lien-fleche{display:inline-flex;align-items:center;min-height:var(--cible);
  font-weight:700;font-size:17px;color:var(--accent-txt)}
.om-bouton{display:inline-flex;align-items:center;justify-content:center;min-height:var(--cible);
  padding:.5rem 1.25rem;border:2px solid var(--accent-txt);border-radius:var(--rayon);
  font-family:var(--courant);font-size:17px;font-weight:700;color:var(--accent-txt);
  background:transparent;cursor:pointer}
.om-bouton:hover{background:var(--accent-lavis);text-decoration:none}

/* ---------- 3. LA TETE A DOUBLE ETAGE ------------------------------------ */
.om-tete{background:var(--fond);border-bottom:2px solid var(--filet)}
.om-etage--haut{padding-block:1.1rem .9rem}
.om-haut-in{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:1.6rem}
.om-marque a{display:flex;align-items:center;gap:.75rem;min-height:var(--cible)}
.om-marque a:hover{text-decoration:none}
.om-mono{display:inline-flex;width:42px;color:var(--accent-txt);flex:0 0 auto}
.om-mono svg{width:100%;height:auto;fill:currentColor}
.om-marque-txt{display:flex;flex-direction:column;line-height:1.15}
.om-marque-mot{font-family:var(--titre);font-weight:800;font-size:clamp(24px,2.6vw,32px);
  letter-spacing:-.02em;color:var(--encre)}
.om-baseline{font-size:14px;color:var(--doux);line-height:1.4;margin-top:.15rem}

.om-cherche{max-width:520px;width:100%;justify-self:center}
.om-cherche-lab{display:block;font-size:15px;font-weight:700;color:var(--doux);margin-bottom:.3rem}
.om-cherche-ligne{display:flex;gap:.5rem}
.om-cherche input[type="search"]{flex:1 1 auto;min-width:0;min-height:var(--cible);
  font:inherit;font-size:18px;padding:.4rem .85rem;color:var(--encre);background:var(--fond);
  border:2px solid var(--encre);border-radius:var(--rayon)}
.om-cherche input[type="search"]::placeholder{color:var(--doux);opacity:1}
.om-cherche-bt{min-height:var(--cible);padding:.4rem 1.1rem;font:inherit;font-size:17px;
  font-weight:700;cursor:pointer;color:var(--fond);background:var(--accent-txt);
  border:2px solid var(--accent-txt);border-radius:var(--rayon)}
.om-suggest{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem 1rem;margin-top:.45rem;
  font-size:16px;line-height:1.5}
.om-suggest-lab{color:var(--doux);font-weight:700}
.om-suggest a{display:inline-flex;align-items:center;min-height:34px;font-weight:700;color:var(--accent-txt)}
.om-suggest--rub{margin-top:1.1rem}
.om-bouton--tete{justify-self:end}

.om-etage--rail{border-top:2px solid var(--filet);background:var(--surf)}
.om-rail-liste{display:flex;flex-wrap:wrap;gap:0 .4rem}
.om-rail-lien,.om-rail-liste a{display:inline-flex;align-items:center;min-height:var(--cible);
  padding:.35rem .9rem;font-size:17px;font-weight:700;color:var(--encre);
  border-bottom:4px solid transparent}
.om-rail-lien:hover,.om-rail-liste a:hover{text-decoration:none;border-bottom-color:var(--accent)}
.om-rail-lien.is-actif,.om-rail-liste .current-menu-item > a{border-bottom-color:var(--accent-txt);color:var(--accent-txt)}
.om-rail-lien--tout{color:var(--doux)}

/* ---------- 4. LE TRIPTYQUE DE PARCOURS (pleine largeur, tout en haut) ---- */
.om-triptyque{background:var(--surf);border-bottom:2px solid var(--filet);padding-block:2.4rem 2.8rem}
.om-triptyque-titre{font-size:clamp(28px,3.6vw,40px)}
.om-triptyque-chapo{font-size:19px;color:var(--doux);margin-top:.4rem}
.om-triptyque-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;margin-top:1.8rem}
.om-porte{position:relative;display:flex;flex-direction:column;background:var(--fond);
  border:2px solid var(--encre);border-radius:var(--rayon);overflow:hidden}
.om-porte-photo{aspect-ratio:3/2;overflow:hidden;background:var(--surf)}
.om-porte-photo img,.om-porte-photo .jr-plaque{width:100%;height:100%;object-fit:cover;border-radius:0}
.om-porte-corps{padding:1.15rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.35rem;flex:1 1 auto}
.om-porte-public{font-family:var(--titre);font-size:24px;font-weight:800;color:var(--accent-txt);line-height:1.2}
.om-porte-titre{font-size:20px}
.om-porte-chapo{font-size:17px;color:var(--doux);line-height:1.6}
.om-porte-verbe{display:flex;align-items:center;min-height:var(--cible);margin-top:auto;
  font-size:18px;font-weight:700;color:var(--accent-txt)}
.om-porte-compte{font-size:15px;color:var(--doux)}
.om-porte:hover{background:var(--accent-lavis)}
.om-porte .om-lien::after,.om-carte .om-lien::after,.om-fiche .om-lien::after{
  content:"";position:absolute;inset:0}
.om-porte .om-lien:hover,.om-carte .om-lien:hover,.om-fiche .om-lien:hover{text-decoration:none}
.om-porte:focus-within,.om-carte:focus-within,.om-fiche:focus-within{outline:3px solid var(--accent-txt);outline-offset:3px}

/* ---------- 5. LE BLOC DE TETE ET SA COLONNE DE PLIS ---------------------- */
.om-tete-bloc{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:2.6rem;
  padding-block:2.6rem 2.4rem}
.om-vedette-photo{margin:0 0 1.1rem;aspect-ratio:3/2;overflow:hidden;border-radius:var(--rayon);
  border:2px solid var(--filet);background:var(--surf)}
.om-vedette-photo img,.om-vedette-photo .jr-plaque{width:100%;height:100%;object-fit:cover;border-radius:0}
.om-vedette-rub{font-size:16px;font-weight:700;color:var(--doux)}
.om-vedette-titre{font-size:clamp(28px,3.8vw,42px);margin-top:.2rem}
.om-vedette-chapo{font-size:20px;color:var(--doux);margin-top:.7rem;max-width:60ch}
.om-vedette-verbe{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.1rem}
.om-duree{font-size:16px;color:var(--doux)}

.om-faq-col{border-left:2px solid var(--filet);padding-left:2rem}
.om-pli{border-bottom:2px solid var(--filet)}
.om-pli:first-of-type{border-top:2px solid var(--filet)}
.om-pli-tete{display:flex;align-items:center;gap:.2rem;min-height:var(--cible);
  padding:.7rem 0;cursor:pointer;list-style:none;
  font-family:var(--titre);font-size:19px;font-weight:700;line-height:1.35}
.om-pli-tete::-webkit-details-marker{display:none}
.om-pli-tete:hover{color:var(--accent-txt)}
.om-pli-corps{padding:0 0 1rem 1.6rem;font-size:17px;color:var(--doux);
  display:flex;flex-direction:column;gap:.5rem}
.om-pli-corps a{color:var(--accent-txt);font-weight:700}

/* ---------- 6. BANDES, FICHES ET CARTES ---------------------------------- */
.om-bande{padding-block:2.6rem 3rem;margin-top:.5rem}
.om-bande--surf{background:var(--surf);border-block:2px solid var(--filet)}
.om-bande--profond{background:var(--profond);color:var(--sur-profond)}
.om-bande--profond .om-chev{background:var(--accent-clair)}

.om-fiches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem;margin-top:1.6rem}
.om-fiche{position:relative;background:var(--fond);border:2px solid var(--filet);
  border-radius:var(--rayon);padding:1.1rem 1.15rem 1.2rem;display:flex;flex-direction:column;gap:.35rem}
.om-fiche-rub{font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--doux)}
.om-fiche-titre{font-size:21px}
.om-fiche-chapo{font-size:16px;color:var(--doux);line-height:1.6}
.om-fiche-verbe{display:flex;align-items:center;min-height:var(--cible);margin-top:auto;
  font-size:16px;font-weight:700;color:var(--accent-txt)}
.om-fiche:hover{border-color:var(--accent-txt)}

.om-vivre{padding-block:2.8rem}
.om-cartes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem}
.om-cartes--rub{margin-top:2rem}
.om-carte{position:relative;display:flex;flex-direction:column;background:var(--fond);
  border:2px solid var(--filet);border-radius:var(--rayon);overflow:hidden}
.om-carte-photo{aspect-ratio:3/2;overflow:hidden;background:var(--surf)}
.om-carte-photo img,.om-carte-photo .jr-plaque{width:100%;height:100%;object-fit:cover;border-radius:0}
.om-carte-corps{padding:1.1rem 1.2rem 1.25rem;display:flex;flex-direction:column;gap:.3rem;flex:1 1 auto}
.om-carte-rub{font-size:15px;font-weight:700;color:var(--doux)}
.om-carte-titre{font-size:22px;line-height:1.28}
.om-carte-chapo{font-size:17px;color:var(--doux);line-height:1.6}
.om-carte-verbe{display:flex;align-items:center;min-height:var(--cible);margin-top:auto;
  font-size:17px;font-weight:700;color:var(--accent-txt)}
.om-carte:hover{border-color:var(--accent-txt);background:var(--accent-lavis)}

.om-aides{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1.4rem;margin-top:1.8rem}
.om-aide{border-top:3px solid var(--sur-profond-doux);padding-top:.8rem}
.om-aide-lien{display:flex;align-items:center;min-height:var(--cible);
  font-family:var(--titre);font-size:20px;font-weight:700;color:var(--sur-profond)}
.om-aide-ext{margin-left:.4rem;font-size:16px;color:var(--sur-profond-doux)}
.om-aide-txt{font-size:16px;line-height:1.6;color:var(--sur-profond-doux)}
.om-bande--profond :focus-visible{outline-color:var(--accent-clair)}

/* ---------- 7. LE GLOSSAIRE A-Z ------------------------------------------ */
.om-glossaire{padding-block:2.6rem 3.2rem}
.om-alpha{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1.6rem}
.om-alpha-l{display:inline-flex;align-items:center;justify-content:center;
  width:var(--cible);height:var(--cible);border:2px solid var(--filet);border-radius:var(--rayon);
  font-family:var(--titre);font-size:19px;font-weight:700;color:var(--accent-txt);background:var(--fond)}
.om-alpha-l:hover{text-decoration:none;background:var(--accent-lavis);border-color:var(--accent-txt)}
/* une lettre sans page reste INERTE : ni lien, ni promesse */
.om-alpha-l--vide{color:var(--doux);opacity:.55;border-style:dashed;background:transparent}
.om-glo-listes{border-top:2px solid var(--filet)}
.om-pli--glo .om-pli-tete{gap:.8rem}
.om-glo-lettre{font-size:24px;min-width:1.2em}
.om-glo-nb{font-family:var(--courant);font-size:16px;font-weight:400;color:var(--doux)}
.om-glo-liste{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.1rem 1.6rem}
.om-glo-liste li a{display:flex;align-items:center;min-height:44px;font-size:17px;color:var(--encre)}
.om-glo-liste li a:hover{color:var(--accent-txt)}

/* ---------- 8. L'ARTICLE ------------------------------------------------- */
.om-art{padding-bottom:1rem}
.om-lecture{width:min(760px,100% - 2.8rem);margin-inline:auto}
.om-ariane{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;padding-top:1.6rem;
  font-size:16px;color:var(--doux)}
.om-ariane a{color:var(--accent-txt);font-weight:700}
.om-ariane-sep{color:var(--doux);padding-inline:.3em}
.om-art-tete{padding-block:1rem .4rem}
.om-art-titre{font-size:clamp(32px,5vw,48px);letter-spacing:-.015em}
.om-art-chapo{font-size:22px;line-height:1.65;color:var(--doux);margin-top:.9rem}
.om-relecture{display:flex;align-items:center;margin-top:1rem;font-size:16px;font-weight:700;color:var(--accent-txt)}
.om-relecture--pied{margin-top:1.2rem}
.om-art-photo{width:min(1100px,100% - 2.8rem);margin:1.6rem auto 0}
.om-art-photo img,.om-art-photo .jr-plaque{width:100%;border-radius:var(--rayon);
  border:2px solid var(--filet)}
.om-art-photo figcaption{font-size:16px;color:var(--doux);margin-top:.55rem;line-height:1.5}

.om-enbref{margin-top:2rem;padding:1.3rem 1.4rem;background:var(--surf);
  border:2px solid var(--accent-txt);border-radius:var(--rayon)}
.om-enbref-titre{font-size:22px;color:var(--accent-txt)}
.om-enbref-liste{margin-top:.6rem;display:flex;flex-direction:column;gap:.3rem}
.om-enbref-liste li{display:flex;align-items:flex-start;font-size:17px;line-height:1.6}
.om-enbref-liste .om-chev{margin-top:.55em}

.om-sommaire{margin-top:1.8rem;padding:1.2rem 1.4rem;border:2px solid var(--filet);
  border-radius:var(--rayon);background:var(--fond)}
.om-sommaire-titre{font-family:var(--titre);font-size:20px;font-weight:700;margin-bottom:.3rem}
.om-sommaire-liste{counter-reset:om;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.6rem}
.om-sommaire-liste li{counter-increment:om}
.om-sommaire-lien{display:flex;align-items:center;gap:.6rem;min-height:var(--cible);
  font-size:17px;font-weight:700;color:var(--accent-txt)}
.om-sommaire-lien::before{content:counter(om);flex:0 0 auto;width:26px;height:26px;
  display:inline-flex;align-items:center;justify-content:center;border-radius:50%;
  background:var(--accent-lavis);border:2px solid var(--accent-txt);font-size:14px;font-family:var(--courant)}

.om-dire{margin-top:2.2rem;padding:1.3rem 1.4rem;border:2px solid var(--accent2-txt);
  border-left-width:10px;border-radius:var(--rayon);background:var(--surf)}
.om-dire-titre{font-size:23px;color:var(--accent2-txt)}
.om-dire-intro{font-size:17px;color:var(--doux);margin-top:.35rem}
.om-dire-liste{margin-top:.7rem;display:flex;flex-direction:column;gap:.35rem}
.om-dire-liste li{display:flex;align-items:flex-start;font-size:18px;line-height:1.6}
.om-dire-liste .om-chev{margin-top:.55em;background:var(--accent2)}
.om-dire-note{font-size:16px;color:var(--doux);margin-top:.8rem;font-style:italic}
.om-art-faq{margin-top:2.4rem}
.om-art-faq .om-section-titre{margin-bottom:.8rem}
.om-art-pied{margin-top:2.4rem;padding-top:1.4rem;border-top:2px solid var(--filet);
  display:flex;flex-direction:column;gap:.8rem;align-items:flex-start}

/* le contenu WordPress reel — beau sans une seule classe ajoutee */
.om-texte{margin-top:2rem;font-size:19px;line-height:1.8}
.om-texte p{margin:0 0 1.3rem}
.om-texte h2{font-family:var(--titre);font-size:30px;margin:2.4rem 0 .8rem;
  padding-bottom:.4rem;border-bottom:3px solid var(--accent)}
.om-texte h3{font-family:var(--titre);font-size:24px;margin:1.9rem 0 .5rem;
  padding-left:.9rem;border-left:5px solid var(--accent)}
.om-texte h4{font-size:21px;margin:1.5rem 0 .4rem}
.om-texte ul{margin:0 0 1.3rem}
.om-texte ul li{position:relative;padding-left:1.5rem;margin-bottom:.5rem}
.om-texte ul li::before{content:"";position:absolute;left:0;top:.72em;width:10px;height:10px;
  background:var(--accent);clip-path:polygon(0 0,100% 50%,0 100%)}
.om-texte ol{list-style:decimal;margin:0 0 1.3rem;padding-left:1.6rem}
.om-texte ol li{margin-bottom:.5rem;padding-left:.25rem}
.om-texte a{color:var(--accent-txt);text-decoration:underline;text-underline-offset:4px;
  text-decoration-thickness:2px}
.om-texte blockquote{margin:1.8rem 0;padding:1.1rem 1.3rem;background:var(--surf);
  border:2px solid var(--filet);border-left:10px solid var(--accent);border-radius:var(--rayon);
  font-family:var(--titre);font-size:21px;line-height:1.55}
.om-texte blockquote p:last-child{margin-bottom:0}
/* l'encadre de famille, disponible pour la redaction : <div class="om-encadre"> */
.om-texte .om-encadre{margin:1.8rem 0;padding:1.2rem 1.3rem;background:var(--surf);
  border:2px solid var(--accent-txt);border-radius:var(--rayon)}
.om-texte .om-encadre > :last-child{margin-bottom:0}
.om-texte figure{margin:1.8rem 0}
.om-texte img{border-radius:var(--rayon);border:2px solid var(--filet)}
.om-texte figcaption{font-size:16px;color:var(--doux);margin-top:.5rem;line-height:1.5}
.om-texte table{width:100%;border-collapse:collapse;font-size:17px;margin:1.6rem 0}
.om-texte th,.om-texte td{border:2px solid var(--filet);padding:.7rem .8rem;text-align:left}
.om-texte th{background:var(--surf);font-weight:700}
.om-texte > table,.om-texte .wp-block-table{overflow-x:auto;display:block;max-width:100%}

/* signature produite par jr_signature() */
.sb-signature{display:flex;gap:1.1rem;align-items:flex-start}
.sb-signature img{width:72px;height:72px;border-radius:50%;border:2px solid var(--filet)}
.sb-signature-nom{font-family:var(--titre);font-size:19px;font-weight:700}
.sb-signature-bio{font-size:17px;color:var(--doux);margin-top:.25rem;line-height:1.6}
.sb-date{font-size:15px;color:var(--doux)}

/* ---------- 9. LA RUBRIQUE ----------------------------------------------- */
.om-rub-tete{background:var(--surf);border-bottom:2px solid var(--filet);padding-bottom:2rem}
.om-rub-titre{font-size:clamp(32px,5vw,46px);margin-top:.6rem}
.om-rub-chapo{font-size:20px;color:var(--doux);margin-top:.7rem;max-width:62ch}
.om-rub-compte{display:flex;align-items:center;margin-top:.9rem;font-size:17px;font-weight:700;color:var(--accent-txt)}
.om-rub-corps{padding-block:2.4rem 3rem}
.om-rub-vide{font-size:19px;color:var(--doux)}
.om-pagination{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:2.4rem}
.om-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;
  min-width:var(--cible);min-height:var(--cible);padding:.3rem .9rem;font-size:17px;font-weight:700;
  border:2px solid var(--filet);border-radius:var(--rayon);color:var(--accent-txt)}
.om-pagination .current{background:var(--accent-txt);border-color:var(--accent-txt);color:var(--fond)}

/* ---------- 10. LE PIED -------------------------------------------------- */
.om-pied{margin-top:2rem;border-top:2px solid var(--filet);background:var(--surf)}
.om-pied-haut{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;
  flex-wrap:wrap;padding-block:1.8rem 1.2rem;border-bottom:2px solid var(--filet)}
.om-pied-marque{display:flex;align-items:center;gap:.75rem}
.om-mono--pied{width:38px}
.om-pied-compte{font-size:17px;color:var(--doux)}
.om-pied-grille{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem;padding-block:2rem}
.om-pied-titre{font-family:var(--courant);font-size:16px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--doux);padding-bottom:.5rem;
  border-bottom:2px solid var(--filet);margin-bottom:.5rem}
.om-pied-liste a{display:flex;align-items:center;min-height:44px;font-size:17px;gap:.2rem}
.om-pied-liste a:hover{color:var(--accent-txt)}
.om-pied-nb{margin-left:auto;font-size:15px;color:var(--doux)}
.om-pied-liste--dates a{flex-wrap:wrap;line-height:1.4;padding-block:.4rem}
.om-pied-liste--dates .sb-date{flex-basis:100%;padding-left:1.3rem}
.om-pied-note{font-size:16px;color:var(--doux);margin-top:.7rem;line-height:1.6}
.om-pied input[type="search"],.om-pied input[type="text"]{width:100%;min-height:var(--cible);
  font:inherit;font-size:17px;padding:.4rem .8rem;color:var(--encre);background:var(--fond);
  border:2px solid var(--encre);border-radius:var(--rayon)}
.om-pied input[type="submit"],.om-pied button[type="submit"]{min-height:var(--cible);margin-top:.5rem;
  padding:.4rem 1.1rem;font:inherit;font-size:17px;font-weight:700;cursor:pointer;
  color:var(--fond);background:var(--accent-txt);border:2px solid var(--accent-txt);border-radius:var(--rayon)}
.om-ours{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  padding-block:1.1rem 1.4rem;border-top:2px solid var(--filet);font-size:16px;color:var(--doux)}
.om-bascule{min-height:var(--cible);padding:.4rem 1.1rem;font:inherit;font-size:16px;font-weight:700;
  cursor:pointer;color:var(--encre);background:var(--fond);border:2px solid var(--filet);
  border-radius:var(--rayon)}
.om-bascule:hover{border-color:var(--accent-txt);color:var(--accent-txt)}

/* ---------- 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:2px 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;
  min-height:56px;justify-content:center;padding:.35rem .2rem;font-size:12px;font-weight:700;
  color:var(--doux);text-align:center;line-height:1.2}
.sb-nav-mobile-item:hover{text-decoration:none}
.sb-nav-mobile-item.is-actif{color:var(--accent-txt)}
.sb-nav-ico{display:block;width:22px;height:22px}
.sb-nav-ico svg{width:100%;height:100%;stroke:currentColor;fill:none}

/* ---------- 12. REPLIS — jamais un debordement horizontal ---------------- */
@media (max-width: 1080px){
  .om-haut-in{grid-template-columns:minmax(0,1fr) auto;row-gap:.9rem}
  .om-cherche{grid-column:1 / -1;grid-row:2;max-width:none;justify-self:stretch}
  .om-fiches{grid-template-columns:repeat(2,minmax(0,1fr))}
  .om-aides{grid-template-columns:repeat(2,minmax(0,1fr))}
  .om-tete-bloc{grid-template-columns:minmax(0,1fr);gap:2rem}
  .om-faq-col{border-left:0;padding-left:0;border-top:2px solid var(--filet);padding-top:1.4rem}
  .om-pied-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  .om-cartes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 760px){
  body{font-size:18px;padding-bottom:70px}
  .om-large{width:min(1240px,100% - 2rem)}
  .om-lecture{width:min(760px,100% - 2rem)}
  .om-art-photo{width:min(1100px,100% - 2rem)}
  /* le rail de tete cede la place a la barre mobile basse ; la recherche, elle, reste */
  .om-etage--rail{display:none}
  .om-haut-in{grid-template-columns:minmax(0,1fr);row-gap:.8rem}
  .om-bouton--tete{justify-self:start}
  .om-triptyque-grille,.om-fiches,.om-cartes,.om-aides,
  .om-pied-grille,.om-glo-liste,.om-sommaire-liste{grid-template-columns:minmax(0,1fr)}
  .om-section-tete{align-items:flex-start}
  .sb-nav-mobile{display:flex}
}
@media (max-width: 480px){
  .om-alpha{gap:.3rem}
  .om-alpha-l{width:42px;height:42px;font-size:17px}
  .om-marque-mot{font-size:23px}
  .om-cherche-ligne{flex-direction:column}
  .om-cherche-bt{width:100%}
  .om-art-titre{font-size:29px}
  .om-vedette-titre{font-size:26px}
  .om-dire{border-left-width:6px}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
@media print{
  .om-etage--rail,.sb-nav-mobile,.om-bascule,.om-triptyque,.om-alpha{display:none!important}
  body{font-size:12pt}
}

/* 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}
