/* ==========================================================================
   PIVOINE — feuille de style
   Réalisé par goodwebsites.ch
   Ordre : polices, jetons, base, en-tête, hero, sections, pied, mouvement.
   ========================================================================== */

/* ------------------------------------------------------------ 1. Polices   */
/* Auto-hébergées : aucune requête vers un serveur tiers. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------ 2. Jetons     */

:root {
  --creme: #fff9f2;
  --papier: #fffdfc;
  --framboise: #a60c3d;
  --framboise-fonce: #79092d;
  --rose: #f7dfe3;
  --abricot: #f6c2a4;
  --corail: #ef795f;
  --encre: #302527;
  --gris: #68565c;
  --ligne: #decacf;

  --titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --texte: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --contenu: 82.5rem;
  --gouttiere: clamp(1.25rem, 4vw, 4rem);

  --e1: 0.5rem;
  --e2: 1rem;
  --e3: 1.5rem;
  --e4: 2rem;
  --e5: 3rem;
  --e6: 4.5rem;
  --e7: 7rem;

  --rayon: 0.5rem;
  --rayon-champ: 0.375rem;

  --duree-rapide: 160ms;
  --duree-ui: 260ms;
  --duree-revele: 550ms;
  --souple: cubic-bezier(0.22, 1, 0.36, 1);

  --ombre-flottant: 0 12px 34px rgba(48, 37, 39, 0.14);
  --haut-entete: 4.75rem;
}

/* ------------------------------------------------------------ 3. Base       */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--haut-entete) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.08;
  color: var(--framboise);
}

h1 {
  font-size: clamp(2.4rem, 4.2vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(2.8rem, 5.6vw, 6rem);
}
h2 {
  font-size: clamp(2rem, 3.3vw, 3.5rem);
}
h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
}

p {
  margin: 0 0 var(--e2);
  max-width: 68ch;
}

a {
  color: var(--framboise);
}
a:hover {
  color: var(--framboise-fonce);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Un élément masqué doit le rester, même si une classe lui donne un
   display: grid ou flex. Sans cette règle, l'attribute hidden est ignoré. */
[hidden] {
  display: none !important;
}

/* Les chiffres de la Cormorant sont « elzéviriens » par défaut : 71 se lit
   « 7I ». Partout où un montant est écrit dans cette police, on force des
   chiffres alignés, lisibles d'un coup d'œil. */
h1, h2, h3,
.total strong,
.recap__total strong,
.ligne__prix,
.reference strong,
.carte__prix,
.cadeau__prix {
  font-variant-numeric: lining-nums;
}

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

.conteneur {
  width: min(calc(100% - 2 * var(--gouttiere)), var(--contenu));
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.75rem, 6vw, var(--e7));
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--framboise);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--rayon) 0;
}
.saut-contenu:focus {
  left: 0;
  color: #fff;
}

.bandeau-demo {
  margin: 0;
  max-width: none;
  background: var(--framboise-fonce);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.5rem var(--e2);
}

/* Boutons ---------------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--framboise);
  border-radius: var(--rayon-champ);
  background: var(--framboise);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duree-rapide) var(--souple),
    border-color var(--duree-rapide) var(--souple);
}
.bouton:hover {
  background: var(--framboise-fonce);
  border-color: var(--framboise-fonce);
  color: #fff;
}
.bouton--secondaire {
  background: transparent;
  color: var(--framboise);
}
.bouton--secondaire:hover {
  background: var(--rose);
  color: var(--framboise-fonce);
  border-color: var(--framboise-fonce);
}
.bouton--clair {
  background: var(--papier);
  border-color: var(--papier);
  color: var(--framboise);
}
.bouton--clair:hover {
  background: #fff;
  border-color: #fff;
  color: var(--framboise-fonce);
}

.lien-souligne {
  font-weight: 600;
  text-underline-offset: 0.25em;
}

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

.champ {
  display: grid;
  gap: 0.35rem;
}
.champ > span {
  font-size: 0.9rem;
  font-weight: 600;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-champ);
  background: var(--papier);
  color: var(--encre);
}

/* Média en attente de production ----------------------------------------- */

