/* ==========================================================================
   Le Bon Sac - feuille de style unique
   Mobile-first, sans dependance, sans police externe (§20, §52).

   Palette : ardoise profonde pour la structure, sarcelle pour les liens et les
   accents editoriaux, jaune Amazon reserve exclusivement aux boutons d'achat.
   Cette separation est volontaire : le lecteur distingue immediatement ce qui
   releve du contenu et ce qui l'envoie chez le marchand.
   ========================================================================== */

:root {
  /* Structure */
  --ink: #0f2029;
  --ink-2: #2f4a58;
  --ink-3: #5d7683;
  --line: #dde5e9;
  --line-2: #eaf0f3;
  --paper: #ffffff;
  --paper-2: #f6f9fa;
  --paper-3: #edf3f5;

  /* Marque et accents */
  --brand: #12212e;
  --brand-2: #1d3a4d;
  --accent: #0d6b62;
  --accent-2: #0a5750;
  --accent-soft: #e6f2f0;
  --accent-line: #b8dcd7;

  /*
   * Degrades de marque. Un seul jeu, utilise pour l'ecusson du logo, la banniere
   * d'accueil et la barre de progression : la repetition d'un meme degrade est ce
   * qui fait qu'un site parait dessine et non assemble.
   */
  --grad-brand: linear-gradient(135deg, #17394a 0%, #12212e 55%, #0d6b62 100%);
  --grad-accent: linear-gradient(90deg, #0d6b62, #17394a);

  /* Surface editoriale chaude, pour les encadres de mise en avant. */
  --sand: #fbf7ef;
  --sand-line: #ecdfc8;

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Amazon, uniquement pour les boutons d'achat */
  --amz-bg: #ffd814;
  --amz-bg-hover: #f7ca00;
  --amz-border: #e8b800;
  --amz-text: #0f1111;

  /* Jugements editoriaux */
  --pro: #106b48;
  --pro-soft: #e7f4ee;
  --con: #a23a2a;
  --con-soft: #fbecea;

  --focus: #1f7ad4;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgb(15 32 41 / 5%), 0 1px 3px rgb(15 32 41 / 4%);
  --sh-2: 0 2px 6px rgb(15 32 41 / 6%), 0 10px 26px rgb(15 32 41 / 8%);
  --sh-3: 0 12px 40px rgb(15 32 41 / 14%);

  --measure: 70ch;
  --wrap: 1180px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Empeche tout debordement lateral, quelle que soit la largeur d'ecran. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.125rem;
}

/* Barre de progression de lecture, en haut de l'ecran. Purement decorative. */
.progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 90;
  background: transparent; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--grad-accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .1s linear;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .8rem 1.1rem;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.muted { color: var(--ink-3); }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-3); margin: 0 .5rem; vertical-align: middle; }

/* ============================================================ EN-TETE / NAV */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
/* Des que la page defile, l'en-tete se detache par une ombre. */
.site-header.is-scrolled {
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgb(15 32 41 / 7%);
}

.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
  transition: min-height .25s var(--ease);
}
.site-header.is-scrolled .site-header__bar { min-height: 58px; }
.brand svg { transition: height .25s var(--ease); }
.site-header.is-scrolled .brand svg { height: 26px; }

.brand { display: inline-flex; align-items: center; color: var(--brand);
  text-decoration: none; flex: 0 0 auto; }
.brand svg { height: 30px; width: auto; }

/* --- bouton hamburger --- */
.burger {
  appearance: none; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 550;
  padding: .5rem .85rem; border-radius: var(--r-sm); cursor: pointer;
  display: inline-flex; align-items: center; gap: .55rem;
}
.burger:hover { background: var(--paper-2); }
.burger__bars { display: block; width: 17px; height: 1.6px; background: currentColor;
  position: relative; }
.burger__bars::before, .burger__bars::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: currentColor;
}
.burger__bars::before { top: -5.5px; }
.burger__bars::after { top: 5.5px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-5.5px) rotate(-45deg); }

/* --- navigation, base mobile --- */

/*
 * Sur mobile, la navigation s'ouvre en panneau pleine largeur SOUS l'en-tete.
 * Elle est positionnee en absolu par rapport a .site-header, sinon elle reste
 * un element de la rangee flexible de l'en-tete et se retrouve ecrasee a droite,
 * avec des libelles tronques. C'est le defaut que corrige ce bloc.
 */
