/* ==========================================================================
   SOUND 2000 — nouvotech.com
   Design system & components
   --------------------------------------------------------------------------
   1. Fonts         5. Layout          9. Product card     13. Checkout
   2. Tokens        6. Header / nav   10. Product page     14. Legal / prose
   3. Base          7. Buttons        11. Catalogue        15. Footer
   4. Typography    8. Forms          12. Cart             16. Utilities
   ========================================================================== */

/* 1. Fonts — fichiers locaux (OFL), repli système si indisponibles -------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* Palette validée */
  --basil: #5C9E6B;       /* principal — décor, grands éléments */
  --coral: #E8907A;       /* accent — toujours avec texte foncé */
  --cream: #F5F1E8;       /* fond */
  --mint: #D9E9DC;        /* fond de section */
  --graphite: #2E332C;    /* texte */
  --beige: #D9C9B0;       /* secondaire */
  --pine: #2F5A3D;        /* profond — boutons principaux */

  /* Nuances dérivées (contraste vérifié) */
  --pine-strong: #234631;   /* survol bouton principal */
  --basil-soft: #C5DDCA;
  --coral-soft: #F6D3C8;
  --coral-ink: #8E3B27;     /* texte d'erreur / lien d'alerte (≥ 6:1 sur crème) */
  --beige-soft: #EBE2D3;
  --ink-2: #4E544B;         /* texte secondaire (≥ 7:1 sur crème) */
  --ink-3: #636A60;         /* texte tertiaire (≥ 5:1 sur crème) */
  --line: #D6CDBD;          /* bordures fines */
  --line-strong: #A89C86;   /* bordures de champ (≥ 3:1) */
  --paper: #FCFAF5;         /* surfaces claires (cartes, champs) */
  --white: #FFFFFF;

  /* Typographie */
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-md: 1rem;        /* 16 */
  --fs-lg: 1.125rem;    /* 18 */
  --fs-xl: 1.25rem;     /* 20 */
  --fs-2xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);   /* 22–26 */
  --fs-3xl: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);    /* 26–36 */
  --fs-4xl: clamp(2rem, 1.5rem + 2.4vw, 3rem);           /* 32–48 */
  --fs-5xl: clamp(2.375rem, 1.6rem + 3.6vw, 4rem);       /* 38–64 */
  --lh-tight: 1.1;
  --lh-head: 1.2;
  --lh-body: 1.6;

  /* Espacements — base 8 px */
  --s-1: 0.25rem;  /* 4 */
  --s-2: 0.5rem;   /* 8 */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-5: 1.5rem;   /* 24 */
  --s-6: 2rem;     /* 32 */
  --s-7: 2.5rem;   /* 40 */
  --s-8: 3rem;     /* 48 */
  --s-9: 4rem;     /* 64 */
  --s-10: 5rem;    /* 80 */
  --s-11: 6rem;    /* 96 */
  --section: clamp(3rem, 2rem + 4vw, 6rem);

  /* Conteneurs */
  --w-max: 1240px;
  --w-text: 46rem;
  --w-checkout: 1080px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);

  /* Rayons */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Ombres (chaudes, discrètes) */
  --sh-sm: 0 1px 2px rgba(46, 51, 44, 0.06), 0 1px 1px rgba(46, 51, 44, 0.04);
  --sh-md: 0 6px 18px -6px rgba(46, 51, 44, 0.16), 0 2px 6px rgba(46, 51, 44, 0.06);
  --sh-lg: 0 18px 40px -16px rgba(46, 51, 44, 0.28);

  --focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--pine);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 140ms;
  --t-med: 220ms;
  --header-h: 72px;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--graphite);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--pine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-strong); text-decoration-thickness: 2px; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--coral-soft); color: var(--graphite); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
button { font: inherit; color: inherit; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1em; height: 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--pine); color: var(--cream); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-weight: 600; }
.skip-link:focus { top: var(--s-4); color: var(--cream); }
[hidden] { display: none !important; }

/* 4. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: var(--lh-head); margin: 0 0 var(--s-4); letter-spacing: -0.015em; color: var(--graphite); }
h1 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.03em; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0 0 var(--s-4); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 40rem; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine); margin: 0 0 var(--s-3); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--coral); border-radius: 2px; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.display { font-size: var(--fs-5xl); line-height: 1.02; letter-spacing: -0.035em; }
.hl { background: linear-gradient(transparent 62%, var(--coral-soft) 62%, var(--coral-soft) 92%, transparent 92%); padding: 0 0.05em; }

/* 5. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--w-max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-text { max-width: calc(var(--w-text) + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section-sm { padding-block: calc(var(--section) * 0.6); }
.bg-mint { background: var(--mint); }
.bg-beige { background: var(--beige-soft); }
.bg-paper { background: var(--paper); }
.bg-pine { background: var(--pine); color: var(--cream); }
.bg-pine h2, .bg-pine h3, .bg-pine p { color: var(--cream); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-7); }
.section-head > div { max-width: 44rem; }
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { margin: 0; color: var(--ink-2); }
.stack > * + * { margin-top: var(--s-4); }
.grid-2 { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; } }

/* Grille produits : 1 / 2 / 3 colonnes (jamais 4) */
.product-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); } }

