/* ===== POLICES AUTO-HEBERGEES =====
   Fichiers woff2 dans /fonts, recuperes depuis Google Fonts le 10/07/2026.
   Plus aucune requete vers fonts.googleapis.com : rendu plus rapide et
   pas de transfert d'adresse IP vers Google (position CNIL). */
/* DM Sans 300 (latin-ext) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/dm-sans-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans 300 (latin) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/dm-sans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans 400 (latin-ext) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans 400 (latin) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans 500 (latin-ext) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans 500 (latin) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk 500 (latin-ext) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/space-grotesk-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 500 (latin) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/space-grotesk-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk 700 (latin-ext) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-grotesk-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 700 (latin) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-grotesk-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Spicy Rice (Astigmatic, licence SIL OFL, récupérée le 24/10/2026) : police
   des noms de produit (.wordmark). Elle n'est téléchargée que sur les pages qui
   l'affichent ; celles qui la montrent dès l'en-tête la préchargent. */
@font-face {
  font-family: 'Spicy Rice';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spicy-rice-latin.woff2) format('woff2');
}
/* ===== FIN POLICES ===== */
/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== THEME VARIABLES ===== */
:root {
  /* Palette « vert nature » — le vert forêt/sauge remplace le bleu (variables conservées). */
  --ht-blue:       #166C58;
  --ht-blue-light: #E2F2EB;
  --ht-blue-mid:   #33A186;
  --ht-blue-dark:  #0F5648;
  --ht-dark:       #1F2E28;
  --ht-gray:       #F5F4EF;
  --ht-text:       #26302A;
  --ht-muted:      #647160;
  --ht-border:     #E5E7DE;
  --ht-bg:         #ffffff;
  --ht-nav-bg:     #ffffff;
  --ht-card-bg:    #F5F4EF;
  --ht-form-bg:    #ffffff;

  /* Modern design tokens */
  --ht-accent-grad:   linear-gradient(120deg, #166C58 0%, #33A186 55%, #5FC3A0 100%);
  --ht-radius:        16px;
  --ht-radius-lg:     22px;
  --ht-nav-glass:     rgba(255,255,255,0.72);
  --ht-shadow-sm:     0 1px 2px rgba(20,45,38,0.05), 0 2px 6px rgba(20,45,38,0.05);
  --ht-shadow-md:     0 4px 12px -4px rgba(20,45,38,0.10), 0 12px 32px -12px rgba(20,45,38,0.12);
  --ht-shadow-lg:     0 8px 24px -8px rgba(20,45,38,0.14), 0 24px 60px -20px rgba(20,45,38,0.18);
  --ht-glow:          0 10px 30px -8px rgba(51,161,134,0.45);
}


/* Transitions de couleur — CIBLÉES.
   Cette règle était universelle (*, *::before, *::after). Elle existait pour
   adoucir la bascule clair/sombre… supprimée depuis : le navigateur suivait
   donc des transitions sur tous les nœuds de la page pour rien, et les survols
   paraissaient mous. On ne garde que ce qui change réellement de couleur au
   survol, au focus ou à la sélection. */
a, button, input, select, textarea,
.btn-primary, .btn-secondary, .btn-white,
.product-card, .feat-card, .principle-card, .compat-card,
.step, .diy-card, .story-card, .highlight-box, .faq-item, .cart-mode {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
/* Les dessins animés ne doivent rien hériter. */
canvas, svg * { transition: none !important; }

/* Défilement fluide seulement si l'utilisateur ne demande pas moins de mouvement
   (il peut déclencher une gêne vestibulaire). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body  { font-family: 'DM Sans', sans-serif; color: var(--ht-text); background: var(--ht-bg); line-height: 1.6; font-size: 16px; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }

/* ===== NAVIGATION ===== */
nav {
  background: var(--ht-nav-glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 0.5px solid var(--ht-border);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; position: sticky; top: 0; z-index: 100;
}
/* Repli si backdrop-filter non supporté */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  nav { background: var(--ht-nav-bg); }
}
.logo { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 22px; font-weight: 800; color: var(--ht-dark); letter-spacing: -0.5px; display: flex; align-items: center; gap: 6px; }
.logo-group { display: flex; flex-direction: column; justify-content: space-between; height: 36px; }
.logo-text { line-height: 1; }
.logo-text span { color: var(--ht-blue-mid); }
.logo-tagline { font-size: 10px; font-weight: 400; color: var(--ht-muted); font-family: 'DM Sans', sans-serif; line-height: 1; text-align: justify; text-align-last: justify; width: 100%; }
.logo img { height: 36px; width: auto; max-width: none; flex-shrink: 0; display: block; }

.nav-menu  { display: flex; align-items: center; gap: 1.25rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a {
  position: relative;
  font-size: 14px; color: var(--ht-muted); font-weight: 400;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s;
}

/* Resserrage progressif pour éviter le débordement de la nav avant le hamburger */
@media (max-width: 1180px) {
  nav { padding: 0 1.5rem; }
  .nav-menu  { gap: 1rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 13.5px; }
  .logo-tagline { display: none; }
}
.nav-links a:hover { color: var(--ht-blue); }
.nav-links a.active {
  color: var(--ht-blue);
  font-weight: 500;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--ht-blue);
  border-radius: 1px;
}

.nav-cta {
  background: var(--ht-accent-grad); color: #fff; font-size: 13px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; padding: 9px 20px; border-radius: 9px;
  border: none; cursor: pointer;
  box-shadow: 0 2px 10px -3px rgba(22,108,88,0.40);
  transition: filter 0.2s, transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
}
.nav-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(22,108,88,0.50);
}
.nav-cta:active { transform: translateY(0); }


.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ht-dark); border-radius: 2px; }

/* Bascule en menu hamburger. 980px et non 880 : entre les deux, les 7 liens +
   le bouton Boutique + l'interrupteur de thème ne tiennent pas — le logo passait
   sous « Accueil » et l'interrupteur était coupé par le bord droit.
   ⚠ Ce seuil est répliqué plus bas (.nav-links a::before) et dans site.js
   (matchMedia). Les trois doivent rester d'accord. */