.site-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-3);
  max-height: calc(100vh - 66px);
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-nav[data-open="true"] { display: block; }

.nav__list {
  list-style: none; margin: 0 auto;
  padding: .35rem 1.125rem 1.4rem;
  max-width: var(--wrap);
}

.nav__group + .nav__group { border-top: 1px solid var(--line-2); }

.nav__trigger {
  appearance: none; width: 100%; background: none; border: 0;
  font: inherit; font-size: 1.0625rem; font-weight: 620; color: var(--brand);
  padding: 1.05rem .1rem; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px;
}
.nav__trigger:active { color: var(--accent-2); }

/* Le chevron est enferme dans une pastille : cible tactile nette et lisible. */
.chev {
  width: 11px; height: 8px; flex: 0 0 auto; color: var(--ink-2);
  transition: transform .18s ease;
}
.nav__trigger > .chev {
  box-sizing: content-box;
  padding: .55rem; border-radius: 50%;
  background: var(--paper-3);
}
.nav__group.is-open > .nav__trigger .chev { transform: rotate(180deg); }
.nav__group.is-open > .nav__trigger > .chev {
  background: var(--accent-soft); color: var(--accent-2);
}
.nav__group.is-active > .nav__trigger { color: var(--accent-2); }

.nav__panel ul {
  list-style: none; margin: 0 0 .55rem;
  padding: 0 0 0 .1rem; display: grid; gap: .2rem;
}
.nav__panel a {
  display: flex; align-items: center; min-height: 46px;
  padding: .45rem .8rem; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: .9375rem;
  background: var(--paper-2);
}
.nav__panel a:hover, .nav__panel a:active {
  color: var(--accent-2); background: var(--accent-soft);
}
.nav__panel a[aria-current="page"] {
  color: var(--accent-2); font-weight: 620;
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Sans JavaScript, les panneaux restent visibles : la nav reste utilisable. */
.nav-js .nav__panel { display: none; }
.nav-js .nav__group.is-open > .nav__panel { display: block; }

/* --- navigation, ordinateur --- */
@media (min-width: 64rem) {
  .burger { display: none; }

  .site-nav {
    display: block !important;
    position: static; max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none;
  }
  .nav__group + .nav__group { border-top: 0; }
  .nav__trigger > .chev { padding: 0; background: none; border-radius: 0; }
  .nav__group.is-open > .nav__trigger > .chev { background: none; }

  .nav__list { display: flex; gap: .15rem; padding: 0; }
  .nav__group { position: relative; }

  .nav__trigger {
    width: auto; border-bottom: 0; padding: .55rem .7rem;
    border-radius: var(--r-sm); font-size: .9375rem; font-weight: 550;
    gap: .35rem;
  }
  .nav__trigger:hover { background: var(--paper-3); }
  .nav__group.is-active > .nav__trigger { background: var(--accent-soft); }

  .nav-js .nav__panel {
    position: absolute; top: calc(100% + .4rem); left: 0; z-index: 70;
    min-width: 17rem; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--sh-3); padding: .4rem;
  }
  /* Zone tampon : evite que le menu se ferme entre le bouton et le panneau. */
  .nav-js .nav__panel::before {
    content: ""; position: absolute; top: -.5rem; left: 0; right: 0; height: .5rem;
  }
  .nav__panel ul { padding: 0; }
  .nav__panel ul { gap: 0; margin: 0; }
  .nav__panel a {
    min-height: 0; border-radius: var(--r-sm); background: none;
    padding: .55rem .7rem; font-size: .9375rem; box-shadow: none;
  }
  .nav__panel a:hover { background: var(--accent-soft); }
  .nav__panel a[aria-current="page"] { box-shadow: none; background: var(--accent-soft); }
}

/* ============================================================= FIL D'ARIANE */

.breadcrumb { padding: .95rem 0 0; font-size: .8125rem; color: var(--ink-3); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex;
  flex-wrap: wrap; gap: .3rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; color: var(--line); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-2); text-decoration: underline; }

/* ==================================================================== TITRES */

main { display: block; padding-bottom: 4rem; }

