/* Bianco's Bubbles : base reprise de bianco-labs.ch, couleurs tirées du logo
   (bleu canard du texte, or du médaillon, violet de la robe d'Eli). */

/* Polices hébergées sur le site (fichiers variables de Google Fonts, sous-ensembles latin
   et latin étendu) : aucun appel à Google depuis le navigateur des visiteurs. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/fraunces-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;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/fraunces-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/inter-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;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbf8f1;
  --bg-alt: #f1ece0;
  --ink: #17262a;
  --muted: #586569;
  --line: rgba(23, 38, 42, 0.12);
  --card: #ffffff;
  --accent: #0f6f73;
  --accent-ink: #ffffff;
  --glow: rgba(15, 111, 115, .5);
  --gold: #d9a52b;
  --violet: #7b4fc2;
  --iris: linear-gradient(100deg, #3aa8e0, #8c6ff0 30%, #e46bb0 55%, #f0b04c 80%, #4cbf7a);
  --radius: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Thème sombre : suit le système, sauf si le bouton du haut a forcé un thème
   (data-theme sur <html>, posé avant l'affichage par le script du <head>).
   Accent rose (la robe d'Eli) au lieu du bleu canard, fonds légèrement prune. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151216;
    --bg-alt: #1d181f;
    --ink: #f3eef2;
    --muted: #b3a8b1;
    --line: rgba(243, 238, 242, 0.14);
    --card: #241d26;
    --accent: #f39ac4;
    --accent-ink: #2a0f1e;
    --glow: rgba(243, 154, 196, .35);
    --gold: #f0c35a;
    --violet: #c8a2f2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151216;
  --bg-alt: #1d181f;
  --ink: #f3eef2;
  --muted: #b3a8b1;
  --line: rgba(243, 238, 242, 0.14);
  --card: #241d26;
  --accent: #f39ac4;
  --accent-ink: #2a0f1e;
  --glow: rgba(243, 154, 196, .35);
  --gold: #f0c35a;
  --violet: #c8a2f2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.small { font-size: .85rem; color: var(--muted); }
.center { text-align: center; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Bulles (canvas repris de bianco-labs.ch) ---------- */
/* Fixées à l'écran, derrière le contenu : la page défile par-dessus. */
#bulles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, (100% - 1120px) / 2);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  text-decoration: none; font: 700 1.1rem var(--serif);
}
/* Le logo ne rétrécit jamais (sinon max-width: 100% l'écrase en largeur sur petit écran). */
.brand picture { flex: none; }
.brand img { width: 44px; height: 44px; max-width: none; }

.menu summary { display: none; list-style: none; cursor: pointer; padding: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline 2px var(--gold); text-underline-offset: 6px; }
/* Sous-menus Boutique et Guides : au survol / au clavier sur grand écran, bouton ▾ partout. */
.nav-groupe { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-deplier {
  display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer;
}
.nav-deplier:hover { background: var(--bg-alt); color: var(--ink); }
.nav-deplier svg { transition: transform .2s; }
.nav-groupe.ouvert .nav-deplier svg { transform: rotate(180deg); }
.nav-sous {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60;
  display: none; min-width: 250px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35); transform: translateX(-50%);
}
/* Pont invisible : la souris peut descendre du lien au panneau sans le refermer. */
.nav-sous::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-sous--large { width: min(760px, 94vw); grid-template-columns: repeat(3, 1fr); gap: 0 8px; }
.nav-groupe.ouvert .nav-sous { display: grid; }
@media (hover: hover) and (min-width: 861px) {
  .nav-groupe:not(.replie):hover .nav-sous, .nav-groupe:not(.replie):focus-within .nav-sous { display: grid; }
}
.nav .nav-sous a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px;
  font-size: .9rem; color: var(--ink); text-decoration: none; line-height: 1.3;
}
.nav .nav-sous a:hover, .nav .nav-sous a[aria-current="page"] { background: var(--bg-alt); }
.nav .nav-sous a[aria-current="page"] { color: var(--accent); }
.nav-sous .icone { flex: 0 0 auto; width: 24px; height: 24px; color: var(--accent); }
.nav-sous-titre { margin: 6px 10px 4px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav .nav-sous .nav-tout { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--accent); font-weight: 600; }
.langues { display: flex; gap: 2px; padding-left: 8px; border-left: 1px solid var(--line); }
.langues a { padding: 2px 6px; border-radius: 6px; font-size: .8rem !important; font-weight: 600; }
.langues a[aria-current="true"] { background: var(--ink); color: var(--bg) !important; text-decoration: none !important; }

