/*
Theme Name: Chouette Escapée
*/
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Assistant:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   GABARIT « MAISON D'HOTE »
   Une maison qu'on vous prete. Quatre choses le font reconnaitre :
   1. la page n'a qu'UNE SEULE COLONNE et beaucoup de blanc — aucune grille dense,
      jamais plus de deux ou trois elements de front ;
   2. des images en PORTRAIT 4:5, texte SOUS l'image, AUCUN bord, AUCUNE ombre,
      AUCUN arrondi (--rayon:0) ;
   3. EB Garamond en titres 48px et en italique pour les chapos ; Assistant en corps
      18px/1.8, et AUCUNE capitale forcee nulle part ;
   4. la recherche est une LIGNE SOULIGNEE, jamais une boite ; le type de lieu est une
      petite pastille CONTOUR 1px, toujours HORS image, sous le titre.
   ⛔ Aucun prix, disponibilite, reservation, note en etoiles — et jamais
      « nous avons visite ».
   ========================================================================== */

/* ---------- 1. JETONS ---------------------------------------------------- */
:root{
  --fond:#FCFAF6;            /* le blanc casse des murs */
  --encre:#1D1611;           /* le brun tres fonce, jamais #000 */
  --doux:#635749;            /* le brun-gris CHOISI : chapos, dates */
  --filet:#E7DFD1;           /* le filet, couleur de lin */
  --surf:#F3EDE2;            /* la plaque : encadres, bande methode */
  --accent:#916E2A;       /* la terre cuite, tiree par domaine */
  --accent2:#4B655F;     /* le vert d'eau : filets discrets, compteurs */
  --accent-txt:color-mix(in srgb, #916E2A 76%, #170a03);
  --accent2-txt:color-mix(in srgb, #4B655F 76%, #06130d);
  --titre:'EB Garamond','Iowan Old Style',Garamond,Georgia,serif;
  --courant:'Assistant','Helvetica Neue',Helvetica,Arial,sans-serif;
  --rayon:0px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --fond:#151210; --encre:#F2EBE1; --doux:#B0A493; --filet:#2C241B; --surf:#1D1813;
    --accent-txt:color-mix(in srgb, #916E2A 30%, #F2EBE1);
    --accent2-txt:color-mix(in srgb, #4B655F 30%, #F2EBE1);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --fond:#151210; --encre:#F2EBE1; --doux:#B0A493; --filet:#2C241B; --surf:#1D1813;
  --accent-txt:color-mix(in srgb, #916E2A 30%, #F2EBE1);
  --accent2-txt:color-mix(in srgb, #4B655F 30%, #F2EBE1);
  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:18px;line-height:1.8;font-weight:400;
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block;border-radius:0}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
:focus-visible{outline:1.5px solid var(--accent-txt);outline-offset:3px}
h1,h2,h3,h4{font-family:var(--titre);font-weight:500;margin:0;line-height:1.16;
  letter-spacing:.002em;text-transform:none;text-wrap:balance}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
dl,dd,dt{margin:0}
.sb-oeil,.mh-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}
.mh-enveloppe{width:min(1120px,100% - 2.8rem);margin-inline:auto}
.jr-plaque{border-radius:0!important}

/* LE PORTRAIT 4:5 : sans bord, sans ombre — la silhouette de la famille */
.mh-portrait{margin:0}
.mh-portrait img{width:100%;aspect-ratio:4/5;object-fit:cover}
/* LA PASTILLE CONTOUR : le type de lieu, TOUJOURS hors image, sous le titre */
.mh-type{display:inline-block;margin-top:.6rem;padding:.16rem .7rem;
  border:1px solid var(--accent);border-radius:999px;font-size:12.5px;
  color:var(--accent-txt);line-height:1.5}
.mh-meta{font-size:14px;color:var(--doux);margin-top:.7rem}
.mh-titre-section{font-size:clamp(26px,3.2vw,40px);margin-bottom:2rem;font-weight:400}

/* ---------- 3. LA TETE CENTREE, RECHERCHE SOULIGNEE ---------------------- */
.mh-tete{background:var(--fond)}
.mh-tete-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;
  min-height:116px;padding-block:1.8rem .8rem;text-align:center}
.mh-marque{grid-column:2}
.mh-marque a{display:flex;align-items:center;justify-content:center;gap:.7rem}
.mh-marque a:hover{text-decoration:none}
.mh-mono{display:inline-flex;width:32px;color:var(--accent)}
.mh-mono svg{width:100%;height:auto;fill:currentColor}
.mh-marque-mot{font-family:var(--titre);font-weight:500;font-size:clamp(26px,3.6vw,34px);
  line-height:1;letter-spacing:.01em}
.mh-baseline{grid-column:2;grid-row:2;font-size:13px;color:var(--doux);margin-top:.3rem;
  font-family:var(--titre);font-style:italic}
.mh-cherche{grid-column:3;grid-row:1;justify-self:end}
.mh-cherche input{font:inherit;font-size:14px;padding:.35rem 0;width:min(170px,30vw);
  border:0;border-bottom:1px solid var(--filet);background:none;color:var(--encre);border-radius:0}
.mh-cherche input:focus{border-bottom-color:var(--accent)}
.mh-cherche input::placeholder{color:var(--doux)}
.mh-burger{grid-column:1;grid-row:1;justify-self:start;display:none;background:none;
  border:0;padding:.5rem 0;cursor:pointer}
.mh-burger span{display:block;width:20px;height:1px;background:var(--encre);margin:5px 0}
.mh-rail{border-top:1px solid var(--filet);border-bottom:1px solid var(--filet);
  position:sticky;top:0;background:var(--fond);z-index:20}
.mh-rail-in{display:flex;justify-content:center;gap:0;overflow-x:auto;scrollbar-width:none}
.mh-rail-in::-webkit-scrollbar{display:none}
.mh-rail-in a{white-space:nowrap;padding:.75rem 1.1rem;font-size:12.5px;letter-spacing:.09em;
  color:var(--doux)}
.mh-rail-in a:hover{text-decoration:none;color:var(--encre)}
.mh-rail-in a.is-actif{color:var(--accent-txt)}

/* ---------- 4. LA UNE : 5 colonnes image 4:5 + 7 colonnes texte ---------- */
.mh-une{padding-block:3.4rem 3rem}
.mh-une-grille{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:3.4rem;align-items:center}
.mh-une-titre{font-size:clamp(32px,5vw,52px);line-height:1.1;font-weight:400}
.mh-une-chapo{font-family:var(--titre);font-style:italic;font-size:22px;line-height:1.55;
  color:var(--doux);margin-top:1.1rem;max-width:52ch}

/* ---------- 5. LES SECTIONS (une seule colonne, beaucoup d'air) ---------- */
.mh-section{padding-block:3.4rem}
.mh-section--surf{background:var(--surf)}

.mh-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2.4rem}
.mh-categorie{display:flex;flex-direction:column}
.mh-categorie:hover{text-decoration:none}
.mh-categorie-nom{font-family:var(--titre);font-size:24px;margin-top:1rem;line-height:1.18}
.mh-categorie:hover .mh-categorie-nom{text-decoration:underline;text-underline-offset:4px}
.mh-categorie-chapo{font-size:15.5px;color:var(--doux);margin-top:.5rem;line-height:1.6}
.mh-categorie-nb{font-size:13px;color:var(--accent2-txt);margin-top:.6rem}

.mh-methode{max-width:900px}
.mh-points{display:grid;gap:2.2rem}
.mh-points li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.3rem 1.6rem}
.mh-point-num{grid-row:1 / span 2;font-family:var(--titre);font-size:44px;line-height:.9;
  color:var(--accent);width:56px}
.mh-points h3{font-size:24px;font-weight:400}
.mh-points p{font-size:16.5px;color:var(--doux);line-height:1.7}

.mh-regions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.4rem}
.mh-region-titre{font-size:23px;padding-bottom:.5rem;margin-bottom:.6rem;
  border-bottom:1px solid var(--filet);font-weight:400}
.mh-region li{font-size:16px;padding:.34rem 0;line-height:1.5}

.mh-carnets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3.4rem}
.mh-carnets--trois{grid-template-columns:repeat(3,minmax(0,1fr));gap:2.4rem}
.mh-carnet-titre{font-size:26px;margin-top:1rem;line-height:1.16;font-weight:400}
.mh-carnets--trois .mh-carnet-titre{font-size:22px}
.mh-carnet-chapo{font-size:16.5px;color:var(--doux);margin-top:.7rem;line-height:1.7}

