/* ==========================================================================
   L’Atelier de Steph — feuille de style
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables & reset
   -------------------------------------------------------------------------- */

:root {
  /* Couleurs */
  --creme:        #fbf7f4;
  --creme-chaud:  #f6efe9;
  --blanc:        #ffffff;
  --rose:         #e2799a;
  --rose-fonce:   #c95c80;
  --rose-poudre:  #f6dfe6;
  --rose-voile:   #fdf3f6;
  --encre:        #2f2a2c;
  --encre-douce:  #574d51;
  --or:           #9a7434;
  --or-texte:     #7d5f28;
  --rose-texte:   #a8446a;
  --rose-fond:    #bf5175;   /* fond des éléments à texte blanc — contraste 4,5 */
  --rose-fond-vif:#b04568;   /* même rôle, au survol — contraste 5,4 */
  --prune:        #4b3c47;
  --prune-clair:  #6b5a66;
  --trait:        rgba(47, 42, 44, .12);

  /* Typographies */
  --script: "Parisienne", "Snell Roundhand", "Apple Chancery", cursive;
  --titre:  "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --corps:  "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* Rythme */
  --page:       73.75rem;   /* 1180 px quand le texte est à sa taille de référence */
  --section-y:  clamp(5rem, 10vw, 8.5rem);
  --rayon:      18px;
  --ombre:      0 18px 45px -28px rgba(47, 42, 44, .45);
  --ombre-forte:0 28px 60px -30px rgba(47, 42, 44, .55);
  --transition: .45s cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;

  /* Taille de référence : toutes les tailles du site sont en rem, donc
     modifier cette valeur agrandit l'ensemble du texte. Voir le réglage
     d'accessibilité en bas de page. */
  font-size: 100%;
}

html[data-texte="2"] { font-size: 112.5%; }   /* 18 px */
html[data-texte="3"] { font-size: 125%;   }   /* 20 px */
html[data-texte="4"] { font-size: 137.5%; }   /* 22 px */

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--corps);
  font-weight: 400;
  font-size: 1.03rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Doit primer sur les règles « display » des composants ci-dessous */
[hidden] { display: none !important; }

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

/* Chaque photo est enveloppee dans un <picture> pour proposer sa version
   WebP aux navigateurs qui la comprennent. « display: contents » efface
   cette enveloppe de la mise en page : l'image reste l'enfant direct de
   sa grille, et aucune regle existante n'est a retoucher. */
picture { display: contents; }

/* Contrepartie : « display: contents » remet les <source> au même niveau que
   l'image. Or un <source> n'est pas masqué par défaut — dans une grille, il
   occupait donc une case et décalait toutes les photos d'une colonne. */
source { display: none; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: .005em;
  margin: 0;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--rose-poudre); color: var(--encre); }

/* --------------------------------------------------------------------------
   2. Utilitaires
   -------------------------------------------------------------------------- */

.page {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section--voile {
  background: linear-gradient(180deg, var(--rose-voile), var(--creme) 70%);
}

.section--chaud { background: var(--creme-chaud); }

.eyebrow {
  font-family: var(--script);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--rose-texte);
  line-height: 1;
  margin-bottom: .55rem;
}

.entete-section {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.entete-section h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
}

.entete-section p {
  color: var(--encre-douce);
  margin-top: 1.5rem;
}

/* Petit séparateur : filet — losange — filet */
.filet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin: 1.6rem auto 0;
  width: 9rem;
}

.filet::before,
.filet::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--trait);
}

.filet span {
  width: 6px;
  height: 6px;
  background: var(--rose);
  transform: rotate(45deg);
}

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

/* --------------------------------------------------------------------------
   3. Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 2.1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), color var(--transition),
              border-color var(--transition);
}

.btn--plein {
  background: var(--rose-fond);
  color: var(--blanc);
  box-shadow: 0 14px 30px -16px rgba(201, 92, 128, .85);
}

.btn--plein:hover {
  background: var(--rose-fond-vif);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(201, 92, 128, .9);
}

.btn--ligne {
  border: 1px solid var(--trait);
  color: var(--encre);
  background: rgba(255, 255, 255, .6);
}

.btn--ligne:hover {
  border-color: var(--rose);
  color: var(--rose-fonce);
  transform: translateY(-2px);
}

/* Bouton portant une adresse mail : lisible et sécable sur petit écran */
.btn--mail {
  text-transform: none;
  letter-spacing: .01em;
  font-size: .88rem;
  white-space: normal;
  padding-inline: 1.6rem;
  word-break: break-word;
}

.btn--clair {
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--blanc);
}

.btn--clair:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   4. En-tête
   -------------------------------------------------------------------------- */

.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color var(--transition), box-shadow var(--transition),
              backdrop-filter var(--transition);
}

.entete.est-collee {
  background: rgba(251, 247, 244, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--trait);
}

.entete .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .72rem;
  font-family: var(--script);
  font-size: clamp(1.55rem, 2.3vw, 1.95rem);
  color: var(--rose-fonce);
  line-height: 1;
  white-space: nowrap;
}

.logo img {
  width: clamp(46px, 5vw, 56px);
  height: auto;
  border-radius: 50%;
  flex: none;
}

.logo span { padding-bottom: .12em; }

/* Sur écran étroit, la pastille suffit */
@media (max-width: 420px) {
  .logo span { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.3rem);
}

.nav a {
  position: relative;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-douce);
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--encre); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav .btn { color: var(--blanc); }
.nav .btn::after { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  place-items: center;
}

.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--encre);
  transition: transform var(--transition), opacity var(--transition);
}

.burger span + span { margin-top: 6px; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(8rem, 16vw, 11rem) clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 40rem at 78% 18%, var(--rose-voile), transparent 65%),
    linear-gradient(160deg, var(--creme) 45%, var(--creme-chaud));
  overflow: hidden;
}

.hero .page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  margin-bottom: 1.6rem;
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--rose-fonce);
}

.hero p {
  max-width: 34rem;
  color: var(--encre-douce);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.3rem;
}