.media-attente {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  min-height: 9rem;
  padding: var(--e2);
  background: repeating-linear-gradient(
    135deg,
    var(--rose),
    var(--rose) 14px,
    #f2d4d9 14px,
    #f2d4d9 28px
  );
  color: var(--framboise-fonce);
  text-align: center;
}
.media-attente__nom {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-break: break-all;
  opacity: 0.85;
}

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

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--creme);
  border-bottom: 1px solid transparent;
  transition: background var(--duree-ui) var(--souple),
    border-color var(--duree-ui) var(--souple),
    box-shadow var(--duree-ui) var(--souple);
}
.entete.est-compacte {
  background: rgba(255, 249, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--ligne);
  box-shadow: 0 2px 16px rgba(48, 37, 39, 0.06);
}

.entete__grille {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e2);
  min-height: var(--haut-entete);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--framboise);
  text-decoration: none;
  flex: 0 0 auto;
}
.logo__fleur {
  display: block;
  color: var(--corail);
}
.logo__mot {
  font-family: var(--titre);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nav {
  display: none;
}
@media (min-width: 62rem) {
  .nav {
    display: block;
  }
}
.nav__liste {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__item {
  position: relative;
}
.nav__lien {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 0;
  background: none;
  color: var(--encre);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--rayon-champ);
}
.nav__lien:hover {
  color: var(--framboise);
  background: var(--rose);
}
.nav__chevron {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--duree-rapide) var(--souple);
}
[aria-expanded="true"] > .nav__chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.nav__sous {
  position: absolute;
  top: calc(100% - 0.25rem);
  left: 0;
  min-width: 14rem;
  padding: 0.4rem;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-flottant);
}
.nav__sous a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--rayon-champ);
  color: var(--encre);
  text-decoration: none;
}
.nav__sous a:hover {
  background: var(--rose);
  color: var(--framboise);
}

.entete__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}
.action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border-radius: var(--rayon-champ);
  color: var(--encre);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.action:hover {
  background: var(--rose);
  color: var(--framboise);
}
.action__mot {
  display: none;
}
@media (min-width: 75rem) {
  .action__mot {
    display: inline;
  }
}
.action--panier {
  color: var(--framboise);
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-champ);
  background: var(--papier);
  color: var(--encre);
  font-weight: 600;
  cursor: pointer;
}
@media (min-width: 62rem) {
  .burger {
    display: none;
  }
}
.burger__traits {
  display: grid;
  gap: 3px;
  width: 1.1rem;
}
.burger__traits i {
  display: block;
  height: 1.5px;
  background: currentColor;
}

/* Menu mobile ------------------------------------------------------------ */

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--creme);
  padding: var(--e2) var(--gouttiere) var(--e5);
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--e2));
  overflow-y: auto;
}
.menu-mobile__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  margin-bottom: var(--e3);
}
.menu-mobile__fermer {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-champ);
  background: var(--papier);
  color: var(--encre);
  font-weight: 600;
  cursor: pointer;
}
.menu-mobile__liste > li {
  border-bottom: 1px solid var(--ligne);
}
.menu-mobile__liste a,
.menu-mobile__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--encre);
  font-family: var(--titre);
  font-size: 1.5rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.menu-mobile__sous {
  padding-bottom: var(--e2);
}
.menu-mobile__sous a {
  font-family: var(--texte);
  font-size: 1rem;
  min-height: 2.75rem;
  padding-left: var(--e2);
  color: var(--gris);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(30rem, 74svh, 46rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--rose);
}
@media (max-width: 47.9375rem) {
  .hero {
    min-height: 0;
    display: block;
  }
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}
@media (max-width: 47.9375rem) {
  .hero__scene {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 4 / 3;
  }
}

.hero__vue {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fondu, 800ms) var(--souple);
}
.hero__vue.est-active {
  opacity: 1;
}
.hero__vue img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}
/* Effet Ken Burns : zoom lent ancré à droite, pour ne jamais manger
   la zone de texte située à gauche. */
.hero__vue.est-active img {
  animation: kenburns 12s var(--souple) forwards;
  transform-origin: 78% 50%;
}
@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

.hero__voile {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 249, 242, 0.96) 0%,
    rgba(255, 249, 242, 0.88) 26%,
    rgba(255, 249, 242, 0.35) 48%,
    rgba(255, 249, 242, 0) 64%
  );
}
@media (max-width: 47.9375rem) {
  .hero__voile {
    display: none;
  }
}

.hero__contenu {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 47.9375rem) {
  .hero__contenu {
    background: var(--creme);
    padding-top: var(--e3);
  }
}
.hero__texte {
  max-width: 34rem;
}
.hero__accroche {
  margin: 0 0 var(--e2);
  font-family: var(--titre);
  font-size: 1.35rem;
  color: var(--corail);
}
.hero__intro {
  font-size: 1.15rem;
  color: var(--gris);
  margin-top: var(--e2);
  max-width: 30rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  margin-top: var(--e3);
}