/*
 * La colonne de lecture est centree. Alignee a gauche dans un conteneur large,
 * elle laissait un vide de plusieurs centaines de pixels a droite sur ecran
 * d'ordinateur, ce qui donnait une page desequilibree.
 */
.page-head { padding: 1.75rem 0 1.35rem; margin: 0 auto 1.75rem;
  max-width: var(--measure);
  border-bottom: 1px solid var(--line-2); }

h1 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.7rem);
  line-height: 1.14; letter-spacing: -.024em; font-weight: 700;
  margin: 0 0 .7rem; max-width: 34ch; color: var(--brand);
}

.page-head__lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2);
  margin: 0; max-width: 62ch; }

.byline { margin-top: 1.1rem; font-size: .8125rem; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; }
.byline strong { color: var(--ink-2); font-weight: 600; }

/* =================================================================== PROSE */

.prose { max-width: var(--measure); margin-inline: auto; }
.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.8rem);
  line-height: 1.22; letter-spacing: -.018em; font-weight: 680;
  margin-top: 2.6em; margin-bottom: .55em; scroll-margin-top: 5.5rem;
  color: var(--brand);
}
.prose h3 {
  font-size: 1.1875rem; font-weight: 650; margin-top: 2em; margin-bottom: .45em;
  scroll-margin-top: 5.5rem; color: var(--brand);
}
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }

.prose blockquote {
  margin: 1.6em 0; padding: .9rem 1.15rem;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2);
}
.prose blockquote p { margin: 0; }

.prose code { font-family: var(--mono); font-size: .875em;
  background: var(--paper-3); padding: .12em .38em; border-radius: 5px; }

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }

.prose strong { color: var(--brand); font-weight: 650; }

/* ================================================================= TABLEAUX */

/*
 * Un tableau n'est pas du texte courant : le limiter a la largeur de lecture
 * confortable comprimait ses colonnes au point que le bouton debordait de la
 * bordure. Il occupe donc toute la largeur disponible, comme les fiches produit.
 */
.table-wrap { margin: 1.8rem 0; max-width: none; }

table { border-collapse: collapse; width: 100%; font-size: .9375rem; }

thead th {
  background: var(--brand); color: #fff; text-align: left;
  font-size: .75rem; font-weight: 620; letter-spacing: .05em; text-transform: uppercase;
  padding: .7rem .85rem;
  /*
   * Les intitules doivent pouvoir passer a la ligne. En nowrap et avec une
   * largeur de colonne fixe, deux intitules voisins se chevauchaient.
   */
  white-space: normal; line-height: 1.25;
}
thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
thead th:last-child { border-radius: 0 var(--r-sm) 0 0; }

tbody th, tbody td { padding: .8rem .85rem; border-bottom: 1px solid var(--line-2);
  vertical-align: top; text-align: left; }
tbody th { font-weight: 620; color: var(--brand); }
tbody tr:nth-child(even) { background: var(--paper-2); }

.table-note { font-size: .8125rem; color: var(--ink-3); margin-top: -.9rem;
  max-width: var(--measure); }

/*
 * Tableau comparatif. La repartition est fixee explicitement : sans elle, le
 * navigateur donnait la portion congrue au nom du modele, qui se cassait a
 * raison d'un mot par ligne, et etirait la colonne du bouton sans raison.
 */
.compare tbody th a { font-weight: 640; }

/*
 * Les largeurs fixes ne valent QUE pour le vrai tableau. Sous 52rem, chaque
 * ligne devient une carte empilee : appliquees la, ces largeurs reduisaient
 * chaque cellule a un quart de la carte et faisaient deborder la page
 * horizontalement, ce qui est precisement le defaut que le mode carte evite.
 */
@media (min-width: 52.0625rem) {
  .compare { table-layout: fixed; }
  .compare th:nth-child(1), .compare td:nth-child(1) { width: 24%; }
  .compare th:nth-child(2), .compare td:nth-child(2) { width: 19%; }
  .compare th:nth-child(3), .compare td:nth-child(3) { width: 36%; }
  .compare th:nth-child(4), .compare td:nth-child(4) { width: 21%; }
  .compare__action { text-align: right; white-space: nowrap; }
}

@media (max-width: 52rem) {
  /* En mode carte, le bouton reprend toute la largeur de la carte. */
  .compare__action { padding-top: .9rem; }
  .compare__action .cta { width: 100%; min-height: 44px; font-size: .875rem; }
}