@media (max-width: 980px) {
  nav { padding: 0 1.25rem; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--ht-nav-bg); border-bottom: 0.5px solid var(--ht-border);
    padding: 1.25rem 1.5rem; flex-direction: column; gap: 1rem;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav-links a { padding: 4px 0 4px 12px; border-left: 3px solid transparent; }
  .nav-links a.active { border-left-color: var(--ht-blue); }
  .nav-links a.active::after { display: none; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-block; background: var(--ht-accent-grad); color: #fff;
  border: none; padding: 13px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; text-align: center;
  box-shadow: 0 4px 14px -4px rgba(22,108,88,0.45);
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s, filter 0.2s;
}
/* Reflet lumineux qui traverse le bouton au survol */
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.btn-primary:hover {
  color: #fff; filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(22,108,88,0.55);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px -2px rgba(22,108,88,0.35); }

.btn-secondary {
  display: inline-block; background: var(--ht-bg); color: var(--ht-blue);
  border: 1.5px solid var(--ht-blue); padding: 12px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; text-align: center;
  transition: background-color 0.2s, color 0.2s, transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
}
.btn-secondary:hover {
  background: var(--ht-blue-light);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px -8px rgba(22,108,88,0.30);
}
.btn-secondary:active { transform: translateY(0); }

.btn-white {
  display: inline-block; background: #fff; color: #1F2E28;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  padding: 13px 28px; border-radius: 10px;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.25);
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
}
.btn-white:hover {
  opacity: 0.92; color: #1F2E28;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.25);
}
.btn-white:active { transform: translateY(0); }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1C5A48 0%, #2F8A6C 100%);
  padding: 6rem 2rem; text-align: center; color: #fff;
}
.page-header::before, .page-header::after {
  content: ''; position: absolute; pointer-events: none;
  border-radius: 50%; will-change: transform;
}
.page-header::before {
  width: 75%; height: 140%; left: -15%; top: -25%;
  background: radial-gradient(circle, rgba(51,161,134,0.50), transparent 60%);
  animation: float-bubble-1 18s ease-in-out infinite;
}
.page-header::after {
  width: 65%; height: 130%; right: -10%; bottom: -25%;
  background: radial-gradient(circle, rgba(125,196,90,0.25), transparent 65%);
  animation: float-bubble-2 22s ease-in-out infinite;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.5px;
}
.page-header p { font-size: 16px; opacity: 0.8; max-width: 500px; margin: 0 auto; }

/* Keyframes partagées par .page-header / .cta-strip / .hero */
@keyframes float-bubble-1 {
  0%, 100% { transform: translate(0, 0)   scale(1); }
  50%      { transform: translate(7%, 5%) scale(1.07); }
}
@keyframes float-bubble-2 {
  0%, 100% { transform: translate(0, 0)    scale(1); }
  50%      { transform: translate(-6%, -4%) scale(1.10); }
}
@media (prefers-reduced-motion: reduce) {
  .page-header::before, .page-header::after,
  .cta-strip::before, .cta-strip::after,
  .hero::before, .hero::after { animation: none !important; }
}

/* ===== NOMS DE PRODUIT (POULOMATIX, MIAM-MIAM, RayCatcher) =====
   Un seul lettrage pour toute la gamme, né sur la page POULOMATIX : un clin
   d'œil « gaulois » sans copier celui d'Astérix. Réservé aux noms de produit,
   jamais pour du texte courant (là, le nom s'écrit en police normale). */
.wordmark {
  font-family: 'Spicy Rice', 'Space Grotesk', system-ui, sans-serif; font-weight: 400;
  letter-spacing: 1.5px; line-height: 1; color: #F2D27A;
  -webkit-text-stroke: 0.1em #0B231D; paint-order: stroke fill;
  text-shadow: 0 0.06em 0 #0B231D, 0 0.12em 0.25em rgba(0,0,0,0.35);
}
/* Version réduite, dans un titre ou un tableau. */
.wm-sm { letter-spacing: 1px; -webkit-text-stroke-width: 0.08em; text-shadow: none; }
/* Nom en vedette au-dessus d'un titre, légèrement penché comme un tampon.
   Taille et rotation portées par le nom lui-même : les règles « .hero p » et
   « .page-header p » (taille, animation d'arrivée) visent le paragraphe. */
.brand-mark { display: inline-block; margin: 0 0 0.9rem; line-height: 1; }
.page-header .brand-mark { opacity: 1; margin: 0 auto 0.9rem; }
.brand-mark .wordmark { display: inline-block; font-size: clamp(2.8rem, 7vw, 4.4rem); transform: rotate(-2.5deg); }
/* Nom au-dessus du titre d'une carte produit (accueil). */
.card-brand { margin: 0.15rem 0 0.55rem; line-height: 1; }
.card-brand .wordmark {
  display: inline-block; font-size: 1.9rem; transform: rotate(-2deg); transform-origin: left center;
  text-shadow: 0 0.06em 0 #0B231D;
}

/* ===== BADGES ===== */
.badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 4px 11px; border-radius: 20px; }
.badge-blue   { background: var(--ht-blue-light); color: var(--ht-blue-dark); }
.badge-green  { background: #EAF3DE; color: #27500A; }
.badge-amber  { background: #FAEEDA; color: #633806; }

/* ===== FOOTER ===== */
footer {
  border-top: 0.5px solid var(--ht-border); padding: 2.5rem 2rem;
  text-align: center; font-size: 13px; color: var(--ht-muted); margin-top: 4rem;
  background: var(--ht-bg);
}
footer a { color: var(--ht-blue); }
footer a:hover { text-decoration: underline; }
footer .legal-mentions {
  margin-top: 0.9rem; font-size: 12px; line-height: 1.6;
  color: var(--ht-muted); opacity: 0.85;
}

/* ===== CTA STRIP ===== */
.cta-strip {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1C5A48, #2F8A6C);
  padding: 6rem 2rem; text-align: center; color: #fff;
}
.cta-strip::before, .cta-strip::after {
  content: ''; position: absolute; pointer-events: none;
  border-radius: 50%; will-change: transform;
}
.cta-strip::before {
  width: 65%; height: 130%; right: -10%; top: -20%;
  background: radial-gradient(circle, rgba(51,161,134,0.45), transparent 60%);
  animation: float-bubble-1 20s ease-in-out infinite;
}
.cta-strip::after {
  width: 60%; height: 120%; left: -10%; bottom: -25%;
  background: radial-gradient(circle, rgba(125,196,90,0.22), transparent 65%);
  animation: float-bubble-2 26s ease-in-out infinite;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.3px; }
.cta-strip p  { font-size: 15px; opacity: 0.8; margin-bottom: 2rem; }

/* ===== FORM INPUTS (dark) ===== */

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Apparition en cascade. Cible .feat-card sans passer par la grille parente :
   l'accueil utilise .features-bento, les autres pages .features-grid. */
.feat-card.reveal:nth-child(2),
.compat-grid .compat-card.reveal:nth-child(2),
.steps .step.reveal:nth-child(2) { transition-delay: 0.1s; }
.feat-card.reveal:nth-child(3),
.compat-grid .compat-card.reveal:nth-child(3),
.steps .step.reveal:nth-child(3) { transition-delay: 0.2s; }
.feat-card.reveal:nth-child(4),
.compat-grid .compat-card.reveal:nth-child(4),
.steps .step.reveal:nth-child(4) { transition-delay: 0.3s; }
.steps .step.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ===== APPEL BÊTA =====
   Remplace l'ancien bloc « waitlist » (compteur d'inscrits + jauge d'objectif),
   retiré le 2026-09-01 : le chiffre était écrit en dur alors qu'aucune liste
   n'est comptée. Ne pas réintroduire de compteur sans source réelle. */
.beta-note { max-width: 420px; margin: 2.25rem auto 0; text-align: center; font-size: 13.5px; line-height: 1.75; color: var(--ht-muted); }
.beta-note strong { color: var(--ht-dark); font-weight: 600; }
.beta-note a { color: var(--ht-blue); font-weight: 500; text-decoration: none; }
.beta-note a:hover { text-decoration: underline; }

/* ===== FAQ ===== */
.faq-section { max-width: 720px; margin: 0 auto; padding: 4rem 2rem; }
.faq-section > h2 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; color: var(--ht-dark); letter-spacing: -0.3px; margin-bottom: 2rem; text-align: center; }

/* Trait dégradé sous les titres de section (touche moderne partagée) */
.features-section h2, .faq-section > h2 { position: relative; padding-bottom: 0.85rem; }
.features-section h2::after, .faq-section > h2::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 2px; background: var(--ht-accent-grad);
}
.faq-item { border-bottom: 0.5px solid var(--ht-border); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif; color: var(--ht-dark); text-align: left; gap: 12px; }
.faq-icon { font-size: 20px; font-weight: 300; color: var(--ht-muted); flex-shrink: 0; transition: transform 0.25s !important; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
/* Accordéon FAQ : max-height animé — technique universelle (tous navigateurs).
   Replié = 0 (réponse totalement masquée). Le cap (320px) est dimensionné bien
   au-dessus de la plus longue réponse pour ne jamais la tronquer. */
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 320px; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }
.faq-a p { font-size: 14px; color: var(--ht-muted); line-height: 1.75; padding-bottom: 1rem; }

