/* =========================================================
   Délices Samira
   Palette tirée de ses affiches : ganache, framboise, glaçage, caramel.
   ========================================================= */

/* Polices servies par le site (Shrikhand et Nunito, licence SIL OFL), jeu latin */
@font-face {
  font-family: 'Shrikhand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../polices/shrikhand.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../polices/nunito.woff2) format('woff2');
}

:root {
  --ganache: #2A140E;
  --ganache-nuit: #1D0D08;
  --cacao: #3A1C13;
  /* Palette resserrée le 2026-10-07 (Ismael : « trop de couleurs, je veux qu'il soit pro ») : chocolat,
     crème et un seul accent bronze. Les noms d'origine sont gardés : « framboise » est devenu l'accent bronze,
     « glaçage » le fond crème, « caramel » le doré sur fond sombre. */
  --framboise: #94652E;
  --framboise-fonce: #6F4A1E;
  --glacage: #F4EDE3;
  --lait: #FFFCFA;
  --caramel: #D6B06D;
  --sucre: #F3E3DA;
  --encre-douce: #6E4A3C;

  --f-titre: 'Shrikhand', 'Georgia', serif;
  --f-texte: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --rayon: 14px;
  --rayon-petit: 10px;
  --ombre: 0 1px 0 rgba(42, 20, 14, .06), 0 16px 34px -20px rgba(42, 20, 14, .55);
  --entete: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 12px);
}

body {
  margin: 0;
  background: var(--ganache);
  color: var(--ganache);
  font-family: var(--f-texte);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { flex-shrink: 0; }
.ico-trait { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 3px solid var(--framboise);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .tiramisu :focus-visible, .contact :focus-visible, .entete :focus-visible, .pied :focus-visible {
  outline-color: var(--caramel);
}

.conteneur {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.evitement {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--caramel); color: var(--ganache);
  padding: 10px 14px; border-radius: var(--rayon-petit); font-weight: 800;
}
.evitement:focus { top: 12px; }

/* ---------- Texte commun ---------- */

.surtitre {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--caramel);
}
.surtitre--framboise { color: var(--framboise); }
.surtitre > span { white-space: nowrap; }

.titre-section {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1.06;
  color: var(--ganache);
  text-wrap: balance;
}
.titre-section--clair { color: var(--lait); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.35em;
  border: 2px solid transparent;
  border-radius: var(--rayon-petit);
  font-family: var(--f-texte);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.bouton:active { transform: translateY(1px); }
.bouton svg { width: 1.25em; height: 1.25em; }

.bouton--framboise { background: var(--framboise); color: #fff; }
.bouton--framboise:hover { background: var(--framboise-fonce); }

.bouton--clair, .bouton--contour { border-color: rgba(243, 227, 218, .5); color: var(--sucre); }
.bouton--clair:hover, .bouton--contour:hover { background: var(--sucre); color: var(--ganache); border-color: var(--sucre); }

.bouton--contour-fonce { border-color: rgba(42, 20, 14, .25); color: var(--ganache); }
.bouton--contour-fonce:hover { border-color: var(--ganache); }

.bouton--plein-largeur { width: 100%; }

/* ---------- Étiquette de prix (comme sur ses affiches) ---------- */

.etiquette {
  display: inline-block;
  padding: .28em .62em .34em;
  border-radius: 6px;
  background: var(--framboise);
  color: #fff;
  font-family: var(--f-titre);
  font-size: 1.05rem;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(-2.5deg);
  font-variant-numeric: tabular-nums;
}
.etiquette--grande { font-size: 1.65rem; }
.etiquette--demande {
  background: transparent;
  color: var(--framboise);
  border: 2px dashed currentColor;
  font-family: var(--f-texte);
  font-weight: 800;
  font-size: .82rem;
  transform: none;
}

/* =========================================================
   En-tête
   ========================================================= */

.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--entete);
  color: var(--sucre);
  transition: background-color .3s, box-shadow .3s;
}
.entete--pleine {
  background: rgba(29, 13, 8, .94);
  box-shadow: 0 1px 0 rgba(243, 227, 218, .08);
}
.entete__barre {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  text-decoration: none;
  color: var(--lait);
}
.marque__toque { width: 34px; height: 28px; color: var(--caramel); }
.marque__nom {
  font-family: var(--f-titre);
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}
.marque__nom em { font-style: normal; color: var(--caramel); }

.entete__nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}
.entete__nav a {
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  color: var(--sucre);
  padding: 6px 0;
  background: linear-gradient(var(--caramel), var(--caramel)) left bottom / 0 2px no-repeat;
  transition: background-size .25s, color .2s;
}
.entete__nav a:hover { color: var(--lait); background-size: 100% 2px; }

.bouton-panier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 9px 12px;
  border: 0;
  border-radius: var(--rayon-petit);
  background: var(--framboise);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  transition: background-color .2s;
}
.bouton-panier:hover { background: var(--framboise-fonce); }
.bouton-panier svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bouton-panier__nb {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 6px;
  background: #fff; color: var(--framboise);
  font-size: .8rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.bouton-panier.secoue { animation: secoue .5s; }
@keyframes secoue {
  0%, 100% { transform: none; }
  25% { transform: translateY(-3px) rotate(-4deg); }
  55% { transform: translateY(1px) rotate(3deg); }
}

@media (max-width: 899px) {
  .entete__nav { display: none; }
  .bouton-panier { margin-left: auto; }
}
@media (max-width: 420px) {
  .bouton-panier__texte { display: none; }
  .marque__nom { font-size: 1.2rem; }
}

/* =========================================================
   Accueil : la scène 3D du gâteau
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--sucre);
  background:
    radial-gradient(120% 90% at 70% 45%, #3a1c12 0%, var(--ganache) 55%, var(--ganache-nuit) 100%);
  overflow: hidden;
  isolation: isolate;
}
/* grain de cacao */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .8 0 0 0 0 .7 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero--3d .hero__scene { opacity: 1; }

.hero__haut, .hero__bas {
  position: relative;
  z-index: 2;
}
.hero__haut { padding-top: calc(var(--entete) + clamp(20px, 4vh, 72px)); }
.hero__bas { padding-bottom: 44px; }

.hero__titre {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: clamp(2.55rem, 1.4rem + 4.4vw, 5.3rem);
  line-height: 1.02;
  color: var(--lait);
}
.ligne {
  display: block;
  overflow: hidden;
  padding: .1em .12em .1em 0;
  margin: -.1em 0 -.06em;
}
.ligne > span { display: inline-block; }
.ligne--or { color: var(--caramel); }

.hero__texte {
  max-width: 36ch;
  margin: 0 0 28px;
  font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem);
  color: var(--sucre);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Zone où se pose le gâteau. La scène 3D se cadre sur elle. */
.hero__zone {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  height: clamp(300px, 43svh, 440px);
  margin: 4px 0 6px;
  pointer-events: none;
}
.hero__repli {
  display: none;
  position: absolute;
  inset: 6% 4%;
  width: 92%;
  height: 88%;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
          mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
.hero--sans-3d .hero__repli { display: block; }

.tampon {
  position: absolute;
  right: 4px;
  top: -6px;
  width: clamp(86px, 9vw, 118px);
  z-index: 2;
}
.tampon svg { display: block; width: 100%; height: auto; overflow: visible; }
.tampon__fond { fill: var(--caramel); }
.tampon__trait { fill: none; stroke: var(--ganache); stroke-width: 1.4; stroke-dasharray: 3 3; }
.tampon__texte {
  font-family: var(--f-texte);
  font-weight: 900;
  font-size: 11.4px;
  letter-spacing: .14em;
  fill: var(--ganache);
  transform-box: view-box;
  transform-origin: center;
  animation: tourne 26s linear infinite;
}
.tampon__coeur { fill: var(--framboise); }
@keyframes tourne { to { transform: rotate(360deg); } }

.hero__indice {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(243, 227, 218, .75);
  white-space: nowrap;
}
.hero__indice svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--caramel); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  animation: rebond 1.8s ease-in-out infinite;
}
@keyframes rebond { 50% { transform: translateY(4px); } }

@media (max-width: 599px) {
  .hero .surtitre { letter-spacing: .1em; font-size: .72rem; }
  .hero__actions .bouton { flex: 1 1 100%; }
}

/* Ordinateur : le texte dans la moitié gauche de la colonne, la 3D dans la moitié droite.
   La toile 3D commence au milieu : un objet ne peut jamais passer sous le texte,
   et son bord gauche s'efface en fondu au lieu de couper net. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero { justify-content: center; }
  /* jamais collé ni caché sous l'en-tête, même si le contenu est plus haut que l'écran */
  .hero__haut { padding-top: calc(var(--entete) + 20px); }
  .hero__bas { padding-bottom: 64px; }
  .hero__titre { margin-bottom: 22px; font-size: clamp(2.6rem, 1rem + 3.4vw, 4.9rem); }
  .hero__haut > *, .hero__bas > * { max-width: min(540px, calc(50% - 32px)); }
  .hero__indice { display: flex; }
  .hero__scene {
    left: calc(50% - 10px);
    /* largeur explicite : en « auto », une toile prend la taille de son image,
       que la scène redimensionne à chaque fois, et elle grandit sans fin sur un écran zoomé */
    width: calc(50% + 10px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px);
            mask-image: linear-gradient(90deg, transparent, #000 60px);
  }
  .hero__zone {
    position: absolute;
    left: calc(50% + 30px);
    right: max(16px, calc((100% - 1180px) / 2 - 40px));
    top: calc(var(--entete) + 2vh);
    bottom: 7vh;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
  }
  .tampon { left: auto; right: 0; top: auto; bottom: 2%; }
}

/* En attendant la 3D : la toque respire au milieu de la zone */
.hero__chargement {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 54px;
  margin: -27px 0 0 -32px;
  color: var(--caramel);
  opacity: .75;
  animation: respire 1.4s ease-in-out infinite;
  transition: opacity .5s;
  pointer-events: none;
}
.hero--3d .hero__chargement, .hero--sans-3d .hero__chargement { opacity: 0; animation: none; }
@keyframes respire { 50% { transform: translateY(-6px) scale(1.06); opacity: .45; } }