/*
 * Sous 52rem, chaque ligne devient une carte et l'intitule de colonne, porte
 * par data-label, s'affiche devant la valeur. Aucun defilement horizontal,
 * donc aucun decalage de la page sur telephone.
 */
@media (max-width: 52rem) {
  table thead { display: none; }
  table, table tbody, table tr, table th, table td { display: block; width: 100%; }

  table tr {
    border: 1px solid var(--line); border-radius: var(--r);
    padding: .3rem .9rem .8rem; margin-bottom: .85rem; background: var(--paper);
    box-shadow: var(--sh-1);
  }
  table tbody tr:nth-child(even) { background: var(--paper); }

  table tbody th, table tbody td { border-bottom: 1px solid var(--line-2);
    padding: .65rem 0; }
  table tbody tr > *:last-child { border-bottom: 0; padding-bottom: .1rem; }

  table tbody th { font-size: 1.0625rem; padding-top: .8rem; }

  table td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: .6875rem; font-weight: 650;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: .25rem;
  }
  table td[data-label=""]::before { display: none; }
}

/* ============================================================ FICHE PRODUIT */

.product {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--r-lg); padding: 1.35rem; margin: 1.9rem 0;
  background: var(--paper); box-shadow: var(--sh-1); max-width: none;
}

.product__head { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
  margin-bottom: .85rem; }

.product__rank {
  flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
}

.product__award {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  flex: 0 1 auto;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: .2rem .55rem;
  border-radius: var(--r-pill); margin: .15rem 0 .5rem;
}

.product__title { font-size: 1.28rem; line-height: 1.25; font-weight: 670;
  margin: 0 0 .25rem; color: var(--brand); letter-spacing: -.012em; }
.product__brand { font-size: .8125rem; color: var(--ink-3); margin: 0; }
.product__brand code { font-family: var(--mono); font-size: .95em;
  background: var(--paper-3); padding: .1em .35em; border-radius: 4px; }

.product__specs { list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  display: inline-block; font-size: .78rem; font-weight: 520;
  background: var(--paper-3); color: var(--ink-2);
  padding: .22rem .6rem; border-radius: var(--r-pill);
}

.product__for { font-size: .9375rem; color: var(--ink-2); margin: 1rem 0 0; }
.product__for strong { color: var(--brand); }

.product__cols { display: grid; gap: .9rem; margin-top: 1.1rem; }
@media (min-width: 44rem) { .product__cols { grid-template-columns: 1fr 1fr; } }

.product__col { padding: .85rem 1rem; border-radius: var(--r); }
.product__col:has(.product__pros) { background: var(--pro-soft); }
.product__col:has(.product__cons) { background: var(--con-soft); }

.product__label { font-size: .6875rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; }
.product__label--pro { color: var(--pro); }
.product__label--con { color: var(--con); }

.product__pros, .product__cons { margin: 0; padding: 0; list-style: none;
  font-size: .9375rem; }
.product__pros li, .product__cons li { padding-left: 1.35rem; position: relative;
  margin-bottom: .4rem; line-height: 1.5; }
.product__pros li:last-child, .product__cons li:last-child { margin-bottom: 0; }
.product__pros li::before { content: "+"; position: absolute; left: .2rem;
  color: var(--pro); font-weight: 800; }
.product__cons li::before { content: "!"; position: absolute; left: .35rem;
  color: var(--con); font-weight: 800; }

.product__verdict { margin-top: 1.15rem; padding-top: 1.05rem;
  border-top: 1px solid var(--line-2); font-size: .9375rem; color: var(--ink-2); }
.product__verdict p { margin: 0 0 .6rem; }
.product__verdict p:last-child { margin-bottom: 0; }

.product__cta { margin-top: 1.25rem; display: flex; flex-wrap: wrap;
  align-items: center; gap: .5rem .9rem; }

/* ========================================================= BOUTONS AMAZON */

/*
 * Le jaune Amazon est reserve a ces boutons, et a rien d'autre. C'est le code
 * couleur que le lecteur associe deja a l'action d'achat, ce qui rend le
 * parcours lisible. Aucun logo ni marque Amazon n'est reproduit (§14).
 */