/* ===== MICRO-INTERACTIONS — Nav link underline (hover) ===== */
.nav-links a::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--ht-blue);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.nav-links a:hover::before,
.nav-links a:focus-visible::before { transform: scaleX(1); }
.nav-links a.active::before { display: none; } /* le .active garde son ::after fixe */
@media (max-width: 980px) {                   /* même seuil que la bascule hamburger */
  .nav-links a::before { display: none; }     /* en menu hamburger : pas de soulignement */
}

/* ===== CARTES — léger « border-glow » au survol ===== */
.principle-card,
.feat-card,
.compat-card,
.guide-card,
.step,
.diy-card,
.no-mast,
.diy-section,
.story-card,
.highlight-box,
.part-item {
  transition: border-color 0.22s ease,
              box-shadow 0.25s ease,
              transform 0.25s ease;
}
.principle-card:hover,
.feat-card:hover,
.compat-card:hover,
.guide-card:hover,
.guide-card:focus-visible,
.step:hover,
.diy-card:hover,
.diy-section:hover,
.highlight-box:hover {
  border-color: rgba(51,161,134,0.55);
  box-shadow: var(--ht-shadow-md);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .principle-card:hover,
  .feat-card:hover,
  .compat-card:hover,
  .guide-card:hover,
  .guide-card:focus-visible,
  .step:hover,
  .diy-card:hover,
  .diy-section:hover,
  .highlight-box:hover { transform: none; }
}

/* ===== MICRO-ANIMATIONS — Logo (rotation douce au survol) ===== */
.logo img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}
.logo:hover img { transform: rotate(-8deg) scale(1.04); }
.logo-text { transition: letter-spacing 0.3s ease !important; }
.logo:hover .logo-text { letter-spacing: -0.3px; }