/* 6. Header / navigation --------------------------------------------------- */
.infobar { background: var(--pine); color: var(--cream); font-size: var(--fs-sm); }
.infobar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-1) var(--s-5); min-height: 40px; padding-block: var(--s-2); text-align: center; }
.infobar a { color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s-2); }
.infobar a:hover { text-decoration: underline; color: var(--white); }
.infobar .sep { opacity: .5; }
@media (max-width: 900px) { .infobar .hide-sm, .infobar .sep { display: none; } .infobar .container { gap: var(--s-1) var(--s-4); font-size: 13px; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 232, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(245, 241, 232, 0.86); backdrop-filter: saturate(1.2) blur(10px); } }
.header-row { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--graphite); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; padding: var(--s-1) 0; }
.logo:hover { color: var(--graphite); }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pine); color: var(--cream); }
.logo-mark .icon { width: 20px; height: 20px; stroke-width: 2.25; }
.logo-text b { color: var(--pine); font-weight: 800; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: var(--s-1); margin: 0; padding: 0; }
.main-nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-pill); text-decoration: none; color: var(--graphite); font-weight: 500; font-size: var(--fs-sm); }
.main-nav a:hover { background: var(--mint); color: var(--graphite); }
.main-nav a[aria-current="page"] { background: var(--graphite); color: var(--cream); }

.header-search { display: none; position: relative; flex: 1 1 220px; max-width: 300px; margin-left: auto; }
.header-search input { width: 100%; height: 44px; padding: 0 var(--s-4) 0 2.6rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); font: inherit; font-size: var(--fs-sm); color: var(--graphite); }
.header-search input::placeholder { color: var(--ink-3); }
.header-search input:focus-visible { box-shadow: var(--focus); border-color: var(--pine); }
.header-search .icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid transparent; background: transparent; color: var(--graphite); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--mint); color: var(--graphite); }
.icon-btn .icon { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); background: var(--coral); color: var(--graphite); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; border: 2px solid var(--cream); }
.cart-count[data-count="0"] { display: none; }
.header-actions .header-contact { display: none; }

@media (min-width: 1200px) {
  .main-nav { display: block; }
  .menu-toggle, .search-link { display: none; }
  .header-search { display: block; margin-left: auto; max-width: 200px; }
  .header-actions { margin-left: 0; }
}
@media (min-width: 1360px) { .header-search { max-width: 260px; } }
@media (min-width: 1520px) { .header-actions .header-contact { display: inline-flex; white-space: nowrap; } }

/* Menu mobile */
.mobile-nav { border-top: 1px solid var(--line); background: var(--cream); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav .container { padding-block: var(--s-4) var(--s-6); }
.mobile-nav ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; text-decoration: none; color: var(--graphite); font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg); }
.mobile-nav a[aria-current="page"] { color: var(--pine); }
.mobile-nav .header-search { display: block; max-width: none; margin: 0; }
.mobile-nav .mobile-contact { margin-top: var(--s-5); display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
@media (min-width: 1200px) { .mobile-nav { display: none !important; } }

/* Fil d'Ariane */
.breadcrumbs { font-size: var(--fs-sm); color: var(--ink-2); padding-top: var(--s-5); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--s-2); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs [aria-current] { color: var(--graphite); font-weight: 500; }

/* Bandeau de page */
.page-hero { padding-block: var(--s-7) var(--s-8); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-bottom: 0; }

/* 7. Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1.5px solid transparent; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-md); line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--pine); color: var(--cream); }
.btn-primary:hover { background: var(--pine-strong); color: var(--white); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-secondary:hover { background: var(--pine); color: var(--cream); text-decoration: none; }
.btn-accent { background: var(--coral); color: var(--graphite); }
.btn-accent:hover { background: #E07F67; color: var(--graphite); text-decoration: none; }
.btn-light { background: var(--cream); color: var(--pine); }
.btn-light:hover { background: var(--white); color: var(--pine-strong); text-decoration: none; }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(245, 241, 232, .7); }
.btn-ghost-light:hover { background: rgba(245, 241, 232, .12); color: var(--white); text-decoration: none; }
.btn-text { background: none; border: 0; padding: 0 var(--s-1); min-height: 44px; color: var(--pine); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.btn-text:hover { color: var(--pine-strong); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: var(--fs-lg); padding: 0 var(--s-6); }
@media (max-width: 420px) { .btn-lg { font-size: var(--fs-md); padding: 0 var(--s-4); } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Chips / tags */
.tag { display: inline-flex; align-items: center; gap: var(--s-1); padding: 2px 10px; border-radius: var(--r-pill); background: var(--mint); color: var(--pine); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .01em; }
.tag-beige { background: var(--beige-soft); color: var(--graphite); }
.price-note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.price-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex: none; }