/*
 * Forme volontairement rectangulaire a coins arrondis, et non en pastille.
 * Une pastille dont le texte passe sur plusieurs lignes devient un ovale
 * difforme, ce qui s'est produit dans la colonne etroite du tableau comparatif.
 * Le nowrap ci-dessous interdit desormais ce cas de figure.
 */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .68rem 1.15rem;
  background: var(--amz-bg); color: var(--amz-text);
  border: 1px solid var(--amz-border); border-radius: 9px;
  font-weight: 640; font-size: .9375rem; line-height: 1.15;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 1px 2px rgb(15 17 17 / 12%);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.cta:hover { background: var(--amz-bg-hover); color: var(--amz-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 3px 10px rgb(232 184 0 / 40%); }
.cta:active { transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgb(15 17 17 / 18%); }
.cta:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.cta__arrow { width: 12px; height: 12px; flex: 0 0 auto; opacity: .7; }

.cta--sm { min-height: 36px; padding: .4rem .8rem; font-size: .8125rem;
  border-radius: 8px; gap: .38rem; }
.cta--sm .cta__arrow { width: 11px; height: 11px; }

/* Bloc pleine largeur, utile en fin de fiche sur telephone. */
.cta--block { width: 100%; }

.cta__note { font-size: .78rem; color: var(--ink-3); line-height: 1.5; max-width: 46ch; }



/* Boutons de navigation interne, volontairement distincts du jaune Amazon. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.3rem; border-radius: var(--r-pill);
  font-weight: 620; font-size: .9375rem; text-decoration: none;
  border: 1px solid transparent; transition: background .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #1c3444; color: #fff; }
.btn--ghost { background: var(--paper); color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); color: var(--brand); }

/* ================================================================ ENCADRES */

.callout {
  border: 1px solid var(--accent-line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--r) var(--r) 0;
  padding: 1.05rem 1.2rem; margin: 1.8rem 0; font-size: .9375rem;
}
.callout h2, .callout h3 { margin-top: 0; font-size: 1.0625rem; }
.callout p:last-child { margin-bottom: 0; }

.draft-banner {
  background: #fff8e3; border: 1px solid #ecd79c; color: #6a4e12;
  border-radius: var(--r); padding: .85rem 1.05rem; font-size: .9375rem;
  margin-bottom: 1.6rem;
}

/* ================================================================== CARTES */

.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr;
  list-style: none; padding: 0; margin: 1.6rem 0 0; }
@media (min-width: 38rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  padding: 1.25rem; display: flex; flex-direction: column; gap: .45rem;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { border-color: var(--accent-line); box-shadow: var(--sh-2); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--grad-accent); opacity: 0;
  transition: opacity .22s var(--ease);
}
.card:hover::before { opacity: 1; }

/*
 * Toute la surface de la carte est cliquable, pas seulement le titre.
 * Le lien du titre porte une surcouche transparente qui recouvre la carte :
 * un seul lien reste dans le document, la semantique est preservee, et l'on
 * n'oblige plus le lecteur a viser precisement le texte du titre.
 */
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/*
 * L'affordance de clic etait une pastille flottante en bas a droite, qui laissait
 * une bande vide sous le texte et donnait des cartes deshabillees. Elle est
 * remplacee par un pied de carte aligne au texte, plaque en bas par margin-top
 * auto : les cartes d'une meme rangee finissent alors sur la meme ligne.
 */
.card__more {
  margin-top: auto; padding-top: .85rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 620; color: var(--accent-2);
}
.card__chev { width: 7px; height: 10px; flex: 0 0 auto;
  transition: transform .18s var(--ease); }
.card:hover .card__chev { transform: translateX(3px); }
.card__teaser { flex: 0 1 auto; }
/* Les cartes sans lien, comme les types de sacs, n'ont pas besoin de reserve. */
.card:not(:has(.card__title a)) { padding-bottom: 1.25rem; }

/* Carte reduite a un titre, sans texte ni pied : hauteur resserree. */
.card:not(:has(p)) { padding: .95rem 1.15rem; justify-content: center; }