/* Le bloc de texte occupe la colonne de gauche, la composition de photos
   celle de droite. */
.hero-texte .filet { margin-inline: 0; }

/* Petits arguments listés sous les boutons, séparés par un losange. */
.hero-atouts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.15rem;
  margin: 2.4rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--trait);
  list-style: none;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.hero-atouts li {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.hero-atouts li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--rose);
  transform: rotate(45deg);
}

/* La colonne de droite réserve dans ses marges internes la place des
   éléments qui débordent de la grande photo : rien ne sort du cadre,
   donc rien n'est rogné par le « overflow: hidden » du hero. */
.hero-visuel {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 34rem;
  padding: 0 0 3.4rem 3.4rem;
}

.hero-photo { margin: 0; }

.hero-photo img {
  width: 100%;
  border-radius: var(--rayon);
  object-fit: cover;
}

.hero-photo--grande img {
  aspect-ratio: 4 / 5;
  box-shadow: var(--ombre-forte);
}

.hero-photo--petite {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
}

.hero-photo--petite img {
  aspect-ratio: 1 / 1;
  border: 7px solid var(--creme);
  box-shadow: var(--ombre);
}

/* Jeton de réassurance posé sur le coin haut droit de la grande photo. */
.hero-jeton {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  margin: 0;
  padding: .8rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--ombre);
  text-align: center;
  backdrop-filter: blur(6px);
}

.hero-jeton b {
  display: block;
  font-family: var(--titre);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  color: var(--or-texte);
}

.hero-jeton span {
  display: block;
  margin-top: .35rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-douce);
}


/* --------------------------------------------------------------------------
   6. Bandeau défilant
   -------------------------------------------------------------------------- */

.bandeau {
  overflow: hidden;
  padding-block: 1.1rem;
  background: linear-gradient(90deg, var(--rose-poudre), var(--rose-voile), var(--rose-poudre));
  border-block: 1px solid rgba(226, 121, 154, .18);
  user-select: none;
}

.bandeau-piste {
  display: flex;
  width: max-content;
  animation: defile 42s linear infinite;
}

.bandeau:hover .bandeau-piste { animation-play-state: paused; }

.bandeau ul {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  margin: 0;
  padding: 0 1.3rem;
  list-style: none;
}

.bandeau li {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--rose-texte);
  white-space: nowrap;
}

.bandeau li::after {
  content: "✦";
  font-size: .6rem;
  font-style: normal;
  opacity: .55;
}

@keyframes defile { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .bandeau-piste { animation: none; }
}

/* --------------------------------------------------------------------------
   7. À propos
   -------------------------------------------------------------------------- */

.apropos .page {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.apropos-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: start;
}

.apropos-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.apropos-photos picture:first-child img { margin-top: 2.6rem; }

.apropos h2 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  margin-bottom: 1.6rem;
}

.apropos-texte { color: var(--encre-douce); }

.chiffres {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.8rem, 5vw, 3.4rem);
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--trait);
}

.chiffres b {
  display: block;
  font-family: var(--titre);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--or);
  line-height: 1;
}

.chiffres span {
  display: block;
  margin-top: .5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.signature {
  margin-top: 2.2rem;
  font-family: var(--script);
  font-size: 1.65rem;
  color: var(--rose-fonce);
}

/* --------------------------------------------------------------------------
   8. Prestations
   -------------------------------------------------------------------------- */

/* Six formules : la largeur minimale est calée pour donner trois colonnes
   sur un écran d'ordinateur (deux rangées pleines), deux sur tablette et
   une sur téléphone. Le « min(100%, …) » évite tout débordement quand le
   visiteur agrandit le texte. */
.grille-prestations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.4rem;
  margin-top: clamp(2.8rem, 6vw, 4rem);
}

.carte {
  display: flex;
  flex-direction: column;
  padding: 2.4rem 1.9rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, .72);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}

.carte:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 121, 154, .4);
  box-shadow: var(--ombre);
}

.carte-icone {
  width: 62px; height: 62px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-poudre);
  color: var(--rose-fonce);
}

.carte-icone svg { width: 26px; height: 26px; }

.carte h3 {
  font-size: 1.42rem;
  margin-bottom: .8rem;
}

.carte p {
  font-size: .96rem;
  color: var(--encre-douce);
}

.carte-prix {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--or-texte);
}

/* La carte entière mène au formulaire, formule pré-cochée. L'appel reste
   visible en permanence : au survol il ne faisait que réapparaître, et sur
   un écran tactile — où il n'y a pas de survol — il ne s'affichait jamais. */
.carte-lien {
  display: block;
  margin-top: 1.1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-texte);
  opacity: .78;
  transition: opacity var(--transition);
}

.carte-lien span {
  display: inline-block;
  transition: transform var(--transition);
}

.carte:hover .carte-lien,
.carte:focus-visible .carte-lien { opacity: 1; }

.carte:hover .carte-lien span { transform: translateX(4px); }

.carte:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* Sur écran tactile, pas de survol : le repère reste visible */
@media (hover: none) {
  .carte-lien { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   9. Galerie
   -------------------------------------------------------------------------- */

.grille-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
  margin-top: clamp(2.8rem, 6vw, 4rem);
}

/* Sur l'accueil, l'aperçu ne compte que six photos : trois par rangée les
   met mieux en valeur et remplit les deux rangées, là où quatre colonnes
   laissaient la seconde à moitié vide. */
#galerie .grille-galerie {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.vignette {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--rose-poudre);
  cursor: pointer;
}

.vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.vignette:hover img,
.vignette:focus-visible img { transform: scale(1.07); }

.vignette-voile {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  text-align: left;
  color: var(--blanc);
  background: linear-gradient(0deg, rgba(43, 30, 36, .88) 0%, rgba(43, 30, 36, .35) 45%, transparent 78%);
  opacity: 0;
  transition: opacity var(--transition);
}

.vignette:hover .vignette-voile,
.vignette:focus-visible .vignette-voile { opacity: 1; }