/* 8. Forms ----------------------------------------------------------------- */
.field { display: grid; gap: var(--s-2); }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: var(--s-4); }
.field-row { display: grid; gap: var(--s-4); }
.field-row > .field + .field { margin-top: 0; }
@media (min-width: 600px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.label { font-weight: 600; font-size: var(--fs-sm); color: var(--graphite); }
.label .opt { font-weight: 400; color: var(--ink-2); }
.label .req { color: var(--coral-ink); }
.hint { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 56px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); color: var(--graphite); font: inherit; font-size: var(--fs-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { min-height: 140px; padding: var(--s-4); resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232E332C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--graphite); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(47, 90, 61, .28); border-radius: var(--r-md); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--coral-ink); border-width: 2px; background: #FFF8F5; }
.input:disabled, .select:disabled { background: var(--beige-soft); color: var(--ink-3); cursor: not-allowed; }
.field-error { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--coral-ink); font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.field-error .icon { margin-top: 2px; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); line-height: 1.5; min-height: 44px; padding-top: 10px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 11px; height: 6px; border: solid var(--cream); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--pine); border-color: var(--pine); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { box-shadow: var(--focus); }
.check input[aria-invalid="true"] { border-color: var(--coral-ink); border-width: 2px; }
.check > span { padding-top: 0; margin-top: -1px; }

/* Message global / alertes */
.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); font-size: var(--fs-sm); }
.alert .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-info { background: var(--mint); border-color: var(--basil-soft); }
.alert-info .icon { color: var(--pine); }
.alert-warn { background: #FBEDE8; border-color: var(--coral); }
.alert-warn .icon { color: var(--coral-ink); }
.alert-success { background: var(--mint); border-color: var(--basil); }
.alert-success .icon { color: var(--pine); }
.alert h2, .alert h3 { font-size: var(--fs-md); margin: 0 0 var(--s-1); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.alert ul { margin: var(--s-2) 0 0; padding-left: 1.1rem; }
.alert a { color: var(--coral-ink); font-weight: 600; }
.alert-info a, .alert-success a { color: var(--pine); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: var(--s-5); transform: translate(-50%, 0); z-index: 80; width: min(calc(100% - 2rem), 440px); display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: var(--graphite); color: var(--cream); border-radius: var(--r-lg); box-shadow: var(--sh-lg); font-size: var(--fs-sm); }
.toast a { color: var(--coral-soft); font-weight: 600; white-space: nowrap; margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; }
.toast .icon { color: var(--basil-soft); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in var(--t-med) var(--ease); } @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } } }

/* Segmented control (Livraison / Retrait…) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-lg); background: var(--beige-soft); border: 1px solid var(--line); }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: var(--s-2) var(--s-3); border-radius: calc(var(--r-lg) - 4px); font-weight: 600; cursor: pointer; text-align: center; font-size: var(--fs-sm); }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.segmented label:has(input:checked) { background: var(--paper); box-shadow: var(--sh-md); color: var(--pine); }
.segmented label:has(input:focus-visible) { box-shadow: var(--focus); }

/* Radio panels */
.radio-panels { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.radio-panel + .radio-panel { border-top: 1px solid var(--line); }
.radio-panel > label { display: flex; align-items: center; gap: var(--s-3); min-height: 60px; padding: var(--s-3) var(--s-4); cursor: pointer; font-weight: 600; }
.radio-panel input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.radio-panel input[type="radio"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cream); transform: scale(0); }
.radio-panel input[type="radio"]:checked { border: 6px solid var(--pine); }
.radio-panel input[type="radio"]:focus-visible { box-shadow: var(--focus); }
.radio-panel input[type="radio"]:disabled { background: var(--beige-soft); cursor: not-allowed; }
.radio-panel.is-checked > label { background: var(--mint); }
.radio-panel .rp-meta { margin-left: auto; font-weight: 500; font-size: var(--fs-sm); color: var(--ink-2); text-align: right; }
.radio-panel .rp-body { padding: var(--s-4); background: var(--beige-soft); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.radio-panel.is-disabled > label { cursor: not-allowed; color: var(--ink-2); }

/* Chips de choix (variantes, assistant) */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s-2); padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.choice:hover span { border-color: var(--graphite); }
.choice input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--cream); }
.choice input:focus-visible + span { box-shadow: var(--focus); }