.burger, .burger::before, .burger::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }

/* Bouton clair / sombre : on montre la lune en clair, le soleil en sombre. */
.theme-bouton {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
}
.theme-bouton:hover { background: var(--bg-alt); }
.theme-bouton .soleil { display: none; }
:root[data-theme="dark"] .theme-bouton .soleil { display: block; }
:root[data-theme="dark"] .theme-bouton .lune { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-bouton .soleil { display: block; }
  :root:not([data-theme="light"]) .theme-bouton .lune { display: none; }
}

.panier-lien { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
.panier-lien:hover { background: var(--bg-alt); }
.panier-compte {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--violet); color: #fff; font: 600 .72rem/20px var(--sans); text-align: center;
}

@media (max-width: 860px) {
  .menu summary { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
  }
  .nav { max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav > a, .nav-groupe > a { padding: 12px 4px; font-size: 1.05rem; }
  .nav > a, .nav-groupe { border-bottom: 1px solid var(--line); }
  .nav-groupe { flex-wrap: wrap; gap: 0; }
  .nav-groupe > a { flex: 1; }
  .nav-deplier { width: 44px; height: 44px; }
  .nav-sous, .nav-sous--large {
    position: static; width: auto; min-width: 0; flex-basis: 100%; transform: none;
    padding: 4px 0 8px 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none;
  }
  .nav-sous--large { grid-template-columns: 1fr; }
  .nav-sous::before { display: none; }
  .langues { border: 0; padding: 12px 0 0; gap: 8px; }
  .topbar:not(:has(.menu[open])) .nav { display: none; }
}

/* ---------- Titres, textes, boutons ---------- */
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.015em; }
h1 { margin: 0; font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); max-width: 18ch; }
h2 { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2em 0 .5em; }
h3 { font-weight: 600; font-size: 1.2rem; margin: 1.6em 0 .4em; }
.kicker {
  margin: 0 0 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: .8rem; color: var(--accent);
}
.iris {
  background: var(--iris); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: iris 8s ease-in-out infinite alternate;
}
@keyframes iris { to { background-position: 100% 0; } }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; margin: 20px 0 28px; }

.bouton, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 600 1rem var(--sans); text-align: center;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.bouton:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(123, 79, 194, .6); }
.bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* ---------- Fil d'Ariane et en-têtes de page ---------- */
.fil { padding-top: 18px; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.fil a { color: var(--muted); }
.page-tete { padding: 28px 0 8px; position: relative; z-index: 0; }
.signature { font-size: .9rem; color: var(--muted); margin: -12px 0 20px; }
.signature a { color: inherit; }

/* ---------- Texte long ---------- */
.prose { max-width: 70ch; padding-bottom: 48px; }
.prose-large { max-width: none; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose img, .prose picture img { border-radius: 16px; margin: 1.5em 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: -.8em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); }
.verdict { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; margin-right: .35em; }
.verdict--oui { color: #2f9a5b; }
.verdict--bof { color: #e3901f; }
.verdict--non { color: #d8463b; }
.prose .video-large { margin: 1.5em 0; }
.prose blockquote, .astuce {
  margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--gold);
  background: var(--bg-alt); border-radius: 0 14px 14px 0;
}
.prose blockquote p { margin: .3em 0; }
.prose details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.prose summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.prose .bouton { color: var(--accent-ink); text-decoration: none; }

/* ---------- Accueil ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 56px; }
.hero-grille { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 13ch; }
/* Deux boutons de même largeur (celle du plus long) ; empilés sur mobile. */
.hero-actions { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }
@media (max-width: 560px) { .hero-actions { display: grid; grid-auto-flow: row; } }
.hero-video {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 16;
  border-radius: 32px; overflow: hidden; background: #ccc;
  box-shadow: 0 30px 60px -24px var(--glow); border: 6px solid var(--card);
  rotate: 2deg;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 40px 0 0; list-style: none; }
.atouts li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: .92rem; color: var(--muted); }
.atouts strong { display: block; color: var(--ink); font-size: 1rem; }
.atouts svg { display: block; width: 32px; height: 32px; margin-bottom: 10px; color: var(--accent); }
.section { padding: 56px 0; }
.section-alt { background: color-mix(in srgb, var(--bg-alt) 88%, transparent); }
.section h2 { margin-top: 0; }
.section-tete { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-tete h2 { margin: 0; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.deux-col img { border-radius: var(--radius); }
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.galerie a, .galerie picture { display: block; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.03); }
.galerie video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--line); }
.video-large { margin-bottom: 12px; }
.video-large video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.logo-medaillon { width: min(260px, 70%); margin-inline: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .2)); }