.vignette-categorie {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-poudre);
  margin-bottom: .45rem;
}

.vignette-titre {
  display: block;
  font-family: var(--titre);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: .35rem;
}

.vignette-desc {
  display: block;
  font-size: .89rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}

.vignette-mention {
  margin-top: .85rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.galerie-pied {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Filtres (page galerie) */
.filtres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: clamp(2.2rem, 5vw, 3rem);
}

.filtre {
  padding: .62rem 1.5rem;
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--encre-douce);
  background: rgba(255, 255, 255, .6);
  transition: all var(--transition);
}

.filtre:hover {
  border-color: rgba(226, 121, 154, .5);
  color: var(--encre);
}

.filtre.est-actif {
  background: var(--rose-fond);
  border-color: var(--rose-fond);
  color: var(--blanc);
  box-shadow: 0 12px 26px -16px rgba(201, 92, 128, .85);
}

.vignette.est-masquee { display: none; }

.galerie-vide {
  grid-column: 1 / -1;
  padding: 4rem 0;
  text-align: center;
  color: var(--encre-douce);
  font-style: italic;
  font-family: var(--titre);
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   9 bis. Page d'un gâteau (gateaux/…html, fabriquées par pages-gateaux.js)
   -------------------------------------------------------------------------- */

.fiche-gateau { padding-top: clamp(7.5rem, 14vw, 9.5rem); }

.fil-ariane {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  font-size: .85rem;
  color: var(--encre-douce);
}

.fil-ariane a { color: var(--rose-texte); }
.fil-ariane a:hover { text-decoration: underline; }

.fiche-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.fiche-photo { margin: 0; }

.fiche-photo img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
}

.fiche-texte h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
.fiche-texte .filet { margin-left: 0; }

.fiche-desc {
  margin-top: 1.6rem;
  font-size: 1.12rem;
  color: var(--encre-douce);
}

.fiche-points {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}

.fiche-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--encre-douce);
}

.fiche-points li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--rose);
  transform: rotate(45deg);
}

.fiche-points b { color: var(--encre); font-weight: 600; }

.fiche-prix {
  margin-top: 1.8rem;
  font-family: var(--titre);
  font-size: 2rem;
  color: var(--or-texte);
  line-height: 1.1;
}

.fiche-prix span {
  display: block;
  font-family: var(--corps);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.fiche-prix-detail {
  margin-top: .45rem;
  font-size: .92rem;
  color: var(--encre-douce);
}

.fiche-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.8rem;
}

.fiche-note {
  margin-top: 1.3rem;
  font-size: .85rem;
  color: var(--encre-douce);
}

/* « D'autres gâteaux » : trois vignettes, comme l'aperçu de l'accueil */
.fiche-autres {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

@media (max-width: 860px) {
  .fiche-grille { grid-template-columns: 1fr; }
  .fiche-photo img { max-height: 70vh; }
}

@media (max-width: 420px) {
  .fiche-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   10. Visionneuse (lightbox)
   -------------------------------------------------------------------------- */

.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(35, 25, 30, .93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.visionneuse.est-ouverte { opacity: 1; visibility: visible; }

.visionneuse figure {
  margin: 0;
  max-width: min(100%, 62rem);
  text-align: center;
}

.visionneuse img {
  max-height: 74vh;
  margin-inline: auto;
  border-radius: 12px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}

.visionneuse figcaption {
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, .88);
}

.visionneuse figcaption strong {
  display: block;
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 400;
}

.visionneuse figcaption span {
  display: block;
  margin-top: .3rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
}

.visionneuse-commander {
  display: inline-flex;
  margin-top: 1.1rem;
}

.visionneuse-commander[hidden] { display: none; }

.visionneuse-fermer,
.visionneuse-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: var(--blanc);
  background: rgba(255, 255, 255, .1);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color var(--transition);
}

.visionneuse-fermer:hover,
.visionneuse-nav:hover { background: rgba(255, 255, 255, .24); }

.visionneuse-fermer { top: 1.6rem; right: 1.6rem; }
.visionneuse-nav--prec { left: clamp(.6rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); }
.visionneuse-nav--suiv { right: clamp(.6rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   11. Avis
   -------------------------------------------------------------------------- */

.grille-avis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.4rem;
  margin-top: clamp(2.8rem, 6vw, 4rem);
}

.avis {
  position: relative;
  padding: 2.6rem 2rem 2.1rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, .72);
}

.avis::before {
  content: "”";
  position: absolute;
  top: .55rem; left: 1.5rem;
  font-family: var(--titre);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--rose-poudre);
}

.etoiles {
  display: flex;
  gap: .2rem;
  margin-bottom: 1.1rem;
  color: var(--or);
  font-size: .82rem;
  letter-spacing: .12em;
}

.avis blockquote {
  margin: 0;
  font-family: var(--titre);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--encre);
}

.avis cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--script);
  font-size: 1.3rem;
  font-style: normal;
  color: var(--rose-fonce);
}

.avis small {
  display: block;
  margin-top: .25rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* --------------------------------------------------------------------------
   12. Appel à l'action
   -------------------------------------------------------------------------- */

.cta {
  text-align: center;
  background:
    radial-gradient(46rem 30rem at 50% 0%, var(--rose-voile), transparent 70%),
    var(--creme-chaud);
}

.cta h2 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  max-width: 15ch;
  margin-inline: auto;
}

.cta p {
  max-width: 40rem;
  margin: 1.6rem auto 0;
  color: var(--encre-douce);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 2.6rem;
}

/* --------------------------------------------------------------------------
   13. Pied de page
   -------------------------------------------------------------------------- */

.pied {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  background: var(--prune);
  color: rgba(255, 255, 255, .85);
  font-size: .94rem;
}

.pied-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.pied .logo { color: var(--blanc); margin: 0; }
.pied .logo img { width: 62px; }
.pied .logo span { display: inline; }

.pied-baseline {
  margin-top: .9rem;
  max-width: 24rem;
  color: rgba(255, 255, 255, .75);
}

.reseaux {
  display: flex;
  gap: .6rem;
  margin-top: 1.6rem;
}