/* ===== MICRO-ANIMATION — Hero h1 : apparition à l'arrivée ===== */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.hero h1, .page-header h1 {
  animation: hero-fade-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero p, .page-header p {
  animation: hero-fade-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.hero-btns, .hero-badge {
  animation: hero-fade-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
@media (prefers-reduced-motion: reduce) {
  .logo:hover img { transform: none; }
  .hero h1, .page-header h1,
  .hero p, .page-header p,
  .hero-btns, .hero-badge { animation: none; }
}

/* ===== MICRO-ANIMATION — Pastilles de statut (Outils) ===== */
.r-status {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.result-item:hover .r-status { transform: scale(1.08); }

/* ===== MICRO-ANIMATION — Coche pièce (Anatomie) ===== */
.part-check { transition: background 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.22,1,0.36,1) !important; }
.part-item.is-active:hover .part-check { transform: scale(1.08) rotate(-4deg); }

/* ===== COMMERCE — bloc prix + bouton Commander (rendu par site.js) =====
   Réutilisable sur n'importe quelle page via <div data-buy="sku"></div>. */
.price-block {
  background: var(--ht-blue-light); border-radius: 10px; padding: 1.25rem 1.5rem;
  margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
/* Produits a variantes : le couple prix + bouton vit dans cette sous-ligne,
   le bloc parent portant en plus le selecteur de diametre. */
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.price-big { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 2rem; font-weight: 800; color: var(--ht-dark); line-height: 1.1; }
.price-note { font-size: 12px; color: var(--ht-muted); margin-top: 2px; }
/* flex-shrink: 0 -> le bouton d'achat ne se comprime JAMAIS. Sans lui, une note
   de prix un peu longue (« ... · livraison 7,90 € · ... ») ecrase le bouton et
   tronque son libelle : « Commander » devenait « Commande ». C'est au texte de
   ceder, pas au bouton qui declenche le paiement. */
/* Pas de cadenas sur ce bouton : l'icone se lit comme « verrouille / indisponible »
   et decourage le clic, alors qu'elle voulait dire « paiement securise ». La
   reassurance est deja portee par la note sous le prix et le bandeau en dessous. */
.buy-btn { white-space: nowrap; flex: 0 0 auto; }
/* Filet de securite, quelle que soit la largeur d'ecran ou la taille de police
   systeme : si le couple « note de prix + bouton » ne tient pas sur une ligne,
   le bouton passe DESSOUS au lieu de deborder de la carte. Sans ce wrap, le
   debordement elargit la page entiere et decale meme la barre d'achat fixe. */
.price-block, .price-row { flex-wrap: wrap; }
.price-text { flex: 1 1 200px; min-width: 0; }
/* 680px = seuil de passage en une colonne des fiches produit. En dessous de 420
   (ancienne valeur) les telephones larges (430px CSS) restaient en ligne et le
   bouton sortait de l'ecran. .price-row : cas des produits a variantes, ou le
   prix et le bouton vivent dans une sous-ligne et non dans .price-block. */
@media (max-width: 680px) {
  .price-block, .price-row { flex-direction: column; align-items: stretch; text-align: center; }
  /* En colonne, flex-basis se lit en HAUTEUR : les 200px ci-dessus creusaient un
     vide de 200px entre la note de prix et le bouton. Retour a la hauteur reelle. */
  .price-text { flex: 0 1 auto; }
  .buy-btn { width: 100%; }
}

/* ===== PANIER (produits a variantes) — rendu par site.js renderCart() =====
   Un pas-de-quantite par diametre, un recap vivant, et « Commander » qui cree
   la Checkout Session cote serveur puis redirige vers Stripe. */
.price-block.has-cart { display: block; }
.cart-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-line { display: flex; align-items: center; gap: 12px; text-align: left; }
.cart-line-name { font-weight: 700; color: var(--ht-dark); font-size: 15px; }
.cart-line-price { margin-left: auto; font-size: 13.5px; color: var(--ht-muted); white-space: nowrap; }
.cart-line-price s { opacity: 0.5; margin-right: 3px; }
.qty-stepper {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  border: 1px solid var(--ht-border); border-radius: 8px; overflow: hidden; background: var(--ht-bg);
}
.qty-btn {
  width: 36px; height: 36px; border: none; background: transparent;
  color: var(--ht-blue); font-size: 19px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background-color 0.15s;
}
/* Le survol seulement la ou il existe. Au doigt, :hover se colle apres le tap et
   la pastille + ou - restait coloree jusqu'au tap suivant, comme si elle etait
   selectionnee. :active, lui, ne dure que le temps de l'appui : on le garde. */
@media (hover: hover) and (pointer: fine) {
  .qty-btn:hover { background: var(--ht-blue-light); }
}
.qty-btn:active { background: var(--ht-blue-light); }
.qty-val {
  min-width: 34px; text-align: center; font-size: 15px; font-weight: 600;
  color: var(--ht-dark); font-variant-numeric: tabular-nums;
}
/* Le kit accessoires sur la fiche : présenté APRÈS l'argument « on ne vend pas
   de superflu », comme une commodité et jamais comme un passage obligé. */
.tip-kit {
  margin-top: 1.1rem; padding: 1rem 1.15rem;
  background: var(--ht-bg); border: 0.5px solid var(--ht-border); border-radius: 12px;
}
.tip-kit h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px; font-weight: 700; color: var(--ht-dark); margin: 0 0 0.4rem;
}
.tip-kit p { font-size: 14px; line-height: 1.7; color: var(--ht-muted); margin: 0; }
.tip-kit-note { margin-top: 0.6rem !important; font-size: 13px !important; }
/* Deux vignettes : ce qu'on recoit vaut mieux qu'une liste de pieces. Elles
   restent cote a cote meme sur mobile — a cette taille, une pleine largeur
   chacune repousserait la note sous deux ecrans de photos. */
.tip-kit-shots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 0.9rem;
}
.tip-kit-shots figure { margin: 0; }
.tip-kit-shots img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; border: 0.5px solid var(--ht-border);
}
.tip-kit-shots figcaption {
  font-size: 12px; color: var(--ht-muted); line-height: 1.45; margin-top: 5px;
}

/* Intertitre « Accessoires » dans le panier : sépare les kits des diamètres de
   mangeoire, qui n'appartiennent pas au même choix. */
.cart-group {
  list-style: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ht-muted);
  border-top: 0.5px solid var(--ht-border);
  margin-top: 0.5rem; padding-top: 0.85rem;
}
.cart-line.is-accessory .cart-line-name { font-weight: 500; }
/* `hidden` doit gagner sur le display de .tip-kit (bloc pack masqué avant ouverture). */
.tip-kit[hidden] { display: none; }
.tip-pack-shot { margin: 0.9rem auto 0; max-width: 320px; }
.tip-pack-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 0.5px solid var(--ht-border);
}
.tip-pack-shot figcaption {
  font-size: 12px; color: var(--ht-muted); line-height: 1.45; margin-top: 5px; text-align: center;
}

/* Message d'erreur du panier. Sans style, un échec de paiement s'affichait en
   texte nu au milieu du bloc d'achat : la panne passait inaperçue juste au
   moment où le client a le plus besoin d'être guidé. */
.cart-msg, .form-msg {
  font-size: 13px; line-height: 1.55; margin: 0 0 0.75rem;
  padding: 10px 12px; border-radius: 8px;
}
.cart-msg.is-error, .form-msg.is-error {
  color: #9a2b2b; background: #FDECEC; border: 0.5px solid #f3b7b7;
}
/* Secours quand la redirection vers Stripe ne part pas : l'URL de paiement est
   valide, on la rend cliquable plutôt que de laisser le client sur un bouton figé. */
.cart-fallback-link {
  display: inline-block; margin-top: 6px;
  color: #9a2b2b; font-weight: 700; text-decoration: underline;
}

/* Pays de livraison. Stripe Checkout hébergé fige les options d'expédition à la
   création de la session : le pays doit donc être choisi ici, avant le paiement. */
