/* =========================================================
   Christel Weber, autrice
   Feuille de style unique du site
   ========================================================= */

/* ---------- Polices, hébergées avec le site ----------
   Pas d'appel à Google Fonts : le site reste autonome,
   plus rapide, et conforme au RGPD.                      */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/caveat-latin-wght-normal.woff2') format('woff2-variations');
}

/* ---------- Variables ---------- */
:root {
  --vert-profond: #103D20;
  --vert-marque: #1B6B33;
  --vert-clair: #E7F0E7;
  --jaune: #F5C518;
  --jaune-clair: #FDF3D0;
  --creme: #FBF8F1;
  --carte: #FFFFFF;
  --encre: #16211A;
  --secondaire: #5A6960;
  --ligne: #E2DED3;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --script: 'Caveat', 'Brush Script MT', cursive;

  --largeur: 1140px;
  --marge: 24px;
  --rayon: 22px;
  --ombre-carte: 0 10px 30px rgba(22, 33, 26, 0.07);
  --ombre-livre: 0 18px 40px rgba(0, 0, 0, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: 48px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; line-height: 1.25; }

p { margin: 0; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge);
}

.surtitre {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-marque);
  margin: 0 0 14px;
}

.texte-doux { color: var(--secondaire); }
.petit { font-size: 14px; line-height: 1.5; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 30px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-principal {
  background: var(--vert-marque);
  color: var(--creme);
}
.btn-principal:hover {
  background: var(--vert-profond);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 61, 32, 0.25);
}

.btn-secondaire {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre);
}
.btn-secondaire:hover { background: var(--encre); color: var(--creme); }

.btn-large { width: 100%; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}

.entete-interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo { text-decoration: none; display: block; }
.logo-nom { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--vert-marque); }
.nav a[aria-current="page"] { color: var(--vert-marque); }
.nav .btn { padding: 13px 24px; font-size: 15px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  background: var(--carte);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--encre);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.menu-ouvert .burger span { background: transparent; }
.menu-ouvert .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-ouvert .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; }
.hero-grille {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jaune-clair);
  color: var(--vert-profond);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 26px;
}

.hero h1 { font-size: 46px; margin-bottom: 24px; }
.hero-chapo { font-size: 19px; color: var(--secondaire); max-width: 30em; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

.preuve { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--secondaire); }

.etoiles { display: inline-flex; gap: 3px; color: var(--jaune); font-size: 16px; letter-spacing: 1px; }

/* Visuel du hero : les deux couvertures */
.hero-visuel { position: relative; min-height: 520px; }
.hero-halo {
  position: absolute;
  width: 78%; padding-bottom: 78%;
  background: var(--vert-clair);
  border-radius: 50%;
  top: 8%; left: 11%;
}
.hero-livre {
  position: absolute;
  border-radius: 4px;
  box-shadow: var(--ombre-livre);
}
.hero-livre-1 { width: 62%; top: 4%; left: 4%; transform: rotate(3deg); z-index: 2; }
.hero-livre-2 { width: 54%; top: 28%; right: 0; transform: rotate(-5deg); z-index: 1; }