.reseaux a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  height: 38px;
  padding: 0 1.05rem 0 .78rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition);
}

.reseaux-nom {
  font-size: .78rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

.reseaux a:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .5);
  color: var(--blanc);
}

.reseaux svg { width: 17px; height: 17px; flex: none; }

.pied h4 {
  font-size: 1.15rem;
  color: var(--blanc);
  margin-bottom: 1.1rem;
}

.pied ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}

.pied ul a { transition: color var(--transition); }
.pied ul a:hover { color: var(--blanc); }

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .82rem;
  color: rgba(255, 255, 255, .68);
}

/* --------------------------------------------------------------------------
   14. Formulaire de commande
   -------------------------------------------------------------------------- */

.commande {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  align-items: start;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.commande-colonne {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
}

/* ---- Bloc / fieldset --------------------------------------------------- */

.bloc {
  margin: 0;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, .72);
}

.bloc legend {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 0;
  font-family: var(--titre);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--encre);
}

.bloc-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--rose-poudre);
  color: var(--rose-texte);
  font-family: var(--corps);
  font-size: .82rem;
  font-weight: 600;
}

.bloc-aide {
  margin: .9rem 0 0;
  font-size: .95rem;
  color: var(--encre-douce);
}

.bloc-aide + * { margin-top: 1.5rem; }

/* Le modèle choisi dans la galerie, en tête du bloc gâteau */
.modele-choisi {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--rose-poudre);
  border-radius: 14px;
  background: var(--rose-voile);
  margin-bottom: 1.6rem;
}

.modele-choisi[hidden] { display: none; }

.modele-choisi img {
  flex: none;
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.modele-choisi p {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.modele-etiquette {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-texte);
}

.modele-nom {
  display: block;
  margin-top: .15rem;
  font-family: var(--titre);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--encre);
}

.modele-aide {
  display: block;
  margin-top: .2rem;
  font-size: .88rem;
  color: var(--encre-douce);
}

.modele-retirer {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--encre-douce);
  transition: background-color var(--transition);
}

.modele-retirer:hover { background: var(--rose-poudre); }
.bloc legend + .choix-grille,
.bloc legend + .champs-duo,
.bloc legend + .champ { margin-top: 1.6rem; }

/* ---- Cartes à cocher ---------------------------------------------------- */

.choix-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .8rem;
}

.choix {
  position: relative;
  display: block;
  cursor: pointer;
}

.choix input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.choix-corps {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem 1.1rem 2.9rem;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: var(--blanc);
  transition: border-color var(--transition), box-shadow var(--transition),
              background-color var(--transition);
}

/* La coche */
.choix-corps::before {
  content: "";
  position: absolute;
  top: 1.35rem; left: 1.1rem;
  width: 17px; height: 17px;
  border: 1px solid rgba(47, 42, 44, .28);
  border-radius: 5px;
  background: var(--blanc);
  transition: border-color var(--transition), background-color var(--transition);
}

.choix-corps::after {
  content: "";
  position: absolute;
  top: 1.58rem; left: 1.37rem;
  width: 9px; height: 5px;
  border-left: 1.8px solid var(--blanc);
  border-bottom: 1.8px solid var(--blanc);
  transform: rotate(-45deg) scale(.4);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.choix:hover .choix-corps { border-color: rgba(226, 121, 154, .45); }

.choix input:checked + .choix-corps {
  border-color: var(--rose);
  background: var(--rose-voile);
  box-shadow: 0 12px 28px -20px rgba(201, 92, 128, .9);
}

.choix input:checked + .choix-corps::before {
  border-color: var(--rose);
  background: var(--rose);
}

.choix input:checked + .choix-corps::after { opacity: 1; transform: rotate(-45deg) scale(1); }

.choix input:focus-visible + .choix-corps {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.choix-titre {
  display: block;
  font-family: var(--titre);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
}

.choix-detail {
  display: block;
  margin-top: .35rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--encre-douce);
}

.choix-prix {
  display: block;
  margin-top: .6rem;
  font-family: var(--titre);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--or-texte);
}

/* ---- Pastilles (régimes) ------------------------------------------------ */

.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.pastille-choix input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.pastille-choix span {
  display: inline-block;
  padding: .55rem 1.25rem;
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: var(--blanc);
  font-size: .88rem;
  color: var(--encre-douce);
  cursor: pointer;
  transition: all var(--transition);
}

.pastille-choix span:hover { border-color: rgba(226, 121, 154, .5); color: var(--encre); }

/* « Je te laisse composer » n'est pas une pâtisserie : le trait discontinu
   la distingue des pièces sans la reléguer hors de la liste. */
.pastille-choix--libre span {
  border-style: dashed;
  font-style: italic;
}

.pastille-choix input:checked + span {
  background: var(--rose-fond);
  border-color: var(--rose-fond);
  color: var(--blanc);
}

.pastille-choix input:focus-visible + span {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* ---- Groupes de pièces à choisir ---------------------------------------- */

.groupe-choix + .groupe-choix {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--trait);
}

.bloc-aide + .groupe-choix { margin-top: 1.6rem; }

.groupe-titre {
  margin: 0 0 .9rem;
  font-family: var(--titre);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--rose-texte);
}

.groupe-choix + .champ,
.groupe-choix ~ .champ { margin-top: 1.8rem; }

/* ---- Champs ------------------------------------------------------------- */

.champs-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.1rem;
}

.champs-duo + .champs-duo,
.champs-duo + .champ,
.champ + .champ { margin-top: 1.1rem; }

/* Dans une grille, l'espacement vient de « gap » : la marge décalerait
   la deuxième colonne vers le bas. */
.champs-duo > .champ + .champ { margin-top: 0; }

/* Les libellés restent alignés même si une colonne porte une note */
.champs-duo { align-items: start; }

.champ { margin: 0; display: block; }

.champ label {
  display: block;
  margin-bottom: .45rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--prune);
}

