/*
Theme Name:   Petites Habitudes
Theme URI:    https://everydaywellnesshabits.org
Description:  Carnet français d'habitudes de bien-être classées par domaine (marche, respiration, rituels du soir, assiette et hydratation, écrans, étirements, matins, tenir dans la durée), chaque article avec un plan en trois ou quatre semaines. Thème enfant GeneratePress. Prototype « L'Escalier » : marches montantes, paliers sombres, plans en marches. Funnel Display + Labrada + Fragment Mono ; vert prairie, papier de pré, sous-bois.
Author:       Petites Habitudes
Template:     generatepress
Version:      1.0.0
Text Domain:  everydaywellnesshabits-fr
*/

/* ============================================================
   PETITES HABITUDES - SYSTÈME DE DESIGN
   Prototype « L'Escalier » : une habitude = quelques semaines de
   petites marches. Signatures en CSS pur :
   1. L'escalier des rubriques : huit marches qui montent de gauche
      à droite (accueil), chacune avec la dernière image du domaine.
   2. Les marches du plan : 1 à 8 petites marches d'après le vrai
      champ _fr_semaines (rien n'est dessiné sans valeur).
   3. Le palier : bande sombre au bord supérieur en escalier.
   4. Le plan en marches : les <ol> des articles descendent en marches.
   Règle de formes : tout est à angle droit (images, blocs, marches) ;
   seuls les boutons et le bandeau cookies sont en gélule (999px).
   Un seul accent : vert prairie. MOTION≈1.
   ============================================================ */

:root{
  --papier:#EEF2DC;        /* fond de page : pré du matin, pâle */
  --carte:#FBFCF5;         /* surfaces claires */
  --rosee:#D3DFBB;         /* bandes teintées */
  --pre:#5E8C3A;           /* accent unique : vert prairie */
  --pre-fonce:#456B26;     /* liens / texte accent sur clair (AA) */
  --pre-clair:#A8C97F;     /* accent sur fond sombre */
  --sousbois:#1F2D10;      /* paliers sombres, pied de page */
  --sousbois-2:#2A3A17;
  --encre:#1E2417;         /* texte */
  --doux:#56604A;          /* texte secondaire (AA sur papier) */
  --filet:#C9D8AE;
  --sur-sombre:#EEF2DC;
  --sur-sombre-doux:#B9C6A2;

  --font-titre:'Funnel Display', 'Trebuchet MS', sans-serif;
  --font-texte:'Labrada', Georgia, serif;
  --font-chiffre:'Fragment Mono', 'Courier New', monospace;

  --gelule:999px;
  --wrap:1200px;
  --marche:30px;           /* hauteur d'une contremarche de l'escalier */
}

/* ============================================================ BASE */
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--papier); color:var(--encre);
  font-family:var(--font-texte); font-size:18px; line-height:1.68;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--pre-fonce); text-underline-offset:3px; }