.cart-country {
  display: flex; align-items: center; gap: 10px;
  border-top: 0.5px solid var(--ht-border); padding-top: 0.85rem; margin-bottom: 0.6rem;
}
.cart-country label { font-size: 14px; color: var(--ht-muted); flex-shrink: 0; }
.cart-country-sel {
  flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--ht-dark);
  background: var(--ht-bg); border: 0.5px solid var(--ht-border);
  border-radius: 8px; padding: 7px 10px; cursor: pointer;
}
.cart-country-sel:focus-visible { outline: 2px solid var(--ht-blue); outline-offset: 1px; }

/* Mode de livraison : choisi ICI et non chez Stripe, parce que Stripe Checkout ne
   sait pas afficher de carte de points relais. La session ne reçoit que ce mode. */
.cart-modes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0.6rem; }
.cart-mode {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  border: 0.5px solid var(--ht-border); border-radius: 8px; padding: 9px 11px;
  font-size: 14px; color: var(--ht-dark);
}
.cart-mode:has(input:checked) { border-color: var(--ht-blue); background: var(--ht-blue-light); }
.cart-mode input { accent-color: var(--ht-blue); margin: 0; flex-shrink: 0; }
.cart-mode-lab { flex: 1; min-width: 0; }
.cart-mode-prix { font-weight: 600; white-space: nowrap; }

.cart-relais { margin-bottom: 0.85rem; }
.cart-relais-btn {
  width: 100%; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: var(--ht-bg); color: var(--ht-blue);
  border: 1px solid var(--ht-blue); border-radius: 8px; padding: 9px 12px;
}
.cart-relais-btn:focus-visible { outline: 2px solid var(--ht-blue); outline-offset: 1px; }
.cart-relais-sel {
  font-size: 12.5px; color: var(--ht-muted); line-height: 1.5;
  background: var(--ht-gray); border-radius: 8px; padding: 9px 11px; margin: 6px 0 0;
}
.cart-relais-sel b { color: var(--ht-dark); }

/* La bordure haute est déjà portée par .cart-country quand il est présent. */
.cart-country ~ .cart-summary { border-top: none; padding-top: 0; }

.cart-summary {
  border-top: 0.5px solid var(--ht-border); padding-top: 0.85rem; margin-bottom: 0.85rem;
  display: flex; flex-direction: column; gap: 5px;
}
.cart-srow { display: flex; justify-content: space-between; font-size: 14px; color: var(--ht-muted); }
.cart-total-row {
  margin-top: 3px; font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.05rem; font-weight: 800; color: var(--ht-dark);
}
.cart-nudge {
  font-size: 12.5px; font-weight: 600; color: #27500A; background: #EAF3DE;
  border-radius: 8px; padding: 8px 12px; margin: 0 0 0.85rem; line-height: 1.45; text-align: center;
}
.cart-note { font-size: 12px; color: var(--ht-muted); margin: 0 0 0.85rem; line-height: 1.5; }
.cart-checkout { width: 100%; }
.cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================================================================
   GUIDES & CONSEILS — bloc partagé (accueil + fiches produit)
   Il existait deux versions divergentes du même bloc, chacune en CSS inline :
   « Guides & conseils » sur l'accueil et « À lire aussi » sur la fiche
   MIAM-MIAM. Deux rendus pour la même chose = incohérence visible pour le
   visiteur qui passe de l'un à l'autre. Un seul composant ici, aligné sur la
   convention des autres cartes du site (fond --ht-gray, rayon 16px, survol
   qui décolle).
   ========================================================================= */
.guides { max-width: 1040px; margin: 0 auto; padding: 1rem 2rem 4rem; }
.guides-intro { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.guides-intro h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: var(--ht-dark); letter-spacing: -0.4px; margin-bottom: 0.75rem;
}
.guides-intro p { font-size: 15px; color: var(--ht-muted); line-height: 1.75; }

.guides-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; align-items: stretch;
}
.guide-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  background: var(--ht-gray); border: 0.5px solid var(--ht-border);
  border-radius: 16px; padding: 1.5rem; text-decoration: none;
}
.guide-card .guide-kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ht-blue-mid);
}
.guide-card h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.15rem; font-weight: 800; color: var(--ht-dark);
  letter-spacing: -0.2px; line-height: 1.3; margin: 0;
}
.guide-card p { font-size: 14px; color: var(--ht-muted); line-height: 1.6; margin: 0; }
.guide-card .guide-go {
  font-size: 13.5px; font-weight: 600; color: var(--ht-blue);
  margin-top: auto; padding-top: 0.35rem;
}

/* =========================================================================
   COUCHE MODERNE (v2) — activée par site.js (branche les éléments partagés)
   Barre de progression · Aurora · Grain · Halo curseur · Cartes 3D + spot
   ========================================================================= */

/* ---- Barre de progression de lecture (haut de page) ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: var(--ht-accent-grad);
  box-shadow: 0 0 12px rgba(51,161,134,0.55);
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
}

/* ---- Aurora douce fixée en arrière-plan (derrière le contenu) ---- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 12% 8%,  rgba(51,161,134,0.16), transparent 70%),
    radial-gradient(34vw 34vw at 88% 22%, rgba(125,196,90,0.12), transparent 70%),
    radial-gradient(40vw 40vw at 50% 108%, rgba(22,108,88,0.10), transparent 70%);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-2.5%,0) scale(1.08); }
}

/* ---- Grain fin (texture premium très discrète) ---- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 250; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Cartes en relief 3D + spotlight interne (branché par JS) ---- */
.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s, border-color 0.22s;
}
/* Reflet lumineux suivant le curseur à l'intérieur de la carte */
.tilt-3d::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,0.35), transparent 45%);
  mix-blend-mode: soft-light;
}
.tilt-3d.is-tilting::after { opacity: 1; }

/* ---- Compteurs animés : évite le « saut » de largeur ---- */
[data-count] { font-variant-numeric: tabular-nums; }

/* ---- Apparition douce des sections « au scroll » (générique) ---- */
.fx-rise { opacity: 0; transform: translateY(22px); }
.fx-rise.fx-in { opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .tilt-3d { transition: none; }
  .fx-rise { opacity: 1; transform: none; }
}