.requis { color: var(--rose); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: .82rem 1rem;
  border: 1px solid var(--trait);
  border-radius: 11px;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--corps);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.champ textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }

.champ select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236d6266' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  cursor: pointer;
}

.champ input::placeholder,
.champ textarea::placeholder { color: rgba(87, 77, 81, .72); }

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(226, 121, 154, .16);
}

.champ input.est-invalide,
.champ select.est-invalide,
.champ textarea.est-invalide {
  border-color: #cc4b4b;
  box-shadow: 0 0 0 3px rgba(204, 75, 75, .12);
}

.champ-note {
  display: block;
  margin-top: .45rem;
  font-size: .84rem;
  color: var(--encre-douce);
}

/* ---- Bandeau de saison ---------------------------------------------------
   Aucune couleur nouvelle : l'automne est rendu par l'or qui est déjà dans la
   charte, celui des prix, sur un crème à peine réchauffé. Repeindre le site
   aux couleurs d'une saison reviendrait à le défaire à chaque trimestre.
   -------------------------------------------------------------------------- */

.saison {
  position: relative;
  overflow: hidden;          /* les feuilles ne débordent jamais du bandeau */
  background:
    radial-gradient(38rem 22rem at 82% 10%, var(--rose-voile), transparent 70%),
    linear-gradient(170deg, #fdf6ee, var(--creme-chaud) 72%);
  border-block: 1px solid rgba(154, 116, 52, .18);
}

/* Le texte passe devant les feuilles */
.saison .page { position: relative; z-index: 1; }

.saison-corps {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.saison .eyebrow { color: var(--or-texte); }

.saison h2 {
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  color: var(--prune);
  margin: .6rem 0 0;
}

.saison h2 em { font-style: italic; color: var(--rose-fonce); }

.saison-texte {
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--encre-douce);
  max-width: 34rem;
}

.saison-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* La date de fin est écrite noir sur blanc : c'est elle qui rend la promesse
   crédible, et c'est la même que celle que le script relit pour s'effacer. */
.saison-jusqu {
  margin-top: 1.4rem;
  font-size: .88rem;
  letter-spacing: .04em;
  color: var(--or-texte);
}

.saison-gouts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1.8rem;
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(154, 116, 52, .16);
  box-shadow: var(--ombre);
}

.saison-gouts p {
  flex: 1 0 100%;
  margin: 0 0 .3rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--or-texte);
}

.gout {
  padding: .5rem 1.05rem;
  border-radius: 999px;
  background: var(--blanc);
  border: 1px solid rgba(154, 116, 52, .25);
  font-size: .89rem;
  color: var(--encre);
}

