/* =========================================================
   Ourson Origami — feuille de style
   Couleurs et polices modifiables ici, dans :root
   ========================================================= */
:root {
  /* Palette "galerie" : blanc, noir, gris neutres, accent rose poudre */
  --creme: #FFFFFF;       /* fond principal (blanc) */
  --lin: #F6F4F1;         /* fond des sections alternees (blanc tres legerement chaud) */
  --sable: #EEEEEE;       /* gris clair neutre */
  --rose: #E9C6CB;        /* rose poudre : badges, pastilles */
  --rose-doux: #F7E9EB;   /* rose tres clair : surlignages doux */
  --rose-accent: #C98A93; /* rose poudre decoratif (pas pour du petit texte) */
  --rose-titre: #B56F7A;  /* mots en italique des titres (grand texte, contraste 3.8:1) */
  --rose-texte: #A05862;  /* liens et petit texte (AA : 5.2:1 sur blanc, 4.7:1 sur #F6F4F1) */
  --rose-fonce: #8F4A55;  /* texte sur fond rose clair (AA 5.4:1) */
  --encre: #111111;       /* texte principal et boutons */
  --gris: #6B6B6B;        /* texte secondaire */
  --trait: #E6E6E6;       /* bordures et filets */

  --police-titre: "Fraunces", Georgia, serif;
  --police-texte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-initiale: "Great Vibes", "Snell Roundhand", cursive;

  --rayon: 16px;
  --rayon-petit: 10px;
  --ombre: 0 1px 2px rgba(17,17,17,.04), 0 10px 28px -18px rgba(17,17,17,.18);
  --largeur: 1180px;
  --entete: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rose-texte); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; font-family: var(--police-titre); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--rose-titre); }
p { margin: 0 0 1em; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.conteneur--etroit { max-width: 780px; }
.centre { text-align: center; margin-top: 2.5rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--encre); color: var(--creme); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--rose-texte); outline-offset: 3px; border-radius: 6px; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.surtitre {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose-texte); margin-bottom: .8rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem;
  border-radius: 999px; border: 1.5px solid var(--encre);
  background: transparent; color: var(--encre);
  font: 700 1rem/1.2 var(--police-texte); text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--encre); color: var(--creme); }