/* Quantité */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r-pill); cursor: pointer; color: var(--graphite); }
.qty button:hover { background: var(--mint); }
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; background: none; }
.qty input { width: 3rem; height: 44px; border: 0; background: none; text-align: center; font: inherit; font-weight: 600; color: var(--graphite); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { box-shadow: var(--focus); border-radius: var(--r-sm); }

/* 9. Product card ---------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.card:hover { border-color: var(--beige); box-shadow: var(--sh-md); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform var(--t-med) var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover .card-media img { transform: scale(1.03); } }
.card-media .tag { position: absolute; left: var(--s-3); top: var(--s-3); }
.card-body { display: flex; flex-direction: column; gap: var(--s-3); flex: 1; padding: var(--s-5); }
.card-brand { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.card-title { font-size: var(--fs-xl); margin: 0; }
.card-title a { color: var(--graphite); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-desc { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.card-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.card-specs li { display: flex; gap: var(--s-2); align-items: flex-start; }
.card-specs .icon { color: var(--basil); width: 1.05em; height: 1.05em; margin-top: 3px; }
.card-foot { margin-top: auto; padding-top: var(--s-3); border-top: 1px dashed var(--line); display: grid; gap: var(--s-3); }
.price { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xl); letter-spacing: -0.02em; line-height: 1.1; }
.card .price { font-size: var(--fs-xl); }
.price-wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); }

/* 10. Product page --------------------------------------------------------- */
.pdp { display: grid; gap: var(--s-7); padding-block: var(--s-5) var(--section); }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-9); align-items: start; } }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; margin: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery-thumbs { display: flex; gap: var(--s-3); margin-top: var(--s-3); list-style: none; padding: 0; }
.gallery-thumbs button { width: 80px; height: 80px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white); cursor: pointer; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--pine); border-width: 2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-caption { font-size: var(--fs-xs); color: var(--ink-2); margin-top: var(--s-2); }
@media (min-width: 960px) { .pdp-gallery { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.pdp-info h1 { font-size: var(--fs-4xl); margin-bottom: var(--s-3); }
.pdp-info .lead { margin-bottom: var(--s-5); }
.pdp-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.buy-box { display: grid; gap: var(--s-5); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); }
.buy-box .price { font-size: var(--fs-3xl); }
.buy-actions { display: grid; gap: var(--s-3); }
.qty-row { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.note-box { font-size: var(--fs-sm); color: var(--ink-2); display: flex; gap: var(--s-2); }
.note-box .icon { color: var(--pine); margin-top: 2px; }
.pdp-quick { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.pdp-quick li { display: flex; gap: var(--s-2); }
.pdp-quick .icon { color: var(--basil); margin-top: 2px; }
.pdp-sections { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .pdp-sections { grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-9); } .pdp-sections .span-2 { grid-column: 1 / -1; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.spec-table th { width: 40%; font-weight: 600; padding-right: var(--s-4); color: var(--ink-2); }
.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.list-check li { display: flex; gap: var(--s-3); align-items: flex-start; }
.list-check .icon { flex: none; color: var(--pine); margin-top: 2px; }
.usage-block { padding: var(--s-6); border-radius: var(--r-xl); background: var(--mint); }
.usage-block p:last-child { margin: 0; }

/* Bloc contact produit */
.contact-band { display: grid; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-xl); background: var(--graphite); color: var(--cream); }
.contact-band h2 { color: var(--cream); font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.contact-band p { color: #D8D4CA; margin: 0; }
.contact-band a:not(.btn) { color: var(--cream); }
.contact-band .contact-lines { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.contact-band .contact-lines a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; text-decoration: none; font-weight: 600; }
.contact-band .contact-lines a:hover { text-decoration: underline; }
@media (min-width: 900px) { .contact-band { grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: var(--s-7); padding: var(--s-7) var(--s-8); } }

/* 11. Catalogue ------------------------------------------------------------ */
.catalog-layout { display: grid; gap: var(--s-6); padding-bottom: var(--section); }
@media (min-width: 1100px) { .catalog-layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-7); align-items: start; } }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filters-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; padding: 0 var(--s-5); border: 0; background: none; font-weight: 700; cursor: pointer; border-radius: var(--r-lg); }
.filters-toggle .icon:last-child { transition: transform var(--t-fast); }
.filters-toggle[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
.filters-body { padding: 0 var(--s-5) var(--s-5); }
.filters fieldset { border: 0; margin: 0; padding: var(--s-4) 0; border-top: 1px solid var(--line); min-width: 0; }
.filters legend { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-md); padding: 0; margin-bottom: var(--s-1); float: left; width: 100%; }
.filters legend + * { clear: both; }
.filters .check { min-height: 40px; padding-top: 8px; font-size: var(--fs-sm); }
.filters .check .count { color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.filters .check > span { flex: 1; display: flex; gap: var(--s-2); }
.filters input[type="radio"] { border-radius: 50%; }
.filters input[type="radio"]::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--cream); transform: none; }
@media (min-width: 1100px) { .filters { position: sticky; top: calc(var(--header-h) + var(--s-4)); max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; } .filters-toggle { pointer-events: none; } .filters-toggle .icon:last-child { display: none; } .filters-body[hidden] { display: block !important; } }
.toolbar { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 700px) { .toolbar { grid-template-columns: 1fr auto; align-items: end; } }
.toolbar .search-field { position: relative; }
.toolbar .search-field .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.toolbar .search-field .input { padding-left: 2.8rem; }
.toolbar .select { min-width: 220px; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); font-size: var(--fs-sm); }
.result-count { font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.empty-state { text-align: center; padding: var(--s-9) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-xl); background: var(--paper); }
.empty-state .icon-wrap { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto var(--s-4); border-radius: 50%; background: var(--mint); color: var(--pine); }
.empty-state .icon-wrap .icon { width: 28px; height: 28px; }
.empty-state p { max-width: 32rem; margin-inline: auto; color: var(--ink-2); }
.empty-state .btn-row { justify-content: center; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2); margin-top: var(--s-8); }
.pagination button { min-width: 44px; height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-1); }
.pagination button:hover:not(:disabled) { border-color: var(--graphite); }
.pagination button[aria-current="page"] { background: var(--graphite); border-color: var(--graphite); color: var(--cream); }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination .page-status { width: 100%; text-align: center; font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-2); }