.card__kicker { font-size: .6875rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-2); }
.card__title { font-size: 1.0625rem; line-height: 1.32; margin: 0; font-weight: 640; }
.card__title a { text-decoration: none; color: var(--brand); }
.card:hover .card__title a { color: var(--accent-2); text-decoration: underline;
  text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.card p { margin: 0; font-size: .9375rem; color: var(--ink-2); }

/* ======================================================== CLUSTERS DE LIENS */

/*
 * Blocs de rebond en fin d'article. Ils etaient une liste de rectangles gris
 * indifferencies, ce qui donnait une fin de page terne alors que c'est
 * precisement l'endroit ou le lecteur decide de rester ou de partir. Ils
 * reprennent donc le vocabulaire des cartes : titre net, presentation, chevron
 * qui avance au survol, liseret d'accent sur le bord gauche.
 */
.link-cluster { margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.link-cluster h2 {
  font-size: .75rem; margin: 0 0 1.1rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.link-cluster__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
@media (min-width: 46rem) { .link-cluster__list { grid-template-columns: repeat(2, 1fr); } }

.link-cluster__list li {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
    transform .2s var(--ease);
}
.link-cluster__list li::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--grad-accent); opacity: 0;
  transition: opacity .2s var(--ease);
}
.link-cluster__list li:hover {
  border-color: var(--accent-line); box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.link-cluster__list li:hover::before { opacity: 1; }

.link-cluster__list a {
  display: block; padding: .95rem 2.1rem .95rem 1.05rem;
  font-weight: 620; font-size: .9688rem; line-height: 1.35;
  text-decoration: none; color: var(--brand);
}
.link-cluster__list li::after {
  content: "\203A";
  position: absolute; right: .95rem; top: 1rem;
  color: var(--accent-2); font-size: 1.05rem; line-height: 1; font-weight: 700;
  transition: transform .2s var(--ease);
}
.link-cluster__list li:hover::after { transform: translateX(3px); }

.link-cluster__list span {
  display: block; font-size: .8438rem; color: var(--ink-3);
  margin-top: .25rem; font-weight: 400; line-height: 1.5;
}

/* ===================================================================== FAQ */

.faq { margin-top: 3.2rem; }
.faq h2 { font-size: 1.5rem; margin: 0 0 1.1rem; color: var(--brand); font-weight: 680; }

.faq details {
  border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .6rem;
  background: var(--paper); overflow: hidden;
}
.faq details[open] { border-color: var(--accent-line); }
.faq summary {
  cursor: pointer; padding: .95rem 1.05rem; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center; color: var(--brand);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2);
  font-weight: 700; font-size: 1.05rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--paper-2); }
.faq details > div { padding: 0 1.05rem 1.05rem; font-size: .9375rem; color: var(--ink-2); }
.faq details > div > *:first-child { margin-top: 0; }

/* ================================================================= ACCUEIL */