/* Le texte de chaque slide se remplace : une seule zone, pas de saut. */
.hero__slide-texte {
  display: none;
}
.hero__slide-texte.est-active {
  display: block;
}

.hero__pilotage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--e4);
}
.hero__fleche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--papier);
  color: var(--framboise);
  cursor: pointer;
}
.hero__fleche:hover {
  background: var(--rose);
}
.hero__puces {
  display: flex;
  gap: 0.4rem;
  margin-inline: 0.35rem;
}
.hero__puce {
  width: 2.2rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.hero__puce::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--ligne);
  transform: translateY(-50%);
  transition: background var(--duree-rapide) var(--souple);
}
.hero__puce[aria-current="true"]::after {
  background: var(--framboise);
  height: 3px;
}
.hero__pause {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--papier);
  color: var(--encre);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------------------------------------ 6. Ruban date */

.ruban {
  background: var(--corail);
  color: #fff;
}
.ruban .conteneur {
  display: grid;
  gap: var(--e3);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 56rem) {
  .ruban .conteneur {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: center;
  }
}
.ruban h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}
.ruban p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.92);
}
.ruban__form {
  display: grid;
  gap: var(--e2);
}
@media (min-width: 34rem) {
  .ruban__form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
  }
}
.ruban .champ > span {
  color: #fff;
}
.ruban__modes {
  display: flex;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--rayon-champ);
  padding: 0.25rem;
}
.ruban__mode {
  flex: 1;
  min-height: 2.25rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.ruban__mode[aria-pressed="true"] {
  background: var(--papier);
  color: var(--framboise);
}

/* ------------------------------------------------------------ 7. Sections   */

.entete-section {
  max-width: 44rem;
  margin-bottom: var(--e4);
}
.entete-section p {
  color: var(--gris);
  margin-top: 0.75rem;
}
.entete-section--centre {
  margin-inline: auto;
  text-align: center;
}
.entete-section--centre p {
  margin-inline: auto;
}

/* Cartes produit --------------------------------------------------------- */

.grille-produits {
  display: grid;
  gap: var(--e3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.carte {
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 0.75rem;
  overflow: hidden;
}
.carte__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rose);
}
.carte__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duree-ui) var(--souple);
}
.carte:hover .carte__media img {
  transform: scale(1.035);
}
.carte__corps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--e3);
  flex: 1;
}
.carte__nom {
  font-size: 1.5rem;
}
.carte__prix {
  font-weight: 700;
}
.carte__prix span {
  font-weight: 500;
  color: var(--gris);
}
.carte__etat {
  font-size: 0.88rem;
  color: var(--gris);
}
.carte__action {
  margin-top: auto;
  padding-top: var(--e2);
}
.etiquette {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--papier);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--framboise);
}

/* Panneaux --------------------------------------------------------------- */

.panneaux {
  display: grid;
  gap: var(--e3);
}
@media (min-width: 56rem) {
  .panneaux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.panneau {
  display: grid;
  gap: var(--e3);
  padding: var(--e4);
  border-radius: 0.75rem;
  background: var(--rose);
}
.panneau--corail {
  background: var(--corail);
  color: #fff;
}
.panneau--corail h2,
.panneau--corail h3 {
  color: #fff;
}
.panneau--corail p {
  color: rgba(255, 255, 255, 0.93);
}
.panneau__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--papier);
}
.panneau__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bandeau image + texte -------------------------------------------------- */

.duo {
  display: grid;
  gap: var(--e4);
  align-items: center;
}
@media (min-width: 56rem) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .duo--inverse .duo__media {
    order: 2;
  }
}
.duo__media {
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--rose);
}
.duo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duo__liste {
  display: grid;
  gap: var(--e2);
  margin: var(--e2) 0;
}
.duo__liste li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--gris);
}
.duo__puce {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--corail);
}

/* Cadeaux ---------------------------------------------------------------- */

.grille-cadeaux {
  display: grid;
  gap: var(--e2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
.cadeau {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 0.75rem;
  padding: var(--e2);
  text-align: center;
}
.cadeau__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--rose);
}
.cadeau__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cadeau__nom {
  font-family: var(--titre);
  font-size: 1.25rem;
  color: var(--framboise);
}
.cadeau__prix {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Journal ---------------------------------------------------------------- */

.grille-journal {
  display: grid;
  gap: var(--e3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.article-apercu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.article-apercu__media {
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--rose);
}
.article-apercu__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duree-ui) var(--souple);
}
.article-apercu:hover .article-apercu__media img {
  transform: scale(1.03);
}
.article-apercu__categorie {
  font-size: 0.85rem;
  color: var(--corail);
  font-weight: 600;
}
.article-apercu h3 a {
  color: inherit;
  text-decoration: none;
}
.article-apercu h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Newsletter ------------------------------------------------------------- */