/* Sélections (collections) */
.collection-hero { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-8); align-items: center; }
@media (min-width: 900px) { .collection-hero { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-9); } }
.collection-hero figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--beige); }
.collection-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.tips { display: grid; gap: var(--s-4); list-style: none; margin: 0; padding: 0; counter-reset: tip; }
@media (min-width: 760px) { .tips { grid-template-columns: repeat(3, 1fr); } }
.tips li { padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); counter-increment: tip; }
.tips li::before { content: "0" counter(tip); display: block; font-family: var(--font-head); font-weight: 800; color: var(--coral-ink); font-size: var(--fs-sm); margin-bottom: var(--s-2); }
.tips h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.tips p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* 12. Cart ----------------------------------------------------------------- */
.cart-layout { display: grid; gap: var(--s-6); padding-bottom: var(--section); }
@media (min-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); align-items: start; } }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cart-item { grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; } }
.cart-thumb { width: 88px; height: 88px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 640px) { .cart-thumb { width: 112px; height: 112px; } }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.cart-info h2 { font-size: var(--fs-lg); margin: 0 0 var(--s-1); }
.cart-info h2 a { color: var(--graphite); text-decoration: none; }
.cart-info h2 a:hover { text-decoration: underline; }
.cart-info p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.cart-controls { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
@media (min-width: 640px) { .cart-controls { grid-column: 3; justify-content: flex-end; } }
.cart-line-total { font-family: var(--font-head); font-weight: 800; min-width: 6.5rem; text-align: right; }
.remove-btn { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; padding: 0 var(--s-2); border: 0; background: none; color: var(--coral-ink); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; border-radius: var(--r-sm); }
.remove-btn:hover { text-decoration: underline; }
.summary-card { padding: var(--s-6); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .summary-card { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.summary-card h2 { font-size: var(--fs-xl); margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-sm); }
.summary-row.total { font-size: var(--fs-lg); font-weight: 700; padding-top: var(--s-4); border-top: 1px solid var(--line); align-items: baseline; }
.summary-row.total strong { font-family: var(--font-head); font-size: var(--fs-2xl); }

/* 13. Checkout ------------------------------------------------------------- */
.checkout-body { background: var(--cream); }
.co-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.co-header .inner { max-width: var(--w-checkout); margin: 0 auto; padding: 0 var(--gutter); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.co-summary-toggle { background: var(--beige-soft); border-bottom: 1px solid var(--line); }
.co-summary-toggle button { width: 100%; max-width: var(--w-checkout); margin: 0 auto; display: flex; align-items: center; gap: var(--s-2); min-height: 64px; padding: 0 var(--gutter); border: 0; background: none; cursor: pointer; color: var(--pine); font-weight: 600; text-align: left; }
.co-summary-toggle .icon { transition: transform var(--t-fast); }
.co-summary-toggle button[aria-expanded="true"] .icon-chev { transform: rotate(180deg); }
.co-summary-toggle .co-total { margin-left: auto; color: var(--graphite); font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xl); }
.co-summary-panel { background: var(--beige-soft); border-bottom: 1px solid var(--line); }
.co-summary-panel .inner { max-width: var(--w-checkout); margin: 0 auto; padding: var(--s-2) var(--gutter) var(--s-5); }
.co-layout { max-width: var(--w-checkout); margin: 0 auto; padding: 0 var(--gutter); display: grid; }
.co-main { padding-block: var(--s-6) var(--s-9); min-width: 0; }
.co-aside { display: none; }
@media (min-width: 1000px) {
  .co-summary-toggle, .co-summary-panel { display: none !important; }
  .co-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 0; }
  .co-main { padding-right: var(--s-8); border-right: 1px solid var(--line); }
  .co-aside { display: block; padding: var(--s-6) 0 var(--s-9) var(--s-8); }
  .co-aside .sticky { position: sticky; top: var(--s-5); }
}
.co-section { padding-top: var(--s-7); }
.co-section > h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-4); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.co-section > h2 .step { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.co-section > .hint { margin: calc(var(--s-2) * -1) 0 var(--s-4); }
.co-title { font-size: var(--fs-3xl); margin-bottom: var(--s-2); }
.quick-actions { display: grid; gap: var(--s-3); }
.quick-actions .btn { min-height: 56px; border-radius: var(--r-md); }
.quick-label { text-align: center; color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.divider-or { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-6) 0 0; color: var(--ink-2); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.info-panel { padding: var(--s-5); border-radius: var(--r-lg); background: var(--beige-soft); color: var(--ink-2); font-size: var(--fs-sm); }
.info-panel p:last-child { margin: 0; }
.co-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.co-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; }
.co-thumb { position: relative; width: 64px; height: 64px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.co-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; border-radius: var(--r-md); }
.co-thumb .badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--graphite); color: var(--cream); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.co-item-name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.co-item-name small { display: block; font-weight: 400; color: var(--ink-2); }
.co-item-price { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.co-totals { border-top: 1px solid var(--line); margin-top: var(--s-5); padding-top: var(--s-4); display: grid; gap: var(--s-2); }
.co-final { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-5) 0; }
.co-final .stack-thumb { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: 4px 4px 0 -1px var(--paper), 4px 4px 0 0 var(--line); }
.co-final .stack-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.co-final .t-label { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xl); line-height: 1.1; }
.co-final .t-count { font-size: var(--fs-sm); color: var(--ink-2); }
.co-final .t-amount { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xl); white-space: nowrap; }
.currency-pill { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); background: var(--beige-soft); padding: 4px 8px; border-radius: var(--r-pill); }
.co-legal { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.co-legal a { min-height: 44px; display: inline-flex; align-items: center; }
.mail-result { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.mail-result textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); min-height: 200px; }
.error-summary { margin-bottom: var(--s-5); }
.error-summary a { color: var(--coral-ink); }