/* ---- Bande de KPI animés (réutilisable) ---- */
/* gap 1px + fond couleur bordure = séparateurs fins entre cellules */
.kpi-band {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ht-border);
  border: 0.5px solid var(--ht-border); border-radius: var(--ht-radius);
  overflow: hidden; box-shadow: var(--ht-shadow-sm);
}
.kpi {
  background: var(--ht-bg); padding: 1.5rem 1rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.kpi-num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; line-height: 1;
  background: var(--ht-accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.kpi-label { font-size: 12px; color: var(--ht-muted); line-height: 1.35; max-width: 15ch; }
@media (max-width: 620px) {
  .kpi-band { grid-template-columns: repeat(2, 1fr); }
  .kpi { padding: 1.25rem 0.75rem; }
}

/* ---- Accessibilité : anneau de focus clavier uniquement ---- */
:focus-visible {
  outline: 2px solid var(--ht-blue-mid);
  outline-offset: 2px;
  border-radius: 4px;
}
/* La cible du lien d'évitement reçoit le focus par programme : pas d'anneau.
   scroll-margin dégage la hauteur de la nav collante (64px) au saut d'ancre. */
#contenu:focus { outline: none; }
#contenu { scroll-margin-top: 64px; }

/* ---- Lien d'évitement : hors écran, révélé au focus clavier ---- */
.skip-link {
  /* fixed plutôt qu'absolute : reste atteignable même si la page est défilée */
  position: fixed; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 400; padding: 10px 20px; border-radius: 0 0 10px 10px;
  background: var(--ht-blue); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--ht-shadow-md);
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1) !important;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ---- Fil d'Ariane ----
   C'est un <nav>, donc il hérite du sélecteur de type `nav` (barre collante,
   fond glass, hauteur 64px) : on le remet à plat ici, comme .page-next.
   Doublé d'un BreadcrumbList en JSON-LD sur chaque page concernée — les deux
   doivent décrire le même chemin. */
.breadcrumb {
  position: static; height: auto; display: block; z-index: auto;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: none;
  max-width: 1040px; margin: 0 auto; padding: 1rem 2rem 0;
}
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem;
  font-size: 12.5px; color: var(--ht-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: '›'; color: var(--ht-border); }
.breadcrumb a { color: var(--ht-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ht-blue); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ht-dark); font-weight: 500; }
@media (max-width: 620px) { .breadcrumb { padding: 0.85rem 1.25rem 0; } }

/* ---- Enchaînement bas de page : « page suivante » ----
   C'est un <nav>, donc il hérite du sélecteur de type `nav` (barre collante,
   fond glass, hauteur 64px) : on le remet à plat ici. */
.page-next {
  position: static; height: auto; display: block; z-index: auto;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: none;
  max-width: 720px; margin: 3.5rem auto 0; padding: 0 2rem;
}
.page-next a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: var(--ht-radius);
  border: 0.5px solid var(--ht-border); background: var(--ht-card-bg);
  box-shadow: var(--ht-shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.page-next a:hover {
  border-color: rgba(51,161,134,0.55);
  box-shadow: var(--ht-shadow-md);
  transform: translateY(-3px);
}
.page-next-label { font-size: 12px; color: var(--ht-muted); display: block; margin-bottom: 2px; }
.page-next-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--ht-dark); letter-spacing: -0.2px;
}
.page-next-arrow { color: var(--ht-blue); font-size: 20px; flex-shrink: 0; }
.page-next a:hover .page-next-arrow { transform: translateX(3px); }
.page-next-arrow { transition: transform 0.25s cubic-bezier(0.22,1,0.36,1) !important; }
@media (prefers-reduced-motion: reduce) {
  .page-next a:hover { transform: none; }
  .page-next a:hover .page-next-arrow { transform: none; }
}

/* ---- Bouton « retour en haut » (injecté par site.js) ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 260;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0.5px solid var(--ht-border);
  background: var(--ht-accent-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--ht-shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.22,1,0.36,1), visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { filter: brightness(1.07); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; } }
@media print { .to-top { display: none !important; } }

/* ---- Bento grid (features) ---- */
.features-bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto; gap: 14px;
}

/* Toutes les cartes : icône à gauche, titre à droite sur la même ligne,
   description en dessous sur toute la largeur. Compact. */
.features-bento .feat-card {
  grid-column: span 3;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 0.7rem; row-gap: 0.45rem; align-items: center;
  padding: 1.1rem 1.2rem;
}
.features-bento .feat-card .feat-icon {
  grid-column: 1; grid-row: 1; margin: 0;
  width: 38px; height: 38px; border-radius: 10px;
}
.features-bento .feat-card .feat-icon svg { width: 18px; height: 18px; }
.features-bento .feat-card h3 { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
.features-bento .feat-card p  { grid-column: 1 / -1; grid-row: 2; margin: 0; }

/* Cellule vedette : même disposition, contenu centré, un peu plus d'air + halo */
.features-bento .bento-lg {
  grid-column: span 3; grid-row: span 2;
  align-content: center; column-gap: 0.85rem; row-gap: 0.6rem;
  padding: 1.5rem 1.5rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(51,161,134,0.10), transparent 60%),
    var(--ht-card-bg);
}
.features-bento .bento-lg .feat-icon { width: 46px; height: 46px; border-radius: 13px; }
.features-bento .bento-lg .feat-icon svg { width: 22px; height: 22px; }
.features-bento .bento-lg h3 { font-size: 1.02rem; font-weight: 700; font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.3px; }
.features-bento .bento-lg p  { font-size: 13px; }

@media (max-width: 760px) {
  .features-bento { grid-template-columns: 1fr; }
  .features-bento .feat-card,
  .features-bento .bento-lg { grid-column: auto; grid-row: auto; }
}

/* ===== GUIDES — signature, l'essentiel, sommaire =====
   Communs aux pages /guides/<slug>/. Chaque guide garde ses styles propres
   dans son <style> ; ceux-ci y sont déclarés APRÈS et à la même spécificité
   que « .guide > p » / « .guide li » gagneraient : d'où les sélecteurs
   préfixés par .guide. */

/* Signature et dates : qui écrit, quand. Les dates visibles doivent rester
   celles du JSON-LD (datePublished / dateModified) : marketing/verifier-coherence.py
   le contrôle avant chaque envoi. */