.newsletter {
  background: var(--rose);
  border-radius: 0.75rem;
  padding: clamp(var(--e3), 4vw, var(--e5));
  display: grid;
  gap: var(--e3);
}
@media (min-width: 56rem) {
  .newsletter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}
.newsletter__form {
  display: grid;
  gap: var(--e2);
}
@media (min-width: 34rem) {
  .newsletter__form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}
.newsletter__mention {
  font-size: 0.85rem;
  color: var(--gris);
  margin: 0;
}
@media (min-width: 34rem) {
  .newsletter__mention {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------ 8. Pied       */

.pied {
  margin-top: clamp(3rem, 6vw, 6rem);
  background: var(--papier);
  border-top: 1px solid var(--ligne);
  padding-block: var(--e5) var(--e3);
}
.pied__grille {
  display: grid;
  gap: var(--e4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.logo__mot--pied {
  color: var(--framboise);
  display: block;
  margin-bottom: 0.75rem;
}
.pied__marque p {
  color: var(--gris);
  font-size: 0.95rem;
}
.pied__titre {
  font-family: var(--texte);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--encre);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.pied__liste {
  display: grid;
  gap: 0.35rem;
}
.pied__liste a {
  color: var(--gris);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}
.pied__liste a:hover {
  color: var(--framboise);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.pied__mentions,
.pied__signature {
  margin: var(--e3) 0 0;
  max-width: none;
  font-size: 0.85rem;
  color: var(--gris);
  text-align: center;
}
.pied__signature {
  margin-top: 0.5rem;
  padding-top: var(--e2);
  border-top: 1px solid var(--ligne);
}

/* ------------------------------------------------------------ 9. Mouvement  */

/* Apparition douce des titres de section, une seule fois. */
[data-revele] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--duree-revele) var(--souple),
    transform var(--duree-revele) var(--souple);
}
[data-revele].est-visible {
  opacity: 1;
  transform: none;
}
/* Sans JavaScript, rien ne doit rester invisible. */
.sans-js [data-revele] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-revele] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ 10. Page vide */

.page-attente {
  padding-block: clamp(3rem, 8vw, 7rem);
}
.page-attente__carte {
  max-width: 44rem;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 0.75rem;
  padding: clamp(var(--e3), 4vw, var(--e5));
}
.page-attente__carte p {
  color: var(--gris);
}
.page-attente__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  margin-top: var(--e3);
}

/* ------------------------------------------------------------ 11. Utilitaires */

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section--suite {
  padding-top: 0;
}

.apres-grille {
  margin-top: var(--e3);
}

.hero__faux-titre {
  margin: 0;
  max-width: none;
  font-family: var(--titre);
  font-size: clamp(2.8rem, 5.6vw, 6rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--framboise);
}

.newsletter__intro {
  margin: 0;
  color: var(--gris);
}

/* ------------------------------------- 12. Corrections de recette (mobile) */

/* Sur petit écran l'en-tête doit contenir : logo, recherche, panier, menu.
   « Mon compte » reste accessible depuis le menu et le pied de page. */
@media (max-width: 61.9375rem) {
  .action--compte {
    display: none;
  }
  .logo__mot {
    font-size: 1.5rem;
  }
  .entete__grille {
    gap: 0.5rem;
  }
  .action {
    padding: 0 0.5rem;
  }
  .burger {
    padding: 0 0.7rem;
  }
}

/* Le titre du hero est coupé volontairement, ligne par ligne, pour éviter
   les césures maladroites. Sur petit écran, les lignes se recollent et le
   texte se répartit naturellement. */
.hero__ligne {
  display: inline;
}
.hero__ligne + .hero__ligne::before {
  content: " ";
}
@media (min-width: 48rem) {
  .hero__ligne {
    display: block;
  }
  .hero__ligne + .hero__ligne::before {
    content: none;
  }
}

/* Le ruban : titre à gauche, formulaire à droite, bouton sur toute la
   largeur tant que la place manque. */
@media (min-width: 56rem) {
  .ruban .conteneur {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  }
}
@media (min-width: 34rem) and (max-width: 74.9375rem) {
  .ruban__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ruban__form .bouton {
    grid-column: 1 / -1;
  }
}
.ruban .champ > span {
  min-height: 1.4em;
}

/* ============================================================ 13. Boutique */

.fil {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: var(--e3);
  font-size: 0.9rem;
  color: var(--gris);
}
.fil a {
  color: var(--gris);
}
.fil a:hover {
  color: var(--framboise);
}
.fil [aria-current] {
  color: var(--encre);
  font-weight: 600;
}

.page-boutique h1,
.page-fiche h1,
.page-panier h1 {
  margin-top: var(--e2);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--e4);
}
.pilule {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--papier);
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
}
.pilule:hover {
  background: var(--rose);
  color: var(--framboise);
}
.pilule.est-active {
  background: var(--framboise);
  border-color: var(--framboise);
  color: #fff;
}