.gout--fort { background: var(--or); border-color: var(--or); color: #fff; }

@media (max-width: 860px) {
  .saison-corps { grid-template-columns: 1fr; }
}

/* Les parfums arrivent l'un après l'autre : le regard suit la cascade et lit
   chaque nom, au lieu de balayer un bloc de huit étiquettes. C'est la seule
   chose qui bouge sur la page — une deuxième animation ferait diversion.
   L'animation ne se déclenche qu'une fois le bandeau ouvert par le script. */
.saison:not([hidden]) .saison-gouts {
  opacity: 0;
  animation: saison-carte .8s cubic-bezier(.22, .61, .36, 1) .1s forwards;
}

.saison:not([hidden]) .gout {
  opacity: 0;
  transform: translateY(10px) scale(.97);
  animation: saison-gout .62s cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: calc(.35s + var(--rang) * .075s);
}

@keyframes saison-carte {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes saison-gout {
  to { opacity: 1; transform: none; }
}

/* ---- Le mot qui tourne dans le titre -------------------------------------
   Les quatre parfums sont empilés dans la même case de grille : la largeur
   est celle du plus long, et rien ne bouge autour quand le mot change.
   -------------------------------------------------------------------------- */

.tournant { display: inline-grid; vertical-align: bottom; }

.tournant em {
  grid-area: 1 / 1;
  opacity: 0;
  white-space: nowrap;
  animation: saison-mot 13.2s infinite;
  animation-delay: calc(var(--mot) * 3.3s);
}

/* Chaque mot monte, s'installe trois secondes, puis s'efface vers le haut
   pendant que le suivant arrive par en bas. */
@keyframes saison-mot {
  0%       { opacity: 0; transform: translateY(.35em); }
  3%, 22%  { opacity: 1; transform: none; }
  25%      { opacity: 0; transform: translateY(-.35em); }
  100%     { opacity: 0; transform: translateY(.35em); }
}


/* ---- Les feuilles d'automne ----------------------------------------------
   Douze, pas quatre-vingts : ce qui sépare une chute de feuilles réussie d'un
   gadget, c'est la retenue. Pâles, lentes, derrière le texte, et jamais
   ailleurs que dans ce bandeau.

   Quatre espèces — hêtre, érable, chêne, ginkgo — en six teintes tirées de
   l'or de la charte. À 26 px on ne lit plus les nervures, seulement le
   contour : c'est la silhouette qui distingue une feuille de sa voisine.
   Chacune porte aussi sa propre amplitude de balancement (--b) et son propre
   sens de rotation (--r), sans quoi douze feuilles tombent comme une seule.
   -------------------------------------------------------------------------- */

.feuilles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;      /* aucune feuille ne vole un clic */
}

.feuille {
  position: absolute;
  top: -8%;
  left: calc(var(--x) * 1%);
  width: calc(var(--s) * 30px);
  opacity: 0;
  animation: feuille-tombe calc(var(--t) * 1s) linear infinite;
  animation-delay: calc(var(--d) * 1s);
}

/* La feuille descend en tournant sur elle-même... */
@keyframes feuille-tombe {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  8%   { opacity: var(--o); }
  88%  { opacity: var(--o); }
  100% { opacity: 0; transform: translateY(115vh) rotate(calc(var(--r) * 1deg)); }
}

/* ...pendant que le dessin qu'elle porte dérive de gauche à droite. Ce sont
   ces deux mouvements décalés qui font qu'une feuille ne tombe pas comme un
   caillou : un seul mouvement composé donnerait une trajectoire rigide. */
.feuille svg {
  display: block;
  width: 100%;
  height: auto;
  animation: feuille-balance calc(var(--t) * .33s) ease-in-out infinite alternate;
}

@keyframes feuille-balance {
  from { transform: translateX(calc(var(--b) * -1rem)) rotate(-14deg); }
  to   { transform: translateX(calc(var(--b) * 1rem)) rotate(14deg); }
}


/* Une visiteuse qui a demandé moins d'animations voit tout, tout de suite :
   les parfums sont là, le titre s'arrête sur son premier mot, et les feuilles
   disparaissent — une image figée de feuilles éparpillées n'aurait aucun sens. */
@media (prefers-reduced-motion: reduce) {
  .saison:not([hidden]) .saison-gouts,
  .saison:not([hidden]) .gout {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .feuilles { display: none; }

  .tournant em { animation: none; }
  .tournant em:not(:first-child) { display: none; }
  .tournant em:first-child { opacity: 1; }
}

/* ---- Pièces à l'unité ---------------------------------------------------
   Une ligne par pièce : son nom, son tarif, et le compteur à droite. Le tarif
   est sous le nom plutôt qu'à côté : sur téléphone, les deux sur une même
   ligne se coupaient au milieu d'un prix.
   -------------------------------------------------------------------------- */

.unites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: .7rem;
}

.unite {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .15rem .9rem;
  padding: .7rem .9rem;
  border: 1px solid var(--trait);
  border-radius: 12px;
  background: var(--blanc);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.unite-nom {
  grid-column: 1;
  font-size: .95rem;
  color: var(--encre);
}

/* Le topping est ce qui distingue une ligne de cookie de la suivante :
   dans une liste de seize, c'est lui que l'oeil cherche. */
.unite-nom b {
  font-weight: 600;
  color: var(--rose-texte);
}

.unite-prix {
  grid-column: 1;
  font-size: .82rem;
  color: var(--encre-douce);
}

/* Le compteur tient la deuxième colonne sur les deux lignes */
.unite input {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 4.4rem;
  padding: .55rem .4rem;
  border: 1px solid var(--trait);
  border-radius: 10px;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--corps);
  font-size: 1rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.unite input::placeholder { color: rgba(87, 77, 81, .55); }

.unite input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(226, 121, 154, .16);
}

.unite input.est-invalide {
  border-color: #cc4b4b;
  box-shadow: 0 0 0 3px rgba(204, 75, 75, .12);
}

/* Une pièce demandée se repère d'un coup d'œil dans une liste de treize.
   Sans « :has », la ligne reste simplement neutre : rien ne se casse. */
.unite:has(input:not(:placeholder-shown)) {
  border-color: rgba(226, 121, 154, .55);
  background: var(--rose-voile);
}

/* La liste du mix s'ouvre sous la ligne du gâteau qui l'a demandée */
.mix-choix {
  margin-top: 1.2rem;
}

.mix-choix .bloc-aide {
  margin-bottom: .8rem;
}

/* La case « sans lactose » vit sous le nombre de personnes : c'est une
   variante du gâteau, pas une question à part entière. */
.sans-lactose {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
}

.sans-lactose input {
  width: auto;
  margin: 0;
  accent-color: var(--rose);
}

.champ-erreur {
  margin: 1rem 0 0;
  font-size: .9rem;
  font-weight: 500;
  color: #b83a3a;
}

/* ---- Dépôt de photos ---------------------------------------------------- */

.depot {
  display: block;
  margin-top: 1.6rem;
  padding: 2.2rem 1.5rem;
  border: 1.5px dashed rgba(226, 121, 154, .5);
  border-radius: 14px;
  background: var(--blanc);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.depot:hover,
.depot.est-survolee {
  border-color: var(--rose);
  background: var(--rose-voile);
}

.depot-icone {
  display: block;
  width: 42px; height: 42px;
  margin: 0 auto .9rem;
  color: var(--rose);
}

.depot-icone svg { width: 100%; height: 100%; }

.depot-titre {
  display: block;
  font-family: var(--titre);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--encre);
}

.depot-detail {
  display: block;
  margin-top: .4rem;
  font-size: .88rem;
  color: var(--encre-douce);
}

.depot:focus-within {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* Vignettes des photos ajoutées */
.apercus {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.apercu {
  position: relative;
  aspect-ratio: 1;
  border-radius: 11px;
  overflow: hidden;
  background: var(--rose-poudre);
}

.apercu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apercu-poids {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .35rem .5rem;
  background: linear-gradient(0deg, rgba(43, 30, 36, .85), transparent);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--blanc);
  text-align: center;
}

.apercu-retirer {
  position: absolute;
  top: .4rem; right: .4rem;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(43, 30, 36, .72);
  color: var(--blanc);
  font-size: .85rem;
  line-height: 1;
  transition: background-color var(--transition);
}

.apercu-retirer:hover { background: var(--rose-fonce); }

/* ---- Consentement ------------------------------------------------------- */

.consentement {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.4rem;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--encre-douce);
  cursor: pointer;
}

.consentement input {
  flex: none;
  width: 17px; height: 17px;
  margin-top: .2rem;
  accent-color: var(--rose);
  cursor: pointer;
}

/* ---- Récapitulatif ------------------------------------------------------ */

/* « stretch » donne à la colonne toute la hauteur du formulaire :
   sans cela, la carte collante n'a aucune course et disparaît en haut. */
.recap { min-width: 0; align-self: stretch; }

.recap-carte {
  position: sticky;
  top: 106px;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border: 1px solid rgba(226, 121, 154, .3);
  border-radius: var(--rayon);
  background: var(--rose-voile);
  box-shadow: var(--ombre);
}

.recap-liste {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .7rem;
}

.recap-liste li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed rgba(47, 42, 44, .18);
  font-size: .95rem;
}

.recap-liste li:last-child { border-bottom: 0; padding-bottom: 0; }

.recap-liste b {
  font-weight: 600;
  color: var(--encre);
}