/* =========================================================
   Coulures de ganache entre les sections (dessinées par main.js)
   ========================================================= */

[data-coulure] { position: relative; }
.coulure {
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 120px;
  z-index: 3;
  pointer-events: none;
}
.coulure svg { display: block; width: 100%; height: 100%; overflow: visible; }
.coulure .goutte { transform-box: fill-box; transform-origin: 50% 0; }

/* =========================================================
   Accueil : nos délices, une carte par famille
   ========================================================= */

.delices {
  background: var(--lait);
  padding: clamp(118px, 12vw, 168px) 0 clamp(56px, 7vw, 96px);
}
.delices__grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.delice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  border-radius: var(--rayon);
  overflow: hidden;
  isolation: isolate;
  color: var(--lait);
  text-decoration: none;
  background: var(--cacao);
  box-shadow: var(--ombre);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.delice.incline { transition: transform .08s linear; }
.delice__photo { position: absolute; inset: 0; z-index: -2; }
.delice__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.delice:hover .delice__photo img { transform: scale(1.06); }
.delice::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(29, 13, 8, 0) 38%, rgba(29, 13, 8, .55) 62%, rgba(29, 13, 8, .92) 100%);
}
.delice__prix { position: absolute; top: 14px; left: 14px; font-size: 1rem; }
.delice__corps { position: relative; display: grid; gap: 6px; padding: 18px 18px 20px; }
.delice__nom { font-family: var(--f-titre); font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); line-height: 1.1; padding-right: 28px; }
.delice__texte { font-size: .93rem; line-height: 1.4; color: var(--sucre); }
.delice__fleche { position: absolute; right: 18px; top: 18px; font-size: 1.3rem; font-weight: 900; color: var(--caramel); transition: transform .2s; }
.delice:hover .delice__fleche { transform: translateX(4px); }
.delices__livraison {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: var(--rayon);
  background: var(--glacage);
  font-weight: 800;
}
.delices__livraison svg { width: 32px; height: 20px; color: var(--framboise); --fond-camion: var(--glacage); }
.delices__livraison a { margin-left: auto; color: var(--framboise-fonce); text-underline-offset: 4px; }

@media (max-width: 899px) {
  .delices__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .delices__grille { gap: 12px; }
  .delice { aspect-ratio: 4 / 5; }
  .delice__texte { display: none; }
  .delice__corps { padding: 12px 12px 14px; }
  .delice__nom { font-size: 1.2rem; padding-right: 0; }
  .delice__fleche { display: none; }
  .delice__prix { top: 10px; left: 10px; font-size: .9rem; }
  .delices__livraison { padding: 14px 16px; }
  .delices__livraison a { margin-left: 0; }
}

.section-tete { max-width: 660px; margin-bottom: 26px; }
.section-tete__texte { margin: 14px 0 0; color: var(--encre-douce); font-size: 1.05rem; }

.grille-carte {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.produit {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--rayon);
  background: #fff;
  color: var(--ganache);
  box-shadow: var(--ombre);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.produit[hidden] { display: none; }
.produit.incline { transition: transform .08s linear, box-shadow .35s; }
.produit:hover { box-shadow: 0 1px 0 rgba(42, 20, 14, .06), 0 26px 44px -22px rgba(42, 20, 14, .6); }
/* reflet qui suit la souris */
.produit::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .22), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.produit.incline::after { opacity: 1; }

.produit__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1e3dc;
}
.produit__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.produit:hover .produit__photo img { transform: scale(1.06); }

.produit__corps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
}
.produit__nom {
  margin: 0;
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.2;
}
.produit__detail {
  font-weight: 800;
  font-size: .8rem;
  color: var(--framboise);
  margin-left: 6px;
  white-space: nowrap;
}
.produit__desc { margin: 0; color: var(--encre-douce); font-size: .93rem; line-height: 1.45; }
.produit__pied {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ajouter {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .58em .9em;
  border: 0;
  border-radius: var(--rayon-petit);
  background: var(--ganache);
  color: var(--lait);
  font-weight: 800;
  font-size: .92rem;
  transition: background-color .2s;
}
.ajouter:hover { background: #4a2418; }
.ajouter svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

.quantite {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ganache);
  border-radius: var(--rayon-petit);
  overflow: hidden;
}
.quantite button {
  width: 36px; height: 34px;
  display: grid; place-items: center;
  border: 0; background: transparent;
  font-size: 1.2rem; font-weight: 900; line-height: 1;
}
.quantite button:hover { background: var(--glacage); }
.quantite output {
  min-width: 26px;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 599px) {
  .grille-carte { grid-template-columns: 1fr; gap: 14px; }
  .produit { flex-direction: row; }
  .produit__photo { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }
  .produit__corps { padding: 13px 13px 14px; min-width: 0; }
  .produit__nom { font-size: 1.02rem; }
  .produit__desc { font-size: .87rem; }
  .produit__pied { flex-wrap: wrap; padding-top: 8px; }
  .etiquette { font-size: .98rem; }
}

/* =========================================================
   Accueil : le tiramisu et sa verrine en 3D
   ========================================================= */

.tiramisu {
  background: var(--ganache);
  color: var(--sucre);
  padding: clamp(120px, 12vw, 170px) 0 clamp(80px, 9vw, 120px);
  overflow: hidden;
}
.tiramisu__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.tiramisu__scene {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 640px;
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.tiramisu__scene:active { cursor: grabbing; }
.tiramisu__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.tiramisu--3d .tiramisu__canvas { opacity: 1; }
/* pendant le chargement : la toque, jamais la photo */
.tiramisu__chargement {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 54px;
  margin: -27px 0 0 -32px;
  color: var(--caramel);
  opacity: .75;
  animation: respire 1.4s ease-in-out infinite;
  transition: opacity .5s;
  pointer-events: none;
}
.tiramisu--3d .tiramisu__chargement, .tiramisu--sans-3d .tiramisu__chargement { opacity: 0; animation: none; }
/* la photo seulement si le téléphone ne sait pas afficher de 3D */
.tiramisu__repli {
  display: none;
  position: absolute; inset: 8%;
  width: 84%; height: 84%;
  object-fit: cover;
  border-radius: var(--rayon);
}
.tiramisu--sans-3d .tiramisu__repli { display: block; }
.tiramisu__aide {
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  margin: 0;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  color: rgba(243, 227, 218, .6);
  white-space: nowrap;
  display: none;
}
.tiramisu--3d .tiramisu__aide { display: block; }

.tiramisu__texte .titre-section { margin-bottom: 26px; }
.tiramisu .saveurs { margin-bottom: 22px; }
.saveur-detail__desc {
  margin: 0 0 22px;
  max-width: 34ch;
  min-height: 3.1em;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--sucre);
}
.saveur-detail__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }

@media (max-width: 799px) {
  .tiramisu__grille { grid-template-columns: 1fr; }
  .tiramisu__scene { max-width: 460px; margin: 0 auto -10px; }
}

/* ---------- Boutons de choix (saveur, cake) ---------- */

.saveurs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.saveur {
  padding: .8em 1.15em;
  border: 2px solid rgba(243, 227, 218, .25);
  border-radius: var(--rayon-petit);
  background: transparent;
  color: var(--sucre);
  font-weight: 800;
  font-size: 1rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.saveur:hover { border-color: rgba(243, 227, 218, .6); }
.saveur[aria-selected="true"] { background: var(--caramel); border-color: var(--caramel); color: var(--ganache); }

/* =========================================================
   Anniversaire
   ========================================================= */

.anniversaire {
  background: var(--glacage);
  padding: clamp(124px, 12vw, 170px) 0 clamp(40px, 5vw, 64px);
}
.anniversaire__grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.anniversaire__photo {
  margin: 0;
  aspect-ratio: 652 / 748;
  transform: rotate(-2deg);
  -webkit-mask: url(../img/feston.svg) center / 100% 100% no-repeat;
          mask: url(../img/feston.svg) center / 100% 100% no-repeat;
  background: #fff;
}
.anniversaire__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: 72% 80%;
}

.anniversaire__visuel { position: relative; }
.anniversaire__prix {
  position: absolute;
  left: -2%;
  top: 5%;
  margin: 0;
}
.anniversaire__prix .etiquette { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); transform: rotate(-7deg); }
.anniversaire__texte .titre-section { margin-bottom: 10px; }
.anniversaire__accroche { margin: 0 0 22px; font-size: 1.15rem; font-weight: 700; color: var(--encre-douce); }

.atouts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  font-weight: 800;
}
.atouts li { display: flex; align-items: center; gap: 9px; }
.atouts svg { width: 18px; height: 18px; color: var(--framboise); }

.formulaire-gateau {
  padding: 20px;
  border-radius: var(--rayon);
  background: #fff;
  box-shadow: var(--ombre);
}
.formulaire-gateau__titre { margin: 0 0 14px; font-weight: 900; font-size: 1.05rem; }

.champs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.champ--large { grid-column: 1 / -1; }