a:hover{ color:var(--encre); }
h1,h2,h3,h4,h5{ font-family:var(--font-titre); color:var(--encre); line-height:1.1; letter-spacing:-.015em; margin:0 0 .5em; font-weight:700; }
p{ margin:0 0 1em; }
.screen-reader-text{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
:focus-visible{ outline:3px solid var(--pre); outline-offset:2px; }

.phb-wrap{ max-width:var(--wrap); margin:0 auto; padding:0 24px; box-sizing:border-box; }
.phb-main{ display:block; }
.site-content, .site-main{ margin:0; padding:0; }

/* barre de lecture : CSS scroll-driven, invisible sans support */
.phb-progress{ position:fixed; top:0; left:0; right:0; height:4px; z-index:1000; pointer-events:none; background:var(--pre); transform-origin:0 50%; transform:scaleX(0); }
@supports (animation-timeline: scroll()){
  .phb-progress{ animation:phb-lire linear both; animation-timeline:scroll(root); }
  @keyframes phb-lire{ to{ transform:scaleX(1); } }
}
@supports not (animation-timeline: scroll()){ .phb-progress{ display:none; } }

/* boutons (gélules) */
.phb-btn{
  display:inline-flex; align-items:center; gap:10px; white-space:nowrap;
  background:var(--sousbois); color:var(--sur-sombre); text-decoration:none;
  font-family:var(--font-titre); font-weight:600; font-size:1rem; letter-spacing:0;
  padding:13px 26px; border-radius:var(--gelule); border:0; cursor:pointer;
  transition:background-color .2s ease, transform .2s ease;
}
.phb-btn:hover{ background:var(--pre-fonce); color:#FFFFFF; }
.phb-btn:active{ transform:translateY(1px); }
.phb-btn.pre{ background:var(--pre-fonce); color:#FFFFFF; }
.phb-btn.pre:hover{ background:var(--sousbois); }
.phb-btn.ligne{ background:transparent; color:var(--encre); box-shadow:inset 0 0 0 2px var(--encre); }
.phb-btn.ligne:hover{ background:var(--encre); color:var(--carte); }
.phb-btn.clair{ background:var(--pre-clair); color:var(--sousbois); }
.phb-btn.clair:hover{ background:var(--carte); color:var(--sousbois); }

/* méta des cartes : données réelles uniquement */
.phb-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; font-size:.8rem; color:var(--doux); line-height:1.4; font-family:var(--font-titre); }
.phb-meta b{ color:var(--pre-fonce); font-weight:600; }
.phb-meta.sur-sombre{ color:var(--sur-sombre-doux); }
.phb-meta.sur-sombre b{ color:var(--pre-clair); }

/* emplacement d'image vide : marches en aplat */
.phb-ph{
  display:block; width:100%; height:100%; min-height:120px;
  background:
    linear-gradient(to top, var(--rosee) 0 25%, transparent 25%) 0 0 / 25% 100% no-repeat,
    linear-gradient(to top, var(--rosee) 0 50%, transparent 50%) 33.33% 0 / 25% 100% no-repeat,
    linear-gradient(to top, var(--rosee) 0 75%, transparent 75%) 66.66% 0 / 25% 100% no-repeat,
    linear-gradient(to top, var(--rosee) 0 100%, transparent 100%) 100% 0 / 25% 100% no-repeat,
    var(--carte);
}

/* ============================================================ MARCHES DU PLAN (signature 2)
   Lit _fr_semaines : n petites marches montantes + libellé. */
.phb-semaines{ display:inline-flex; align-items:flex-end; gap:8px; font-family:var(--font-chiffre); font-size:.76rem; color:var(--encre); line-height:1; }
.phb-semaines i{ display:inline-flex; align-items:flex-end; gap:2px; }
.phb-semaines i span{ display:block; width:9px; background:var(--pre); }
.phb-semaines i span:nth-child(1){ height:5px; }
.phb-semaines i span:nth-child(2){ height:9px; }
.phb-semaines i span:nth-child(3){ height:13px; }
.phb-semaines i span:nth-child(4){ height:17px; }
.phb-semaines i span:nth-child(5){ height:21px; }
.phb-semaines i span:nth-child(6){ height:25px; }
.phb-semaines i span:nth-child(7){ height:29px; }
.phb-semaines i span:nth-child(8){ height:33px; }
.phb-semaines.sur-sombre{ color:var(--sur-sombre); }
.phb-semaines.sur-sombre i span{ background:var(--pre-clair); }
.phb-jour{ font-family:var(--font-chiffre); font-size:.76rem; color:var(--doux); }
.sur-sombre .phb-jour, .phb-jour.sur-sombre{ color:var(--sur-sombre-doux); }
.phb-plan-ligne{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px 16px; margin-top:10px; }

/* ============================================================ EN-TÊTE */
.phb-mast{ background:var(--carte); border-bottom:1px solid var(--filet); }
.phb-mast-in{ max-width:var(--wrap); margin:0 auto; padding:16px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; box-sizing:border-box; }
.phb-np{ display:inline-flex; align-items:flex-end; gap:12px; text-decoration:none; color:var(--encre); font-family:var(--font-titre); font-weight:800; font-size:1.75rem; letter-spacing:-.02em; line-height:1; }
.phb-np:hover{ color:var(--encre); }
/* marque : trois marches montantes */
.phb-np-marque{ display:inline-flex; align-items:flex-end; gap:0; flex:0 0 auto; height:24px; }
.phb-np-marque::before, .phb-np-marque::after, .phb-np-marque span{ content:""; display:block; width:10px; background:var(--pre); }
.phb-np-marque::before{ height:8px; }
.phb-np-marque span{ height:16px; background:var(--pre-fonce); }
.phb-np-marque::after{ height:24px; background:var(--sousbois); }
.phb-np-tag{ margin:6px 0 0; font-size:.88rem; color:var(--doux); font-style:italic; }
.phb-mast-lien{ font-family:var(--font-titre); font-weight:600; font-size:.95rem; color:var(--encre); text-decoration:none; padding:9px 18px; border-radius:var(--gelule); box-shadow:inset 0 0 0 2px var(--encre); white-space:nowrap; }
.phb-mast-lien:hover{ background:var(--encre); color:var(--carte); }

.phb-nav{ background:var(--carte); border-bottom:3px solid var(--sousbois); }
.phb-nav-in{ max-width:var(--wrap); margin:0 auto; padding:0 24px; box-sizing:border-box; }
.phb-nav-menu{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:0 26px; }
.phb-nav-menu li{ margin:0; }
.phb-nav-menu a{ display:block; padding:13px 0 11px; font-family:var(--font-titre); font-weight:600; font-size:.98rem; color:var(--encre); text-decoration:none; border-bottom:4px solid transparent; white-space:nowrap; }
.phb-nav-menu a:hover{ color:var(--pre-fonce); border-bottom-color:var(--rosee); }
.phb-nav-menu .current-menu-item > a, .phb-nav-menu .current-cat > a{ border-bottom-color:var(--pre); }

/* ============================================================ ACCUEIL : BANDEAU */
.phb-hero{ padding:56px 0 64px; }
.phb-hero-in{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:48px; align-items:center; }
.phb-hero h1{ font-size:clamp(2.3rem, 3.9vw, 3.1rem); font-weight:800; letter-spacing:-.02em; line-height:1.04; margin-bottom:22px; }
.phb-hero-txt p{ font-size:1.12rem; color:var(--doux); max-width:30em; margin-bottom:28px; }
.phb-hero-fig{ margin:0; }
/* image principale : coin inférieur gauche taillé en trois marches */
.phb-hero-img{
  display:block; aspect-ratio:4/3; overflow:hidden; background:var(--rosee);
  clip-path:polygon(0 0, 100% 0, 100% 100%, 18% 100%, 18% 88%, 9% 88%, 9% 76%, 0 76%);
}
.phb-hero-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.phb-hero-img:hover img{ transform:scale(1.02); }
.phb-hero-leg{ display:block; margin-left:18%; padding:14px 0 0 16px; border-left:3px solid var(--pre); text-decoration:none; color:var(--encre); }
.phb-hero-leg strong{ display:block; font-family:var(--font-titre); font-weight:600; font-size:1.15rem; line-height:1.25; margin:4px 0 0; }
.phb-hero-leg:hover strong{ color:var(--pre-fonce); }

/* ============================================================ L'ESCALIER DES RUBRIQUES (signature 1) */
.phb-escalier-sec{ background:var(--rosee); padding:64px 0 0; overflow:hidden; }
.phb-sec-tete{ max-width:40em; margin-bottom:32px; }
.phb-sec-tete h2{ font-size:clamp(1.8rem, 3vw, 2.5rem); font-weight:800; letter-spacing:-.02em; }
.phb-sec-tete p{ color:var(--doux); margin:0; }
.phb-escalier{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(8, minmax(0,1fr)); gap:0; align-items:end; }
.phb-escalier li{ margin:0; }
.phb-marche{
  --i:0;
  display:flex; flex-direction:column; text-decoration:none; color:var(--encre);
  min-height:calc(230px + var(--i) * var(--marche));
  background:var(--carte); border-top:6px solid var(--pre); border-right:1px solid var(--filet);
  box-sizing:border-box; transition:background-color .2s ease;
}
.phb-escalier li:last-child .phb-marche{ border-right:0; }
.phb-marche-img{ display:block; aspect-ratio:4/3; overflow:hidden; background:var(--rosee); }
.phb-marche-img img{ width:100%; height:100%; object-fit:cover; }
.phb-marche-b{ display:block; padding:12px 12px 16px; }
.phb-marche strong{ display:block; font-family:var(--font-titre); font-weight:700; font-size:1.02rem; line-height:1.15; }
.phb-marche em{ display:block; font-style:normal; font-size:.82rem; color:var(--doux); line-height:1.4; margin-top:6px; }
.phb-marche .n{ display:block; font-family:var(--font-chiffre); font-size:.74rem; color:var(--pre-fonce); margin-top:8px; }
.phb-marche:hover{ background:#FFFFFF; }
.phb-marche:hover strong{ color:var(--pre-fonce); }
/* contremarche du bas : la base commune de l'escalier */
.phb-escalier-socle{ height:18px; background:var(--sousbois); }

/* ============================================================ DERNIERS PLANS : mosaïque 4 colonnes */
.phb-sec{ padding:72px 0; }
.phb-mosaique{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); grid-auto-rows:auto; gap:28px 24px; }
.phb-carte{ display:flex; flex-direction:column; text-decoration:none; color:var(--encre); }
.phb-carte-img{ display:block; aspect-ratio:4/3; overflow:hidden; background:var(--rosee); margin-bottom:14px; }
.phb-carte-img img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.phb-carte:hover .phb-carte-img img{ transform:scale(1.03); }
.phb-carte h3{ font-size:1.12rem; font-weight:700; line-height:1.2; margin:6px 0 0; }
.phb-carte:hover h3{ color:var(--pre-fonce); }
.phb-carte p{ font-size:.95rem; color:var(--doux); margin:8px 0 0; }
.phb-carte.grande{ grid-column:span 2; grid-row:span 2; }
.phb-carte.grande .phb-carte-img{ aspect-ratio:5/4; }
.phb-carte.grande h3{ font-size:1.7rem; letter-spacing:-.02em; }
.phb-carte.haute{ grid-row:span 2; }
.phb-carte.haute .phb-carte-img{ aspect-ratio:auto; flex:1 1 auto; min-height:300px; }
.phb-carte.large{ grid-column:span 2; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 20px; align-content:start; }
.phb-carte.large .phb-carte-img{ margin:0; aspect-ratio:4/3; grid-row:span 4; }
.phb-plus{ margin-top:40px; }

/* ============================================================ LE PALIER : bande sombre (signature 3) */
.phb-palier{
  background:var(--sousbois); color:var(--sur-sombre); padding:110px 0 80px;
  clip-path:polygon(0 60px, 30% 60px, 30% 30px, 60% 30px, 60% 0, 100% 0, 100% 100%, 0 100%);
  margin-top:-1px;
}
.phb-palier h2, .phb-palier h3{ color:var(--sur-sombre); }
.phb-palier a{ color:var(--sur-sombre); }
.phb-palier-in{ display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:48px; align-items:center; }
.phb-palier-img{ display:block; aspect-ratio:3/2; overflow:hidden; background:var(--sousbois-2); }
.phb-palier-img img{ width:100%; height:100%; object-fit:cover; }
.phb-palier h2{ font-size:1rem; font-family:var(--font-chiffre); font-weight:400; color:var(--pre-clair); letter-spacing:0; margin-bottom:14px; }
.phb-palier h3{ font-size:clamp(1.6rem, 2.6vw, 2.2rem); font-weight:700; letter-spacing:-.02em; }
.phb-palier h3 a{ text-decoration:none; }
.phb-palier h3 a:hover{ color:var(--pre-clair); }
.phb-palier p{ color:var(--sur-sombre-doux); }
.phb-palier blockquote{ margin:28px 0 0; padding:18px 0 0; border-top:3px solid var(--pre-clair); font-family:var(--font-texte); font-style:italic; font-size:1.2rem; line-height:1.5; color:var(--sur-sombre); }

/* ============================================================ MÉTHODE : marches descendantes */
.phb-methode-in{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:56px; align-items:start; }
.phb-methode-img{ display:block; aspect-ratio:4/5; overflow:hidden; background:var(--rosee); }
.phb-methode-img img{ width:100%; height:100%; object-fit:cover; }
.phb-methode h2{ font-size:clamp(1.8rem, 3vw, 2.5rem); font-weight:800; letter-spacing:-.02em; }
.phb-methode-liste{ list-style:none; margin:28px 0 0; padding:0; }
.phb-methode-liste li{ margin:0 0 0 calc(var(--n, 0) * 48px); padding:16px 0 18px 20px; border-left:6px solid var(--pre); border-top:1px solid var(--filet); background:var(--carte); margin-bottom:10px; padding-right:20px; }
.phb-methode-liste li:nth-child(1){ --n:0; }
.phb-methode-liste li:nth-child(2){ --n:1; }
.phb-methode-liste li:nth-child(3){ --n:2; }
.phb-methode-liste li:nth-child(4){ --n:3; }
.phb-methode-liste strong{ display:block; font-family:var(--font-titre); font-weight:700; font-size:1.15rem; line-height:1.2; margin-bottom:4px; }
.phb-methode-liste span{ display:block; font-size:.96rem; color:var(--doux); line-height:1.55; }

/* ============================================================ QUI ÉCRIT */
.phb-auteur{ background:var(--rosee); }
.phb-auteur-in{ display:grid; grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:48px; align-items:center; }
.phb-auteur figure{ margin:0; }
.phb-auteur figure img{ width:100%; aspect-ratio:4/5; object-fit:cover; }
.phb-auteur figcaption{ font-size:.86rem; color:var(--doux); margin-top:8px; font-style:italic; }
/* repli sans portrait : bloc typographique en marches (jamais une photo de personne) */
.phb-bloc-marches{
  position:relative; aspect-ratio:4/5; background:var(--carte); overflow:hidden;
}
.phb-bloc-marches::before{
  content:""; position:absolute; inset:auto 0 0 0; height:72%;
  background:var(--pre);
  clip-path:polygon(0 100%, 0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 100%);
}
.phb-bloc-marches span{ position:absolute; left:22px; top:22px; font-family:var(--font-titre); font-weight:800; font-size:3.2rem; letter-spacing:-.04em; color:var(--sousbois); line-height:1; }
.phb-bloc-marches small{ position:absolute; left:22px; top:84px; font-family:var(--font-chiffre); font-size:.8rem; color:var(--doux); }
.phb-auteur h2{ font-size:clamp(1.7rem, 2.8vw, 2.3rem); font-weight:800; letter-spacing:-.02em; }
.phb-auteur p{ max-width:36em; }

/* ============================================================ PAR HABITUDE : bande sombre de vignettes */
.phb-bande{ background:var(--sousbois-2); color:var(--sur-sombre); padding:64px 0 72px; }
.phb-bande h2{ color:var(--sur-sombre); font-size:clamp(1.6rem, 2.6vw, 2.1rem); font-weight:800; letter-spacing:-.02em; margin-bottom:28px; }
.phb-vignettes{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(8, minmax(0,1fr)); gap:14px; }
.phb-vignettes li{ margin:0; }
.phb-vignette{ display:block; text-decoration:none; color:var(--sur-sombre); }
.phb-vignette-img{ display:block; aspect-ratio:1/1; overflow:hidden; background:var(--sousbois); margin-bottom:10px; }
.phb-vignette-img img{ width:100%; height:100%; object-fit:cover; transition:opacity .2s ease; }
.phb-vignette:hover .phb-vignette-img img{ opacity:.85; }
.phb-vignette b{ display:block; font-family:var(--font-chiffre); font-weight:400; font-size:.74rem; color:var(--pre-clair); margin-bottom:4px; }
.phb-vignette span{ display:block; font-family:var(--font-titre); font-weight:600; font-size:.92rem; line-height:1.25; }
.phb-vignette:hover span{ color:var(--pre-clair); }

/* ============================================================ ENGAGEMENTS : trois marches */
.phb-eng h2{ font-size:clamp(1.7rem, 2.8vw, 2.3rem); font-weight:800; letter-spacing:-.02em; margin-bottom:28px; }
.phb-eng-liste{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:start; }
.phb-eng-liste li{ margin:0; border-top:6px solid var(--pre); padding-top:16px; }
.phb-eng-liste li:nth-child(2){ margin-top:40px; }
.phb-eng-liste li:nth-child(3){ margin-top:80px; }
.phb-eng-liste strong{ display:block; font-family:var(--font-titre); font-size:1.2rem; font-weight:700; line-height:1.2; margin-bottom:8px; }
.phb-eng-liste p{ color:var(--doux); font-size:.98rem; margin:0 0 8px; }
.phb-eng-liste a{ font-family:var(--font-titre); font-weight:600; font-size:.95rem; }

/* ============================================================ INFOLETTRE */
.phb-lettre{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:var(--rosee); }
.phb-lettre-img{ display:block; position:relative; min-height:380px; overflow:hidden; background:var(--carte); }
.phb-lettre-img img, .phb-lettre-img .phb-ph{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.phb-lettre-corps{ padding:64px 56px; box-sizing:border-box; max-width:620px; }
.phb-lettre h2{ font-size:clamp(1.7rem, 2.8vw, 2.3rem); font-weight:800; letter-spacing:-.02em; }
.phb-form{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 10px; margin-top:20px; }
.phb-form label{ grid-column:1 / -1; font-family:var(--font-titre); font-weight:600; font-size:.92rem; }
.phb-form input{ font:inherit; font-size:1rem; padding:12px 18px; border:2px solid var(--encre); border-radius:var(--gelule); background:var(--carte); color:var(--encre); min-width:0; box-sizing:border-box; }
.phb-form input::placeholder{ color:#6E7762; }
.phb-note{ font-size:.84rem; color:var(--doux); margin-top:12px; }

/* ============================================================ ARTICLE */
.phb-article{ max-width:820px; margin:0 auto; padding:40px 24px 28px; box-sizing:border-box; }
.phb-ariane{ font-family:var(--font-titre); font-size:.88rem; color:var(--doux); margin-bottom:22px; }
.phb-ariane a{ color:var(--doux); }
.phb-article-cat{ display:inline-block; font-family:var(--font-titre); font-weight:600; font-size:.9rem; color:#FFFFFF; background:var(--pre-fonce); padding:5px 14px; text-decoration:none; margin-bottom:16px; }
.phb-article-cat:hover{ background:var(--sousbois); color:#FFFFFF; }
.phb-article h1{ font-size:clamp(2rem, 4.2vw, 3.1rem); font-weight:800; letter-spacing:-.02em; line-height:1.06; margin-bottom:18px; }
.phb-article-meta{ display:flex; flex-wrap:wrap; gap:6px 20px; font-family:var(--font-titre); font-size:.92rem; color:var(--doux); }
.phb-article-meta strong{ color:var(--encre); font-weight:600; }
/* fiche du plan : uniquement les champs réellement renseignés */
.phb-fiche{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:0; margin:26px 0 0; border-top:3px solid var(--sousbois); }
.phb-fiche > div{ padding:12px 16px 14px 0; }
.phb-fiche dt{ font-family:var(--font-chiffre); font-size:.74rem; color:var(--doux); margin-bottom:6px; }
.phb-fiche dd{ margin:0; font-family:var(--font-titre); font-weight:600; font-size:1.05rem; line-height:1.25; }
.phb-couv{ max-width:1100px; margin:8px auto 40px; padding:0 24px; box-sizing:border-box; }
.phb-couv img{ width:100%; max-height:620px; object-fit:cover; }
.phb-corps{ max-width:700px; margin:0 auto; padding:0 24px; box-sizing:border-box; font-size:1.1rem; line-height:1.78; }
.phb-corps h2{ font-size:1.75rem; font-weight:800; letter-spacing:-.02em; margin:1.8em 0 .6em; }
.phb-corps h3{ font-size:1.3rem; margin:1.5em 0 .5em; }
.phb-corps ul{ padding-left:1.3em; }
.phb-corps ul li::marker{ color:var(--pre); }
.phb-corps li{ margin-bottom:.4em; }
.phb-corps blockquote{ margin:1.6em 0; padding:4px 0 4px 22px; border-left:6px solid var(--pre); font-style:italic; font-size:1.2rem; line-height:1.5; }
.phb-corps table{ width:100%; border-collapse:collapse; font-size:.95rem; margin:1.4em 0; display:block; overflow-x:auto; }
.phb-corps th{ text-align:left; background:var(--rosee); padding:10px 12px; font-family:var(--font-titre); font-weight:600; }
.phb-corps td{ padding:10px 12px; border-bottom:1px solid var(--filet); }
/* le plan en marches (signature 4) : chaque étape descend d'un cran */
.phb-corps ol{ list-style:none; counter-reset:phb-etape; padding:0; margin:1.6em 0; }
.phb-corps ol > li{
  counter-increment:phb-etape; position:relative;
  margin:0 0 10px calc(min(var(--n, 0), 4) * 28px);
  padding:14px 18px 14px 64px; background:var(--carte);
  border-top:4px solid var(--pre); box-sizing:border-box;
}
.phb-corps ol > li:nth-child(2){ --n:1; }
.phb-corps ol > li:nth-child(3){ --n:2; }
.phb-corps ol > li:nth-child(4){ --n:3; }
.phb-corps ol > li:nth-child(n+5){ --n:4; }
.phb-corps ol > li::before{
  content:counter(phb-etape); position:absolute; left:0; top:0; bottom:0; width:46px;
  display:flex; align-items:flex-start; justify-content:center; padding-top:14px; box-sizing:border-box;
  background:var(--sousbois); color:var(--pre-clair); font-family:var(--font-chiffre); font-size:.95rem;
}
.phb-corps ol ol, .phb-corps ul ol{ margin:.6em 0; }
.phb-corps ol ol > li{ margin-left:0; background:transparent; border-top-width:2px; }
.ftc-disclosure{ background:var(--carte); border-left:6px solid var(--pre); padding:12px 18px; margin:0 0 28px; font-size:.92rem; line-height:1.5; }
.ftc-disclosure p{ margin:0; }
.ftc-disclosure a{ color:var(--encre); font-weight:700; }

.phb-bio{ max-width:700px; margin:48px auto 0; padding:24px; box-sizing:border-box; display:grid; grid-template-columns:80px minmax(0,1fr); gap:20px; background:var(--carte); border-top:4px solid var(--sousbois); }
.phb-bio-marques{ width:80px; height:80px; position:relative; background:var(--rosee); }
.phb-bio-marques::before{ content:""; position:absolute; inset:0; background:var(--pre); clip-path:polygon(0 100%, 0 66%, 33% 66%, 33% 33%, 66% 33%, 66% 0, 100% 0, 100% 100%); }
.phb-bio-marques span{ position:absolute; left:6px; top:4px; font-family:var(--font-titre); font-weight:800; font-size:1.1rem; color:var(--sousbois); }
.phb-bio h4{ font-size:1.2rem; margin:0 0 6px; }
.phb-bio p{ font-size:.96rem; color:var(--doux); margin:0 0 8px; }
.phb-bio a{ font-family:var(--font-titre); font-weight:600; font-size:.95rem; }

.phb-lies{ max-width:1100px; margin:64px auto 0; padding:0 24px; box-sizing:border-box; }
.phb-lies h3{ font-size:1.5rem; font-weight:800; margin-bottom:20px; }
.phb-lies-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:end; }
.phb-lies-grid .phb-carte:nth-child(2){ padding-bottom:24px; }
.phb-lies-grid .phb-carte:nth-child(3){ padding-bottom:48px; }

.phb-post-lettre{ margin:72px 0 0; background:var(--rosee); padding:56px 24px; }
.phb-post-lettre-in{ max-width:640px; margin:0 auto; }
.phb-post-lettre h3{ font-size:1.7rem; font-weight:800; }

/* ============================================================ ARCHIVE */
.phb-arch-tete{ background:var(--carte); }
.phb-arch-tete-in{ max-width:var(--wrap); margin:0 auto; padding:48px 24px 36px; box-sizing:border-box; }
.phb-etiquette{ display:inline-block; font-family:var(--font-chiffre); font-size:.8rem; color:var(--pre-fonce); margin-bottom:14px; }
.phb-arch-tete h1{ font-size:clamp(2rem, 4.4vw, 3.3rem); font-weight:800; letter-spacing:-.02em; margin:0 0 10px; }
.phb-arch-tete p{ color:var(--doux); max-width:40em; margin:0; }
/* filet en trois marches sous les têtes */
.phb-trois-marches{ display:grid; grid-template-columns:1fr 1fr 1fr; align-items:end; height:24px; }
.phb-trois-marches span{ display:block; background:var(--pre); }
.phb-trois-marches span:nth-child(1){ height:8px; background:var(--rosee); }
.phb-trois-marches span:nth-child(2){ height:16px; background:var(--pre); }
.phb-trois-marches span:nth-child(3){ height:24px; background:var(--sousbois); }
.phb-arch-une{ max-width:var(--wrap); margin:48px auto 0; padding:0 24px; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:40px; align-items:center; }
.phb-arch-une-img{ display:block; aspect-ratio:3/2; overflow:hidden; background:var(--rosee); }
.phb-arch-une-img img{ width:100%; height:100%; object-fit:cover; }
.phb-arch-une h2{ font-size:clamp(1.6rem, 2.6vw, 2.1rem); font-weight:800; letter-spacing:-.02em; }
.phb-arch-une h2 a{ color:var(--encre); text-decoration:none; }
.phb-arch-une h2 a:hover{ color:var(--pre-fonce); }
.phb-arch-grid{ max-width:var(--wrap); margin:56px auto 0; padding:0 24px; box-sizing:border-box; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:40px 28px; }
.phb-arch-vide{ max-width:var(--wrap); margin:48px auto; padding:0 24px; box-sizing:border-box; }
.phb-pagination{ max-width:var(--wrap); margin:48px auto 72px; padding:0 24px; box-sizing:border-box; }
.phb-pagination .nav-links{ display:flex; flex-wrap:wrap; gap:8px; }
.phb-pagination .page-numbers{ display:inline-block; min-width:44px; text-align:center; padding:10px 14px; background:var(--carte); border-top:3px solid var(--filet); color:var(--encre); text-decoration:none; font-family:var(--font-chiffre); box-sizing:border-box; }
.phb-pagination .page-numbers.current{ border-top-color:var(--pre); background:#FFFFFF; }
.phb-pagination .page-numbers:hover{ border-top-color:var(--pre); }

/* ============================================================ 404 */
.phb-404-liens{ list-style:none; margin:28px 0 0; padding:0; display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; }
.phb-404-liens li{ margin:0; }
.phb-404-liens a{ display:block; background:var(--carte); border-top:4px solid var(--pre); padding:10px 16px; font-family:var(--font-titre); font-weight:600; text-decoration:none; color:var(--encre); }
.phb-404-liens a:hover{ background:#FFFFFF; color:var(--pre-fonce); }

/* ============================================================ PAGES FIXES : « Paliers » (préfixe phb-pal)
   Tête alignée à gauche + bande de trois marches ; sommaire en marches
   descendantes ; contact sur un palier sombre ; renvois en petites marches. */
.phb-pal-tete{ background:var(--carte); }
.phb-pal-tete-in{ max-width:960px; margin:0 auto; padding:52px 24px 30px; box-sizing:border-box; }
.phb-pal-tete h1{ font-size:clamp(2.1rem, 4.6vw, 3.4rem); font-weight:800; letter-spacing:-.02em; margin:0 0 14px; }
.phb-pal-maj{ font-family:var(--font-chiffre); font-size:.82rem; color:var(--doux); }
.phb-pal.sante .phb-pal-tete{ background:var(--sousbois); }
.phb-pal.sante .phb-pal-tete h1{ color:var(--sur-sombre); }
.phb-pal.sante .phb-pal-maj{ color:var(--sur-sombre-doux); }
.phb-pal.sante .phb-pal-avis{ display:block; margin:0 0 16px; font-family:var(--font-titre); font-weight:600; font-size:.95rem; color:var(--sousbois); background:var(--pre-clair); padding:6px 14px; width:fit-content; }
.phb-pal-avis{ display:none; }
.phb-pal-in{ max-width:960px; margin:0 auto; padding:40px 24px 80px; box-sizing:border-box; }
.phb-pal-sommaire{ margin:0 0 44px; padding:0; }
.phb-pal-sommaire h2{ font-family:var(--font-chiffre); font-weight:400; font-size:.82rem; color:var(--doux); letter-spacing:0; margin:0 0 12px; }
.phb-pal-sommaire ol{ list-style:none; margin:0; padding:0; counter-reset:phb-pal; }
.phb-pal-sommaire li{ counter-increment:phb-pal; margin:0 0 4px calc(min(var(--n, 0), 6) * 22px); }
.phb-pal-sommaire a{ display:flex; gap:12px; align-items:baseline; padding:8px 14px; background:var(--carte); border-left:4px solid var(--pre); text-decoration:none; color:var(--encre); font-family:var(--font-titre); font-weight:600; font-size:.98rem; line-height:1.3; }
.phb-pal-sommaire a::before{ content:counter(phb-pal); font-family:var(--font-chiffre); font-weight:400; font-size:.78rem; color:var(--pre-fonce); min-width:1.4em; }
.phb-pal-sommaire a:hover{ background:#FFFFFF; color:var(--pre-fonce); }
.phb-pal-corps{ max-width:720px; font-size:1.06rem; line-height:1.75; }
.phb-pal-corps h2{ font-size:1.55rem; font-weight:800; letter-spacing:-.02em; margin:2em 0 .6em; padding-top:14px; border-top:3px solid var(--sousbois); scroll-margin-top:24px; }
.phb-pal-corps h2:first-child{ margin-top:0; }
.phb-pal-corps h3{ font-size:1.2rem; margin:1.4em 0 .4em; }
.phb-pal-corps ul, .phb-pal-corps ol{ padding-left:1.3em; }
.phb-pal-corps table{ width:100%; border-collapse:collapse; font-size:.95rem; display:block; overflow-x:auto; }
.phb-pal-corps td, .phb-pal-corps th{ padding:8px 10px; border-bottom:1px solid var(--filet); text-align:left; vertical-align:top; }
/* palier de contact : plateforme sombre, bord gauche en marches */
.phb-pal-contact{
  margin:52px 0 0; max-width:720px; padding:26px 28px 26px 92px; box-sizing:border-box; position:relative;
  background:var(--sousbois); color:var(--sur-sombre);
}
.phb-pal-contact::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:64px; background:var(--pre-clair);
  clip-path:polygon(0 100%, 0 66%, 33% 66%, 33% 33%, 66% 33%, 66% 0, 100% 0, 100% 100%);
}
.phb-pal-contact strong{ display:block; font-family:var(--font-titre); font-size:1.2rem; margin-bottom:4px; }
.phb-pal-contact a{ color:var(--pre-clair); }
/* renvois : une rangée de petites marches */
.phb-pal-renvois{ margin:52px 0 0; }
.phb-pal-renvois h2{ font-size:1.3rem; font-weight:800; margin:0 0 16px; }
.phb-pal-renvois ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px; }
.phb-pal-renvois li{ margin:0; }
.phb-pal-renvois a{ display:block; background:var(--rosee); border-top:4px solid var(--pre); padding:10px 14px; text-decoration:none; color:var(--encre); font-family:var(--font-titre); font-weight:600; font-size:.92rem; }
.phb-pal-renvois li:nth-child(3n+2) a{ padding-top:18px; }
.phb-pal-renvois li:nth-child(3n+3) a{ padding-top:26px; }
.phb-pal-renvois a:hover{ background:var(--carte); color:var(--pre-fonce); }

/* ============================================================ PIED DE PAGE */
.phb-pied{ background:var(--sousbois); color:var(--sur-sombre-doux); margin-top:0; }
.phb-pied-marches{ display:grid; grid-template-columns:repeat(8, 1fr); align-items:end; height:40px; background:var(--papier); }
.phb-pied-marches span{ display:block; background:var(--sousbois); }
.phb-pied-marches span:nth-child(1){ height:5px; } .phb-pied-marches span:nth-child(2){ height:10px; }
.phb-pied-marches span:nth-child(3){ height:15px; } .phb-pied-marches span:nth-child(4){ height:20px; }
.phb-pied-marches span:nth-child(5){ height:25px; } .phb-pied-marches span:nth-child(6){ height:30px; }
.phb-pied-marches span:nth-child(7){ height:35px; } .phb-pied-marches span:nth-child(8){ height:40px; }
.phb-pied-in{ max-width:var(--wrap); margin:0 auto; padding:48px 24px 36px; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,3fr) minmax(0,4fr); gap:40px; }
.phb-pied-nom{ display:flex; align-items:flex-end; gap:12px; font-family:var(--font-titre); font-weight:800; font-size:1.5rem; color:var(--sur-sombre); letter-spacing:-.02em; line-height:1; margin-bottom:16px; }
.phb-pied-nom .phb-np-marque::after{ background:var(--pre-clair); }
.phb-pied p{ font-size:.95rem; }
.phb-pied-h{ font-family:var(--font-chiffre); font-weight:400; font-size:.8rem; color:var(--pre-clair); letter-spacing:0; margin:0 0 12px; }
.phb-pied ul{ list-style:none; margin:0; padding:0; }
.phb-pied li{ margin:0 0 6px; }
.phb-pied a{ color:var(--sur-sombre); text-decoration:none; font-size:.95rem; }
.phb-pied a:hover{ color:var(--pre-clair); text-decoration:underline; }
.phb-pied-site ul{ columns:2; column-gap:24px; }
.phb-pied-rgpd{ max-width:var(--wrap); margin:0 auto; padding:18px 24px 28px; box-sizing:border-box; display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 24px; border-top:1px solid rgba(238,242,220,.16); font-size:.86rem; }
.phb-pied-rgpd a{ text-decoration:underline; font-size:.86rem; }

/* éléments d'image en <span> : toujours en bloc */
.phb-hero-img, .phb-marche-img, .phb-carte-img, .phb-palier-img, .phb-methode-img, .phb-vignette-img, .phb-arch-une-img, .phb-lettre-img{ display:block; }

/* ============================================================ RESPONSIVE */
@media (max-width:1100px){
  .phb-escalier{ grid-template-columns:repeat(4, minmax(0,1fr)); }
  .phb-marche{ min-height:calc(230px + (var(--i) - 4 * var(--rang, 0)) * var(--marche)); }
  .phb-escalier li:nth-child(n+5) .phb-marche{ --rang:1; }
  .phb-vignettes{ grid-template-columns:repeat(4, minmax(0,1fr)); }
  .phb-mosaique{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .phb-carte.haute{ grid-row:auto; }
  .phb-carte.haute .phb-carte-img{ aspect-ratio:4/3; min-height:0; }
  .phb-pied-in{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .phb-hero{ padding:32px 0 44px; }
  .phb-hero-in, .phb-palier-in, .phb-methode-in, .phb-auteur-in, .phb-arch-une, .phb-lettre{ grid-template-columns:minmax(0,1fr); gap:28px; }
  .phb-palier{ padding:80px 0 56px; clip-path:polygon(0 40px, 33% 40px, 33% 20px, 66% 20px, 66% 0, 100% 0, 100% 100%, 0 100%); }
  .phb-methode-img{ aspect-ratio:3/2; }
  .phb-methode-liste li{ margin-left:calc(var(--n, 0) * 14px); }
  .phb-auteur figure{ max-width:300px; }
  .phb-eng-liste{ grid-template-columns:minmax(0,1fr); }
  .phb-eng-liste li:nth-child(2){ margin:0 0 0 20px; }
  .phb-eng-liste li:nth-child(3){ margin:0 0 0 40px; }
  .phb-lettre-img{ min-height:220px; }
  .phb-lettre-corps{ padding:40px 24px; }
  .phb-arch-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .phb-lies-grid{ grid-template-columns:minmax(0,1fr); }
  .phb-lies-grid .phb-carte:nth-child(n){ padding-bottom:0; }
}
@media (max-width:760px){
  /* l'escalier passe en marches horizontales : chaque marche s'allonge vers le bas */
  .phb-escalier{ grid-template-columns:minmax(0,1fr); gap:6px; }
  .phb-escalier li{ width:calc(64% + var(--i, 0) * 5.14%); margin-left:auto; }
  .phb-marche, .phb-escalier li:nth-child(n+5) .phb-marche{ min-height:0; flex-direction:row; align-items:stretch; border-top:0; border-left:6px solid var(--pre); border-right:0; }
  .phb-marche-img{ flex:0 0 76px; aspect-ratio:auto; height:76px; }
  .phb-marche-img img{ height:76px; }
  .phb-marche-b{ padding:10px 12px; }
  .phb-marche em{ display:none; }
  .phb-escalier-sec{ padding-top:48px; }
  .phb-escalier-socle{ margin-top:6px; }
  .phb-vignettes{ grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:42%; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; }
  .phb-vignettes li{ scroll-snap-align:start; }
  .phb-mosaique{ grid-template-columns:minmax(0,1fr); }
  .phb-carte.grande, .phb-carte.large{ grid-column:auto; grid-row:auto; }
  .phb-carte.grande .phb-carte-img{ min-height:0; aspect-ratio:4/3; }
  .phb-carte.large{ display:flex; }
  .phb-carte.large .phb-carte-img{ margin-bottom:14px; }
}
@media (max-width:640px){
  body{ font-size:17px; }
  .phb-wrap, .phb-mast-in, .phb-nav-in, .phb-pied-in, .phb-pied-rgpd, .phb-article, .phb-corps, .phb-couv, .phb-arch-tete-in, .phb-arch-une, .phb-arch-grid, .phb-pal-tete-in, .phb-pal-in, .phb-lies, .phb-pagination{ padding-left:16px; padding-right:16px; }
  .phb-mast-in{ flex-wrap:wrap; gap:12px; }
  .phb-np{ font-size:1.45rem; }
  .phb-np-tag{ font-size:.82rem; }
  .phb-mast-lien{ padding:7px 14px; font-size:.88rem; }
  .phb-nav-menu{ flex-wrap:nowrap; overflow-x:auto; gap:0 20px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .phb-nav-menu::-webkit-scrollbar{ display:none; }
  .phb-hero h1{ font-size:2.2rem; }
  .phb-hero-leg{ margin-left:0; }
  .phb-sec{ padding:52px 0; }
  .phb-arch-grid{ grid-template-columns:minmax(0,1fr); }
  .phb-pied-in{ grid-template-columns:minmax(0,1fr); gap:28px; }
  .phb-form{ grid-template-columns:minmax(0,1fr); }
  .phb-bio{ grid-template-columns:minmax(0,1fr); }
  .phb-corps ol > li{ margin-left:calc(min(var(--n, 0), 4) * 8px); padding-left:56px; }
  .phb-corps ol > li::before{ width:40px; }
  .phb-pal-sommaire li{ margin-left:calc(min(var(--n, 0), 6) * 8px); }
  .phb-pal-contact{ padding:22px 18px 22px 70px; }
  .phb-pal-contact::before{ width:48px; }
  .phb-pal-contact a{ word-break:break-all; }
}

/* ============================================================
   BANDEAU COOKIES : gélule large, flottante, centrée en bas
   Une seule ligne sur bureau (texte à gauche, boutons à droite),
   coins 999px, bord à 20px du bas, jamais collée aux bords.
   Mobile : deux lignes, 12px de marge à gauche et à droite.
   (tarteaucitron injecte son CSS après le nôtre -> !important)
   On ne force JAMAIS display sur #tarteaucitronAlertBig : la lib l'affiche / le masque.
   ============================================================ */
#tarteaucitronRoot #tarteaucitronAlertBig{
  position:fixed !important; left:50% !important; right:auto !important; top:auto !important; bottom:20px !important;
  transform:translateX(-50%) !important; margin:0 !important;
  width:min(760px, calc(100vw - 24px)) !important; max-width:760px !important; min-width:0 !important; box-sizing:border-box !important;
  background:var(--sousbois) !important; color:var(--sur-sombre) !important;
  border:0 !important; border-radius:999px !important;
  box-shadow:0 18px 40px -18px rgba(31,45,16,.65), inset 0 0 0 1px rgba(168,201,127,.25) !important;
  padding:10px 10px 10px 26px !important; text-align:left !important;
  white-space:nowrap !important; font-size:0 !important;
  font-family:var(--font-texte) !important; line-height:1.35 !important; z-index:2147483640 !important;
}
#tarteaucitronRoot #tarteaucitronDisclaimerAlert,
#tarteaucitronRoot #tarteaucitronDisclaimerAlert *{
  color:var(--sur-sombre) !important; font-size:.9rem !important; line-height:1.35 !important;
  text-align:left !important; font-family:var(--font-texte) !important;
}
#tarteaucitronRoot #tarteaucitronDisclaimerAlert{
  display:inline-block !important; vertical-align:middle !important; white-space:normal !important;
  width:calc(100% - 512px) !important; margin:0 10px 0 0 !important; padding:0 !important;
}
#tarteaucitronRoot #tarteaucitronAlertBig br{ display:none !important; }
#tarteaucitronRoot #tarteaucitronAlertBig .tarteaucitronCheck,
#tarteaucitronRoot #tarteaucitronAlertBig .tarteaucitronCross{ display:none !important; }
#tarteaucitronRoot #tarteaucitronAlertBig button{
  display:inline-block !important; vertical-align:middle !important; width:auto !important; box-sizing:border-box !important;
  margin:0 0 0 4px !important; padding:8px 14px !important; border-radius:999px !important;
  font-family:var(--font-titre) !important; font-size:.9rem !important; font-weight:600 !important; line-height:1.2 !important;
  letter-spacing:0 !important; text-transform:none !important; cursor:pointer !important; text-align:center !important; white-space:nowrap !important;
  border:0 !important; background:transparent !important; color:var(--sur-sombre) !important; box-shadow:inset 0 0 0 1.5px rgba(238,242,220,.5) !important;
}
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2{ background:var(--pre-clair) !important; color:var(--sousbois) !important; box-shadow:none !important; }
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2:hover{ background:var(--carte) !important; }
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied2:hover{ background:rgba(238,242,220,.12) !important; }
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronCloseAlert{ box-shadow:none !important; text-decoration:underline !important; text-underline-offset:3px !important; padding:9px 10px !important; }
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl{
  box-shadow:none !important; padding:9px 8px !important; color:var(--sur-sombre-doux) !important;
  font-family:var(--font-texte) !important; font-size:.8rem !important; font-weight:400 !important;
  text-decoration:underline !important; text-underline-offset:3px !important;
}
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl:hover{ color:var(--pre-clair) !important; }

/* bouton de réouverture : petite marche collée au bord bas, au premier tiers de la largeur
   (ni coin, ni centre : les deux coins bas et le centre bas sont déjà pris dans le lot) */
#tarteaucitronRoot #tarteaucitronIcon, #tarteaucitronIcon{
  left:clamp(96px, 30vw, 440px) !important; right:auto !important; bottom:0 !important; top:auto !important;
  transform:none !important; width:auto !important; height:auto !important; background:transparent !important; padding:0 !important; margin:0 !important;
}
#tarteaucitronManager img{display:none !important;}
#tarteaucitronRoot #tarteaucitronManager img{display:none !important;}
#tarteaucitronRoot #tarteaucitronIcon #tarteaucitronManager, #tarteaucitronIcon #tarteaucitronManager{
  display:flex !important; align-items:flex-end !important; gap:10px !important;
  width:auto !important; height:auto !important; padding:12px 16px 8px 12px !important; line-height:1 !important;
  background:var(--sousbois) !important; border:0 !important; border-radius:0 !important;
  box-shadow:none !important;
}
#tarteaucitronRoot #tarteaucitronIcon #tarteaucitronManager::before, #tarteaucitronIcon #tarteaucitronManager::before{
  content:""; width:18px; height:14px; background:var(--pre-clair);
  clip-path:polygon(0 100%, 0 66%, 33% 66%, 33% 33%, 66% 33%, 66% 0, 100% 0, 100% 100%);
}
#tarteaucitronRoot #tarteaucitronIcon #tarteaucitronManager::after, #tarteaucitronIcon #tarteaucitronManager::after{
  content:"Cookies, pas à pas"; font-family:var(--font-titre); font-size:.86rem; font-weight:600; color:var(--sur-sombre);
}

@media (max-width:640px){
  #tarteaucitronRoot #tarteaucitronAlertBig{
    left:12px !important; right:12px !important; bottom:12px !important; transform:none !important;
    width:auto !important; max-width:none !important; border-radius:28px !important;
    white-space:normal !important; padding:14px 14px 12px 20px !important;
  }
  #tarteaucitronRoot #tarteaucitronDisclaimerAlert{ display:block !important; width:auto !important; margin:0 0 10px !important; }
  #tarteaucitronRoot #tarteaucitronAlertBig button{ margin:0 4px 0 0 !important; }
  #tarteaucitronRoot #tarteaucitronDisclaimerAlert, #tarteaucitronRoot #tarteaucitronDisclaimerAlert *{ font-size:.85rem !important; }
  #tarteaucitronRoot #tarteaucitronAlertBig button{ padding:8px 13px !important; font-size:.86rem !important; }
  #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl{ padding:8px 4px !important; }
  #tarteaucitronRoot #tarteaucitronIcon, #tarteaucitronIcon{ left:clamp(72px, 28vw, 120px) !important; }
}

/* ============================================================ MOUVEMENT RÉDUIT */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ transition:none !important; animation:none !important; }
  .phb-progress{ display:none; }
}