.boutique {
  display: grid;
  gap: var(--e4);
  padding-bottom: var(--e6);
}
@media (min-width: 62rem) {
  .boutique {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
  }
}

.filtres {
  display: grid;
  gap: var(--e2);
  padding: var(--e3);
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 0.75rem;
}
@media (min-width: 62rem) {
  .filtres {
    position: sticky;
    top: calc(var(--haut-entete) + 1rem);
  }
}
.filtres__titre {
  font-family: var(--texte);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--encre);
}
.filtres__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.compteur {
  margin: 0 0 var(--e3);
  color: var(--gris);
  font-weight: 600;
}

.etat-vide {
  padding: var(--e5) var(--e3);
  text-align: center;
  background: var(--rose);
  border-radius: 0.75rem;
}
.etat-vide p {
  margin-inline: auto;
}
.etat-vide .page-attente__actions {
  justify-content: center;
}

.carte__nom a {
  color: inherit;
  text-decoration: none;
}
.carte__nom a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
a.carte__media {
  display: block;
}
.est-desactive {
  opacity: 0.55;
  pointer-events: none;
}

/* ========================================================= 14. Fiche produit */

.fiche {
  display: grid;
  gap: var(--e4);
  margin-top: var(--e3);
}
@media (min-width: 62rem) {
  .fiche {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.galerie__grande {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--rose);
}
.galerie__vue {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duree-ui) var(--souple);
}
.galerie__vue.est-active {
  opacity: 1;
}
.galerie__vue img,
.galerie__vue .media-attente {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galerie__miniatures {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.galerie__mini {
  width: 5rem;
  height: 5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--rose);
  cursor: pointer;
}
.galerie__mini img,
.galerie__mini .media-attente {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}
.galerie__mini[aria-current="true"] {
  border-color: var(--framboise);
}

.achat__resume {
  font-size: 1.1rem;
  color: var(--gris);
}

.bloc {
  margin: 0 0 var(--e3);
  padding: var(--e3);
  border: 1px solid var(--ligne);
  border-radius: 0.75rem;
  background: var(--papier);
}
.bloc legend {
  padding: 0 0.4rem;
  font-family: var(--texte);
  font-size: 0.85rem;
  font-weight: 700;
}
.bloc--total {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--e2);
}

.formats {
  display: grid;
  gap: 0.5rem;
}
.format input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.format__corps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e2);
  min-height: 3rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  cursor: pointer;
}
.format__corps::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--ligne);
  border-radius: 999px;
  flex: 0 0 auto;
  order: -1;
}
.format input:checked + .format__corps {
  border-color: var(--framboise);
  background: var(--rose);
}
.format input:checked + .format__corps::before {
  border-color: var(--framboise);
  background:
    radial-gradient(circle, var(--framboise) 0 45%, transparent 46%);
}
.format input:focus-visible + .format__corps {
  outline: 3px solid var(--framboise-fonce);
  outline-offset: 2px;
}
.format__nom {
  font-weight: 600;
  margin-right: auto;
}
.format__prix {
  font-weight: 700;
}

.choix-deux {
  display: grid;
  gap: 0.5rem;
  margin-bottom: var(--e2);
}
@media (min-width: 34rem) {
  .choix-deux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.choix {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  cursor: pointer;
}
.choix input {
  width: auto;
  min-height: 0;
  accent-color: var(--framboise);
}
.choix input:disabled + span {
  color: var(--gris);
}

.extras {
  display: grid;
  gap: 0.4rem;
}
.extra {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  cursor: pointer;
}
.extra input {
  width: auto;
  min-height: 0;
  accent-color: var(--framboise);
}
.extra__nom {
  margin-right: auto;
}
.extra__prix {
  font-weight: 600;
  color: var(--gris);
}

.carte-message {
  margin-top: var(--e2);
  padding-top: var(--e2);
  border-top: 1px solid var(--ligne);
}

.aide {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--gris);
}