/* ---------- 6. RUBRIQUE -------------------------------------------------- */
.mh-rub-tete{padding-block:3rem 2rem;text-align:center}
.mh-fil-ariane{font-size:13px;color:var(--doux);margin-bottom:1rem}
.mh-fil-ariane a{color:var(--accent-txt)}
.mh-rub-titre{font-size:clamp(32px,5vw,50px);font-weight:400}
.mh-rub-chapo{font-family:var(--titre);font-style:italic;font-size:20px;color:var(--doux);
  margin-top:.8rem;max-width:56ch;margin-inline:auto}
.mh-rub-compte{font-size:13px;color:var(--accent2-txt);margin-top:.9rem}
.mh-rub-corps{padding-block:2.4rem 3.4rem}
.mh-fiches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3rem 2.4rem}
.mh-fiche-titre{font-family:var(--titre);font-size:24px;margin-top:1rem;line-height:1.18;font-weight:400}
.mh-fiche-chapo{font-size:16px;color:var(--doux);margin-top:.6rem;line-height:1.65}
.mh-pagination{display:flex;justify-content:center;gap:.6rem;flex-wrap:wrap;margin-top:3rem;
  padding-top:1.6rem;border-top:1px solid var(--filet);font-size:15px}
.mh-pagination .page-numbers{padding:.4rem .9rem;border-bottom:1px solid transparent}
.mh-pagination .current{border-bottom-color:var(--accent);color:var(--accent-txt)}