.champ { display: grid; gap: 6px; }
.champ > span { font-weight: 800; font-size: .85rem; }
.champ em { font-style: normal; font-weight: 600; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: .72em .8em;
  border: 2px solid rgba(42, 20, 14, .14);
  border-radius: var(--rayon-petit);
  background: #fff;
  color: var(--ganache);
  font: 600 1rem/1.3 var(--f-texte);
  transition: border-color .2s;
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--framboise); }
.champ input[aria-invalid="true"] { border-color: var(--framboise); background: #F8F2EA; }

/* Accueil : le gâteau d'anniversaire en version courte, le formulaire est sur la page Gâteaux */
.anniversaire--court { padding-bottom: clamp(56px, 7vw, 96px); }
.anniversaire--court .anniversaire__accroche { max-width: 34ch; }

@media (max-width: 899px) {
  .anniversaire__grille { grid-template-columns: 1fr; }
  .anniversaire__visuel { max-width: 400px; width: 82%; margin: 0 auto; }
}
@media (max-width: 599px) {
  .champs { grid-template-columns: 1fr 1fr; }
  .champs .champ:first-child { grid-column: 1 / -1; }
}

/* =========================================================
   Livraison et contact
   ========================================================= */

.contact {
  background: var(--ganache);
  color: var(--sucre);
  padding: clamp(80px, 9vw, 120px) 0;
}
.contact--page {
  padding-top: calc(var(--entete) + clamp(28px, 6vw, 72px));
  padding-bottom: clamp(56px, 8vw, 110px);
  background: radial-gradient(120% 90% at 70% 30%, #3a1c12 0%, var(--ganache) 55%, var(--ganache-nuit) 100%);
}
.contact__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.contact__titre { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); }
.contact__adresse {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 0;
  font-weight: 800; font-size: 1.05rem;
}
.contact__adresse svg { width: 24px; height: 24px; fill: none; stroke: var(--caramel); stroke-width: 2; }

.contact__carte {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--rayon);
  background: var(--cacao);
  border: 1px solid rgba(243, 227, 218, .1);
}
.contact__libelle { margin: 0 0 6px; font-weight: 800; color: rgba(243, 227, 218, .75); }
.contact__numero {
  display: block;
  margin-bottom: 20px;
  font-family: var(--f-titre);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.8rem);
  line-height: 1.1;
  color: var(--caramel);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.contact__numero:hover { color: var(--lait); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__actions .bouton { flex: 1 1 auto; }

@media (max-width: 799px) {
  .contact__grille { grid-template-columns: 1fr; }
}

/* ---------- Livraison : comment commander ---------- */

.etapes {
  background: var(--lait);
  padding: clamp(118px, 12vw, 168px) 0 clamp(56px, 7vw, 96px);
}
.etapes__liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1099px) { .etapes__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.etape {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--rayon);
  background: #fff;
  box-shadow: var(--ombre);
}
.etape__num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--framboise);
  color: #fff;
  font-family: var(--f-titre);
  font-size: 1.35rem;
}
.etape h3 { margin: 0 0 6px; font-family: var(--f-titre); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.etape p { margin: 0; color: var(--encre-douce); }
.etape p a { color: var(--framboise-fonce); font-weight: 800; white-space: nowrap; }
.etape__familles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.etape__familles a {
  padding: .4em .75em;
  border: 2px solid rgba(42, 20, 14, .14);
  border-radius: var(--rayon-petit);
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
}
.etape__familles a:hover { border-color: var(--ganache); }
.etapes__anniv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: var(--rayon);
  background: var(--glacage);
  font-weight: 800;
}
.etapes__anniv svg { width: 22px; height: 22px; color: var(--framboise); }
.etapes__anniv a { margin-left: auto; color: var(--framboise-fonce); text-underline-offset: 4px; }
@media (max-width: 799px) {
  .etapes__liste { grid-template-columns: 1fr; }
  .etapes__anniv a { margin-left: 0; }
}

/* =========================================================
   Pied de page
   ========================================================= */

.pied {
  background: var(--ganache-nuit);
  color: rgba(243, 227, 218, .72);
  padding: clamp(112px, 11vw, 150px) 0 calc(24px + env(safe-area-inset-bottom));
}
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px clamp(24px, 4vw, 56px);
  align-items: start;
}
.marque--pied { text-decoration: none; }
.marque--pied .marque__nom { font-size: 1.6rem; }
.pied__devise { margin: 12px 0 0; max-width: 28ch; font-weight: 800; color: var(--sucre); }
.pied__adresse { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .95rem; }
.pied__adresse svg { width: 18px; height: 18px; fill: none; stroke: var(--caramel); stroke-width: 2; }
.pied__titre {
  margin: 6px 0 12px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--caramel);
}
.pied__colonne ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pied__colonne a { color: var(--sucre); font-weight: 700; text-decoration: none; }
.pied__colonne ul a:hover { color: var(--caramel); }
.pied__numero {
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-titre);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--caramel) !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pied .pied__whatsapp { padding: .75em 1.1em; font-size: .95rem; color: #fff; }
.pied__livraison { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .9rem; font-weight: 700; }
.pied__veille { margin: 6px 0 0; font-size: .85rem; opacity: .8; }
.pied__livraison svg { width: 26px; height: 16px; color: var(--caramel); --fond-camion: var(--ganache-nuit); }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(243, 227, 218, .12);
  font-size: .85rem;
}
.pied__bas p { margin: 0; }
.pied__bas a { color: var(--sucre); }

@media (max-width: 899px) {
  .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__marque, .pied__commander { grid-column: 1 / -1; }
  .pied__commander {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 16px;
    padding: 18px;
    border-radius: var(--rayon);
    background: var(--cacao);
  }
  .pied__commander .pied__titre { grid-column: 1 / -1; margin-top: 0; }
  .pied__numero { margin: 0; }
  .pied .pied__whatsapp { justify-self: end; }
  .pied__livraison { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .pied__commander { grid-template-columns: 1fr; }
  .pied .pied__whatsapp { justify-self: stretch; }
}

/* =========================================================
   Barre de commande (téléphone)
   ========================================================= */

.barre-commande {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--framboise);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px -12px rgba(29, 13, 8, .7);
  animation: monte .35s cubic-bezier(.2, .8, .2, 1);
}
.barre-commande[hidden] { display: none; }
.barre-commande__nb { opacity: .85; font-size: .9rem; }
.barre-commande__voir { flex: 1; text-align: center; }
.barre-commande__total { font-variant-numeric: tabular-nums; }
@keyframes monte { from { transform: translateY(120%); } }
@media (min-width: 900px) { .barre-commande { display: none !important; } }
body.a-commande .pied { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

/* =========================================================
   Panier
   ========================================================= */

.panier { position: fixed; inset: 0; z-index: 100; }
.panier[hidden] { display: none; }
.panier__voile {
  position: absolute; inset: 0;
  background: rgba(20, 8, 5, .62);
  opacity: 0;
  transition: opacity .3s;
}
.panier__feuille {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--lait);
  color: var(--ganache);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  outline: none;
}
.panier--ouvert .panier__voile { opacity: 1; }
.panier--ouvert .panier__feuille { transform: none; }

@media (max-width: 599px) {
  .panier__feuille {
    top: auto; left: 0; width: 100%;
    max-height: 92svh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
}

.panier__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(42, 20, 14, .1);
}
.panier__tete h2 { margin: 0; font-family: var(--f-titre); font-weight: 400; font-size: 1.6rem; }
.panier__fermer {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--rayon-petit);
  background: var(--glacage);
}
.panier__fermer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.panier__corps {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
}