.champ--court {
  max-width: 7rem;
}

.total {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
}
.total span {
  color: var(--gris);
}
.total strong {
  font-family: var(--titre);
  font-size: 2.2rem;
  color: var(--framboise);
}

.bouton--large {
  width: 100%;
}

.alerte {
  margin: 0 0 var(--e2);
  padding: 0.8rem 1rem;
  border-radius: var(--rayon);
  border-left: 4px solid;
  max-width: none;
}
.alerte--douce {
  background: var(--abricot);
  border-color: var(--corail);
  color: var(--encre);
}
.alerte--erreur {
  background: var(--rose);
  border-color: var(--framboise);
  color: var(--framboise-fonce);
  font-weight: 600;
}
.alerte--succes {
  background: var(--rose);
  border-color: var(--corail);
  color: var(--encre);
  font-weight: 600;
}

.details__grille {
  display: grid;
  gap: var(--e3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: var(--e3);
}
.details__bloc {
  padding: var(--e3);
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 0.75rem;
}
.details__bloc h3 {
  font-family: var(--texte);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--encre);
  margin-bottom: 0.4rem;
}
.details__bloc p {
  margin: 0;
  color: var(--gris);
}

/* ================================================================ 15. Panier */

.panier {
  display: grid;
  gap: var(--e4);
  margin-top: var(--e3);
}
@media (min-width: 62rem) {
  .panier {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }
}
.panier__lignes {
  display: grid;
  gap: var(--e2);
}
.ligne {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: var(--e2);
  padding: var(--e2);
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 0.75rem;
}
@media (min-width: 48rem) {
  .ligne {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    align-items: start;
  }
}
.ligne__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--rose);
}
.ligne__media img,
.ligne__media .media-attente {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}
.ligne__nom {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.ligne__nom a {
  color: inherit;
  text-decoration: none;
}
.ligne__detail {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gris);
}
.ligne__extras {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: var(--gris);
}
.ligne__extras li::before {
  content: "+ ";
}
.ligne__message {
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.8rem;
  background: var(--rose);
  border-radius: var(--rayon);
  font-size: 0.92rem;
}
.ligne__message span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--framboise);
}
.ligne__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--e2);
  margin-top: var(--e2);
}
.ligne__quantite {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}
.ligne__prix {
  margin: 0;
  font-family: var(--titre);
  font-size: 1.8rem;
  color: var(--framboise);
  grid-column: 2;
}
@media (min-width: 48rem) {
  .ligne__prix {
    grid-column: 3;
    text-align: right;
  }
}

.lien-bouton {
  min-height: 2.75rem;
  padding: 0 0.4rem;
  border: 0;
  background: none;
  color: var(--gris);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.lien-bouton:hover {
  color: var(--framboise);
}

.recap {
  display: grid;
  gap: var(--e2);
  padding: var(--e3);
  background: var(--rose);
  border-radius: 0.75rem;
}
@media (min-width: 62rem) {
  .recap {
    position: sticky;
    top: calc(var(--haut-entete) + 1rem);
  }
}
.recap h2 {
  font-size: 1.6rem;
}
.recap__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0;
  padding-bottom: var(--e2);
  border-bottom: 1px solid var(--ligne);
}
.recap__total strong {
  font-family: var(--titre);
  font-size: 2.2rem;
  color: var(--framboise);
}
.recap__vider {
  text-align: center;
}

.action--panier {
  position: relative;
}
.action__pastille {
  position: absolute;
  top: 0.25rem;
  right: 0.1rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--framboise);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

/* Correction de recette : l'étiquette se place sur la carte, pas sur la page. */
.carte {
  position: relative;
}
a.carte__media {
  text-decoration: none;
  color: inherit;
}

/* ============================================================== 16. Commande */

.commande {
  display: grid;
  gap: 0;
}
.grille-champs {
  display: grid;
  gap: var(--e2);
}
@media (min-width: 40rem) {
  .grille-champs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .champ--large {
    grid-column: 1 / -1;
  }
}
.champ small {
  font-weight: 400;
  color: var(--gris);
}
.champ__erreur {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--framboise-fonce);
}
input[aria-invalid="true"] {
  border-color: var(--framboise);
  box-shadow: 0 0 0 1px var(--framboise);
}
.aide--haut {
  margin: 0 0 var(--e2);
}