/* Home -------------------------------------------------------------------- */
.hero { position: relative; padding-block: var(--s-6) var(--section); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-8); } }
.hero h1 { font-size: var(--fs-5xl); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: var(--s-5); max-width: 13ch; }
.hero .lead { font-size: var(--fs-xl); margin-bottom: var(--s-6); max-width: 34rem; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-6) 0 0; padding: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-facts .icon { color: var(--pine); }
.hero-visual { position: relative; }
.hero-visual figure { margin: 0; aspect-ratio: 16 / 11; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px; overflow: hidden; background: var(--beige); box-shadow: var(--sh-lg); }
@media (min-width: 960px) { .hero-visual figure { aspect-ratio: 4 / 5; margin-right: calc(var(--gutter) * -1); border-radius: 200px var(--r-xl) var(--r-xl) var(--r-xl); } }
@media (min-width: 1300px) { .hero-visual figure { margin-right: -64px; } }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-note { position: absolute; left: var(--s-4); bottom: var(--s-4); max-width: 260px; padding: var(--s-4); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh-md); font-size: var(--fs-sm); }
.hero-note strong { display: block; font-family: var(--font-head); font-size: var(--fs-md); margin-bottom: 2px; }
@media (max-width: 959px) { .hero-note { position: static; max-width: none; margin-top: var(--s-4); box-shadow: none; border: 1px solid var(--line); } .hero-deco { display: none; } }
@media (min-width: 960px) { .hero-note { left: calc(var(--s-8) * -1); bottom: var(--s-8); } }
.hero-deco { position: absolute; z-index: -1; right: -120px; top: -80px; width: 520px; height: 520px; border-radius: 50%; background: var(--mint); }