.guide .guide-meta {
  font-size: 13px; color: var(--ht-muted); line-height: 1.6;
  margin: 0 0 1.25rem; padding-bottom: 0.9rem; border-bottom: 0.5px solid var(--ht-border);
}
.guide .guide-meta a { color: var(--ht-dark); font-weight: 600; text-decoration: none; }
.guide .guide-meta a:hover { color: var(--ht-blue); text-decoration: underline; }

/* La réponse courte, avant tout le reste. */
.guide .essentiel {
  background: var(--ht-blue-light); border: 0.5px solid #CBE4D8; border-radius: 14px;
  padding: 1.1rem 1.35rem; margin: 0 0 1.25rem;
}
.guide .essentiel-titre {
  font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ht-blue); margin-bottom: 0.4rem;
}
.guide .essentiel p:not(.essentiel-titre) { font-size: 15px; color: var(--ht-dark); line-height: 1.75; }
.guide .essentiel p + p { margin-top: 0.6rem; }

/* Sommaire. C'est un <nav> : on le remet à plat, comme .breadcrumb. Replié
   par site.js sur petit écran (il pousserait le texte d'un écran entier). */
.sommaire {
  position: static; height: auto; display: block; z-index: auto;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: none; padding: 0;
  margin: 0 0 1.75rem;
}
.sommaire details {
  background: var(--ht-gray); border: 0.5px solid var(--ht-border); border-radius: 14px;
  padding: 0.85rem 1.2rem;
}
.sommaire summary {
  cursor: pointer; font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px; font-weight: 700; color: var(--ht-dark);
}
.sommaire summary:focus-visible { outline: 2px solid var(--ht-blue); outline-offset: 3px; border-radius: 4px; }
.sommaire ol { margin: 0.6rem 0 0.1rem; padding-left: 1.3rem; columns: 2 240px; column-gap: 2rem; }
.guide .sommaire li { font-size: 14px; line-height: 1.55; margin-bottom: 0.35rem; break-inside: avoid; color: var(--ht-muted); }
.sommaire a { color: var(--ht-blue); text-decoration: none; }
.sommaire a:hover { text-decoration: underline; }
/* Listes à puces du texte : les puces dans la colonne, pas dans la marge, et
   un peu d'air avant le paragraphe suivant. */
.guide > ul { padding-left: 1.3rem; margin: 0.4rem 0 1.1rem; }
/* Les titres visés ne passent pas sous la barre de navigation collante. */
.guide h2[id] { scroll-margin-top: 80px; }
/* Photos par deux, sous une seule légende : la plante entière et son détail,
   deux fientes à comparer. Le cadre (.guide-figure) est dans le <style> de
   chaque guide. */
.guide-figure.paire { max-width: 640px; }
.guide-figure .paire-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Une vidéo courte peut tenir la place d'une photo (le chant de ponte). */
.guide-figure video {
  display: block; width: 100%; height: auto; border-radius: 16px;
  border: 0.5px solid var(--ht-border); background: #000;
}

@media print { .sommaire { display: none !important; } }

/* ===== RECHERCHE — loupe de la navigation, fenêtre, champ en ligne =====
   Tout est créé par site.js (« RECHERCHE ») : sans JavaScript, ni loupe ni
   champ ([data-recherche] reste hidden). */
.nav-search {
  order: 3; flex-shrink: 0; margin-left: 1rem;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0.5px solid var(--ht-border); border-radius: 10px;
  color: var(--ht-dark); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-search:hover { color: var(--ht-blue); border-color: var(--ht-blue-mid); background: var(--ht-blue-light); }
.nav-search:focus-visible { outline: 2px solid var(--ht-blue); outline-offset: 2px; }
.nav-search svg, .srch-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
nav.has-search .nav-menu { margin-left: auto; }
@media (max-width: 980px) {
  nav.has-search .nav-search { order: 1; margin-left: auto; margin-right: 0.75rem; }
  nav.has-search .nav-toggle { order: 2; }
}

.srch-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 96px);
  margin: 72px auto auto; padding: 1rem; border: none; border-radius: var(--ht-radius-lg);
  background: var(--ht-bg); color: var(--ht-text); box-shadow: var(--ht-shadow-lg); overflow-y: auto;
}
.srch-dialog::backdrop { background: rgba(20,45,38,0.38); }
@media (max-width: 600px) {
  .srch-dialog { margin-top: 16px; max-height: calc(100vh - 32px); padding: 0.75rem; }
}
.srch-dialog .srch-field { position: sticky; top: 0; z-index: 1; }

.srch-field {
  display: flex; align-items: center; gap: 0.6rem; padding: 0 0.5rem 0 0.9rem;
  background: var(--ht-bg); border: 1px solid var(--ht-border); border-radius: 12px; color: var(--ht-muted);
}
.srch-field:focus-within { border-color: var(--ht-blue); box-shadow: 0 0 0 3px var(--ht-blue-light); }
.srch-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 16px; color: var(--ht-text); padding: 0.8rem 0;
}
/* La croix native du champ « search » ferait doublon avec Échap et la croix de la fenêtre. */
.srch-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.srch-close {
  flex-shrink: 0; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 8px; color: var(--ht-muted); cursor: pointer;
}
.srch-close:hover { background: var(--ht-gray); color: var(--ht-dark); }
.srch-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.srch .srch-status { font-size: 13px; color: var(--ht-muted); margin: 0.6rem 0.2rem 0; line-height: 1.5; max-width: none; text-align: left; }
.srch-status:empty { display: none; }
.srch-status a { color: var(--ht-blue); text-decoration: underline; }
.srch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.7rem 0.1rem 0.2rem; }
.srch-chips[hidden] { display: none; }
.srch-chips-label { font-size: 13px; color: var(--ht-muted); margin-right: 0.2rem; }
.srch-chips button {
  font: inherit; font-size: 13px; color: var(--ht-dark); cursor: pointer;
  background: var(--ht-gray); border: 0.5px solid var(--ht-border); border-radius: 999px; padding: 5px 12px;
}
.srch-chips button:hover { border-color: var(--ht-blue-mid); color: var(--ht-blue); }

