:root {
  --brume: #e8ecf4; --encre: #12141a; --ardoise: #4c5363; --iris: #2f4bdc;
  --bord: rgba(255,255,255,.75); --ombre: rgba(36,48,92,.14);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--encre); min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(60rem 40rem at 90% 30%, #d9d3f5 0, transparent 60%),
    radial-gradient(55rem 40rem at 0 70%, #cfe6f3 0, transparent 60%),
    var(--brume) fixed;
}
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px 80px; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 20; background: #fff; padding: 8px 12px; }

.verre {
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,255,255,.28));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--bord);
  box-shadow: inset 0 1px 0 #fff, inset 0 -12px 24px -18px rgba(255,255,255,.9), 0 18px 40px -22px var(--ombre);
}

.barre {
  position: sticky; top: 12px; z-index: 10; width: calc(100% - 32px); max-width: 1088px; margin: 12px auto 0;
  display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 24px; border-radius: 99px;
}
.barre nav { display: flex; align-items: center; gap: 8px; }
.barre nav a { text-decoration: none; padding: 8px 12px; }
.logo { font-weight: 650; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; }
.ouvrir { border: 0; border-radius: 99px; padding: 8px 10px 8px 18px; background: var(--encre); color: #fff; }
.compteur { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 4px;
  border-radius: 99px; background: #fff; color: var(--encre); font-size: .8rem; font-variant-numeric: tabular-nums; }

.hero { position: relative; height: min(70vh, 620px); min-height: 440px; margin: 20px 0 64px;
  border-radius: 40px; overflow: hidden; isolation: isolate; touch-action: pan-y; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; padding: clamp(24px, 6vw, 72px); background: linear-gradient(160deg, #f7f9fd, #dfe5f5); }
.scene i { position: absolute; border-radius: 50%; filter: blur(2px); }
.scene i:nth-of-type(1) { width: 34vmax; height: 34vmax; right: -6vmax; top: -12vmax; background: linear-gradient(200deg, #8fa2ff, #d6c4ff 60%, transparent 85%); }
.scene i:nth-of-type(2) { width: 14vmax; height: 14vmax; right: 24%; top: 36%; background: linear-gradient(20deg, #8ee3e8, #e4f8ff); }
.scene i:nth-of-type(3) { width: 7vmax; height: 7vmax; left: 12%; top: 14%; background: linear-gradient(150deg, #ffc6dc, #fff0f6); }
.scene h1, .scene .titre { position: relative; font-size: clamp(2.7rem, 8vw, 6.4rem); line-height: .98;
  letter-spacing: -.045em; font-weight: 650; max-width: 10ch; }
.scene > p:not(.titre) { position: relative; margin: 20px 0 28px; max-width: 38ch; color: var(--ardoise); font-size: 1.15rem; }
.scene .bouton { position: relative; }
.loupe { position: absolute; left: 0; top: 0; width: clamp(130px, 22vw, 250px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; pointer-events: none;
  box-shadow: 0 30px 50px -24px rgba(36,48,92,.45), 0 0 0 1px rgba(255,255,255,.8); }
.loupe::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 32%, transparent 70%, rgba(160,180,255,.3));
  box-shadow: inset 0 0 28px 6px rgba(255,255,255,.75), inset 6px 8px 14px -6px #fff, inset -10px -14px 26px -12px rgba(70,90,190,.45); }
.loupe .scene { inset: auto; }

.bouton { display: inline-block; border: 0; border-radius: 99px; padding: 12px 24px; background: var(--iris);
  color: #fff; font-weight: 550; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.bouton:hover:not(:disabled) { filter: brightness(1.1); }
.bouton.clair { background: #fff; color: var(--encre); }

.rayon > h2 { margin-bottom: 24px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.carte { border-radius: 32px; padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.apercu { margin: 0 -12px 12px; }
.carte h3 { font-size: 1.5rem; }
.carte h3 a { text-decoration: none; }
.carte > p { color: var(--ardoise); }
.achat { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.prix { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.visuel { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(165deg, hsl(var(--teinte) 70% 96%), hsl(var(--teinte) 60% 86%)); }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.bulle { width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 4%, rgba(255,255,255,.55) 20%, hsl(var(--teinte) 80% 78% / .55) 62%, hsl(var(--teinte) 65% 60% / .65));
  box-shadow: inset 0 0 24px 4px rgba(255,255,255,.7), 0 28px 34px -20px hsl(var(--teinte) 50% 35% / .55); }
.attente { position: absolute; bottom: 10px; font-size: .8rem; color: var(--ardoise); }

.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; margin-top: 88px; }
.atouts h3 { margin-bottom: 8px; font-size: 1.1rem; }
.atouts p { color: var(--ardoise); }

.fiche { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; padding-top: 40px; }
.details { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.details h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.marque, .chapo { color: var(--ardoise); }
.chapo { font-size: 1.15rem; }
.prix.grand { font-size: 1.9rem; }
.prix small { font-size: .85rem; font-weight: 400; color: var(--ardoise); }
.points { padding-left: 20px; }
.details dl { width: 100%; border-top: 1px solid rgba(18,20,26,.14); padding-top: 16px; }
dt { font-weight: 600; }
dd { color: var(--ardoise); margin-bottom: 12px; overflow-wrap: anywhere; }

dialog.panier { position: fixed; inset: 12px 12px 12px auto; margin: 0; width: min(420px, calc(100% - 24px)); height: calc(100% - 24px);
  max-height: none; max-width: none; border-radius: 32px; padding: 24px; color: var(--encre); overflow-y: auto;
  background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(240,243,252,.82)); }
dialog.panier[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(18,22,40,.22); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tete { display: flex; justify-content: space-between; align-items: center; }
.fermer, .lien { background: none; border: 0; text-decoration: underline; }
.lignes { list-style: none; flex: 1 0 auto; margin: 20px 0; }
.lignes li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin-bottom: 16px; }
.lignes li.vide { display: block; }
.lignes li > div:last-child { display: flex; flex-direction: column; }
.lignes .visuel { aspect-ratio: 1; border-radius: 16px; }
.lignes .attente { display: none; }
.quantite { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.quantite button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(18,20,26,.2); background: #fff; }
.resume p, .bas .resume p { display: flex; justify-content: space-between; gap: 12px; }
.resume .total { font-weight: 650; font-size: 1.25rem; border-top: 1px solid rgba(18,20,26,.14); margin-top: 8px; padding-top: 8px; }
.bas { display: flex; flex-direction: column; gap: 12px; }
.accord { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.accord input { width: 20px; height: 20px; accent-color: var(--iris); flex: none; }
.note { font-size: .85rem; color: var(--ardoise); }
.erreur { color: #a3122b; }
.erreur:empty { display: none; }

.page { max-width: 720px; margin: 40px auto 0; border-radius: 32px; padding: clamp(24px, 5vw, 56px); }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 20px; }
.page h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.page p, .page ul { margin-bottom: 12px; }
.page ul { padding-left: 20px; }
.todo { background: #fff0b8; padding: 0 4px; border-radius: 4px; }
.champs { display: flex; flex-direction: column; gap: 16px; }
.champs label { display: flex; flex-direction: column; gap: 6px; font-weight: 550; }
.champs input, .champs textarea { font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid #8a93aa; background: #fff; }
.champs .piege { position: absolute; left: -9999px; }
.champs .bouton, .actions .bouton { align-self: flex-start; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

footer { max-width: 1120px; width: 100%; margin: 0 auto; padding: 32px 16px 48px; font-size: .9rem; color: var(--ardoise); border-top: 1px solid rgba(18,20,26,.12); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .barre { padding-left: 18px; }
  .barre nav a { display: none; }
  .hero { border-radius: 28px; height: 560px; }
  .fiche { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-transparency: reduce) { .verre, dialog.panier { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Outils de la boutique */
.outils { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 24px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.filtres button { border: 1px solid var(--bord); background: rgba(255,255,255,.55); border-radius: 99px; padding: 8px 18px; transition: background .25s, color .25s; }
.filtres button[aria-pressed=true] { background: var(--encre); color: #fff; }
.recherche { display: flex; flex-wrap: wrap; gap: 8px; }
.recherche input, .recherche select { font: inherit; border-radius: 99px; border: 1px solid #8a93aa; background: #fff; padding: 8px 16px; min-width: 0; color: var(--encre); }
.etat-boutique { color: var(--ardoise); margin-bottom: 16px; }
.etat-boutique:empty { display: none; }
.rayon .grille, .proches .grille { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.categorie { font-size: .85rem; }
.proches { margin-top: 72px; }
.proches > h2 { margin-bottom: 24px; }

/* Fiche */
.galerie { position: sticky; top: 100px; display: grid; gap: 12px; }
.galerie > .visuel { aspect-ratio: 1; border-radius: 40px; }
.galerie > .visuel img { object-fit: contain; }
.vignettes { display: flex; flex-wrap: wrap; gap: 10px; }
.vignettes button { width: 72px; height: 72px; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: #fff; }
.vignettes button[aria-pressed=true] { border-color: var(--iris); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.stock { color: var(--ardoise); }
.texte p { margin-bottom: 10px; }
.securite { width: 100%; }
.securite h2 { font-size: 1.2rem; margin-bottom: 12px; }
.securite dd { white-space: pre-line; }
.notice { max-width: 100%; height: auto; border-radius: 12px; }

/* FAQ */
.question { border-top: 1px solid rgba(18,20,26,.14); interpolate-size: allow-keywords; }
.question summary { cursor: pointer; font-weight: 600; padding: 16px 32px 16px 0; list-style: none; position: relative; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 300; transition: rotate .3s; }
.question[open] summary::after { rotate: 45deg; }
.question::details-content { block-size: 0; overflow: clip; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.question[open]::details-content { block-size: auto; }
.tableau { overflow-x: auto; margin-bottom: 16px; }
.tableau table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(18,20,26,.14); }

/* Messages flottants */
.cookies { position: fixed; z-index: 15; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px)); padding: 20px; border-radius: 24px;
  background: rgba(255,255,255,.9); display: grid; gap: 12px; font-size: .95rem; }
.annonce { position: fixed; z-index: 16; right: 16px; bottom: 16px; max-width: calc(100% - 32px); display: flex; gap: 8px; align-items: center;
  padding: 14px 20px; border-radius: 99px; background: rgba(255,255,255,.92); visibility: hidden; opacity: 0; translate: 0 20px;
  transition: opacity .3s, translate .3s, visibility .3s; }
.annonce.montree { visibility: visible; opacity: 1; translate: 0 0; }
.vol { position: fixed; z-index: 30; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 28%, #fff, #9aacff 55%, var(--iris)); box-shadow: 0 8px 18px -6px var(--iris); }
.resume progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 9px; overflow: hidden; background: #dfe3f0; margin: 4px 0 10px; }
.resume progress::-webkit-progress-bar { background: #dfe3f0; }
.resume progress::-webkit-progress-value { background: var(--iris); border-radius: 9px; transition: inline-size .4s; }
.resume progress::-moz-progress-bar { background: var(--iris); }

/* Mouvement */
.barre { transition: padding .3s, box-shadow .3s; }
.barre.reduit { padding-top: 5px; padding-bottom: 5px; box-shadow: inset 0 1px 0 #fff, 0 16px 34px -18px rgba(36,48,92,.35); }
.bouton { transition: filter .2s, scale .15s; }
.bouton:active:not(:disabled) { scale: .96; }
.carte { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); position: relative;
  transition: transform .18s ease-out, translate .7s cubic-bezier(.2,.7,.2,1) calc(var(--rang, 0) * 90ms), opacity .7s calc(var(--rang, 0) * 90ms); }
.carte::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.5), transparent 70%); }
.carte:hover::after { opacity: 1; }
.carte .visuel > :first-child { transition: scale .5s cubic-bezier(.2,.7,.2,1); }
.carte:hover .visuel > :first-child { scale: 1.06; }
.atouts > div { transition: translate .7s cubic-bezier(.2,.7,.2,1) calc(var(--rang, 0) * 90ms), opacity .7s calc(var(--rang, 0) * 90ms); }
.a-reveler { opacity: 0; translate: 0 36px; }
.a-reveler.vu { opacity: 1; translate: 0 0; }
.fondu { animation: fondu .45s ease-out; }
@keyframes fondu { from { opacity: 0; scale: .97; } }

dialog.panier { transition: translate .35s ease, opacity .35s ease, overlay .35s allow-discrete, display .35s allow-discrete; translate: 40px 0; opacity: 0; border: 1px solid var(--bord); box-shadow: 0 24px 60px -20px rgba(36,48,92,.4); }
dialog.panier[open] { translate: 0 0; opacity: 1; animation: none; }
@starting-style { dialog.panier[open] { translate: 40px 0; opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .scene .mot { display: inline-block; animation: mot .85s cubic-bezier(.2,.75,.2,1) backwards; animation-delay: calc(var(--i) * 80ms); }
  .scene i { animation: flotter 11s ease-in-out infinite alternate; }
  .scene i:nth-of-type(2) { animation-duration: 8s; animation-delay: -3s; }
  .scene i:nth-of-type(3) { animation-duration: 6s; animation-delay: -1s; }
  .bulle { animation: flotter 6s ease-in-out infinite alternate; }
}
@keyframes mot { from { opacity: 0; translate: 0 .5em; filter: blur(10px); } }
@keyframes flotter { to { transform: translate(-18px, 26px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, *::details-content { transition-duration: .01ms !important; transition-delay: 0s !important; } }
@media (max-width: 760px) {
  .galerie { position: static; }
  .galerie > .visuel { border-radius: 28px; }
  .barre nav a { display: none; }
  .annonce { left: 16px; justify-content: space-between; border-radius: 24px; }
}
@media (prefers-reduced-transparency: reduce) { .cookies, .annonce { background: #fff; } }