.scenario-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .scenario-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .scenario-grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; } .scenario-grid .sc-card:first-child { grid-row: span 2; } .scenario-grid .sc-card:last-child { grid-column: span 2; } }
.sc-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; border-radius: var(--r-xl); overflow: hidden; text-decoration: none; color: var(--cream); background: var(--graphite); isolation: isolate; }
.sc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 400ms var(--ease); }
.sc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 36, 30, 0) 30%, rgba(31, 36, 30, .82) 100%); }
.sc-card .sc-body { padding: var(--s-5); }
.sc-card h3 { color: var(--cream); font-size: var(--fs-2xl); margin-bottom: var(--s-1); }
.sc-card p { margin: 0 0 var(--s-3); font-size: var(--fs-sm); color: #EAE6DC; max-width: 30rem; }
.sc-card .link-arrow { color: var(--cream); min-height: 0; }
.sc-card:hover { color: var(--cream); }
.sc-card:hover .link-arrow { text-decoration: underline; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .sc-card:hover img { transform: scale(1.04); } }
@media (min-width: 1000px) { .scenario-grid .sc-card:first-child { min-height: 540px; } .scenario-grid .sc-card:first-child h3 { font-size: var(--fs-3xl); } }
.sc-count { position: absolute; top: var(--s-4); left: var(--s-4); background: rgba(245, 241, 232, .94); color: var(--graphite); font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }

/* Assistant de choix */
.helper { display: grid; gap: var(--s-6); padding: var(--s-6); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 1000px) { .helper { grid-template-columns: 340px minmax(0, 1fr); padding: var(--s-7); gap: var(--s-8); } }
.helper-form { display: grid; gap: var(--s-5); align-content: start; }
.helper-results h3 { font-size: var(--fs-lg); }
.helper-results .product-grid { gap: var(--s-4); }
@media (min-width: 960px) { .helper-results .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.helper-results .card-body { padding: var(--s-4); }
.helper-results .card-desc { display: none; }
.helper-results .card-title { font-size: var(--fs-lg); }

/* Éditorial */
.editorial { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .editorial { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-9); align-items: center; } }
.editorial figure { margin: 0; position: relative; }
.editorial figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); }
@media (max-width: 999px) { .editorial figure img { aspect-ratio: 3 / 2; } }
.editorial .big-quote { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-4xl); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: var(--s-6); }
.editorial .big-quote em { font-style: normal; color: var(--pine); }
.ed-points { display: grid; gap: var(--s-5); counter-reset: ed; }
@media (min-width: 640px) { .ed-points { grid-template-columns: 1fr 1fr; } }
.ed-points > div { border-top: 2px solid var(--graphite); padding-top: var(--s-4); }
.ed-points h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.ed-points p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.steps li { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--r-lg); background: var(--cream); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-4); border-radius: 50%; background: var(--coral); color: var(--graphite); font-family: var(--font-head); font-weight: 800; font-size: var(--fs-lg); }
.steps h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.steps p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* FAQ accordéon */
.accordion { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-item h3 { margin: 0; font-size: var(--fs-lg); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding: var(--s-4) 0; border: 0; background: none; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg); color: var(--graphite); cursor: pointer; border-radius: var(--r-sm); }
.acc-trigger:hover { color: var(--pine); }
.acc-trigger .acc-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--pine); transition: transform var(--t-med) var(--ease), background-color var(--t-fast); }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); background: var(--coral); color: var(--graphite); }
.acc-panel { padding: 0 var(--s-8) var(--s-5) 0; color: var(--ink-2); }
.acc-panel p:last-child, .acc-panel ul:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: var(--s-8); }
.faq-group > h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-4); }
.faq-layout { display: grid; gap: var(--s-7); padding-bottom: var(--section); }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-9); } .faq-nav { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; } }
.faq-nav ul, .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.faq-nav a, .toc a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-md); text-decoration: none; color: var(--graphite); font-weight: 500; font-size: var(--fs-sm); }
.faq-nav a:hover, .toc a:hover { background: var(--mint); }
.faq-nav h2, .toc h2 { font-size: var(--fs-sm); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: var(--s-2); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; display: grid; gap: var(--s-5); padding: var(--s-7) var(--s-6); border-radius: var(--r-xl); background: var(--pine); color: var(--cream); }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(232, 144, 122, .35); }
.cta-band > * { position: relative; }
@media (max-width: 899px) { .cta-band::before { right: -150px; top: -150px; opacity: .6; } }
.cta-band h2 { color: var(--cream); margin-bottom: var(--s-2); max-width: 22ch; }
.cta-band p { color: #E3E9E1; margin: 0; max-width: 36rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: var(--s-8) var(--s-9); } }

/* Comparatif */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.table-wrap:focus-visible { box-shadow: var(--focus); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare caption { text-align: left; padding: var(--s-4) var(--s-5); font-weight: 600; color: var(--ink-2); caption-side: top; }
.compare th, .compare td { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--mint); font-family: var(--font-head); font-size: var(--fs-sm); border-top: 0; }
.compare tbody th { font-weight: 600; }
.compare tbody th a { color: var(--graphite); }

/* Guide / prose */
.prose { max-width: var(--w-text); }
.prose h2 { font-size: var(--fs-2xl); margin-top: var(--s-8); }
.prose h3 { margin-top: var(--s-6); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.prose li + li { margin-top: var(--s-2); }
.prose .alert { margin: var(--s-5) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: var(--s-4) 0 var(--s-5); }
.prose th, .prose td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-layout { display: grid; gap: var(--s-7); padding-bottom: var(--section); }
.legal-layout > *, .faq-layout > *, .contact-layout > *, .cart-layout > *, .pdp > *, .pdp-sections > * { min-width: 0; }
.prose td, .prose th { overflow-wrap: anywhere; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-9); } .toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; } }
.toc { padding: var(--s-4); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.legal-meta { font-size: var(--fs-sm); color: var(--ink-2); }
.id-card { padding: var(--s-5); border-radius: var(--r-lg); background: var(--mint); font-size: var(--fs-sm); }
.id-card dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: 0; }
.id-card dt { font-weight: 600; }
.id-card dd { margin: 0; }
.guide-cards { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .guide-cards { grid-template-columns: repeat(3, 1fr); } }
.guide-cards > div { padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.guide-cards .icon-wrap { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--mint); color: var(--pine); margin-bottom: var(--s-4); }
.guide-cards h3 { font-size: var(--fs-lg); }
.guide-cards p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.wide-figure { margin: 0 0 var(--s-6); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3 / 2; background: var(--beige); }
@media (min-width: 900px) { .wide-figure { aspect-ratio: 21 / 9; } }
.wide-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.contact-layout { display: grid; gap: var(--s-7); padding-bottom: var(--section); }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-9); align-items: start; } }
.form-card { padding: var(--s-6); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 700px) { .form-card { padding: var(--s-7); } }
.contact-aside { display: grid; gap: var(--s-4); }
.contact-item { display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--mint); }
.contact-item .icon-wrap { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--pine); }
.contact-item h2 { font-size: var(--fs-md); margin: 0 0 2px; }
.contact-item p { margin: 0; font-size: var(--fs-sm); }
.contact-item a { font-weight: 600; }
.prefill-note { margin-bottom: var(--s-5); }