.panier__liste { list-style: none; margin: 0; padding: 0; }
.ligne-panier {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  grid-template-areas: "photo nom total" "photo qte qte";
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(42, 20, 14, .14);
}
.ligne-panier img { grid-area: photo; width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.ligne-panier__nom { grid-area: nom; font-weight: 800; line-height: 1.25; }
.ligne-panier__prix { display: block; font-weight: 600; font-size: .85rem; color: var(--encre-douce); }
.ligne-panier__total { grid-area: total; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-panier .quantite { grid-area: qte; justify-self: start; }
.ligne-panier .quantite button { height: 30px; width: 32px; }

.panier__vide { padding: 28px 0 8px; text-align: center; color: var(--encre-douce); }
.panier__vide p { margin: 0 0 14px; font-weight: 700; }
.panier__vide[hidden], .panier__totaux[hidden], .panier__form[hidden] { display: none; }

.panier__totaux { padding: 14px 0 6px; }
.panier__totaux p { display: flex; justify-content: space-between; margin: 0 0 4px; font-weight: 700; color: var(--encre-douce); }
.panier__totaux .panier__total { margin-top: 6px; font-size: 1.25rem; font-weight: 900; color: var(--ganache); }
.panier__note { font-size: .85rem; font-weight: 600 !important; }

.panier__form { display: grid; gap: 12px; padding-top: 10px; }
.panier__erreur { margin: 0; min-height: 0; color: var(--framboise-fonce); font-weight: 800; font-size: .9rem; }
.panier__erreur:empty { display: none; }
.panier__aide { margin: 0; font-size: .85rem; color: var(--encre-douce); text-align: center; }

/* Pastille qui vole vers le panier */
.pastille-vol {
  position: fixed;
  z-index: 120;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--framboise);
  border: 3px solid #fff;
  pointer-events: none;
}

/* =========================================================
   États d'animation (posés seulement si le mouvement est permis)
   ========================================================= */

.anim .hero__titre .ligne > span { transform: translateY(105%); }
.anim .hero .surtitre,
.anim .hero__texte,
.anim .hero__actions { opacity: 0; transform: translateY(18px); }
.anim .tampon { opacity: 0; transform: scale(.6) rotate(-30deg); }
.anim .apparait { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Site à plusieurs pages
   ========================================================= */

/* Menu du téléphone */
.bouton-menu {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border: 2px solid rgba(243, 227, 218, .3);
  border-radius: var(--rayon-petit);
  background: transparent;
  color: var(--sucre);
}
.bouton-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.bouton-menu[aria-expanded="true"] { background: var(--sucre); color: var(--ganache); border-color: var(--sucre); }
@media (max-width: 899px) {
  .bouton-menu { display: grid; margin-left: auto; }
  .bouton-panier { margin-left: 0; }
}

/* Téléphone et tablette : menu à gauche, logo au centre, commande à droite */
.bouton-panier { white-space: nowrap; }
@media (max-width: 899px) {
  .entete__barre { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .bouton-menu { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; }
  .marque { grid-column: 2; grid-row: 1; justify-self: center; }
  .bouton-panier { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
}
@media (max-width: 599px) {
  /* panier carré, de la taille du bouton menu, le nombre en pastille dans le coin */
  .bouton-panier__texte { display: none; }
  .bouton-panier { position: relative; width: 42px; height: 42px; padding: 0; justify-content: center; }
  .bouton-panier__nb {
    position: absolute;
    top: -7px; right: -7px;
    min-width: 21px; height: 21px;
    padding: 0 5px;
    border: 2px solid var(--ganache);
    border-radius: 11px;
    font-size: .72rem;
  }
}
@media (max-width: 360px) {
  .marque { gap: 6px; }
  .marque__toque { width: 26px; height: 22px; }
  .marque__nom { font-size: 1.05rem; }
}
.menu-mobile {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: grid;
  gap: 8px;
  max-height: calc(100svh - var(--entete));
  overflow-y: auto;
  padding: 12px 16px 18px;
  background: var(--ganache-nuit);
  border-top: 1px solid rgba(243, 227, 218, .08);
  box-shadow: 0 24px 30px -12px rgba(0, 0, 0, .55);
}
.menu-mobile[hidden] { display: none; }
/* chaque entrée dans son cadre, toutes de la même hauteur */
.menu-mobile__lien {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(243, 227, 218, .18);
  border-radius: var(--rayon-petit);
  background: rgba(243, 227, 218, .04);
  color: var(--lait);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  transition: background-color .2s, border-color .2s;
}
.menu-mobile__lien::after {
  content: "›";
  margin-left: auto;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(243, 227, 218, .45);
}
.menu-mobile__lien:active { background: rgba(243, 227, 218, .1); }
.menu-mobile__lien img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.menu-mobile__picto {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--cacao);
  color: var(--caramel);
  --fond-camion: var(--cacao);
}
.menu-mobile__picto svg { width: 26px; height: 22px; }
.menu-mobile__lien[aria-current="page"] {
  border-color: var(--caramel);
  background: rgba(233, 174, 69, .12);
  color: var(--caramel);
}
.menu-mobile__lien[aria-current="page"]::after { color: var(--caramel); }
@media (min-width: 900px) { .menu-mobile { display: none !important; } }

.entete__nav { gap: 22px; }
.entete__nav a[aria-current="page"] { color: var(--caramel); background-size: 100% 2px; }

.lien-page {
  display: inline-flex;
  gap: 6px;
  margin-top: 22px;
  font-weight: 800;
  color: var(--caramel);
  text-underline-offset: 4px;
}
.lien-page--fonce { color: var(--framboise-fonce); }

/* Boutons d'achat sur fond chocolat */
.hero .ajouter, .saveur-detail__achat .ajouter { padding: .85em 1.2em; background: var(--framboise); color: #fff; font-size: 1rem; }
.hero .ajouter:hover, .saveur-detail__achat .ajouter:hover { background: var(--framboise-fonce); }
.hero .quantite, .saveur-detail__achat .quantite, .quantite--clair { border-color: var(--sucre); color: var(--sucre); }
.hero .quantite button, .saveur-detail__achat .quantite button, .quantite--clair button { color: var(--sucre); }
.hero .quantite button:hover, .saveur-detail__achat .quantite button:hover, .quantite--clair button:hover { background: rgba(255, 255, 255, .1); }
.bouton:disabled { opacity: .45; cursor: not-allowed; }

/* Reflet des cartes à la souris */
.fiche, .autre { position: relative; }
.fiche::after, .autre::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .18), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.fiche.incline::after, .autre.incline::after { opacity: 1; }

/* ---------- Haut des pages de catégorie ---------- */

.hero--page { display: block; min-height: 0; background: var(--ganache); }
.hero__colle {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 70% 45%, #3a1c12 0%, var(--ganache) 55%, var(--ganache-nuit) 100%);
}
.hero--page::before { display: none; }
.hero__colle::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .8 0 0 0 0 .7 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* Calé en haut et non centré : le titre est à la même place sur toutes les pages catégories.
     Centré, il montait sur Tiramisus et Gâteaux (plus de contenu) et descendait sur Salé et
     Le goûter, et sautait d'une page à l'autre. Calé en haut, il ne passe jamais sous l'en-tête. */
  .hero--page .hero__colle { justify-content: flex-start; }
  .hero--page .hero__haut { padding-top: calc(var(--entete) + clamp(16px, 7vh, 110px)); }
}
/* Écran d'ordinateur peu haut (portable, ou Windows à 150 %) : le haut de page se resserre
   pour tenir entre l'en-tête et le bas de l'écran */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 860px) {
  .hero__haut { padding-top: calc(var(--entete) + 14px); }
  .hero--page .hero__haut { padding-top: calc(var(--entete) + 2.5vh); }
  .hero__titre { font-size: clamp(2.2rem, 7.6vh, 4.9rem); margin-bottom: 12px; }
  .hero__texte { margin-bottom: 16px; font-size: 1rem; }
  .hero__bas { padding-bottom: 24px; }
  .hero__indice { display: none; }
  .hero .ariane { margin-bottom: 8px; }
  .hero .hero__choix .saveurs { margin-bottom: 10px; }
  .hero .hero__choix .saveur { padding: .6em 1em; }
  .hero .choix__desc { min-height: 0; margin-bottom: 12px; font-size: 1rem; }
  .hero__choix .achat { gap: 10px; }
}

.ariane {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: .86rem;
  font-weight: 700;
  color: rgba(243, 227, 218, .7);
}
.ariane a { color: var(--sucre); text-underline-offset: 3px; text-decoration-color: rgba(243, 227, 218, .35); }

.hero__choix { margin: 2px 0 8px; }
.hero__choix .saveurs { margin-bottom: 14px; }
.choix__desc { margin: 0 0 16px; max-width: 36ch; min-height: 3em; font-size: 1.05rem; color: var(--sucre); }
.choix__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.anim .hero .ariane, .anim .hero__choix { opacity: 0; transform: translateY(18px); }

/* pizza, cake, croissants : objets plats, zone moins haute sur téléphone */
@media not all and (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero--plat .hero__zone { height: clamp(220px, 30svh, 300px); }
}

/* étiquettes des couches de la verrine */
.couches { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.couches li {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 34px;
  opacity: 0;
  white-space: nowrap;
  font-weight: 800;
  font-size: .92rem;
  color: var(--lait);
  text-shadow: 0 1px 8px rgba(29, 13, 8, .8);
}
.couches li::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 2px; background: var(--caramel); }
.couches li.a-gauche { padding-left: 0; padding-right: 34px; }
.couches li.a-gauche::before { left: auto; right: 0; }
.couches li:first-child { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
.couches li:first-child.a-gauche { align-items: flex-end; }
.couches b { display: none; color: var(--caramel); }
.couches[data-saveur="kinder"] b[data-pour="kinder"],
.couches[data-saveur="oreo"] b[data-pour="oreo"],
.couches[data-saveur="lotus"] b[data-pour="lotus"],
.couches[data-saveur="nature"] b[data-pour="nature"],
.couches[data-saveur="banane"] b[data-pour="banane"],
.couches[data-saveur="ananas"] b[data-pour="ananas"] { display: inline; }
@media (max-width: 599px) {
  .couches li { padding-left: 20px; font-size: .78rem; }
  .couches li::before { width: 14px; }
  .couches li.a-gauche { padding-right: 20px; }
}

/* ---------- Fiches produits ---------- */

.fiches-section { background: var(--lait); padding: clamp(118px, 12vw, 168px) 0 clamp(72px, 9vw, 120px); }
.fiches { display: grid; gap: clamp(18px, 3vw, 32px); }
.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: var(--rayon);
  background: #fff;
  box-shadow: var(--ombre);
  overflow: hidden;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  scroll-margin-top: calc(var(--entete) + 16px);
}
.fiche.incline { transition: transform .08s linear; }
.fiche--inverse .fiche__photo { order: 2; }
.fiche__photo { position: relative; min-height: 300px; overflow: hidden; background: #f1e3dc; }
.fiche__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche__corps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(22px, 3.5vw, 44px);
}
.fiche__nom { margin: 0; font-family: var(--f-titre); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.08; }
.fiche__detail { font-family: var(--f-texte); font-weight: 800; font-size: .9rem; color: var(--framboise); vertical-align: middle; }
.fiche__desc { margin: 0; max-width: 36ch; color: var(--encre-douce); font-size: 1.08rem; }
.fiche__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 10px; }
.fiche__aide { margin: 2px 0 0; font-weight: 700; color: var(--encre-douce); }
.lien-action {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--framboise-fonce);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 699px) {
  .fiche { grid-template-columns: 1fr; }
  .fiche--inverse .fiche__photo { order: 0; }
  .fiche__photo { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Tiramisus : le plateau ---------- */

.assortiment { background: var(--ganache); color: var(--sucre); padding: clamp(120px, 12vw, 170px) 0 clamp(80px, 9vw, 120px); }
.assortiment__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.assortiment__intro { margin: 18px 0 22px; max-width: 40ch; font-size: 1.08rem; }
.plateaux { display: flex; flex-wrap: wrap; gap: 10px; }
.plateau {
  padding: .7em 1.1em;
  border: 2px solid rgba(243, 227, 218, .3);
  border-radius: var(--rayon-petit);
  background: transparent;
  color: var(--sucre);
  font-weight: 700;
}
.plateau b { margin-right: 4px; font-family: var(--f-titre); font-weight: 400; font-size: 1.2rem; color: var(--caramel); }
.plateau:hover { border-color: var(--caramel); }
.assortiment__carte {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(243, 227, 218, .1);
  border-radius: var(--rayon);
  background: var(--cacao);
}
.assortiment__ligne { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(243, 227, 218, .15); }
.assortiment__nom { font-weight: 800; font-size: 1.1rem; }
.assortiment__total { margin: 10px 0 6px; font-family: var(--f-titre); font-size: 1.4rem; color: var(--caramel); }
.assortiment__confirme { margin: 0; min-height: 1.4em; text-align: center; font-weight: 800; color: var(--caramel); }
@media (max-width: 799px) { .assortiment__grille { grid-template-columns: 1fr; } }

/* ---------- Salé : mini ou grande ---------- */

.comparatif { background: var(--ganache); color: var(--sucre); padding: clamp(120px, 12vw, 170px) 0 clamp(80px, 9vw, 120px); }
.comparatif .section-tete { margin-bottom: 30px; }
.comparatif__grille { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.comparatif__colonne {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--rayon);
  background: #fff;
  color: var(--ganache);
  overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7);
}
.comparatif__photo { aspect-ratio: 16 / 10; overflow: hidden; }
.comparatif__photo img { width: 100%; height: 100%; object-fit: cover; }
.comparatif__nom { margin: 18px 20px 4px; font-family: var(--f-titre); font-weight: 400; font-size: 1.7rem; }
.comparatif__combien { margin: 0 20px; font-weight: 900; color: var(--framboise); }
.comparatif__pour { margin: 6px 20px 0; color: var(--encre-douce); }
.comparatif__pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: auto 20px 20px; padding-top: 16px; }
.comparatif__ou { margin: 0; font-family: var(--f-titre); font-size: 2rem; color: var(--caramel); }
@media (max-width: 699px) {
  .comparatif__grille { grid-template-columns: 1fr; }
  .comparatif__ou { text-align: center; }
}