/* ---------- 7. ARTICLE --------------------------------------------------- */
.mh-art-tete{padding-block:3rem 1.8rem;text-align:center}
.mh-art-titre{font-size:clamp(32px,5.2vw,52px);line-height:1.1;max-width:22ch;
  margin-inline:auto;font-weight:400}
.mh-art-chapo{font-family:var(--titre);font-style:italic;font-size:22px;line-height:1.6;
  color:var(--doux);margin-top:1rem;max-width:52ch;margin-inline:auto}
.mh-art-illu{margin:0}
.mh-art-illu img{width:100%;aspect-ratio:16/9;object-fit:cover}
.mh-art-illu figcaption{font-size:13.5px;color:var(--doux);margin-top:.6rem;text-align:center;
  font-family:var(--titre);font-style:italic}
.mh-art-corps{padding-block:2.6rem 3.4rem}
.mh-art-texte{max-width:min(680px,100%);margin-inline:auto}

.mh-sommaire{margin-bottom:2.4rem;padding-block:1rem;
  border-top:1px solid var(--filet);border-bottom:1px solid var(--filet)}
.mh-sommaire-t{font-size:12.5px;letter-spacing:.1em;color:var(--doux);margin-bottom:.6rem}
.mh-sommaire li{font-size:16px;padding:.28rem 0;line-height:1.5}
.mh-sommaire a{color:var(--accent-txt)}

.mh-corps{font-size:18px;line-height:1.85}
.mh-corps p{margin:0 0 1.4rem}
.mh-corps h2{font-family:var(--titre);font-size:clamp(26px,3vw,34px);margin:2.8rem 0 .9rem;font-weight:400}
.mh-corps h3{font-family:var(--titre);font-size:25px;margin:2rem 0 .6rem;font-weight:400}
.mh-corps ul{margin:0 0 1.4rem}
.mh-corps ul li{position:relative;padding-left:1.4rem;margin-bottom:.55rem}
.mh-corps ul li::before{content:"";position:absolute;left:0;top:.85em;width:9px;height:1px;background:var(--accent)}
.mh-corps ol{list-style:decimal;margin:0 0 1.4rem;padding-left:1.5rem}
.mh-corps ol li{margin-bottom:.55rem}
.mh-corps a{color:var(--accent-txt);text-decoration:underline;text-underline-offset:4px}
.mh-corps blockquote{margin:2rem 0;padding:0 0 0 1.6rem;border-left:1px solid var(--accent);
  font-family:var(--titre);font-style:italic;font-size:23px;line-height:1.5;color:var(--doux)}
.mh-corps img{margin:2rem 0}
.mh-corps table{width:100%;border-collapse:collapse;font-size:16px;margin:2rem 0}
.mh-corps th,.mh-corps td{border-bottom:1px solid var(--filet);padding:.7rem .5rem;text-align:left}
.mh-corps th{font-size:13px;letter-spacing:.06em;color:var(--doux);font-weight:600}

.mh-pratique{margin-top:2.6rem;background:var(--surf);padding:1.6rem 1.8rem}
.mh-pratique-t{font-family:var(--titre);font-size:22px;margin-bottom:1rem}
.mh-pratique dl{display:grid;grid-template-columns:auto 1fr;gap:.45rem 1.2rem;font-size:16px}
.mh-pratique dt{color:var(--doux)}
.mh-pratique dd{text-align:right}
.mh-pratique-note{font-size:14.5px;color:var(--doux);margin-top:1.2rem;padding-top:.9rem;
  border-top:1px solid var(--filet);line-height:1.65}