/* 15. Footer --------------------------------------------------------------- */
.site-footer { background: var(--graphite); color: #D8D4CA; padding-top: var(--s-9); font-size: var(--fs-sm); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-8); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .logo { color: var(--cream); }
.site-footer .logo-mark { background: var(--coral); color: var(--graphite); }
.site-footer .logo-text b { color: var(--coral); }
.footer-about p { margin: var(--s-4) 0; max-width: 24rem; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--beige); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer address { font-style: normal; display: grid; gap: var(--s-2); }
.site-footer address a { display: inline-flex; gap: var(--s-2); align-items: center; min-height: 32px; }
.footer-bottom { border-top: 1px solid rgba(217, 201, 176, .25); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); justify-content: space-between; color: #BDB8AC; font-size: var(--fs-xs); }

/* 16. Utilities ------------------------------------------------------------ */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
noscript .alert { margin: var(--s-4) 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .infobar, .site-footer, .mobile-nav, .btn, .toast { display: none !important; }
  body { background: #fff; }
}

/* 17. Paiement en ligne (checkout) ---------------------------------------- */
.pay-secure { display: flex; gap: var(--s-2); align-items: flex-start; }
.pay-secure .icon { margin-top: 3px; color: var(--pine); }
.pay-methods .radio-panel > label { min-height: 64px; }
.pay-badges { display: inline-flex; gap: 6px; align-items: center; }
.pay-badge { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 44px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--white); color: var(--graphite); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.pay-badge-visa { font-style: italic; font-size: 13px; letter-spacing: .02em; color: #1A1F71; }
.pay-badge-mc { gap: 0; padding: 0 6px; }
.pay-badge-mc i { width: 16px; height: 16px; border-radius: 50%; background: #EB001B; display: block; }
.pay-badge-mc i + i { background: #F79E1B; margin-left: -6px; mix-blend-mode: multiply; }
.pay-badge-bc { color: #1E3764; }
.pay-body { display: grid; gap: var(--s-4); }
.pay-body .field + .field, .pay-body .field-row + .field, .pay-body .field + .field-row { margin-top: 0; }
.pay-body .field-row { gap: var(--s-4); }
.pay-input { position: relative; display: flex; align-items: center; padding: 0 3rem 0 var(--s-4); background: var(--paper); cursor: text; }
.pay-input > .icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.pay-input .pay-ph { color: var(--ink-3); font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-input .pay-mount { flex: 1; min-width: 0; height: 54px; display: flex; align-items: center; }
.pay-input .pay-mount > *, .pay-input iframe { width: 100% !important; }
.pay-input.is-focused { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(47, 90, 61, .28); }
.pay-input.is-invalid { border-color: var(--coral-ink); border-width: 2px; background: #FFF8F5; }
.pay-input.is-inactive { cursor: default; }
.pay-input.is-inactive:hover { border-color: var(--line-strong); }
.billing-block { display: grid; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.billing-block h3 { font-size: var(--fs-lg); margin: 0; }
.billing-block .field + .field, .billing-block .field-row + .field, .billing-block .field + .field-row { margin-top: 0; }
.ship-delay { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--ink-2); }
.btn[disabled] .icon { opacity: .8; }

/* Paiement : alignement des paires, PayPal, totaux */
.pay-pair { align-items: end; }
.pay-body .field, .billing-block .field { min-width: 0; }
.pay-body .label { display: block; }
.pay-input, .pay-body .input, .pay-body .select { min-height: 56px; height: 56px; }
.pay-methods .radio-panel > label .pm-name { flex: 1 1 auto; min-width: 0; }
.pay-methods .rp-meta { flex: none; }
.pay-logo { display: inline-flex; align-items: center; }
.pay-logo img { display: block; width: auto; height: 26px; }
.pp-text { font-family: Verdana, Arial, sans-serif; font-style: italic; font-weight: 700; font-size: 20px; color: #009CDE; letter-spacing: -0.02em; }
.pp-text b { color: #003087; }
.co-final .t-amount, .summary-row.total strong { white-space: nowrap; }
.summary-row.total strong { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 420px) { .co-final { grid-template-columns: auto 1fr; } .co-final .t-amount { grid-column: 1 / -1; justify-content: flex-end; } }
.todo-marker { background: #FBEDE8; border: 1px dashed var(--coral-ink); color: var(--coral-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.legal-box { padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); margin: var(--s-4) 0 var(--s-5); }
.legal-box p:last-child { margin-bottom: 0; }
@media (min-width: 1000px) { .toc { max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; } }