.creneaux {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--e2);
}
@media (min-width: 40rem) {
  .creneaux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.creneaux__titre {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.creneau input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.creneau__corps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--e2);
  min-height: 3rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  cursor: pointer;
}
.creneau input:checked + .creneau__corps {
  border-color: var(--framboise);
  background: var(--rose);
  box-shadow: inset 0 0 0 1px var(--framboise);
}
.creneau input:focus-visible + .creneau__corps {
  outline: 3px solid var(--framboise-fonce);
  outline-offset: 2px;
}
.creneau__libelle {
  font-weight: 600;
}
.creneau__reste {
  font-size: 0.85rem;
  color: var(--gris);
}
.creneau.est-complet .creneau__corps {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

.demo-avertissement {
  margin: 0 0 var(--e3);
  padding: var(--e2) var(--e3);
  background: var(--abricot);
  border-radius: var(--rayon);
  font-size: 0.95rem;
  max-width: none;
}
.demo-avertissement strong {
  display: block;
  color: var(--framboise-fonce);
}

.recap__lignes {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-bottom: var(--e2);
  border-bottom: 1px solid var(--ligne);
}
.recap__lignes li {
  display: flex;
  justify-content: space-between;
  gap: var(--e2);
  font-size: 0.95rem;
}
.recap__nom small {
  display: block;
  color: var(--gris);
}
.recap__extra {
  color: var(--gris);
  padding-left: 0.75rem;
}
.recap__note {
  font-size: 0.86rem !important;
  color: var(--framboise-fonce);
  font-style: italic;
}
.recap__ligne {
  display: flex;
  justify-content: space-between;
  margin: 0;
  max-width: none;
  color: var(--gris);
}

/* ========================================================= 17. Confirmation */

.confirmation,
.suivi {
  max-width: 50rem;
  display: grid;
  gap: var(--e3);
}
.confirmation h1 {
  margin-top: 0;
}
.reference {
  display: grid;
  gap: 0.2rem;
  padding: var(--e3);
  background: var(--papier);
  border: 2px dashed var(--framboise);
  border-radius: 0.75rem;
  text-align: center;
}
.reference span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gris);
}
.reference strong {
  font-family: var(--titre);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.06em;
  color: var(--framboise);
}
.reference small {
  color: var(--gris);
}
.confirmation__grille {
  display: grid;
  gap: var(--e3);
}
@media (min-width: 48rem) {
  .confirmation__grille {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
.confirmation .bloc,
.suivi .bloc {
  margin: 0;
}
.bloc__titre {
  font-family: var(--texte);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--encre);
  margin-bottom: 0.6rem;
}

.etapes {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.35rem;
  color: var(--gris);
}
.etapes .est-faite {
  color: var(--framboise);
  font-weight: 700;
}

/* ============================================================== 18. Suivi */

.suivi__form {
  display: grid;
  gap: var(--e2);
}
@media (min-width: 40rem) {
  .suivi__form {
    grid-template-columns: 1fr 1.4fr auto;
    align-items: end;
  }
}
.chronologie {
  list-style: none;
  margin: 0;
  padding: var(--e3);
  display: grid;
  gap: 0;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 0.75rem;
}
.chronologie li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3rem;
  color: var(--gris);
}
.chronologie li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 2.1rem;
  bottom: -0.9rem;
  width: 2px;
  background: var(--ligne);
}
.chronologie li.est-faite::after {
  background: var(--framboise);
}
.chronologie__point {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--ligne);
  background: var(--papier);
  flex: 0 0 auto;
  z-index: 1;
}
.chronologie .est-faite .chronologie__point {
  background: var(--framboise);
  border-color: var(--framboise);
}
.chronologie .est-en-cours .chronologie__point {
  border-color: var(--framboise);
  box-shadow: 0 0 0 4px var(--rose);
}
.chronologie .est-en-cours {
  color: var(--encre);
  font-weight: 700;
}

.confirmation {
  margin-inline: auto;
}

/* ============================================================ 19. Sur mesure */

.sm-entete {
  padding-top: var(--e3);
}
.sm-entete h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}
.sm-question {
  margin: var(--e3) 0 0.6rem;
  font-weight: 600;
}
.sm-question:first-of-type {
  margin-top: 0;
}
.sm-question small {
  font-weight: 400;
  color: var(--gris);
}