/* ---------- Bandeau de réassurance ---------- */
.reassurance { background: var(--vert-profond); color: var(--creme); }
.reassurance-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 0;
}
.reassurance-item { text-align: center; padding: 0 16px; position: relative; }
.reassurance-item + .reassurance-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 34px;
  background: rgba(251, 248, 241, 0.22);
}
.reassurance-item strong { display: block; color: var(--jaune); font-size: 15px; font-weight: 500; }
.reassurance-item span { font-size: 14px; opacity: 0.72; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-creme { background: var(--creme); }
.section-vert-clair { background: var(--vert-clair); }
.section-jaune-clair { background: var(--jaune-clair); }

.section-entete { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-entete p { color: var(--secondaire); margin-top: 14px; }

/* ---------- Cartes livre ---------- */
.grille-livres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

.carte-livre {
  display: flex;
  flex-direction: column;
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--ombre-carte);
}

.carte-visuel {
  border-radius: 16px;
  aspect-ratio: 498 / 460;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 22px;
}
.carte-visuel.fond-jaune { background: var(--jaune-clair); }
.carte-visuel.fond-vert { background: var(--vert-clair); }
.carte-visuel img { max-height: 86%; width: auto; box-shadow: var(--ombre-livre); border-radius: 3px; }

.statut {
  align-self: flex-start;
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.statut-dispo { background: var(--vert-clair); color: var(--vert-profond); }
.statut-bientot { background: var(--jaune-clair); color: var(--encre); }

.carte-livre h3 { margin-bottom: 14px; }
.carte-pitch { color: var(--secondaire); font-size: 15px; margin-bottom: 18px; }

.carte-prix { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.carte-prix .prix { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.carte-prix .mention { font-size: 14px; color: var(--secondaire); }

.carte-sortie { color: var(--vert-marque); font-weight: 500; font-size: 15px; }

.carte-livre .btn { margin-top: auto; }

/* ---------- Avis ---------- */
.grille-avis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.carte-avis {
  background: var(--carte);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.carte-avis blockquote { margin: 0; font-size: 16px; }
.carte-avis cite { font-style: normal; font-size: 14px; color: var(--secondaire); margin-top: auto; }

.note-globale { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.note-globale .etoiles { font-size: 20px; }
.note-globale span { font-size: 14px; color: var(--secondaire); }

/* ---------- Mon histoire ---------- */
.histoire-grille {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 80px;
  align-items: center;
}

.collage { position: relative; aspect-ratio: 520 / 540; }
.collage figure {
  position: absolute;
  margin: 0;
  border: 8px solid var(--carte);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage-1 { width: 45%; top: 8%;  left: 1%;  transform: rotate(-3.5deg); }
.collage-2 { width: 36%; top: 1%;  left: 52%; transform: rotate(3deg); }
.collage-3 { width: 33%; top: 51%; left: 55%; transform: rotate(-3deg); }
.collage-4 { width: 29%; top: 70%; left: 23%; transform: rotate(5deg); }

.histoire-texte h2 { margin-bottom: 22px; }
.histoire-texte p { color: var(--secondaire); margin-bottom: 20px; }
.histoire-texte .signature {
  font-family: var(--script);
  font-weight: 700;
  font-size: 46px;
  color: var(--vert-marque);
  line-height: 1;
  margin: 10px 0 18px;
}
.lien-souligne { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Citation ---------- */
.citation { background: var(--vert-profond); color: var(--creme); text-align: center; }
.citation .guillemet { font-family: var(--serif); font-size: 88px; line-height: 1; color: var(--jaune); opacity: 0.5; }
.citation blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  margin: 12px auto 20px;
  max-width: 760px;
}
.citation .source { font-size: 14px; color: var(--jaune); opacity: 0.85; }

/* ---------- Appel à l'action final ---------- */
.cta-grille {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.cta-grille p { color: var(--secondaire); margin-top: 14px; }
.cta-actions { text-align: center; }
.cta-actions .btn { padding: 20px 38px; }
.cta-actions .mention { display: block; font-size: 14px; color: var(--secondaire); margin-top: 12px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--creme); padding: 72px 0 36px; }
.pied-grille {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 44px;
}
.pied h3 { font-size: 22px; margin-bottom: 12px; }
.pied-bio { font-size: 14px; opacity: 0.6; margin-bottom: 18px; }
.reseaux { display: flex; gap: 12px; flex-wrap: wrap; }
.reseaux a {
  border: 1px solid rgba(251, 248, 241, 0.6);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 14px;
  text-decoration: none;
}
.reseaux a:hover { background: rgba(251, 248, 241, 0.12); }
.pied-titre {
  color: var(--jaune);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pied ul a { font-size: 14px; opacity: 0.65; text-decoration: none; }
.pied ul a:hover { opacity: 1; }
.pied-bas {
  border-top: 1px solid rgba(251, 248, 241, 0.15);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  opacity: 0.5;
}

/* =========================================================
   Page produit
   ========================================================= */
.fil { padding: 26px 0 6px; font-size: 14px; color: var(--secondaire); }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--vert-marque); }
.fil span { margin: 0 8px; opacity: 0.5; }

.produit { padding: 34px 0 96px; }
.produit-grille {
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 72px;
  align-items: start;
}

.galerie-principale {
  background: var(--vert-clair);
  border-radius: 20px;
  aspect-ratio: 470 / 520;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}
.galerie-principale img { max-height: 82%; width: auto; box-shadow: var(--ombre-livre); border-radius: 3px; }

.vignettes { display: flex; gap: 14px; }
.vignettes button {
  width: 104px;
  aspect-ratio: 104 / 149;
  border-radius: 10px;
  border: 2px solid transparent;
  background: var(--carte);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vignettes button img { max-height: 100%; width: auto; }
.vignettes button[aria-pressed="true"] { border-color: var(--vert-marque); }

.panneau > * + * { margin-top: 20px; }
.panneau h1 { font-size: 46px; }
.panneau .genre { font-size: 19px; color: var(--secondaire); }
.panneau .note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--secondaire); }
.separateur { height: 1px; background: var(--ligne); border: 0; margin: 20px 0; }
.bloc-prix { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bloc-prix .prix { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.bloc-prix .livraison { color: var(--vert-marque); font-size: 17px; }
.panneau .resume-court { color: var(--secondaire); }

/* Caractéristiques compactes */
.caracteristiques {
  background: var(--vert-clair);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.carac {
  text-align: center;
  padding: 0 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.carac + .carac::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 74px;
  background: var(--ligne);
}
.carac .label { font-size: 11px; color: var(--secondaire); line-height: 1.3; }
.carac .valeur { font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.carac svg { width: 26px; height: 26px; stroke: var(--encre); fill: none; stroke-width: 1.4; }
.carac svg .plein { fill: var(--encre); stroke: none; }

/* Histoire du livre, deux colonnes */
.histoire-livre-grille {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 72px;
  align-items: center;
}
.histoire-livre-texte p { color: var(--secondaire); margin-bottom: 20px; }
.visuel-van { position: relative; }
.visuel-van::before {
  content: '';
  position: absolute;
  width: 78%; padding-bottom: 78%;
  background: var(--creme);
  opacity: 0.75;
  border-radius: 50%;
  top: 2%; left: 11%;
}
.visuel-van img { position: relative; width: 100%; }

/* Barre d'achat fixe, mobile seulement */
.barre-achat {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ligne);
  padding: 12px var(--marge) calc(12px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 16px;
}
.barre-achat .infos { flex: 1; min-width: 0; }
.barre-achat .prix { font-family: var(--serif); font-size: 21px; font-weight: 600; display: block; }
.barre-achat .mention { font-size: 12px; color: var(--secondaire); }
.barre-achat .btn { padding: 15px 26px; white-space: nowrap; }

/* ---------- Page Mes livres ---------- */
.entete-page { text-align: center; padding: 80px 0 48px; }
.entete-page h1 { margin-bottom: 18px; }
.entete-page p { color: var(--secondaire); max-width: 620px; margin: 0 auto; font-size: 19px; }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablette large */
@media (max-width: 1080px) {
  .hero h1 { font-size: 46px; }
  .hero-grille { gap: 40px; }
  .histoire-grille { grid-template-columns: 420px 1fr; gap: 48px; }
  .produit-grille { grid-template-columns: 380px 1fr; gap: 44px; }
  .histoire-livre-grille { grid-template-columns: 1fr 360px; gap: 48px; }
  .panneau h1 { font-size: 38px; }
  .pied-grille { gap: 36px; }
}

/* Tablette */
@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--creme);
    border-bottom: 1px solid var(--ligne);
    padding: 8px var(--marge) 20px;
  }
  .menu-ouvert .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--ligne); font-size: 17px; }
  .nav .btn { margin-top: 16px; justify-content: center; padding: 16px 24px; }
  .burger { display: inline-flex; }
  .entete-interieur { position: relative; }

  .hero { padding: 56px 0 64px; }
  .hero-grille { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 42px; }
  .hero-chapo { font-size: 18px; }
  /* width:100% est indispensable : avec max-width + margin auto seuls,
     le bloc passe en fit-content et s'effondre à 0, ses enfants étant
     tous en position absolue */
  .hero-visuel { min-height: 0; width: 100%; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; }
  .hero-livre-1 { width: 54%; top: 3%; left: 3%; }
  .hero-livre-2 { width: 47%; top: 26%; }

  .grille-avis { grid-template-columns: repeat(2, 1fr); }

  .histoire-grille { grid-template-columns: 1fr; gap: 48px; }
  .collage { max-width: 520px; margin: 0 auto; width: 100%; }

  /* la fiche produit garde ses deux colonnes le plus longtemps
     possible : le prix et le bouton doivent rester visibles
     sans scroller */
  .produit-grille { grid-template-columns: 290px 1fr; gap: 32px; }
  .vignettes button { width: 84px; }

  .histoire-livre-grille { grid-template-columns: 1fr; gap: 40px; }
  .visuel-van { max-width: 460px; margin: 0 auto; }

  .cta-grille { grid-template-columns: 1fr; gap: 30px; }
  .cta-actions { text-align: left; }

  .pied-grille { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Tablette étroite : la fiche produit passe enfin en une colonne */
@media (max-width: 720px) {
  .produit-grille { grid-template-columns: 1fr; gap: 36px; }
  .galerie-principale { max-width: 400px; margin-left: auto; margin-right: auto; }
  .vignettes { justify-content: center; }
  .panneau { max-width: 620px; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --marge: 20px; }

  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  h3 { font-size: 20px; }

  .section { padding: 64px 0; }
  .section-entete { margin-bottom: 34px; }

  .hero { padding: 40px 0 52px; }
  .hero h1 { font-size: 33px; }
  .hero-chapo { font-size: 17px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .preuve { flex-wrap: wrap; }

  /* les deux couvertures côte à côte plutôt que superposées */
  .hero-visuel {
    position: static;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    aspect-ratio: auto;
    padding: 10px 0;
  }
  .hero-halo { display: none; }
  .hero-livre { position: static; transform: none; }
  .hero-livre-1 { width: 47%; max-width: 220px; }
  .hero-livre-2 { width: 40%; max-width: 190px; }

  .reassurance-grille { grid-template-columns: 1fr; padding: 22px 0; }
  .reassurance-item { padding: 14px 0; }
  .reassurance-item + .reassurance-item::before {
    left: 20%; top: 0;
    transform: none;
    width: 60%; height: 1px;
  }

  .grille-livres { grid-template-columns: 1fr; gap: 24px; }
  .carte-livre { padding: 20px; }
  .carte-visuel { aspect-ratio: 4 / 3; }

  .grille-avis { grid-template-columns: 1fr; gap: 16px; }
  .carte-avis { padding: 22px; }

  /* collage en grille plutôt qu'en positions absolues */
  .collage {
    position: static;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .collage figure {
    position: static;
    width: auto;
    border-width: 6px;
    aspect-ratio: 4 / 5;
  }
  .collage-1 { transform: rotate(-2deg); }
  .collage-2 { transform: rotate(2deg); }
  .collage-3 { transform: rotate(-1.5deg); }
  .collage-4 { transform: rotate(2.5deg); }

  .histoire-texte .signature { font-size: 38px; }

  .citation .guillemet { font-size: 64px; }
  .citation blockquote { font-size: 21px; }

  .cta-actions .btn { width: 100%; }

  .fil { font-size: 13px; }
  .produit { padding: 20px 0 40px; }
  .panneau h1 { font-size: 32px; }
  .panneau .genre { font-size: 17px; }
  .bloc-prix .prix { font-size: 28px; }

  .galerie-principale { border-radius: 16px; }
  .vignettes button { width: 84px; }

  /* caractéristiques : deux lignes lisibles */
  .caracteristiques {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 0;
    padding: 18px 12px;
  }
  .carac:nth-child(4) { grid-column: 1 / 2; }
  .carac + .carac::before { display: none; }
  .carac { border-left: 1px solid transparent; }
  .carac:not(:nth-child(3n+1))::after {
    content: '';
    position: absolute;
    left: 0; top: 10%;
    width: 1px; height: 80%;
    background: var(--ligne);
  }

  /* le bouton d'achat principal cède la place à la barre fixe */
  .panneau .btn-achat-principal { display: none; }
  .panneau .mention-paiement { display: none; }
  .barre-achat { display: flex; }
  body.page-produit { padding-bottom: 92px; }

  .pied { padding: 52px 0 30px; }
  .pied-grille { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .pied-bas { flex-direction: column; gap: 8px; }
}

/* Petits mobiles */
@media (max-width: 380px) {
  .hero h1 { font-size: 29px; }
  .galerie-principale { max-width: none; }

  /* caractéristiques sur deux colonnes bien régulières */
  .caracteristiques { grid-template-columns: repeat(2, 1fr); }
  .carac:nth-child(4) { grid-column: auto; }
  .carac::after { display: none; }
  .carac:nth-child(2n)::after {
    display: block;
    content: '';
    position: absolute;
    left: 0; top: 10%;
    width: 1px; height: 80%;
    background: var(--ligne);
  }
}

/* Accessibilité : respect de la préférence de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