/* ---------- Croissants : combien ---------- */

.quantites { margin-top: 30px; }
.quantites__titre { margin: 0 0 14px; font-family: var(--f-titre); font-size: 1.5rem; }
.quantites__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quantites__bouton {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 2px solid rgba(42, 20, 14, .14);
  border-radius: var(--rayon);
  background: #fff;
  text-align: left;
  transition: border-color .2s, background-color .2s;
}
.quantites__bouton b { font-size: 1.1rem; font-weight: 900; }
.quantites__bouton span { font-weight: 800; color: var(--framboise); }
.quantites__bouton:hover { border-color: rgba(42, 20, 14, .4); }
.quantites__bouton[aria-pressed="true"] { border-color: var(--framboise); background: #F8F2EA; }
@media (max-width: 599px) { .quantites__liste { grid-template-columns: 1fr 1fr; } }

.suggestions { background: var(--ganache); color: var(--sucre); padding: clamp(120px, 12vw, 170px) 0 clamp(80px, 9vw, 120px); }
.suggestions .section-tete { margin-bottom: 26px; }

/* ---------- Les autres pages ---------- */

.autres-section { background: var(--lait); padding: clamp(118px, 12vw, 160px) 0 clamp(56px, 7vw, 96px); }
.autres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.autre {
  display: flex;
  flex-direction: column;
  border-radius: var(--rayon);
  background: #fff;
  box-shadow: var(--ombre);
  overflow: hidden;
  text-decoration: none;
  color: var(--ganache);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.autre.incline { transition: transform .08s linear; }
.autre__photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f1e3dc; }
.autre__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.autre:hover .autre__photo img { transform: scale(1.06); }
.autre__corps { position: relative; display: grid; gap: 4px; padding: 16px 18px 18px; }
.autre__nom { font-family: var(--f-titre); font-size: 1.45rem; line-height: 1.1; }
.autre__texte { padding-right: 30px; font-size: .95rem; color: var(--encre-douce); }
.autre__fleche { position: absolute; right: 18px; bottom: 16px; font-size: 1.3rem; font-weight: 900; color: var(--framboise); transition: transform .2s; }
.autre:hover .autre__fleche { transform: translateX(4px); }
@media (max-width: 799px) {
  .autres { grid-template-columns: 1fr; }
  .autre { flex-direction: row; }
  .autre__photo { flex: 0 0 36%; aspect-ratio: auto; min-height: 110px; }
  .autre__corps { align-content: center; }
}

/* ---------- Tailles (ou garnitures) : un bouton par taille, avec son prix ---------- */

.achat { display: grid; gap: 14px; }
.achat__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.tailles { display: flex; flex-wrap: wrap; gap: 8px; }
.taille {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 1px;
  min-width: 92px;
  padding: .5em .85em .55em;
  border: 2px solid rgba(42, 20, 14, .14);
  border-radius: var(--rayon-petit);
  background: #fff;
  color: var(--ganache);
  text-align: left;
  line-height: 1.2;
  transition: border-color .2s, background-color .2s;
}
.taille:hover { border-color: rgba(42, 20, 14, .4); }
.taille[aria-pressed="true"] { border-color: var(--framboise); background: #F8F2EA; }
.taille__nom { font-weight: 900; font-size: .95rem; }
.taille__pour { font-size: .78rem; font-weight: 700; color: var(--encre-douce); }
.taille__prix { font-size: .84rem; font-weight: 800; color: var(--framboise); font-variant-numeric: tabular-nums; }
.taille__nb {
  position: absolute; top: -9px; right: -9px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--ganache); color: var(--lait);
  font-size: .75rem; font-weight: 900;
}
.taille__nb[hidden] { display: none; }
/* sur fond chocolat */
.tailles--clair .taille { background: transparent; border-color: rgba(243, 227, 218, .25); color: var(--sucre); }
.tailles--clair .taille:hover { border-color: rgba(243, 227, 218, .6); }
.tailles--clair .taille[aria-pressed="true"] { background: rgba(233, 174, 69, .14); border-color: var(--caramel); }
.tailles--clair .taille__prix { color: var(--caramel); }
.tailles--clair .taille__pour { color: rgba(243, 227, 218, .75); }
.tailles--clair .taille__nb { background: var(--caramel); color: var(--ganache); }

.produit__corps > .achat { margin-top: auto; padding-top: 10px; gap: 12px; }
.produit .tailles { gap: 6px; }
.produit .taille { min-width: 0; padding: .4em .6em .45em; }
.produit .taille__nom { font-size: .86rem; }
.produit .taille__prix { font-size: .78rem; }
/* tailles avec le nombre de personnes (gâteau d'anniversaire) : deux par ligne */
.tailles:has(.taille__pour) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 400px; }
.achat .produit__pied { margin-top: 0; padding-top: 0; }
.comparatif__achat { margin: auto 20px 20px; padding-top: 16px; }
.comparatif__achat .comparatif__pied { margin: 0; padding: 0; }
.fiche__corps > .achat { margin-top: 10px; }
.fiche__corps > .achat .fiche__pied { margin-top: 0; }
.saveur-detail__achat { margin-bottom: 20px; }
.assortiment__tailles { margin-bottom: 6px; }
.assortiment__nom small { display: block; font-size: .85rem; font-weight: 700; color: var(--caramel); }

@media (max-width: 599px) {
  .taille { min-width: 0; padding: .42em .7em .48em; }
  .taille__nom { font-size: .9rem; }
}