.recap-liste span {
  flex: none;
  color: var(--encre-douce);
  font-size: .88rem;
}

.recap-vide {
  display: block !important;
  border-bottom: 0 !important;
  color: var(--encre-douce);
  font-style: italic;
  font-family: var(--titre);
  font-size: 1rem !important;
  line-height: 1.5;
}

.recap-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(47, 42, 44, .16);
}

.recap-total span {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--prune);
}

.recap-total strong {
  font-family: var(--titre);
  font-size: 2rem;
  font-weight: 600;
  color: var(--or-texte);
  white-space: nowrap;
}

.recap-note {
  margin-top: 1rem;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--encre-douce);
}

.lien-bouton {
  padding: 0;
  color: var(--rose-texte);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lien-bouton:hover { color: var(--encre); }

/* ---- Envoi en fin de formulaire ----------------------------------------- */

.envoi-final {
  padding: clamp(1.8rem, 4vw, 2.4rem);
  border: 1px solid rgba(226, 121, 154, .32);
  border-radius: var(--rayon);
  background: var(--rose-voile);
  text-align: center;
}

.envoi-final-titre {
  margin: 0 0 1.2rem;
  font-family: var(--titre);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--encre);
}

.envoi-final-total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .9rem;
  margin: 0 0 1.4rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(47, 42, 44, .14);
}

.envoi-final-total span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.envoi-final-total strong {
  font-family: var(--titre);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--or-texte);
  white-space: nowrap;
}

.envoi-bouton {
  width: 100%;
  max-width: 24rem;
  padding-block: 1.15rem;
}

.envoi-final-secours {
  margin: 1.4rem auto 0;
  max-width: 30rem;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--encre-douce);
}

.envoi-final-note {
  margin: 1.2rem auto 0;
  max-width: 30rem;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--encre-douce);
}

/* ---- Confirmation ------------------------------------------------------- */

.confirmation-carte {
  max-width: 34rem;
  margin: clamp(2rem, 6vw, 4rem) auto;
  padding: clamp(2.2rem, 5vw, 3.2rem);
  border: 1px solid rgba(226, 121, 154, .3);
  border-radius: var(--rayon);
  background: var(--rose-voile);
  text-align: center;
  box-shadow: var(--ombre);
}

.confirmation-icone {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--rose-fond);
  color: var(--blanc);
  font-size: 1.5rem;
}

.confirmation-carte h3 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin-bottom: .9rem;
}

.confirmation-carte p { color: var(--encre-douce); }
.confirmation-carte .cta-actions { margin-top: 2rem; }

@media (max-width: 900px) {
  .commande { grid-template-columns: 1fr; }
  .recap { order: 2; }
  .recap-carte { position: static; }
}

/* --------------------------------------------------------------------------
   15. Page de conditions
   -------------------------------------------------------------------------- */

.page--texte {
  width: min(100% - 2.5rem, 48rem);
  margin-inline: auto;
}

.regle + .regle {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--trait);
}

.regle h3 {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  margin-bottom: 1.1rem;
}

.regle-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--rose-poudre);
  color: var(--rose-fonce);
  font-family: var(--corps);
  font-size: .8rem;
  font-weight: 500;
}

.regle p { color: var(--encre-douce); }
.regle strong { color: var(--encre); font-weight: 600; }
.regle a { color: var(--rose-texte); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.regle a:hover { color: var(--encre); }

.regle-note {
  margin-top: 1.2rem;
  padding: .9rem 1.2rem;
  border-left: 2px solid var(--rose-poudre);
  font-size: .92rem;
}

/* Barème d'annulation */
.bareme {
  margin: 1.5rem 0;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
}

.bareme-ligne {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.05rem 1.4rem;
  background: rgba(255, 255, 255, .6);
}

.bareme-ligne + .bareme-ligne { border-top: 1px solid var(--trait); }

.bareme-quand {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rose-texte);
  padding-top: .18rem;
}

.bareme-quoi { font-size: 1rem; color: var(--encre-douce); }

.encart-alerte {
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--rayon);
  background: #fbe6e6;
  border: 1px solid #eec2c2;
  border-left: 3px solid #b83a3a;
  font-size: .96rem;
  line-height: 1.7;
  color: #7d3232;
}

.encart-alerte strong { color: #6b2828; font-weight: 700; }

.regle-fin {
  margin-top: 3.5rem;
  padding: clamp(2.2rem, 5vw, 3rem);
  border-radius: var(--rayon);
  background: var(--rose-voile);
  border: 1px solid rgba(226, 121, 154, .28);
  text-align: center;
}

.regle-fin .cta-actions { margin-top: 2rem; }

.maj {
  margin-top: 2.5rem;
  text-align: center;
  font-size: .85rem;
  color: var(--encre-douce);
}

@media (max-width: 560px) {
  .bareme-ligne { grid-template-columns: 1fr; gap: .35rem; }
}

/* --------------------------------------------------------------------------
   16. Formulaire d'avis
   -------------------------------------------------------------------------- */

.formulaire-avis {
  display: grid;
  gap: 1.4rem;
}

/* ---- Les cinq étoiles ----------------------------------------------------
   Cinq boutons radio, pas des boutons maison : le clavier les parcourt aux
   flèches et un lecteur d'écran annonce « 4 étoiles sur 5 », gratuitement.

   Le code va de 5 à 1 et l'affichage est retourné par row-reverse. C'est ce
   retournement qui permet d'allumer les étoiles à GAUCHE de celle qu'on
   survole : en CSS on ne sait désigner que ce qui SUIT dans le code, jamais
   ce qui précède. */

.note-etoiles {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: .15rem;
  margin-top: 1.5rem;
}

.note-etoiles input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.note-etoiles label {
  padding: .1rem .25rem;
  border-radius: 10px;
  color: var(--rose-poudre);
  font-size: clamp(2.1rem, 6vw, 2.7rem);
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease;
}

/* Le libellé écrit reste lisible par les lecteurs d'écran, invisible à l'œil */
.note-libelle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Étoiles allumées : celle qui est cochée, et toutes les moins hautes */
.note-etoiles input:checked + label,
.note-etoiles input:checked + label ~ label { color: var(--or); }

/* Au survol, l'aperçu prend le pas sur la note déjà cochée */
.note-etoiles:hover input + label { color: var(--rose-poudre); }
.note-etoiles label:hover,
.note-etoiles label:hover ~ label { color: var(--or); }
.note-etoiles label:hover { transform: scale(1.12); }

/* Le clavier doit voir où il est : les radios sont masquées, donc l'anneau
   de focus se dessine sur l'étoile. */
.note-etoiles input:focus-visible + label {
  outline: 2px solid var(--rose-fonce);
  outline-offset: 3px;
}

.note-choisie {
  margin: .7rem 0 0;
  font-size: .88rem;
  font-weight: 500;
  color: var(--encre-douce);
}

/* Le piège à robots : hors de l'écran, hors du parcours au clavier, et
   ignoré des lecteurs d'écran. Une vraie visiteuse ne le rencontre jamais. */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .note-etoiles label { transition: none; }
  .note-etoiles label:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   17. Apparitions au défilement
   -------------------------------------------------------------------------- */

.revele {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1),
              transform .9s cubic-bezier(.22, .61, .36, 1);
}