.btn--plein, .btn--grand { background: var(--encre); color: var(--creme); }
.btn--plein:hover, .btn--grand:hover { background: #000000; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(17,17,17,.5); }
.btn--grand { width: 100%; min-height: 58px; font-size: 1.05rem; }
.btn--petit { min-height: 44px; padding: .5rem 1.15rem; font-size: .92rem; background: var(--encre); color: var(--creme); }
.btn--petit:hover { background: #000000; }

/* ---------- En-tete ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.entete.est-defile { border-bottom-color: var(--trait); }
.entete__in { height: var(--entete); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--police-titre); font-size: 1.3rem; color: var(--encre); text-decoration: none; margin: 0; }
.logo__ico { width: 30px; height: 30px; color: var(--encre); }
.nav { display: none; }
.nav a { color: var(--encre); text-decoration: none; font-size: .95rem; padding: .5rem .2rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .25rem; height: 1.5px; background: var(--rose-texte); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero + achat ---------- */
.hero { padding: 1rem 0 3.5rem; position: relative; overflow: clip; }
.hero::before { content: none; }
.hero__grille { display: grid; gap: 1.75rem; }

.vitrine {
  position: relative; margin: 0; border-radius: var(--rayon); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--ombre);
  background: #FFFFFF; /* couleur du fond studio pendant le chargement */
}
.vitrine img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.vitrine img.change { opacity: 0; }

.vignettes { display: flex; gap: .55rem; margin-top: .75rem; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.vignettes::-webkit-scrollbar { display: none; }
.vignette {
  position: relative; flex: none; width: 60px; height: 60px; padding: 0; border-radius: var(--rayon-petit); overflow: hidden;
  border: 2px solid transparent; background: var(--lin); cursor: pointer; transition: border-color .2s;
}
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette[aria-pressed="true"] { border-color: var(--encre); }
.vignette:hover { border-color: var(--rose); }

.hero__intro { color: var(--gris); font-size: 1.05rem; max-width: 34rem; }
.prix { font-family: var(--police-titre); font-size: 1.9rem; margin: 1.2rem 0 1.4rem; }
.prix small { font-family: var(--police-texte); font-size: .9rem; color: var(--gris); }

.config { display: grid; gap: 1.4rem; max-width: 32rem; }
.champ { border: 0; padding: 0; margin: 0; min-width: 0; }
.champ legend, .champ label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .55rem; padding: 0; }
.champ legend strong { font-weight: 400; color: var(--gris); }
.aide { font-size: .85rem; color: var(--gris); margin: -.25rem 0 .6rem; }
.aide--centre { text-align: center; margin: -.5rem 0 0; }
.erreur { color: #A12F25; font-size: .85rem; font-weight: 600; margin: .4rem 0 0; }




.qte { display: inline-flex; align-items: center; border: 1.5px solid var(--trait); border-radius: 999px; background: #fff; }
.qte__btn { width: 48px; height: 48px; border: 0; background: none; font-size: 1.4rem; color: var(--encre); cursor: pointer; border-radius: 50%; }
.qte__btn:hover { background: var(--lin); }
.qte input { width: 3rem; height: 48px; border: 0; text-align: center; font: 700 1.05rem var(--police-texte); background: none; color: var(--encre); -moz-appearance: textfield; }
.qte input::-webkit-outer-spin-button, .qte input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rassurance { max-width: 32rem; list-style: none; padding: 1.2rem 0 0; margin: 1.6rem 0 0; border-top: 1px solid var(--trait); display: grid; gap: .6rem; font-size: .93rem; color: var(--gris); }
.rassurance li { display: flex; align-items: center; gap: .65rem; }
.rassurance .ico { color: var(--rose-texte); }

/* Options de livraison */
.champ--livraison legend strong { font-weight: 400; color: var(--gris); }
.options-liv { display: grid; gap: .55rem; }
.champ .option-liv {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; margin: 0; cursor: pointer;
  min-height: 56px; padding: .6rem 1rem; border: 1.5px solid var(--trait); border-radius: 16px; background: #fff;
  font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.option-liv input { width: 20px; height: 20px; margin: 0; accent-color: var(--encre); }
.option-liv:has(input:checked) { border-color: var(--encre); box-shadow: 0 0 0 1px var(--encre); }
.option-liv:has(input:focus-visible) { outline: 3px solid var(--rose-texte); outline-offset: 3px; }
.option-liv__txt { display: grid; line-height: 1.25; }
.option-liv__txt small { color: var(--gris); font-size: .82rem; }
.option-liv__prix { font-weight: 700; white-space: nowrap; }
.relais { margin-top: .9rem; }
.champ .relais label { font-size: .9rem; margin-bottom: .4rem; }
.relais .facultatif { font-weight: 400; color: var(--gris); }
.relais input {
  width: 100%; min-height: 48px; padding: .7rem 1rem; border: 1.5px solid var(--trait); border-radius: var(--rayon-petit);
  font: inherit; font-size: 16px; color: var(--encre); background: #fff;
}
.relais input:focus { border-color: var(--encre); outline: none; box-shadow: 0 0 0 3px var(--rose); }
.relais .aide { margin: .45rem 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Promotion, coffret et mentions d'achat */
.promo { margin: -.9rem 0 1.4rem; font-weight: 700; color: var(--rose-texte); }
.promo small { font-weight: 400; color: var(--gris); }
.aide--remise, .aide--poids { margin: .55rem 0 0; }
.aide--actif { color: var(--rose-texte); font-weight: 700; }
.qte__btn:disabled { opacity: .35; cursor: not-allowed; }
.champ .option-coffret {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; margin: 0; cursor: pointer;
  min-height: 56px; padding: .7rem 1rem; border: 1.5px solid var(--trait); border-radius: 16px; background: #fff;
  font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.option-coffret input { width: 20px; height: 20px; margin: 0; accent-color: var(--encre); }
.option-coffret:has(input:checked) { border-color: var(--encre); box-shadow: 0 0 0 1px var(--encre); background: var(--rose-doux); }
.option-coffret:has(input:focus-visible) { outline: 3px solid var(--rose-texte); outline-offset: 3px; }
.option-coffret__txt { display: grid; line-height: 1.3; }
.option-coffret__txt small { color: var(--gris); font-size: .82rem; }
.champ--coffret .aide { margin: .45rem 0 0; }
.mentions-achat { display: grid; gap: .45rem; }
.mention { margin: 0; font-size: .85rem; line-height: 1.45; padding: .55rem .85rem; border-radius: var(--rayon-petit); }
.mention--securite { background: var(--lin); color: var(--encre); }
.mention--perso { background: var(--rose-doux); color: var(--rose-fonce); font-weight: 600; }

/* Paiement PayPal */
.paypal { display: grid; gap: .7rem; }
.paypal__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; margin: 0; padding: .8rem 1.1rem; border-radius: var(--rayon-petit); background: var(--lin); }
.paypal__total span { font-weight: 700; }
.paypal__total strong { font-family: var(--police-titre); font-size: 1.45rem; font-weight: 600; margin-left: auto; }
.paypal__total small { width: 100%; text-align: right; color: var(--gris); font-size: .82rem; }
.paypal__test {
  margin: 0; justify-self: center; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #7A4B00;
  background: #FFF4D6; border: 1px dashed #E2B65C; border-radius: 999px; padding: .3rem .8rem;
}
.paypal__test::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #E2A33A; }
.paypal__boutons { min-height: 104px; position: relative; z-index: 0; }
.paypal__chargement { margin: 0; height: 104px; display: grid; place-items: center; border-radius: 999px; background: var(--lin); color: var(--gris); font-size: .9rem; }
.paypal__message { margin: 0; padding: .7rem 1rem; border-radius: var(--rayon-petit); background: var(--lin); font-size: .92rem; }
.paypal__message--erreur { background: #FBE9E6; color: #8A2A1E; }
.paypal__note { margin: 0 !important; }
.lien-discret { background: none; border: 0; padding: .5rem .25rem; min-height: 44px; font: inherit; color: var(--rose-texte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien-discret:hover { color: var(--encre); }

/* Confirmation de commande */
.confirmation { margin-top: 1rem; padding: 2rem 1.5rem; border-radius: var(--rayon); background: var(--rose-doux); text-align: center; box-shadow: var(--ombre); }
.confirmation:focus { outline: none; }
.confirmation__ico { width: 44px; height: 44px; margin: 0 auto .6rem; color: var(--rose-texte); }
.confirmation__titre { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-bottom: .6rem; }
.confirmation p { color: var(--gris); }
.confirmation strong { color: var(--encre); word-break: break-all; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 2.5rem + 5vw, 6.5rem) 0; }
.section--lin { background: var(--lin); }
.section--rose { background: var(--lin); }
.section__tete { text-align: center; max-width: 40rem; margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3.2rem); }
.section__tete p:last-child { color: var(--gris); }

/* Galerie */
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
/* Mosaique : duo en paysage, puis tuiles portrait 4:5 */
.galerie--mosaique .galerie__item { aspect-ratio: 4 / 5; }
.galerie--mosaique .galerie__item--duo { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.galerie--mosaique .galerie__texte { grid-column: 1 / -1; aspect-ratio: auto; }
.galerie__item {
  position: relative; padding: 0; border: 0; border-radius: var(--rayon); overflow: hidden; cursor: zoom-in;
  background: var(--lin); aspect-ratio: 3 / 4; text-align: left;
}
.galerie__item--carre { grid-column: 1 / -1; aspect-ratio: 1 / 1; }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.galerie__item:hover img { transform: scale(1.04); }
.galerie__legende {
  position: absolute; left: .6rem; bottom: .6rem; right: .6rem; width: fit-content;
  background: rgba(255,255,255,.92); color: var(--encre); border-radius: 999px;
  padding: .35rem .8rem; font: 600 .8rem/1.3 var(--police-texte);
}
.galerie__legende em { font-style: normal; color: var(--rose-texte); }
.galerie__zoom { position: absolute; top: .7rem; right: .7rem; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--encre); opacity: .85; }

.galerie__texte {
  grid-column: 1 / -1; border-radius: var(--rayon); background: var(--rose-doux); padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: center;
}
.galerie__texte p { margin: 0; color: var(--gris); }
.galerie__texte .grande-lettre { font-family: var(--police-initiale); font-size: 4rem; line-height: .9; color: var(--rose-titre); margin-bottom: .4rem; }

/* Cartes caracteristiques */
.cartes { display: grid; gap: 1rem; }
.carte { background: var(--creme); border-radius: var(--rayon); padding: 1.6rem; box-shadow: var(--ombre); }
.carte p { color: var(--gris); margin: 0; }
.ico--rond { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--rose-doux); color: var(--rose-texte); margin-bottom: 1rem; }

.fiche { margin: 2.5rem 0 0; background: var(--creme); border-radius: var(--rayon); padding: .5rem 1.4rem; box-shadow: var(--ombre); }
.fiche div { display: grid; gap: .15rem; padding: .95rem 0; border-bottom: 1px solid var(--trait); }
.fiche div:last-child { border-bottom: 0; }
.fiche dt { font-weight: 700; font-size: .9rem; }
.fiche dd { margin: 0; color: var(--gris); }

/* Idees cadeaux */
.idees { display: grid; gap: 1.25rem; }
.idee { background: #fff; border-radius: var(--rayon); padding: 1.6rem; border: 1px solid var(--trait); }
.idee p { color: var(--gris); margin: 0; }
.idee__visuel {
  height: 120px; border-radius: 16px; margin-bottom: 1.2rem; display: grid; place-items: center; position: relative; overflow: hidden;
}
.idee__visuel::before { /* motif a facettes */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background:
    linear-gradient(120deg, rgba(255,255,255,.55) 0 33%, transparent 33%),
    linear-gradient(240deg, rgba(255,255,255,.3) 0 28%, transparent 28%),
    linear-gradient(300deg, rgba(0,0,0,.05) 0 40%, transparent 40%);
}
.idee__visuel .ico { width: 40px; height: 40px; position: relative; stroke-width: 1.4; }
.idee__visuel--rose { background: var(--rose); color: var(--rose-fonce); }
.idee__visuel--sable { background: var(--sable); color: var(--encre); }
.idee__visuel--encre { background: var(--encre); color: var(--rose); }

/* Livraison */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: none; }
.etape { background: var(--creme); border-radius: var(--rayon); padding: 1.5rem; position: relative; }
.etape p { color: var(--gris); margin: 0; }
.etape__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--encre); color: var(--creme); font: 600 1.1rem var(--police-titre); margin-bottom: .9rem; }
.infos-livraison { margin-top: 2rem; display: grid; gap: .8rem; }
.infos-livraison p { display: flex; gap: .75rem; align-items: flex-start; margin: 0; }
.infos-livraison .ico { color: var(--rose-texte); margin-top: .15rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--trait); }
.faq details:first-child { border-top: 1px solid var(--trait); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: 1.02rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rose-doux); color: var(--rose-texte); font: 400 1.3rem/1 var(--police-texte); transition: transform .3s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--gris); margin: 0 0 1.2rem; padding-right: 1rem; }