/* ---------- Cartes produits ---------- */
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
/* Sur l'accueil, chaque carte est dans un .reveal : on l'étire pour que toutes aient la même hauteur. */
.grille-produits > .reveal { display: flex; }
.grille-produits > .reveal > .carte-produit { flex: 1; }
.carte-produit {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.carte-produit:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px var(--glow); }
.carte-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose .carte-produit { color: inherit; text-decoration: none; }
/* Dans la boutique (.prose), la photo reste pleine largeur comme sur l'accueil. */
.prose .carte-image img { margin: 0; border-radius: 0; }
.carte-texte { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.carte-texte h3 { margin: 0 0 6px; }
.carte-texte p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; }
.prix { font-weight: 700; color: var(--accent); margin-top: auto !important; }
.categorie-titre { scroll-margin-top: 90px; }

.cartes-liens { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.cartes-liens a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, transform .2s;
}
.cartes-liens a:hover { border-color: var(--accent); transform: translateY(-2px); }
.cartes-liens strong { font-family: var(--serif); font-size: 1.1rem; }
.cartes-liens span { color: var(--muted); font-size: .92rem; }
/* Icône au trait à gauche du titre et du résumé. */
.cartes-liens a:has(.icone) { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto 1fr; gap: 4px 14px; align-content: start; }
.cartes-liens .icone { grid-row: span 2; width: 40px; height: 40px; color: var(--accent); transition: transform .3s; }
.cartes-liens a:hover .icone { transform: rotate(-6deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .cartes-liens a:hover .icone { transform: none; } }

/* ---------- Page produit ---------- */
.produit { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 56px); padding: 24px 0 48px; align-items: start; }
.produit-galerie { position: sticky; top: 84px; }
.produit-principale img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.produit-vignettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.produit-vignettes img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.produit-info h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.produit-prix { font: 700 1.6rem var(--serif); color: var(--accent); margin: 12px 0 0; }
.prix-barre { font: 400 .95rem var(--sans); color: var(--muted); margin-left: .4em; }
.prose .packs td:last-child { white-space: nowrap; }
.produit-info .lead { margin: 12px 0 20px; }
.ajout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.variantes { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.variantes legend { font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.variante { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; }
.variante input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variante:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.variante:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.pastille { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .2); }
.ajout-ligne { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.quantite { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.quantite input, .champ input, .champ textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.quantite input { width: 84px; }
.champ-texte { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.champ-texte .small { font-weight: 400; color: var(--muted); }

/* Formulaire Infomaniak Newsletter : ses couleurs fixes (gris clair) remplacées par celles du site,
   y compris en thème sombre. Sa classe principale se termine par un identifiant variable. */
.newsletter-form [class^="inf-main"] { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; margin: 1.5em 0; }
.newsletter-form [class^="inf-main"] h4 { font: 600 1.35rem var(--serif); color: var(--ink); margin: 0 0 8px; }
.newsletter-form [class^="inf-main"] span, .newsletter-form [class^="inf-main"] label { color: var(--muted); font-size: .95rem; }
.newsletter-form [class^="inf-main"] .inf-content { margin-top: 18px; }
.newsletter-form [class^="inf-main"] input { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; height: auto; padding: 10px 12px; }
.newsletter-form [class^="inf-main"] .inf-rgpd { margin: 16px 0 0; color: var(--muted); font-size: .85rem; }
.newsletter-form [class^="inf-main"] .inf-submit input {
  padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--sans);
}
.ajout .bouton { flex: 1; min-width: 200px; }
.ajout-retour { margin: 12px 0 0; font-weight: 600; color: var(--accent); }
.stock { margin: 14px 0 0; font-size: .92rem; color: var(--accent); }
.stock::before { content: "●"; margin-right: 6px; }
.stock.epuise { color: #b4471f; }
.produit-guides ul { padding-left: 1.1em; }
.tag-langue { font-size: .7rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--bg-alt); color: var(--muted); }
.aussi { padding-bottom: 64px; }

/* ---------- Guides ---------- */
.guide-grille { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.encart-produits { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 24px; }
.encart-produits h2 { font-size: 1.1rem; margin: 0 0 12px; }
.mini-produit { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); }
.mini-produit img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.mini-produit span { display: flex; flex-direction: column; font-size: .9rem; }
.mini-produit .prix { margin: 0 !important; }
.autres { padding: 24px 0 72px; }
.autres .kicker { margin-bottom: 4px; }
/* Cartes en défilement horizontal (bas des guides) : une rangée, glissée au doigt ou à la molette. */
.cartes-liens.defile {
  grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(min(280px, 82%), 1fr);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.cartes-liens.defile > li { scroll-snap-align: start; }

/* Accueil : les guides en trois rubriques. */
.rubriques { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rubriques > li {
  display: flex; flex-direction: column; padding: 20px 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px;
}
.rubrique-tete { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.rubrique-tete .icone { width: 40px; height: 40px; color: var(--accent); flex: 0 0 auto; }
.rubrique-tete strong { font: 700 1.3rem var(--serif); }
.rubriques p { color: var(--muted); font-size: .93rem; margin: 10px 0 8px; }
.rubriques ul { padding-left: 1.1em; margin: 0 0 14px; }
.rubriques li li { margin: 4px 0; }
.rubriques li li a { color: var(--ink); text-underline-offset: 3px; }
.rubrique-tout { margin-top: auto; font-weight: 600; color: var(--accent); text-decoration: none; }
@media (max-width: 860px) { .rubriques { grid-template-columns: minmax(0, 1fr); } }

/* Composition et pictogramme de danger (mix concentré). */
.composition {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.composition .ghs { width: 72px; height: 72px; }
.composition p, .composition ul { margin: 0 0 8px; }
.composition ul { padding-left: 1.1em; }
.composition .small { margin: 0; }
.composition-mention { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.composition-code { font-size: .8em; font-weight: 700; color: var(--muted); }

/* Crédit photo sous une image de la galerie. */
.galerie figure { margin: 0; }
.galerie figcaption { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.galerie figcaption a { display: inline; color: inherit; }
.etapes { counter-reset: etape; list-style: none; padding: 0; }
.etapes > li { counter-increment: etape; position: relative; padding-left: 52px; margin: 0 0 18px; }
.etapes > li::before {
  content: counter(etape); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 1rem var(--serif);
}

/* ---------- Animations interactives (physique, mode d'emploi) ---------- */
.bp, .anim {
  margin: 1.8em 0; scroll-margin-top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.bp-onglets, .anim-onglets { display: flex; gap: 6px; padding: 14px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.bp-onglets::-webkit-scrollbar, .anim-onglets::-webkit-scrollbar { display: none; }
.bp-onglets button, .anim-onglets button {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font: 500 .88rem var(--sans); cursor: pointer;
}
.bp-onglets button[aria-selected="true"], .anim-onglets button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bp-scene { line-height: 0; background: #110d16; }
.bp-scene canvas, .anim canvas { display: block; width: 100%; touch-action: pan-y; }
.prose .bp-scene canvas, .prose .anim canvas { margin: 0; border-radius: 0; }
.bp-controles, .anim-controles {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid var(--line); min-height: 58px;
}
.bp-ctl { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; font-size: .9rem; color: var(--muted); }
.bp-ctl input { flex: 1; min-width: 100px; accent-color: var(--accent); height: 28px; }
.bp-ctl-v { min-width: 66px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.bp-btn {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px;
  padding: 8px 14px; font: 500 .9rem var(--sans); cursor: pointer;
}
.bp-btn:hover:not(:disabled) { background: var(--bg-alt); }
.bp-btn:disabled { opacity: .4; cursor: default; }
.bp-readout, .anim-legende { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.anim-scene { line-height: 0; padding: 8px 12px 0; }
.anim-barre { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.anim-barre span { display: block; height: 100%; width: 0; background: var(--accent); }
.prose .anim-legende, .anim-legende { margin: 0; padding: 14px 20px 18px; font-size: .98rem; color: var(--ink); }
.anim-legende strong { color: var(--accent); }
.bp-texte { padding: 6px 20px 4px; }
.bp-texte h3 { margin: 12px 0 8px; }
.bp-texte p { margin: 0 0 10px; }
.bp-fait {
  background: var(--bg-alt); border-left: 3px solid var(--accent); padding: 10px 12px;
  border-radius: 8px; font-size: .93rem;
}
.bp-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px 18px; }
.bp-compte { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) {
  .bp-controles, .bp-texte, .bp-pager, .anim-controles { padding-left: 14px; padding-right: 14px; }
}
.science { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0 0 24px; }
.science a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, transform .2s;
}
.science a:hover { border-color: var(--accent); transform: translateY(-2px); }
.science svg { width: 40px; height: 40px; color: var(--accent); }
.science strong { font-family: var(--serif); font-size: 1.1rem; }
.science span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .science { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Panier ---------- */
.panier { max-width: 820px; padding-bottom: 72px; }
.prose .panier-table { display: table; width: 100%; border-collapse: collapse; margin: 16px 0; }
.panier-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.panier-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.panier-table .num { text-align: right; white-space: nowrap; }
.panier-table input { width: 64px; font: inherit; padding: 6px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.retirer { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; font-size: .85rem; }
.panier-total { display: flex; justify-content: space-between; font: 700 1.3rem var(--serif); margin: 16px 0 4px; }
.panier-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.erreur { color: #b4471f; font-weight: 600; }
@media (max-width: 600px) {
  .panier-table thead { display: none; }
  .panier-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .panier-table td { border: 0; padding: 2px 0; }
  .panier-table td:first-child { grid-column: 1 / -1; }
}

/* ---------- Formulaire de contact ---------- */
.formulaire { display: grid; gap: 16px; max-width: 560px; }
.champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.champ textarea { min-height: 160px; resize: vertical; }
.pot { position: absolute; left: -9999px; }
/* Widget anti-robot ALTCHA aux couleurs du site, clair et sombre. */
altcha-widget {
  --altcha-color-base: var(--card); --altcha-color-base-content: var(--ink);
  --altcha-color-neutral: var(--line); --altcha-color-neutral-content: var(--muted);
  --altcha-color-primary: var(--accent); --altcha-color-primary-content: var(--accent-ink);
  --altcha-border-radius: 12px; --altcha-shadow: none; --altcha-max-width: 320px;
}

/* ---------- Pied de page ---------- */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-titre { font: 800 clamp(1.4rem, 3vw, 1.9rem) var(--serif); margin: 0 0 8px; }
.footer p { color: var(--muted); }
.footer a { color: var(--ink); }
.footer-liens { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; align-content: start; }
.footer .small { margin-top: 32px; }

/* ---------- Apparition au défilement ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Visionneuse ---------- */
.visionneuse { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse::backdrop { background: rgba(8, 14, 16, .92); }
.visionneuse img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.visionneuse button {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font: 400 2rem/1 var(--sans); cursor: pointer;
}
.visionneuse button:hover { background: rgba(255, 255, 255, .25); }
.visionneuse-fermer { top: 16px; right: 16px; }
.visionneuse-prec { left: 16px; top: calc(50% - 24px); }
.visionneuse-suiv { right: 16px; top: calc(50% - 24px); }

/* ---------- 404 ---------- */
.page-404 { min-height: 60svh; display: grid; place-content: center; text-align: center; padding: 64px 16px; }
.page-404 h1 { max-width: none; }

/* ---------- Petits écrans ---------- */
@media (max-width: 860px) {
  .hero-grille, .deux-col, .produit, .guide-grille { grid-template-columns: minmax(0, 1fr); }
  .hero-video { width: min(260px, 80%); }
  .atouts { grid-template-columns: repeat(2, 1fr); }
  .produit-galerie, .encart-produits { position: static; }
  .footer-grille { grid-template-columns: 1fr 1fr; }
  .footer-grille > :first-child { grid-column: 1 / -1; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