.mh-galerie{margin-top:2.6rem}
.mh-galerie-grille{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.mh-galerie-grille img{width:100%;aspect-ratio:4/5;object-fit:cover;margin:0}
.mh-autour{margin-top:2.6rem;padding-top:1.4rem;border-top:1px solid var(--filet)}
.mh-autour li{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;
  padding:.55rem 0;border-bottom:1px solid var(--filet);font-size:17px}

/* signature d'auteur (jr_signature) */
.sb-signature{display:flex;gap:1.3rem;align-items:flex-start;margin-top:3rem;padding-top:1.6rem;
  border-top:1px solid var(--filet)}
.sb-signature img{width:72px;height:72px;border-radius:0}
.sb-signature-nom{font-family:var(--titre);font-size:19px;font-weight:500}
.sb-signature-bio{font-size:15.5px;color:var(--doux);margin-top:.35rem;line-height:1.7}
.sb-date{font-size:13.5px;color:var(--doux);margin-top:.5rem}

/* ---------- 8. PIED DE PAGE ---------------------------------------------- */
.mh-pied{margin-top:0;border-top:1px solid var(--filet)}
.mh-pied-haut{text-align:center;padding-block:3rem 2rem}
.mh-mono--pied{display:inline-flex;width:30px;color:var(--accent)}
.mh-pied-nom{font-family:var(--titre);font-size:32px;margin-top:.5rem;font-weight:500}
.mh-pied-baseline{font-family:var(--titre);font-style:italic;font-size:15px;color:var(--doux);margin-top:.3rem}
.mh-pied-phrase{font-size:16px;color:var(--doux);margin:1.4rem auto 0;max-width:60ch;line-height:1.75}
.mh-pied-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.6rem;
  padding-block:2rem 2.6rem;border-top:1px solid var(--filet)}
.mh-pied-titre{font-family:var(--titre);font-size:20px;padding-bottom:.5rem;margin-bottom:.8rem;
  border-bottom:1px solid var(--filet);font-weight:400}
.mh-pied-liste li{display:flex;justify-content:space-between;gap:.8rem;align-items:baseline;
  font-size:16px;padding:.35rem 0}
.mh-pied-nb{font-size:13px;color:var(--accent2-txt)}
.mh-pied-date{font-size:13px;color:var(--doux);white-space:nowrap}
.mh-pied-liste--fil li{align-items:flex-start}
.mh-ours{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  padding-block:1.2rem 1.4rem;border-top:1px solid var(--filet);font-size:14px;color:var(--doux)}
.mh-bascule{font:inherit;font-size:13px;padding:.4rem 0;border:0;border-bottom:1px solid var(--filet);
  background:none;color:var(--encre);border-radius:0;cursor:pointer}
.mh-bascule:hover{border-bottom-color:var(--accent)}

/* ---------- 9. BARRE MOBILE BASSE (identique au modele du reseau) --------- */
.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}

/* ---------- 10. REPLIS --------------------------------------------------- */
@media (max-width: 1080px){
  .mh-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mh-regions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mh-fiches{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mh-carnets--trois{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mh-une-grille{gap:2.4rem}
}
@media (max-width: 820px){
  .mh-rail{position:static;max-height:0;overflow:hidden;border-top:0;border-bottom:0}
  .mh-rail.is-ouvert{max-height:none;overflow:visible;
    border-top:1px solid var(--filet);border-bottom:1px solid var(--filet)}
  .mh-rail-in{flex-direction:column}
  .mh-rail-in a{text-align:left;border-bottom:1px solid var(--filet);padding:.7rem 0}
  .mh-burger{display:block}
  .mh-cherche{display:none}
}
@media (max-width: 760px){
  .mh-enveloppe{width:min(1120px,100% - 1.7rem)}
  body{font-size:17px}
  .mh-une-grille,.mh-categories,.mh-regions,.mh-carnets,.mh-carnets--trois,
  .mh-fiches,.mh-pied-grille{grid-template-columns:minmax(0,1fr)}
  .mh-galerie-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mh-section,.mh-une{padding-block:2.4rem}
  .mh-points li{grid-template-columns:minmax(0,1fr)}
  .mh-point-num{grid-row:auto;font-size:34px;width:auto}
  .mh-pratique{padding:1.2rem 1.3rem}
  .mh-pratique dl{grid-template-columns:minmax(0,1fr)}
  .mh-pratique dd{text-align:left;margin-bottom:.4rem}
  .mh-corps{font-size:17px}
  .sb-nav-mobile{display:flex}
  body{padding-bottom:64px}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;
    scroll-behavior:auto!important}
}
@media print{.mh-tete,.mh-rail,.sb-nav-mobile,.mh-bascule,.mh-pied{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}