.revele.est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revele { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   18. Adaptations
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero .page,
  .apropos .page { grid-template-columns: 1fr; }

  .hero { text-align: center; padding-top: 7.5rem; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-texte .filet { margin-inline: auto; }
  .hero-atouts { justify-content: center; }

  .hero-visuel {
    justify-self: center;
    width: min(100%, 26rem);
    margin-top: 1rem;
  }

  .apropos-photos { max-width: 30rem; margin-inline: auto; }
  .chiffres { justify-content: center; text-align: center; }
  .apropos { text-align: center; }
  .apropos-texte { text-align: left; }

  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > :first-child { grid-column: 1 / -1; }
}

/* Six entrées de menu : on bascule tôt pour éviter le débordement */
/* Menu replié en burger.
   La bascule n'est plus liée à une largeur d'écran fixe : le script mesure
   la place réellement occupée et pose « nav-compacte » dès que la barre
   déborde. Cela couvre aussi le texte agrandi, qui élargit le menu sans
   que l'écran change de taille. */

body.nav-compacte .burger { display: grid; position: relative; z-index: 2; }

body.nav-compacte .nav {
  position: fixed;
  inset: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 1.7rem;
  height: 100dvh;
  padding: 5rem 2rem;
  background: var(--creme);
  transform: translateY(-100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

body.nav-compacte .nav.est-ouverte { transform: none; }
body.nav-compacte .nav a { font-size: .95rem; letter-spacing: .22em; }
body.nav-compacte .nav .btn { margin-top: .6rem; }

body.nav-compacte .burger.est-ouvert span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-compacte .burger.est-ouvert span:nth-child(2) { opacity: 0; }
body.nav-compacte .burger.est-ouvert span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

body.menu-ouvert { overflow: hidden; }

/* Un libellé de menu ne doit jamais se couper en deux lignes */
.nav a { white-space: nowrap; }

@media (max-width: 620px) {
  .apropos-photos img:first-child { margin-top: 0; }
  .pied-grille { grid-template-columns: 1fr; }
  .grille-galerie { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
  .visionneuse-nav { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------------------
   19. Accessibilité : évitement et réglage du texte
   -------------------------------------------------------------------------- */

/* Premier élément atteint au clavier : saute la navigation */
.saut-contenu {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -120%);
  padding: .9rem 1.7rem;
  border-radius: 0 0 12px 12px;
  background: var(--rose-fonce);
  color: var(--blanc);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  transition: transform var(--transition);
}

.saut-contenu:focus {
  transform: translate(-50%, 0);
  outline: 2px solid var(--blanc);
  outline-offset: -5px;
}

#contenu:focus { outline: none; }

/* ---- Réglage de la taille du texte ---- */

.reglage {
  position: fixed;
  right: clamp(.8rem, 2vw, 1.6rem);
  bottom: clamp(.8rem, 2vw, 1.6rem);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}

.reglage-bouton {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--rose-fonce);
  color: var(--blanc);
  box-shadow: 0 10px 26px -12px rgba(47, 42, 44, .7);
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--transition), transform var(--transition);
}

.reglage-bouton:hover { background: var(--rose); transform: translateY(-2px); }
.reglage-bouton:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.reglage-bouton .grand { font-size: 1.32rem; }
.reglage-bouton .petit { font-size: .82rem; }

.reglage-panneau {
  width: min(17rem, calc(100vw - 2rem));
  padding: 1.2rem 1.3rem 1.3rem;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: var(--blanc);
  box-shadow: 0 20px 50px -22px rgba(47, 42, 44, .55);
}

.reglage-titre {
  margin: 0 0 .85rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.reglage-choix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
}

.reglage-choix button {
  padding: .6rem .2rem;
  border: 1px solid var(--trait);
  border-radius: 9px;
  background: var(--creme);
  font-family: var(--titre);
  font-weight: 600;
  color: var(--encre);
  line-height: 1;
  transition: all var(--transition);
}

.reglage-choix button:nth-child(1) { font-size: .82rem; }
.reglage-choix button:nth-child(2) { font-size: .98rem; }
.reglage-choix button:nth-child(3) { font-size: 1.16rem; }
.reglage-choix button:nth-child(4) { font-size: 1.36rem; }

.reglage-choix button:hover { border-color: var(--rose); }

.reglage-choix button[aria-pressed="true"] {
  background: var(--rose-fonce);
  border-color: var(--rose-fonce);
  color: var(--blanc);
}

.reglage-choix button:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }

.reglage-astuce {
  margin: .9rem 0 0;
  font-size: .74rem;
  line-height: 1.55;
  color: var(--encre-douce);
}

/* Le panneau ne gêne pas l'impression du bon de commande */
@media print { .reglage, .saut-contenu { display: none !important; } }