/* Contact */
.contact { display: grid; gap: 2rem; }
.contact__mail { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.contact__mail a { color: var(--encre); }
.formulaire { background: var(--creme); border-radius: var(--rayon); padding: 1.5rem; box-shadow: var(--ombre); display: grid; gap: 1rem; }
.formulaire input, .formulaire textarea {
  width: 100%; padding: .8rem 1rem; min-height: 48px; border: 1.5px solid var(--trait); border-radius: var(--rayon-petit);
  font: inherit; color: var(--encre); background: #fff;
}
.formulaire input:focus, .formulaire textarea:focus { border-color: var(--encre); outline: none; box-shadow: 0 0 0 3px var(--rose); }
.formulaire .aide { margin: 0; }
.formulaire__statut { margin: 0; font-weight: 600; color: var(--rose-texte); }
.formulaire__statut:empty { display: none; }

/* Pied de page */
.pied { background: var(--encre); color: #D6D6D6; padding: 3rem 0 6rem; }
.pied .logo { color: var(--creme); }
.pied__in { display: grid; gap: 1.2rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.pied a { color: #D6D6D6; text-decoration: none; padding: .5rem 0; display: inline-block; }
.pied a:hover { color: var(--rose); }
.pied__copy { font-size: .85rem; margin: 0; color: #A3A3A3; }

/* Barre d'achat mobile */
.barre-achat {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--trait); border-radius: 999px; padding: .45rem .5rem .45rem 1.25rem;
  box-shadow: 0 12px 30px -10px rgba(17,17,17,.3);
  transform: translateY(150%); transition: transform .35s ease;
}
.barre-achat.visible { transform: none; }
.barre-achat div { display: grid; line-height: 1.2; font-size: .9rem; }
.barre-achat strong { font-family: var(--police-titre); font-weight: 600; }
.barre-achat span { color: var(--gris); }

/* Loupe */
.loupe { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.loupe::backdrop { background: rgba(17,17,17,.82); }
.loupe img { max-height: 88vh; width: auto; border-radius: var(--rayon); margin: auto; }
.loupe__fermer { position: absolute; top: -.75rem; right: -.75rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--creme); color: var(--encre); display: grid; place-items: center; cursor: pointer; z-index: 1; }

/* Apparition au defilement */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.vu { opacity: 1; transform: none; }

/* ---------- Tablette ---------- */
@media (min-width: 640px) {
  .cartes { grid-template-columns: 1fr 1fr; }
  .idees, .etapes { grid-template-columns: repeat(3, 1fr); }
  .fiche div { grid-template-columns: 11rem 1fr; gap: 1rem; }
  .formulaire { padding: 2rem; }
}

@media (min-width: 640px) {
  .galerie--mosaique { grid-template-columns: repeat(4, 1fr); }
  .galerie--mosaique .galerie__item--duo { grid-column: span 2; aspect-ratio: auto; }
  .galerie--mosaique .galerie__texte { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
  .galerie--mosaique .galerie__texte .grande-lettre { margin: 0; }
  .vignette { width: 72px; height: 72px; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .hero__media { width: 100%; max-width: 520px; margin-inline: auto; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 960px) {
  :root { --entete: 76px; }
  .nav { display: flex; gap: 1.6rem; }
  .hero { padding: 2.5rem 0 5rem; }
  .hero__grille { grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: start; }
  .hero__media { position: sticky; top: calc(var(--entete) + 1.5rem); width: 100%; max-width: max(440px, calc(100vh - var(--entete) - 190px)); justify-self: end; }
  .vignettes { gap: .75rem; }
  .vignette { width: 76px; height: 76px; }
  .cartes { grid-template-columns: repeat(4, 1fr); }
  .galerie { grid-template-columns: repeat(4, 1fr); }
  .galerie__item--carre { grid-column: auto; aspect-ratio: 3 / 4; }
  .contact { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
  .barre-achat { display: none; }
  .pied { padding-bottom: 3rem; }
  .pied__in { grid-template-columns: auto 1fr; align-items: center; }
  .pied nav { justify-content: flex-end; }
  .pied__copy { grid-column: 1 / -1; }
}

/* ---------- Mouvements reduits ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   Presentation "galerie" : les photos comme des oeuvres
   ========================================================= */
.vitrine {
  background: #FFFFFF; border: 1px solid var(--trait); box-shadow: none;
  padding: clamp(.9rem, 3.5vw, 1.75rem); border-radius: var(--rayon);
}
.vitrine img { border-radius: 10px; }
.vignette { background: #FFFFFF; border: 1px solid var(--trait); padding: 3px; }
.vignette img { border-radius: 7px; }
.vignette[aria-pressed="true"] { border: 2px solid var(--encre); padding: 2px; }
.galerie { gap: clamp(.75rem, 1.6vw, 1.25rem); }
.galerie__item { background: #FFFFFF; border: 1px solid var(--trait); padding: clamp(6px, .9vw, 10px); }
.galerie__item img { border-radius: 9px; }
.galerie__item:hover img { transform: scale(1.025); }
.galerie__legende { left: 1rem; bottom: 1rem; box-shadow: 0 2px 10px -4px rgba(17,17,17,.2); }
.galerie__zoom { top: 1rem; right: 1rem; }
.galerie__texte { background: var(--lin); }
.carte, .fiche, .formulaire, .etape { box-shadow: none; border: 1px solid var(--trait); background: #FFFFFF; }
.btn:hover, .btn--plein:hover, .btn--grand:hover, .btn--petit:hover { background: #000000; color: #FFFFFF; }
.btn--plein:hover, .btn--grand:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); }

/* Idees cadeaux : occasions a egalite */
.idees { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.idee { background: #FFFFFF; border: 1px solid var(--trait); padding: 1.4rem 1.3rem; border-radius: var(--rayon); }
.idee .ico--rond { margin-bottom: .9rem; }
.idee h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.idee p { font-size: .95rem; }

/* Pastilles de couleur (25 couleurs eSUN PLA+) */
.legende-note { font-weight: 400; color: var(--gris); }
.pastilles-c { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 4px; max-width: 32rem; }
.champ .pastille-c { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; cursor: pointer; }
.pastille-c input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
/* contour 3:1 minimum, visible meme sur les couleurs claires */
.pastille-c__rond { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.45); transition: transform .15s; }
.pastille-c:hover .pastille-c__rond { transform: scale(1.08); }
.pastille-c input:checked + .pastille-c__rond { box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.45), 0 0 0 2px #fff, 0 0 0 4px var(--encre); }
.pastille-c input:focus-visible + .pastille-c__rond { outline: 3px solid var(--rose-texte); outline-offset: 5px; }

/* Pancarte personnalisee + apercu */
.champ--pancarte { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: end; }
.champ--pancarte .facultatif { font-weight: 400; color: var(--gris); }
#pancarte {
  width: 100%; min-height: 48px; padding: .7rem 1rem; border: 1.5px solid var(--trait); border-radius: var(--rayon-petit);
  font: inherit; font-size: 16px; color: var(--encre); background: #fff;
}
#pancarte:focus { border-color: var(--encre); outline: none; box-shadow: 0 0 0 3px var(--rose); }
#pancarte[aria-invalid="true"] { border-color: #A12F25; }
.compteur { margin: .35rem 0 0; text-align: right; font-size: .8rem; }

/* Apercu 3D dans la vitrine */
.vitrine__3d {
  position: absolute; inset: clamp(.9rem, 3.5vw, 1.75rem); border-radius: 10px; overflow: hidden; background: #fff;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.vitrine__3d canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.vitrine__3d canvas:active { cursor: grabbing; }
.vitrine--3d .vitrine__3d { opacity: 1; pointer-events: auto; }
.vitrine--3d img { opacity: 0; }
.vitrine__note { font-size: .8rem; color: var(--gris); margin: .6rem 0 0; }
.vignette--3d { display: grid; place-items: center; }
.vignette__pastille { width: 60%; height: 60%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.45); }
.vignette__3d { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: var(--encre); color: #fff; font: 700 .62rem/1.5 var(--police-texte); }

/* Le bloc de commande ne doit jamais depasser la largeur de l ecran */
.config { grid-template-columns: minmax(0, 1fr); }
.pastilles-c { width: 100%; }
@media (max-width: 959px) { .hero__grille { grid-template-columns: minmax(0, 1fr); } }

/* Choix du modele */
.modeles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.champ .modele-c {
  position: relative; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: .7rem; margin: 0; cursor: pointer;
  padding: .45rem .7rem .45rem .45rem; border: 1.5px solid var(--trait); border-radius: 14px; background: #fff; font-weight: 400;
}
.modele-c input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.modele-c img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.modele-c__txt { display: grid; line-height: 1.25; }
.modele-c__txt small { color: var(--gris); font-size: .8rem; }
.modele-c:has(input:checked) { border-color: var(--encre); box-shadow: 0 0 0 1px var(--encre); }
.modele-c:has(input:focus-visible) { outline: 3px solid var(--rose-texte); outline-offset: 3px; }

/* Apercu de la pancarte : plaque blanche, cordelette, texte en relief */
.apercu-pancarte { position: relative; width: 156px; height: 132px; }
.apercu-pancarte__cordon { position: absolute; left: 3px; top: 0; width: 150px; height: 46px; }
.apercu-pancarte__plaque {
  position: absolute; left: 3px; top: 40px; width: 150px; height: 70px; padding: 5px 8px; display: grid; place-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F2EF 100%); border-radius: 5px;
  box-shadow: 0 0 0 1px #E2DDD6, 0 6px 14px -8px rgba(17,17,17,.35);
}
.apercu-pancarte__plaque::before, .apercu-pancarte__plaque::after { /* deux trous de la cordelette */
  content: ""; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: #D8CFC4;
}
.apercu-pancarte__plaque::before { left: 9px; } .apercu-pancarte__plaque::after { right: 9px; }
.apercu-pancarte__texte {
  font-family: "Fraunces", Georgia, serif; font-weight: 900; font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: 1.45rem; line-height: 1.02; text-align: center; letter-spacing: .01em; color: #E78397;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  /* relief : arete claire en haut, ombre portee en bas */
  text-shadow: 0 -1px 0 rgba(255,255,255,.55), 0 1px 0 rgba(0,0,0,.22), 0 2px 2px rgba(0,0,0,.14);
}
.apercu-pancarte__texte.exemple { opacity: .55; }
.apercu-pancarte__legende { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }

/* Couleur du texte : liste repliable de petites pastilles */
.couleur-texte { grid-column: 1 / -1; border: 1px solid var(--trait); border-radius: 12px; padding: 0 .9rem; }
.couleur-texte summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 700; }
.couleur-texte summary::-webkit-details-marker { display: none; }
.couleur-texte summary strong { font-weight: 400; color: var(--gris); }
.couleur-texte__mini { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(17,17,17,.45); }
.couleur-texte__changer { margin-left: auto; font-weight: 600; font-size: .85rem; color: var(--rose-texte); text-decoration: underline; text-underline-offset: 3px; }
.couleur-texte[open] .couleur-texte__changer { visibility: hidden; }
.pastilles-c--petites { grid-template-columns: repeat(auto-fill, 36px); gap: 2px; padding: 0 0 .8rem; }
.pastilles-c--petites .pastille-c { width: 36px; height: 36px; }
.pastilles-c--petites .pastille-c__rond { width: 24px; height: 24px; }

/* Galerie : 4 photos portrait */
.galerie--mosaique .galerie__item { aspect-ratio: 4 / 5; }
.etapes-paiement { margin-top: .8rem; }
.etapes-paiement ol { margin: .6rem 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.etapes-paiement .btn { width: 100%; }
.etapes-paiement small { display: block; color: var(--texte-doux, #6B6B6B); }