.hero {
  position: relative;
  background:
    radial-gradient(90rem 30rem at 12% -20%, #1d3a4d 0%, transparent 60%),
    linear-gradient(165deg, #12212e 0%, #17303f 55%, #123a3a 100%);
  color: #fff; padding: 3.5rem 0 3.2rem; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 55%;
  height: 26rem; border-radius: 50%;
  background: radial-gradient(circle, rgb(13 107 98 / 45%) 0%, transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 24ch;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.2rem); }
.hero__lead { font-size: 1.1875rem; line-height: 1.55; color: rgb(255 255 255 / 82%);
  max-width: 56ch; margin: 0 0 1.7rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero .btn--ghost { background: rgb(255 255 255 / 10%); color: #fff;
  border-color: rgb(255 255 255 / 28%); }
.hero .btn--ghost:hover { background: rgb(255 255 255 / 18%); color: #fff; }
.hero .btn--primary { background: #fff; color: var(--brand); }
.hero .btn--primary:hover { background: #eef4f6; color: var(--brand); }

.hero__meta { margin: 1.9rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  font-size: .8125rem; color: rgb(255 255 255 / 70%); }
.hero__meta li { display: flex; align-items: center; gap: .45rem; }
.hero__meta strong { color: #fff; font-weight: 650; }

.section { padding-top: 3.2rem; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .4rem 1rem; margin-bottom: .3rem; }
.section__head h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.7rem); margin: 0;
  font-weight: 680; letter-spacing: -.018em; color: var(--brand); }
.section__head p { margin: 0; font-size: .875rem; color: var(--ink-3); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none;
  padding: 0; margin: 1.3rem 0 0; }
.pill-row a {
  display: inline-block; padding: .5rem .95rem; border: 1px solid var(--line);
  border-radius: var(--r-pill); font-size: .9375rem; text-decoration: none;
  color: var(--brand); background: var(--paper); font-weight: 540;
}
.pill-row a:hover { border-color: var(--accent); background: var(--accent-soft);
  color: var(--accent-2); }

/* ============================================================== PIED DE PAGE */

.site-footer { border-top: 1px solid var(--line); background: var(--paper-2);
  padding: 3.25rem 0 1.75rem; font-size: .9375rem; margin-top: 3rem; }

.site-footer__grid { display: grid; gap: 2.25rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  /* La signature editoriale occupe une colonne plus large que les listes. */
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .site-footer__about { grid-column: auto; }
}

.site-footer__brand { color: var(--brand); margin-bottom: .85rem; }
.site-footer__brand svg { height: 26px; width: auto; }
.site-footer__about p { margin: 0 0 .6rem; color: var(--ink-2); max-width: 38ch; }
.site-footer__baseline { font-size: .9375rem; }
.site-footer__author { font-size: .875rem; color: var(--ink-3); }
.site-footer__author strong { color: var(--ink-2); font-weight: 600; }

.site-footer h2 { font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--brand); margin: 0 0 .85rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); text-decoration: underline; }
.site-footer__col a { display: inline-block; line-height: 1.35; }

/*
 * Bandeau bas. Les pages institutionnelles y tiennent sur une seule ligne :
 * elles doivent rester accessibles depuis chaque page, sans peser autant que
 * les pages de contenu.
 */
.site-footer__legal { margin-top: 2.4rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: .78rem; }
.site-footer__disclosure { margin: 0 0 1rem; max-width: 92ch; line-height: 1.55; }

.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  align-items: baseline; justify-content: space-between; }
.site-footer__copy { margin: 0; }

/*
 * Selecteur volontairement plus specifique que la regle ".site-footer ul", qui
 * passe les listes en grille : sans cela les sept liens s'empilaient un par
 * ligne au lieu de tenir sur une seule.
 */
.site-footer ul.site-footer__meta { display: flex; flex-wrap: wrap;
  gap: .3rem 1.15rem; justify-content: flex-end; }
.site-footer__meta a { color: var(--ink-3); }
.site-footer__meta a:hover { color: var(--accent-2); }

@media (max-width: 48rem) {
  .site-footer ul.site-footer__meta { justify-content: flex-start; }
}

/* ===================================================================== 404 */

.notfound { padding: 3.5rem 0; }

@media print {
  .site-header, .site-footer, .cta, .burger, .breadcrumb { display: none; }
  body { font-size: 11pt; }
  .product { break-inside: avoid; }
}

/* ==========================================================================
   REFONTE VISUELLE : animations, bloc d'achat, sommaire
   ========================================================================== */

/* ------------------------------------------------ apparition au defilement */

/*
 * Les blocs marques .reveal montent legerement en apparaissant.
 *
 * Point critique : l'etat masque n'existe QUE si la classe .js-reveal est posee
 * sur la racine, ce que seul le script fait, et seulement s'il dispose d'un
 * IntersectionObserver et que le visiteur n'a pas demande de reduire les
 * animations. Sans cette precaution, une page dont le script ne se charge pas
 * afficherait un vide integral sous la ligne de flottaison. Le defaut est donc
 * toujours : visible.
 */
.js-reveal .reveal {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js-reveal .reveal:not(.is-in) {
  opacity: 0; transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- sommaire */

.toc {
  margin: 2rem 0 2.4rem; padding: 1.15rem 1.3rem;
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0;
}
.toc__title {
  margin: 0 0 .7rem; font-size: .6875rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2);
}
.toc__list {
  margin: 0; padding: 0 0 0 1.15rem;
  display: grid; gap: .3rem; font-size: .9375rem;
}
.toc__list li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc__list a { color: var(--ink-2); text-decoration: none; }
.toc__list a:hover { color: var(--accent-2); text-decoration: underline;
  text-underline-offset: 3px; }

/* --------------------------------------------------- signature de l'auteur */

.byline__avatar {
  display: inline-grid; place-items: center;
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: .02em;
}

/* ------------------------------------------------------------ bloc d'achat */

/*
 * Le bloc d'achat est le point de conversion de la page. Il est donc traite
 * comme un bloc a part entiere, et non comme un bouton pose en fin de fiche :
 * fond distinct, intitule, mention rassurante, bouton a droite.
 */
.buybox {
  margin-top: 1.35rem; padding: 1.05rem 1.15rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.2rem;
  justify-content: space-between;
  background: var(--sand); border: 1px solid var(--sand-line);
  border-radius: var(--r);
}
.buybox__text { min-width: 0; flex: 1 1 16rem; }
.buybox__title {
  margin: 0; font-size: .9375rem; font-weight: 660; color: var(--brand);
}
.buybox__note {
  margin: .15rem 0 0; font-size: .8125rem; color: var(--ink-3); line-height: 1.5;
}
.buybox .cta { flex: 0 0 auto; }

@media (max-width: 34rem) {
  .buybox { flex-direction: column; align-items: stretch; }
  .buybox .cta { width: 100%; }
}

/* Effet de brillance au survol du bouton d'achat, discret. */
@media (prefers-reduced-motion: no-preference) {
  .cta { position: relative; overflow: hidden; }
  .cta::after {
    content: ""; position: absolute; inset: 0 auto 0 -60%;
    width: 45%; transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent);
    transition: left .5s var(--ease);
  }
  .cta:hover::after { left: 120%; }
}

/* ------------------------------------------------------ fiche produit */

.product { transition: box-shadow .3s var(--ease), transform .3s var(--ease),
  border-color .3s var(--ease); }
.product:hover { box-shadow: var(--sh-2); border-color: var(--accent-line); }

/* Le premier modele est celui que le lecteur retient. Il est mis en avant. */
.product--top {
  border-left-width: 5px;
  box-shadow: var(--sh-2);
  background:
    linear-gradient(180deg, var(--accent-soft) 0, transparent 120px),
    var(--paper);
}

.product__rank {
  background: var(--grad-brand);
  box-shadow: 0 2px 6px rgb(18 33 46 / 22%);
}

.product__award {
  display: inline-flex; align-items: center; gap: .35rem;
}
.product__medal { width: 11px; height: 11px; flex: 0 0 auto; }

.product__title { transition: color .2s var(--ease); }

/* Puces de caracteristiques : contour plutot qu'aplat, plus net a l'oeil. */
.chip {
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 540;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.product:hover .chip { border-color: var(--accent-line); }

/* ------------------------------------------------------------------ cartes */

/*
 * Le libelle de carte etait precede d'un trait decoratif de 14 px. A l'ecran, ce
 * trait se lit comme un tiret cadratin, ce que la regle typographique du projet
 * interdit. Il est remplace par une pastille, qui identifie le type de page sans
 * ressembler a un signe de ponctuation.
 */
.card__kicker {
  display: inline-block; align-self: flex-start;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid var(--accent-line);
  padding: .16rem .5rem; border-radius: var(--r-pill);
  font-size: .625rem; letter-spacing: .09em;
}

/* ------------------------------------------------------------------ FAQ */

.faq details {
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.faq details[open] { border-color: var(--accent-line); }

/* ====================================================== CARTES DE SILO */

/*
 * Une carte de categorie ne portait qu'un titre et une phrase : elle paraissait
 * vide, et douze cartes identiques donnaient une grille sans relief. Le
 * pictogramme du silo lui donne un point d'entree visuel et rend la grille
 * lisible d'un coup d'oeil, sans ajouter aucune ressource externe.
 */
.card__icon {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; margin-bottom: .15rem;
  border-radius: 13px;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid var(--accent-line);
  transition: background .22s var(--ease), color .22s var(--ease),
    transform .22s var(--ease);
}
.card__glyph { width: 1.4rem; height: 1.4rem; }

.card--silo:hover .card__icon {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  transform: translateY(-1px) rotate(-3deg);
}

/* Variante sans texte de presentation : le pictogramme passe a gauche du titre. */
.card--compact {
  flex-direction: row; align-items: center; gap: .85rem;
  padding: .85rem 1.15rem;
}
.card--compact .card__icon {
  width: 2.15rem; height: 2.15rem; margin: 0; flex: 0 0 auto; border-radius: 11px;
}
.card--compact .card__glyph { width: 1.15rem; height: 1.15rem; }