/* Pastilles d'occasion */
.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pastille input,
.style input,
.teinte input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pastille span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--papier);
  cursor: pointer;
  font-weight: 500;
}
.pastille input:checked + span {
  background: var(--framboise);
  border-color: var(--framboise);
  color: #fff;
}
.pastille input:focus-visible + span,
.style input:focus-visible + .style__corps,
.teinte input:focus-visible + .teinte__corps {
  outline: 3px solid var(--framboise-fonce);
  outline-offset: 2px;
}

/* Cartes de style */
.styles {
  display: grid;
  gap: var(--e2);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 34rem) {
  .styles {
    grid-template-columns: 1fr;
  }
}
.style__corps {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 0.5rem;
  border: 2px solid var(--ligne);
  border-radius: 0.75rem;
  background: var(--papier);
  cursor: pointer;
  transition: border-color var(--duree-rapide) var(--souple);
}
.style__media {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--rose);
}
@media (max-width: 34rem) {
  .style__media {
    aspect-ratio: 16 / 9;
  }
}
.style__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.style__nom {
  font-family: var(--titre);
  font-size: 1.4rem;
  color: var(--framboise);
}
.style__texte {
  font-size: 0.88rem;
  color: var(--gris);
}
.style input:checked + .style__corps {
  border-color: var(--framboise);
  background: var(--rose);
}

/* Nuancier */
.nuancier {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--e3);
}
.teinte__corps {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0 1rem 0 0.4rem;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--papier);
  cursor: pointer;
}
.teinte__rond {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(48, 37, 39, 0.12);
  transition: transform var(--duree-rapide) var(--souple);
}
.teinte input:checked + .teinte__corps {
  border-color: var(--framboise);
  box-shadow: inset 0 0 0 1px var(--framboise);
  font-weight: 600;
}
.teinte input:checked + .teinte__corps .teinte__rond {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--papier), 0 0 0 5px var(--framboise);
}

.choix-trois {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.choix-trois .choix {
  justify-content: center;
  padding: 0.4rem;
  font-size: 0.92rem;
}

.sm-photo {
  margin-top: 0.6rem;
  max-width: 12rem;
  border-radius: var(--rayon);
  overflow: hidden;
}
.sm-photo img {
  width: 100%;
}

/* Étapes : actives seulement quand le JavaScript prend la main */
.sm.est-par-etapes .sm-etape {
  display: none;
}
.sm.est-par-etapes .sm-etape.est-courante {
  display: block;
  animation: apparition var(--duree-ui) var(--souple);
}
@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sm-navigation {
  display: flex;
  justify-content: space-between;
  gap: var(--e2);
}
.sm-navigation [data-precedent-etape][disabled] {
  visibility: hidden;
}

.sm-progression {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0 0 var(--e3);
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.sm-progression li {
  counter-increment: etape;
  padding-top: 0.6rem;
  border-top: 3px solid var(--ligne);
  font-size: 0.85rem;
  color: var(--gris);
}
.sm-progression li::before {
  content: counter(etape) ". ";
  font-weight: 700;
}
.sm-progression li.est-faite,
.sm-progression li.est-courante {
  border-color: var(--framboise);
  color: var(--encre);
}
.sm-progression li.est-courante {
  font-weight: 700;
}
@media (max-width: 34rem) {
  .sm-progression li {
    font-size: 0;
  }
  .sm-progression li::before {
    font-size: 0.85rem;
  }
}

/* Aperçu vivant */
.sm-apercu__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--papier);
}
.sm-apercu__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--duree-ui) var(--souple);
}
.sm-apercu__liste {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.sm-apercu__liste div {
  display: flex;
  justify-content: space-between;
  gap: var(--e2);
  font-size: 0.93rem;
  border-bottom: 1px solid var(--ligne);
  padding-bottom: 0.35rem;
}
.sm-apercu__liste dt {
  color: var(--gris);
}
.sm-apercu__liste dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.sm-apercu__pastilles {
  display: inline-flex;
  gap: 0.2rem;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.sm-apercu__pastilles i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(48, 37, 39, 0.15);
}
@media (max-width: 61.9375rem) {
  .sm-apercu__media {
    aspect-ratio: 16 / 9;
  }
}

/* Respiration entre les champs d'une étape */
.sm .sm-etape {
  display: grid;
  gap: var(--e2);
}
.sm.est-par-etapes .sm-etape.est-courante {
  display: grid;
}
.sm .sm-etape .demo-avertissement {
  margin: var(--e2) 0 0;
}
.sm .sm-question {
  margin: var(--e2) 0 -0.4rem;
}
.sm .sm-question:first-of-type {
  margin-top: 0;
}