.srch-results { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.srch-results li { margin: 0; padding: 0; }
.srch-results a { display: block; padding: 0.7rem 0.8rem; border-radius: 12px; color: inherit; text-decoration: none; }
.srch-results a:hover, .srch-results a:focus-visible { background: var(--ht-blue-light); outline: none; }
.srch-results a:focus-visible { box-shadow: inset 0 0 0 2px var(--ht-blue); }
.srch-kicker {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ht-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.srch-title {
  display: block; margin-top: 2px; font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15.5px; font-weight: 700; color: var(--ht-dark); line-height: 1.35;
}
.srch-snippet { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ht-muted); line-height: 1.55; }
.srch mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Champ en ligne : hub des guides, page 404. */
.srch-inline { max-width: 680px; margin: 0 auto 2.5rem; text-align: left; }
.srch-inline .srch-field { box-shadow: var(--ht-shadow-sm); }
.srch-inline .srch-results:not(:empty) {
  margin-top: 0.6rem; padding: 0.3rem; background: var(--ht-bg);
  border: 0.5px solid var(--ht-border); border-radius: 14px; box-shadow: var(--ht-shadow-sm);
}
.err-inner .srch-inline { margin: 2rem auto 0; }
@media print { .nav-search, .srch-inline, .srch-dialog { display: none !important; } }

/* ===== ALERTE DE SAISON — bandeau sous la navigation (accueil, hub des guides) =====
   Un seul bandeau à la fois, daté par data-jusqu-au (site.js le masque le
   lendemain de la date). Couleurs = niveau « élevé » du guide grippe aviaire. */
.alerte-saison {
  display: block; background: #FBE9E7; color: #7d2416;
  border-bottom: 0.5px solid #F2C9C2;
  padding: 0.7rem 1.25rem; text-align: center; font-size: 14px; line-height: 1.55;
}
.alerte-saison[hidden] { display: none; }
.alerte-saison p { margin: 0 auto; max-width: 900px; }
.alerte-saison strong { color: #7d2416; }
.alerte-saison a { color: #7d2416; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.alerte-saison a:hover { color: #5a170c; }
@media print { .alerte-saison { display: none; } }

/* ===== JEU — « Rentre avant la nuit ! » (jeu/, 404 et doodle de l'accueil ; jeu-poule.js chargé au clic) ===== */
.jeu-zone { max-width: 860px; margin: 0 auto; padding: 0 1rem 4rem; }
.jeu-intro { text-align: center; max-width: 620px; margin: 0 auto 1.25rem; }
.jeu-intro h2 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; color: var(--ht-dark); letter-spacing: -0.4px; margin-bottom: 0.5rem; }
.jeu-intro p { font-size: 14.5px; color: var(--ht-muted); line-height: 1.7; }
.jeu-intro kbd, .jeu-regles kbd { font: 600 12px 'DM Sans', system-ui, sans-serif; background: var(--ht-gray); border: 0.5px solid var(--ht-border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--ht-dark); }
.jeu-cadre { position: relative; border-radius: 18px; overflow: hidden; border: 0.5px solid var(--ht-border); box-shadow: var(--ht-shadow-sm); background: linear-gradient(#8fd0ee, #dff2fb 70%, #6aa84f 70%, #6aa84f 74%, #8a6a43 74%); aspect-ratio: 16 / 9; }
.jeu-cadre canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.jeu-cadre canvas:focus-visible { outline: 3px solid var(--ht-blue); outline-offset: -3px; }
.jeu-ecran { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.8rem 1.25rem; text-align: center; background: rgba(255,255,255,0.8); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); overflow-y: auto; }
.jeu-ecran[hidden] { display: none; }
.jeu-ecran h3 { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: clamp(1.1rem, 4vw, 1.9rem); font-weight: 800; color: var(--ht-dark); letter-spacing: -0.5px; }
.jeu-ecran p { font-size: clamp(12px, 2.3vw, 15px); color: var(--ht-dark); line-height: 1.5; max-width: 480px; margin: 0; }
.jeu-boutons { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 0.2rem; }
.jeu-boutons [hidden] { display: none; }
@media (max-width: 560px) { .jeu-boutons .btn-primary, .jeu-boutons .btn-secondary { padding: 0.5rem 0.9rem; font-size: 13px; } }
.jeu-lien { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ht-blue); background: none; border: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.4rem; }
.jeu-astuce { font-size: clamp(11.5px, 2.1vw, 13.5px) !important; color: var(--ht-muted) !important; }
.jeu-astuce[hidden] { display: none; }
.jeu-astuce a { color: var(--ht-blue); font-weight: 600; white-space: nowrap; }
.jeu-son { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0.5px solid var(--ht-border); background: rgba(255,255,255,0.85); font-size: 17px; cursor: pointer; }
.jeu-son:focus-visible { outline: 3px solid var(--ht-blue); outline-offset: 2px; }
.jeu-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 0.5rem; margin-top: 0.75rem; font-size: 13px; color: var(--ht-muted); }
.jeu-options small { font-size: 12px; }
.jeu-poule { display: inline-flex; align-items: center; gap: 0.4rem; font: inherit; font-size: 13px; font-weight: 600; color: var(--ht-dark); background: var(--ht-bg); border: 0.5px solid var(--ht-border); border-radius: 999px; padding: 0.3rem 0.75rem 0.3rem 0.4rem; cursor: pointer; }
.jeu-poule i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid; display: inline-block; }
.jeu-poule.choisie { border-color: var(--ht-blue); box-shadow: 0 0 0 1px var(--ht-blue) inset; }
.jeu-touches { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 0.75rem; user-select: none; -webkit-user-select: none; }
.jeu-touches[hidden] { display: none; }
.jeu-touches div { display: flex; gap: 0.6rem; align-items: center; }
.jeu-touches button { width: 64px; height: 64px; border-radius: 50%; border: 0.5px solid var(--ht-border); background: var(--ht-gray); font-size: 24px; color: var(--ht-dark); touch-action: none; -webkit-tap-highlight-color: transparent; }
.jeu-touches button.appui { background: var(--ht-blue-light); border-color: var(--ht-blue); }
.jeu-touches .oeuf { width: 52px; height: 52px; font-size: 20px; }
.jeu-touches .saut { width: 80px; height: 80px; background: #166C58; color: #fff; border: none; }
.jeu-touches .saut.appui { background: #0F5648; }
.jeu-note { font-size: 12px; color: var(--ht-muted); text-align: center; margin-top: 0.8rem; }
.jeu-pause { text-align: center; font-size: 14.5px; color: var(--ht-muted); margin: 0 auto 2.5rem; padding: 0 1rem; }
.jeu-pause a { color: var(--ht-blue); font-weight: 600; }