/* Gâteau d'anniversaire : la taille dans le formulaire */
.tailles-gateau { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.tailles-gateau legend { margin-bottom: 8px; padding: 0; font-weight: 800; font-size: .85rem; }
.tailles-gateau__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.taille-gateau {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1px;
  padding: .6em .7em;
  border: 2px solid rgba(42, 20, 14, .14);
  border-radius: var(--rayon-petit);
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.taille-gateau input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.taille-gateau:hover { border-color: rgba(42, 20, 14, .4); }
.taille-gateau:has(input:checked) { border-color: var(--framboise); background: #F8F2EA; }
.taille-gateau:has(input:focus-visible) { outline: 2px solid var(--framboise); outline-offset: 2px; }
.taille-gateau__nom { font-weight: 900; font-size: .92rem; }
.taille-gateau__pour { font-size: .78rem; font-weight: 700; color: var(--encre-douce); }
.taille-gateau__prix { font-size: .85rem; font-weight: 800; color: var(--framboise); }
@media (max-width: 599px) { .tailles-gateau__liste { grid-template-columns: 1fr 1fr; } }

/* vérification : ?sans-haut */
.sans-haut .hero { display: none; }
.sans-haut .entete { position: absolute; }

/* =========================================================
   La décomposition, sur le haut de page lui-même (pages catégories)
   Le haut de page reste collé pendant la course (.hero__course) ; js/categorie.js efface le texte
   et amène le produit vers .hero__plein, où il s'ouvre. Sur téléphone, le texte et les boutons
   d'achat sont rangés juste après, dans .hero-suite.
   ========================================================= */

.hero--page { overflow: clip; }
/* téléphone : au moins la hauteur de l'écran, plus si le contenu l'exige (js/categorie.js le cale alors) */
.hero--page .hero__colle { position: sticky; top: 0; height: auto; min-height: 100vh; min-height: 100svh; }
/* le texte s'efface quand la décomposition se déclenche (classe posée par js/categorie.js) */
.hero--page .hero__haut, .hero--page .hero__bas, .hero--page .hero__indice {
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s;
}
.hero__colle--ouvert .hero__haut, .hero__colle--ouvert .hero__bas, .hero__colle--ouvert .hero__indice {
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
/* l'indice « Faites défiler » est centré par un transform : on ne le décale pas */
.hero__colle--ouvert .hero__haut, .hero__colle--ouvert .hero__bas { transform: translate3d(0, -24px, 0); }
/* la course = le seuil (40 px) + le glissement d'ouverture : dès que le produit est ouvert, la suite de la
   page arrive (Ismael, 2026-10-07). js/categorie.js lit cette hauteur pour régler l'ouverture dessus. */
.hero__course { height: calc(25vh + 40px); height: calc(25svh + 40px); }
/* le goûter présente deux produits l'un après l'autre : une course plus longue */
[data-categorie="gouter"] .hero__course { height: calc(55vh + 40px); height: calc(55svh + 40px); }
.hero--page .hero__scene { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
.hero__plein {
  position: absolute;
  left: 16px; right: 16px;
  top: calc(var(--entete) + 24px);
  bottom: 44px;
  pointer-events: none;
}
.hero--page .couches li { font-size: 1rem; }
@media (max-width: 599px) {
  .hero--page .couches li { font-size: .86rem; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero__plein { left: 50%; right: auto; width: min(760px, 70vw); transform: translateX(-50%); }
}
/* téléphone : un haut de page resserré, pour que le texte, les saveurs et le bouton tiennent avec la scène */
@media not all and (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero--page .hero__haut { padding-top: calc(var(--entete) + 10px); }
  .hero--page .ariane { margin-bottom: 6px; }
  .hero--page .hero__titre { font-size: clamp(2.05rem, 8.6vw, 2.8rem); }
  .hero--page .hero__zone, .hero--plat .hero__zone { height: clamp(200px, 30svh, 290px); margin: 0; }
  .hero--page .hero__texte { margin-bottom: 12px; font-size: .98rem; }
  .hero--page .hero__choix .saveurs { margin-bottom: 8px; }
  .hero--page .choix__desc { min-height: 0; margin-bottom: 10px; }
  .hero--page .hero__bas { padding-bottom: 22px; }
  .hero--page .hero__indice { display: none; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero--page .hero__colle { height: 100vh; min-height: 0; }
}

/* ---------- Livraison dès 6 000 FDJ, retrait, acompte (2026-10-06) ---------- */

.panier__totaux .panier__seuil { display: block; margin: 2px 0 8px; font-size: .84rem; font-weight: 700; color: var(--framboise-fonce); }
.panier__totaux .panier__seuil--ok { color: #2f7a3a; }
.champ--choix { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.champ--choix legend { grid-column: 1 / -1; margin-bottom: 6px; padding: 0; font-weight: 800; font-size: .85rem; }
.champ--choix label {
  display: flex; align-items: center; gap: 8px;
  padding: .65em .8em;
  border: 2px solid rgba(42, 20, 14, .14);
  border-radius: var(--rayon-petit);
  background: #fff;
  font-weight: 800; font-size: .95rem;
  cursor: pointer;
}
.champ--choix label:has(input:checked) { border-color: var(--framboise); background: #F8F2EA; }
.champ--choix input { accent-color: var(--framboise); width: 18px; height: 18px; margin: 0; }
[data-champ-lieu][hidden] { display: none; }
.panier__paiement {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--rayon-petit);
  background: var(--glacage);
  font-size: .86rem;
  color: var(--ganache);
}
.panier__paiement p { margin: 0 0 6px; }
.panier__paiement p:last-child { margin: 0; }
.moyen {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 4px 4px 0;
  padding: .2em .65em .2em .25em;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  color: var(--ganache);
  vertical-align: middle;
}
.moyen img { width: 24px; height: 24px; border-radius: 6px; }
.moyen--grand { padding: .3em .8em .3em .3em; font-size: 1.02rem; }
.moyen--grand img { width: 34px; height: 34px; border-radius: 8px; }
.contact__texte-livraison { max-width: 46ch; margin: 0 0 18px; color: var(--sucre); }

.paiement {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--rayon);
  background: var(--ganache);
  color: var(--sucre);
}
.paiement__titre { margin: 4px 0 8px; font-family: var(--f-titre); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.1; color: var(--lait); }
.paiement__texte p { margin: 0; }
.paiement__carte {
  padding: 20px;
  border-radius: var(--rayon-petit);
  background: var(--lait);
  color: var(--ganache);
  text-align: center;
}
.paiement__moyens .moyen { background: var(--glacage); }
.paiement__numero { margin: 8px 0 2px; font-family: var(--f-titre); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); color: var(--framboise-fonce); }
.paiement__nom { margin: 0; font-weight: 800; }
@media (max-width: 799px) {
  .paiement { grid-template-columns: 1fr; }
}
.panier__totaux p[hidden] { display: none; }

/* Commande enregistrée (démonstration de l'espace de Samira) */
.panier__merci { padding: 22px 4px 8px; text-align: center; color: var(--ganache); }
.panier__merci[hidden] { display: none; }
.panier__merci:focus { outline: none; }
.panier__merci-titre { margin: 0 0 8px; font-family: var(--f-titre); font-size: 1.7rem; color: var(--framboise-fonce); }
.panier__merci p { margin: 0 0 12px; }
.panier__merci-demo { font-size: .88rem; color: var(--encre-douce); }
.panier__merci-demo a { color: var(--framboise-fonce); font-weight: 800; }

/* =========================================================
   Payer l'acompte (paiement/)
   ========================================================= */

/* la page commence sur fond clair : l'en-tête garde son fond chocolat dès le haut */
[data-page="paiement"] .entete, [data-page="commande"] .entete, [data-page="mes-commandes"] .entete, [data-page="facture"] .entete { background: rgba(29, 13, 8, .94); }
/* sur la page de la commande, la barre « Voir ma commande » n'a pas lieu d'être */
[data-page="commande"] .barre-commande { display: none !important; }
.pp { min-height: 100vh; padding: calc(var(--entete) + clamp(24px, 4vw, 48px)) 0 clamp(56px, 7vw, 96px); background: var(--lait); color: var(--ganache); }
.pp__titre { margin: 4px 0 10px; }
.pp__intro { max-width: 46ch; margin: 0 0 22px; color: var(--encre-douce); }
.pp__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
@media (max-width: 799px) { .pp__grille { grid-template-columns: 1fr; } }
.pp__carte { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.pp__sous-titre { margin: 0 0 12px; font-family: var(--f-titre); font-weight: 400; font-size: 1.35rem; }
.pp__articles { margin: 0 0 10px; padding: 0; list-style: none; }
.pp__articles li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(42, 20, 14, .14); }
.pp__ligne { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; }
.pp__ligne b { white-space: nowrap; }
.pp__ligne--fort { padding: 10px 12px; border-radius: var(--rayon-petit); background: var(--glacage); font-size: 1.1rem; }
.pp__ligne--fort b { color: var(--framboise-fonce); }
.pp__quand { margin: 12px 0 0; font-size: .95rem; color: var(--encre-douce); }
.pp__moyens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp__moyen {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 4px;
  border: 2px solid rgba(42, 20, 14, .14); border-radius: var(--rayon-petit);
  background: #fff;
  font: 800 1rem/1.2 var(--f-texte); color: var(--ganache);
  cursor: pointer;
}
.pp__moyen[aria-pressed="true"] { border-color: var(--framboise); background: #F8F2EA; color: var(--framboise-fonce); }
.pp__etapes { margin: 18px 0 6px; padding-left: 1.3em; display: grid; gap: 10px; }
.pp__etapes li::marker { font-weight: 900; color: var(--framboise); }
.pp__numero { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 8px 8px 8px 14px; border-radius: var(--rayon-petit); background: var(--glacage); }
.pp__numero > span { font-family: var(--f-titre); font-size: 1.6rem; color: var(--framboise-fonce); }
.pp__copier { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ganache); font: 800 .9rem/1 var(--f-texte); color: #fff; cursor: pointer; }
.pp__form { margin-top: 14px; display: grid; gap: 12px; }
.pp__aide { margin: 0; font-size: .86rem; color: var(--encre-douce); text-align: center; }
.pp__message { max-width: 560px; }
.pp__message p { margin: 0 0 10px; }
.pp__message a { color: var(--framboise-fonce); font-weight: 800; }
.pp__message--ok { border-top: 4px solid #2f7a3a; }
.pp__coche { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #2f7a3a; font-size: 1.6rem; font-weight: 900; color: #fff; }
.pp__attente { width: 44px; height: 44px; border: 4px solid var(--glacage); border-top-color: var(--framboise); border-radius: 50%; animation: pp-tourne 1s linear infinite; }
@keyframes pp-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pp__attente { animation: none; } }
.pp__lien { padding: 0; border: 0; background: none; font: 800 .9rem/1.4 var(--f-texte); color: var(--framboise-fonce); text-decoration: underline; cursor: pointer; }

.pp__moyen img { width: 40px; height: 40px; border-radius: 10px; }

/* Commande envoyée : un cercle se trace, la coche apparaît avec un rebond, quelques éclats partent,
   puis le message arrive. C'est la preuve visible que la commande est partie. */
.panier__merci { position: relative; }
.coche { display: block; width: 76px; height: 76px; margin: 4px auto 10px; overflow: visible; }
.coche__fond { fill: #2f7a3a; transform-origin: 32px 32px; }
.coche__cercle { fill: none; stroke: #2f7a3a; stroke-width: 4; stroke-dasharray: 170; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 32px 32px; }
.coche__trait { fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.coche__eclats { position: absolute; left: 50%; top: 42px; width: 0; height: 0; pointer-events: none; }
.coche__eclats i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; opacity: 0; }
.coche__eclats i:nth-child(odd) { background: var(--framboise); }
.coche__eclats i:nth-child(even) { background: var(--caramel); }
.panier__merci--anime .coche__fond { animation: coche-fond .45s cubic-bezier(.3, 1.6, .5, 1) .55s both; }
.panier__merci--anime .coche__cercle { animation: coche-cercle .6s ease-out both; }
.panier__merci--anime .coche__trait { animation: coche-trait .35s ease-out .8s both; }
.panier__merci--anime .coche__eclats i { animation: eclat .7s ease-out .85s both; }
.panier__merci--anime .coche__eclats i:nth-child(1) { --dx: 0px; --dy: -58px; }
.panier__merci--anime .coche__eclats i:nth-child(2) { --dx: 41px; --dy: -41px; }
.panier__merci--anime .coche__eclats i:nth-child(3) { --dx: 58px; --dy: 0px; }
.panier__merci--anime .coche__eclats i:nth-child(4) { --dx: 41px; --dy: 41px; }
.panier__merci--anime .coche__eclats i:nth-child(5) { --dx: 0px; --dy: 58px; }
.panier__merci--anime .coche__eclats i:nth-child(6) { --dx: -41px; --dy: 41px; }
.panier__merci--anime .coche__eclats i:nth-child(7) { --dx: -58px; --dy: 0px; }
.panier__merci--anime .coche__eclats i:nth-child(8) { --dx: -41px; --dy: -41px; }
.panier__merci--anime .coche ~ p, .panier__merci--anime .coche ~ button { animation: merci-texte .5s ease-out 1.05s both; }
@keyframes coche-cercle { from { stroke-dashoffset: 170; } to { stroke-dashoffset: 0; } }
@keyframes coche-fond { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes coche-trait { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes eclat {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}
@keyframes merci-texte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .panier__merci--anime .coche__fond, .panier__merci--anime .coche__cercle, .panier__merci--anime .coche__trait,
  .panier__merci--anime .coche__eclats i, .panier__merci--anime .coche ~ p, .panier__merci--anime .coche ~ button { animation: none; }
}

/* =========================================================
   Ma commande (commande/) : le panier a sa page
   ========================================================= */

.cmd { min-height: 100vh; padding: calc(var(--entete) + clamp(24px, 4vw, 48px)) 0 clamp(56px, 7vw, 96px); background: var(--lait); color: var(--ganache); }
.cmd__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (max-width: 899px) { .cmd__grille { grid-template-columns: 1fr; } }
.cmd__titre { margin: 4px 0 16px; }
.cmd__carte { padding: clamp(16px, 2.4vw, 26px); border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.cmd__cote { display: grid; gap: 14px; }
@media (min-width: 900px) { .cmd__cote { position: sticky; top: calc(var(--entete) + 16px); } }
.cmd__bloc { padding: 18px 20px; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.cmd__sous-titre { margin: 0 0 10px; font-family: var(--f-titre); font-weight: 400; font-size: 1.3rem; }
.cmd__etapes { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--encre-douce); }
.cmd__etapes li::marker { font-weight: 900; color: var(--framboise); }
.cmd__etapes b { color: var(--ganache); }
.cmd__bloc--paiement { background: var(--ganache); color: var(--sucre); text-align: center; }
.cmd__bloc--paiement .cmd__sous-titre { color: var(--lait); }
.cmd__bloc--paiement .paiement__numero { color: var(--caramel); }
.cmd__bloc--paiement .paiement__nom { color: var(--lait); }
.cmd__numero { display: block; margin-bottom: 10px; font-family: var(--f-titre); font-size: 1.9rem; color: var(--framboise-fonce); text-decoration: none; }
.cmd__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cmd__actions .bouton { flex: 1 1 140px; }
.cmd__adresse { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 700; color: var(--encre-douce); }
.cmd__adresse svg { width: 18px; height: 18px; color: var(--framboise); }
.cmd__etape[hidden] { display: none; }
.cmd__annuler { display: block; margin: 18px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--encre-douce); font-size: .86rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cmd__annuler:hover { color: var(--ganache); }
.cmd__etape-titre { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--rayon-petit); background: #e9f5ea; font-weight: 700; color: #22572a; }
.cmd__suivi { font-weight: 800; color: var(--framboise-fonce); }
.bouton-panier { text-decoration: none; }
.barre-commande { text-decoration: none; color: inherit; }
.menu-mobile__picto--sac svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* Payer depuis le site : choisir l'application, « Payer » copie le numéro et l'ouvre, puis la capture */
.pp__sous-titre { display: flex; align-items: center; gap: 10px; }
.pp__sous-titre--suite { margin-top: 26px; padding-top: 20px; border-top: 1px dashed rgba(42, 20, 14, .16); }
.pp__num { display: inline-grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--framboise); font-family: var(--f-texte); font-weight: 900; font-size: 1rem; color: #fff; }
.pp__consigne { margin: 0 0 8px; font-weight: 700; color: var(--encre-douce); }
.pp__bouton-payer { margin-top: 14px; min-height: 54px; font-size: 1.08rem; }
.pp__bouton-payer b { font-weight: inherit; }
.pp__copie { margin: 10px 0 0; padding: 0; font-weight: 800; color: #2f7a3a; min-height: 0; }
.pp__copie--vu { padding: 8px 12px; border-radius: var(--rayon-petit); background: #e9f5ea; }
.pp__aide--gauche { margin-top: 10px; text-align: left; }
.pp__capture {
  position: relative;
  display: grid; place-items: center;
  min-height: 130px;
  border: 2px dashed rgba(42, 20, 14, .25); border-radius: var(--rayon);
  background: #fffaf7;
  cursor: pointer;
  overflow: hidden;
}
.pp__capture:hover, .pp__capture:focus-within { border-color: var(--framboise); }
.pp__capture--pleine { border-style: solid; border-color: #2f7a3a; }
.pp__fichier { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pp__capture-vide { display: grid; justify-items: center; gap: 6px; padding: 16px; font-weight: 800; text-align: center; color: var(--encre-douce); }
.pp__capture-vide svg { width: 34px; height: 34px; fill: none; stroke: var(--framboise); stroke-width: 1.8; stroke-linejoin: round; }
.pp__apercu { display: block; max-width: 100%; max-height: 320px; }
.pp__apercu[hidden], .pp__capture-vide[hidden] { display: none; }
.pp__capture-envoyee { display: block; max-width: 180px; max-height: 300px; margin: 6px 0 12px; border-radius: var(--rayon-petit); border: 1px solid rgba(42, 20, 14, .14); }
.pp__annuler { margin: 18px 0 0; text-align: center; }

/* ---------- Ma commande : livraison choisie dans le panier, détail du prix, paiement sobre (2026-10-07) ---------- */

.mode { margin: 4px 0 10px; padding: 0; border: 0; display: grid; gap: 8px; }
.mode legend { margin-bottom: 8px; padding: 0; font-weight: 900; font-size: .95rem; color: var(--ganache); }
.mode__choix {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 14px;
  border: 1.5px solid rgba(42, 20, 14, .16); border-radius: var(--rayon-petit);
  background: #fff; cursor: pointer;
}
.mode__choix:has(input:checked) { border-color: var(--framboise); background: #F8F2EA; box-shadow: inset 0 0 0 1px var(--framboise); }
.mode__choix input { width: 20px; height: 20px; margin: 0; accent-color: var(--framboise); }
.mode__texte { display: grid; gap: 1px; }
.mode__texte b { font-weight: 800; color: var(--ganache); }
.mode__texte small { font-size: .84rem; font-weight: 600; color: var(--encre-douce); }
.mode__prix { font-weight: 900; color: var(--ganache); white-space: nowrap; }
.panier__totaux .panier__seuil { margin: 0 0 10px; }
.panier__totaux .panier__seuil[hidden] { display: none; }
.detail-prix { padding: 12px 0 0; border-top: 1px solid rgba(42, 20, 14, .12); }
.panier__totaux .detail-prix p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-weight: 600; color: var(--encre-douce); }
.panier__totaux .detail-prix p > span:last-child { font-weight: 800; color: var(--ganache); white-space: nowrap; }
.panier__totaux .detail-prix .detail-prix__total { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(42, 20, 14, .12); font-size: 1.2rem; font-weight: 900; color: var(--ganache); }
.panier__totaux .detail-prix .detail-prix__moitie { padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--glacage); color: var(--ganache); font-weight: 800; }
.panier__totaux .detail-prix .detail-prix__moitie > span:last-child { color: var(--framboise-fonce); }

/* le paiement : titres dans la police du texte, pas dans la police d'affiche */
.pp__sous-titre { font-family: var(--f-texte); font-weight: 900; font-size: 1.12rem; letter-spacing: 0; color: var(--ganache); }
.pp__ligne { color: var(--encre-douce); }
.pp__ligne b { color: var(--ganache); }
.pp__ligne--total { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(42, 20, 14, .12); font-size: 1.15rem; font-weight: 900; color: var(--ganache); }
.pp__benef { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid rgba(42, 20, 14, .12); border-radius: var(--rayon-petit); background: #FBF8F5; }
.pp__benef > span:first-child { width: 100%; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }
.pp__benef b { font-weight: 900; color: var(--ganache); }
.pp__benef-num { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--framboise-fonce); }
.cmd__recap { margin: 0 0 22px; padding: 16px 18px; border: 1px solid rgba(42, 20, 14, .12); border-radius: var(--rayon); background: #FBF8F5; }
.cmd__etape-titre { display: flex; align-items: center; gap: 10px; }
.cmd__ok { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #2f7a3a; font-weight: 900; color: #fff; }
.paiement__benef { margin: 10px 0 0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.paiement__numero { font-family: var(--f-texte); font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- « Commander » : anneau qui tourne, coche verte, récapitulatif (comme Moon Kids, 2026-10-07) ---------- */

.valide { position: relative; width: 84px; height: 84px; margin: 6px auto 16px; }
.valide > span { position: absolute; inset: 0; border-radius: 50%; }
.valide__tourne { border: 3px solid rgba(47, 122, 58, .14); border-top-color: #2f7a3a; border-right-color: #2f7a3a; animation: valide-tourne .7s linear infinite; }
.valide__anneau { border: 2px solid #2f7a3a; opacity: 0; }
.valide__rond { display: grid; place-items: center; border: 2px solid #2f7a3a; background: rgba(47, 122, 58, .1); opacity: 0; transform: scale(.5); }
.valide__coche { width: 34px; height: 17px; margin-top: -8px; border-left: 5px solid #2f7a3a; border-bottom: 5px solid #2f7a3a; border-bottom-left-radius: 2px; transform: rotate(-45deg) scale(0); }
.valide__suite { display: none; }
.panier__merci--attente .panier__merci-titre { font-family: var(--f-texte); font-weight: 800; font-size: 1.1rem; color: var(--encre-douce); }
.panier__merci--valide .valide__tourne { animation: valide-tourne .7s linear, valide-efface .18s ease-out forwards; }
.panier__merci--valide .valide__rond { animation: valide-rond .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.panier__merci--valide .valide__coche { animation: valide-coche .45s cubic-bezier(.3, 1.8, .5, 1) .09s forwards; }
.panier__merci--valide .valide__anneau { animation: valide-anneau .7s ease-out .09s; }
.panier__merci--valide .valide__suite { display: block; animation: valide-monte .42s cubic-bezier(.2, .8, .3, 1) .24s both; }
.panier__merci--valide .panier__merci-titre { animation: valide-monte .42s cubic-bezier(.2, .8, .3, 1) .15s both; }
/* Le reçu sort de l'imprimante ligne par ligne (2026-10-08), puis penche comme un vrai ticket et reçoit son tampon */
.ticket { max-width: 340px; margin: 18px auto 18px; text-align: left; }
.ticket__imprimante { position: relative; z-index: 2; height: 26px; border-radius: 13px; background: linear-gradient(#4A2A1E, var(--ganache) 55%, var(--ganache-nuit)); box-shadow: 0 10px 18px -12px rgba(29, 13, 8, .8), inset 0 1px 0 rgba(255, 255, 255, .12); }
.ticket__fente { position: absolute; left: 22px; right: 22px; bottom: 6px; height: 3px; border-radius: 2px; background: #0E0604; }
.ticket__voyant { position: absolute; right: 12px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--caramel); opacity: .45; }
.ticket__sortie { overflow: hidden; margin: -9px 16px 0; transform-origin: 50% 0; filter: drop-shadow(0 12px 14px rgba(42, 20, 14, .2)); }
.ticket__papier {
  padding: 20px 16px 26px;
  background: linear-gradient(rgba(42, 20, 14, .16), rgba(42, 20, 14, 0) 16px), #fff;
  font: 500 .84rem/1.45 ui-monospace, 'Cascadia Mono', Menlo, Consolas, 'Roboto Mono', monospace; color: var(--ganache);
  --dent: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--dent)) var(--dent) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--dent)) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--dent)) var(--dent) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--dent)) no-repeat;
}
.panier__merci .ticket__papier p { margin: 0; }
.ticket__marque { font-family: var(--f-titre); font-size: 1.35rem; line-height: 1.1; text-align: center; color: var(--framboise-fonce); }
.ticket__adresse { margin-top: 4px !important; font-size: .74rem; text-align: center; color: var(--encre-douce); }
.ticket__titre { margin: 12px 0 8px !important; padding: 5px 0; border-block: 2px dashed rgba(42, 20, 14, .28); text-align: center; font-weight: 800; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.ticket__ligne, .ticket__article { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; }
.ticket__ligne span { color: var(--encre-douce); }
.ticket__ligne b, .ticket__article b { font-weight: 800; text-align: right; white-space: nowrap; }
.ticket__article span { min-width: 0; }
.ticket__tirets { margin: 9px 0; border: 0; border-top: 2px dashed rgba(42, 20, 14, .28); }
.ticket__ligne--total { margin-bottom: 4px; font-size: 1.02rem; }
.ticket__ligne--total span, .ticket__ligne--total b { color: var(--ganache); font-weight: 900; text-transform: uppercase; }
.ticket__tampon { display: table; margin: 16px auto 0 !important; padding: 4px 12px; border: 2px solid #2f7a3a; border-radius: 6px; color: #2f7a3a; font-weight: 900; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-6deg); }
.ticket__merci { margin-top: 12px !important; text-align: center; font-size: .78rem; color: var(--encre-douce); }
@media (prefers-reduced-motion: no-preference) {
  .panier__merci--valide .ticket__sortie { animation: ticket-sort 2.4s steps(14, end) .6s backwards, ticket-penche .7s cubic-bezier(.3, 1.5, .5, 1) 3.05s both; }
  .panier__merci--valide .ticket__voyant { animation: ticket-voyant .3s steps(2, jump-none) .6s 8; }
  .panier__merci--valide .ticket__tampon { animation: ticket-tampon .35s cubic-bezier(.3, 1.6, .5, 1) 3.3s both; }
}
@keyframes ticket-sort { from { height: 0; } to { height: var(--hauteur-ticket, 640px); } }
@keyframes ticket-penche { 0% { transform: none; } 45% { transform: translateY(3px) rotate(-1.6deg); } 100% { transform: translateY(2px) rotate(-1.2deg); } }
@keyframes ticket-voyant { from { opacity: .45; } to { opacity: 1; box-shadow: 0 0 8px var(--caramel); } }
@keyframes ticket-tampon { from { opacity: 0; transform: rotate(-6deg) scale(1.9); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.pp__commander { min-height: 54px; font-size: 1.1rem; }
@keyframes valide-tourne { to { transform: rotate(360deg); } }
@keyframes valide-efface { to { opacity: 0; transform: scale(1.15); } }
@keyframes valide-rond { to { opacity: 1; transform: scale(1); } }
@keyframes valide-coche { to { transform: rotate(-45deg) scale(1); } }
@keyframes valide-anneau { 0% { opacity: 0; transform: scale(1); } 20% { opacity: .6; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes valide-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .valide__tourne { animation-duration: 2s; }
  .panier__merci--valide .valide__rond, .panier__merci--valide .valide__coche { animation-duration: .01s; }
}
.cmd__etape-titre { background: #F4EDE6; color: var(--ganache); font-weight: 700; }
.cmd__sous-titre--petit { font-family: var(--f-texte); font-weight: 900; font-size: 1rem; letter-spacing: 0; margin-bottom: 10px; }
.cmd__bloc--court { padding-top: 18px; padding-bottom: 18px; }
.cmd__etapes--court { gap: 6px; font-size: .95rem; }
.panier__merci--valide .panier__merci-titre { font-family: var(--f-texte); font-weight: 900; font-size: 1.5rem; color: var(--ganache); }

/* ---------- Mes commandes, reçu et facture (2026-10-07) ---------- */

.valide__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.pp__doc { margin: 14px 0 0; }

.mc__liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; max-width: 760px; }
.mc__carte, .mc__haut > div { min-width: 0; }
.mc__carte { padding: 18px 20px; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.mc__haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mc__num { margin: 0; font-weight: 900; font-size: 1.08rem; color: var(--ganache); white-space: nowrap; }
.mc__date { margin: 2px 0 0; font-size: .86rem; color: var(--encre-douce); }
.mc__etat { flex: 0 0 auto; padding: 5px 10px; border-radius: 8px; font-size: .8rem; font-weight: 800; background: #F1E8E2; color: var(--encre-douce); text-align: right; }
.mc__etat--ok { background: #E3F1E4; color: #22572A; }
.mc__etat--encours { background: #F4EDE6; color: var(--framboise-fonce); }
.mc__etat--attente { background: #FBEFD6; color: #6B4508; }
.mc__etat--annulee { text-decoration: line-through; }
.mc__articles { margin: 12px 0 0; font-size: .92rem; color: var(--encre-douce); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc__bas { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 8px; }
.mc__total { font-weight: 900; font-size: 1.15rem; color: var(--ganache); white-space: nowrap; }
.mc__quand { font-size: .88rem; font-weight: 700; color: var(--encre-douce); }
.mc__liens { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mc__liens .bouton { min-height: 46px; padding: 0 12px; justify-content: center; }
.mc__liens .bouton:only-child { grid-column: 1 / -1; }
.mc__vide { margin-top: 18px; padding: 28px 22px; border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); text-align: center; max-width: 560px; }
.mc__vide p { margin: 0 0 16px; font-weight: 700; color: var(--encre-douce); }
.mc__note { max-width: 62ch; margin: 22px 0 0; font-size: .86rem; color: var(--encre-douce); }

.fa__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 820px; margin: 0 auto 16px; }
.fa__retour { font-weight: 800; color: var(--framboise-fonce); text-decoration: none; }
.fa__suivi { max-width: 820px; margin: 16px auto 0; text-align: center; }

.doc {
  position: relative;
  max-width: 820px; margin: 0 auto;
  padding: clamp(20px, 4vw, 44px);
  border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre);
  color: var(--ganache); font-size: .95rem;
  overflow: hidden;
}
.doc p { margin: 0; }
.doc__tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 2px solid var(--ganache); }
.doc__vendeur p { color: var(--encre-douce); font-size: .88rem; }
.doc__marque { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; font-family: var(--f-titre); font-size: 1.5rem; color: var(--ganache) !important; }
.doc__marque em { font-style: normal; color: var(--framboise); }
.doc__marque svg { width: 34px; height: 28px; color: var(--framboise); }
.doc__titre { text-align: right; }
.doc__type { font-weight: 900; font-size: 1.7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ganache); }
.doc__titre p + p { font-size: .88rem; }
.doc__titre span { color: var(--encre-douce); }
.doc__client { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 0; }
.doc__etiquette { margin-bottom: 4px !important; font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); }
.doc__lignes { width: 100%; border-collapse: collapse; }
.doc__lignes th { padding: 8px 6px; border-bottom: 1px solid rgba(42, 20, 14, .2); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; text-align: right; color: var(--encre-douce); }
.doc__lignes td { padding: 9px 6px; border-bottom: 1px solid rgba(42, 20, 14, .08); text-align: right; white-space: nowrap; }
.doc__lignes th:first-child, .doc__lignes td:first-child { text-align: left; white-space: normal; padding-left: 0; }
.doc__lignes td:last-child, .doc__lignes th:last-child { padding-right: 0; font-weight: 800; }
.doc__totaux { margin: 12px 0 0 auto; max-width: 320px; }
.doc__totaux p, .doc__paiements p { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; }
.doc__totaux b, .doc__paiements b { white-space: nowrap; }
.doc__total { margin-top: 6px !important; padding-top: 8px !important; border-top: 2px solid var(--ganache); font-size: 1.15rem; font-weight: 900; }
.doc__paiements { margin-top: 22px; padding: 14px 16px; border-radius: var(--rayon-petit); background: #F8F3EE; }
.doc__paiements em { font-style: normal; color: var(--framboise-fonce); }
.doc__du { margin-top: 6px; padding-top: 8px !important; border-top: 1px solid rgba(42, 20, 14, .14); font-weight: 900; }
.doc__paiements { position: relative; }
.doc__tampon {
  position: absolute; right: 18px; top: -22px;
  padding: 4px 14px; border: 3px solid #2f7a3a; border-radius: 10px; background: #fff;
  font-weight: 900; font-size: 1.6rem; letter-spacing: .14em; text-transform: uppercase; color: #2f7a3a;
  transform: rotate(-12deg); opacity: .8; pointer-events: none;
}
.doc__pied { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(42, 20, 14, .14); font-size: .82rem; text-align: center; color: var(--encre-douce); }
@media (max-width: 560px) {
  .doc__titre { text-align: left; }
  .doc__client { grid-template-columns: 1fr; }
  .doc__lignes th:nth-child(3), .doc__lignes td:nth-child(3) { display: none; }
  .doc__tampon { font-size: 1.4rem; top: -18px; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  .entete, .pied, .barre-commande, .fa__actions, .fa__suivi, .menu-mobile, .evitement, .coulure { display: none !important; }
  .pp.fa { padding: 0 !important; min-height: 0 !important; background: #fff !important; }
  .doc { box-shadow: none; padding: 0; max-width: none; font-size: 11pt; }
  .doc__paiements { background: #F6F1EC; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc__tampon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.cmd__mes { margin: -6px 0 18px; }
.cmd__mes a { font-weight: 800; color: var(--framboise-fonce); }
