/* Atelier Fabrique 3D — feuille de style */
:root {
  --fond: #F7F3EE;
  --fond-2: #FFFDFA;
  --encre: #3F3A4A;
  --encre-douce: #6E6878;
  --ligne: #E9E1D8;
  --rose: #F4C9CF;
  --rose-fonce: #C9707F;
  --peche: #FAD9C4;
  --vanille: #FBEBB5;
  --sauge: #CFE3D3;
  --sauge-fonce: #6FAE8C;
  --bleu: #CFE1F2;
  --bleu-fonce: #5B8DBF;
  --lavande: #E1D6F3;
  --rayon: 22px;
  --ombre: 0 1px 2px rgba(63,58,74,.05), 0 8px 28px rgba(63,58,74,.07);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.conteneur { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.surtitre {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sauge-fonce); margin-bottom: .9rem;
}
.centre { text-align: center; }
.chapo { font-size: 1.12rem; color: var(--encre-douce); max-width: 40em; }
.centre .chapo { margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--bleu-fonce); outline-offset: 3px; }
.btn-plein { background: var(--encre); color: #fff; box-shadow: 0 6px 18px rgba(63,58,74,.22); }
.btn-plein:hover { background: #2E2A37; }
.btn-contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn-contour:hover { background: var(--fond-2); }
.btn-etsy { background: #F1641E; color: #fff; box-shadow: 0 6px 18px rgba(241,100,30,.28); }
.btn-etsy:hover { background: #D9561A; }
.btn[aria-disabled="true"] { background: var(--ligne); color: var(--encre-douce); box-shadow: none; cursor: default; transform: none; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(247,243,238,.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.entete.defile { border-bottom-color: var(--ligne); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.08rem; white-space: nowrap; }
.marque img { width: 40px; height: 40px; }
.marque b { color: var(--sauge-fonce); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--encre-douce); font-weight: 500; }
.nav a:hover { color: var(--encre); }
.nav .btn { color: #fff; padding: .6em 1.15em; font-size: .9rem; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 400px) { .marque span { font-size: .95rem; } .nav .btn { padding: .55em .9em; } }

/* Héros */
.heros { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.heros .conteneur { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.heros h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--peche) 62%); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.collage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.collage::before {
  content: ""; position: absolute; inset: 8%; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 30% 30%, var(--fond-2), var(--peche) 70%); opacity: .75;
}
.collage img { position: absolute; width: 27%; filter: drop-shadow(0 12px 14px rgba(63,58,74,.14)); animation: flotte 6s ease-in-out infinite; }
.collage img:nth-child(1) { top: 2%;  left: 36%; animation-delay: -1s; }
.collage img:nth-child(2) { top: 20%; left: 2%;  animation-delay: -3s; }
.collage img:nth-child(3) { top: 20%; right: 2%; animation-delay: -2s; }
.collage img:nth-child(4) { top: 40%; left: 37%; width: 30%; animation-delay: -4s; }
.collage img:nth-child(5) { bottom: 16%; left: 6%; animation-delay: -5s; }
.collage img:nth-child(6) { bottom: 16%; right: 6%; animation-delay: -1.5s; }
.collage img:nth-child(7) { bottom: 0; left: 38%; width: 23%; animation-delay: -2.5s; }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .collage img { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .heros .conteneur { grid-template-columns: 1fr; gap: 24px; }
  .collage { max-width: 360px; order: -1; }
}

/* Bandeau de réassurance */
.atouts { border-block: 1px solid var(--ligne); background: var(--fond-2); }
.atouts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.atouts li { display: flex; align-items: center; gap: 12px; font-size: .93rem; font-weight: 500; }
.atouts li span { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
@media (max-width: 860px) { .atouts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .atouts ul { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-claire { background: var(--fond-2); }
.entete-section { margin-bottom: 40px; }

/* Cartes packs */
.grille-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.carte-pack {
  background: var(--fond-2); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
  display: flex; flex-direction: column; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.carte-pack:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(63,58,74,.06), 0 16px 40px rgba(63,58,74,.12); }
.carte-pack .visuel { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.carte-pack .visuel img { width: 100%; height: 100%; object-fit: cover; }
.pastille {
  position: absolute; top: 14px; left: 14px; padding: .35em .9em; border-radius: 999px;
  font-size: .78rem; font-weight: 600; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.pastille.dispo::before { content: "●"; color: var(--sauge-fonce); margin-right: .45em; }
.pastille.bientot::before { content: "●"; color: #E3A53B; margin-right: .45em; }
.carte-pack .texte { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.carte-pack h3 { font-size: 1.35rem; margin-bottom: .25em; }
.carte-pack .pour { color: var(--encre-douce); font-size: .93rem; margin-bottom: 1.2em; }
.carte-pack .pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prix { font-size: 1.35rem; font-weight: 600; }
.prix small { font-size: .8rem; font-weight: 500; color: var(--encre-douce); }
.lien-fleche { font-weight: 600; font-size: .95rem; color: var(--encre); }
.lien-fleche::after { content: " →"; transition: margin .15s; }
.carte-pack:hover .lien-fleche::after { margin-left: 4px; }
.carte-idee {
  border: 2px dashed #D9CFC4; border-radius: var(--rayon); padding: 32px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 6px; min-height: 280px;
}
.carte-idee p { color: var(--encre-douce); }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: e; }
.etapes li { background: var(--fond); border-radius: var(--rayon); padding: 30px 28px; position: relative; counter-increment: e; }
.etapes li::before {
  content: counter(e); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 600; font-size: 1.15rem; margin-bottom: 18px; background: var(--c, var(--peche));
}
.etapes li:nth-child(2) { --c: var(--sauge); }
.etapes li:nth-child(3) { --c: var(--lavande); }
.etapes p { color: var(--encre-douce); font-size: .96rem; margin: 0; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }

/* Pour qui */
.publics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.public { border-radius: var(--rayon); padding: 26px 22px; background: var(--c); }
.public img { width: 76px; height: 76px; margin: -6px 0 10px -6px; filter: drop-shadow(0 6px 8px rgba(63,58,74,.12)); }
.public p { font-size: .93rem; margin: 0; color: #4F4959; }
@media (max-width: 960px) { .publics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .publics { grid-template-columns: 1fr; } }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.galerie figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--ombre); background: #fff; }
.galerie img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .galerie { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: var(--fond-2); border-radius: 18px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(63,58,74,.05); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%;
  background: var(--fond); display: grid; place-items: center; font-weight: 500; transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 24px 20px; color: var(--encre-douce); }
.faq details > div p:last-child { margin: 0; }

/* Bandeau Instagram */
.bandeau {
  border-radius: 32px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: linear-gradient(120deg, var(--lavande), var(--rose) 55%, var(--peche));
}
.bandeau p { margin: 0; color: #4F4959; }
@media (max-width: 760px) { .bandeau { grid-template-columns: 1fr; } }

/* Pied de page */
.pied-page { padding: 56px 0 40px; font-size: .92rem; color: var(--encre-douce); }
.pied-page .conteneur { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.pied-page h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--encre); margin-bottom: 1em; }
.pied-page ul { list-style: none; padding: 0; margin: 0; }
.pied-page li { margin-bottom: .5em; }
.pied-page a { text-decoration: none; }
.pied-page a:hover { color: var(--encre); text-decoration: underline; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--ligne); padding-top: 24px; margin-top: 8px; font-size: .85rem; }
@media (max-width: 760px) { .pied-page .conteneur { grid-template-columns: 1fr 1fr; } .pied-page .conteneur > :first-child { grid-column: 1 / -1; } }

/* Page pack */
.fil { font-size: .88rem; color: var(--encre-douce); padding-top: 28px; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.produit { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; padding: 24px 0 72px; }
.produit .visuel-principal { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: #fff; }
.fiche { position: sticky; top: 96px; }
.fiche h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2rem 0 1.6rem; padding: 0; list-style: none; }
.etiquettes li { background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 999px; padding: .3em .9em; font-size: .85rem; font-weight: 500; }
.boite-achat { background: var(--fond-2); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.boite-achat .prix { font-size: 2rem; }
.boite-achat .btn { width: 100%; margin-top: 14px; }
.boite-achat .note { font-size: .84rem; color: var(--encre-douce); margin: 12px 0 0; text-align: center; }
@media (max-width: 900px) { .produit { grid-template-columns: 1fr; gap: 28px; } .fiche { position: static; } }

.colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .colonnes { grid-template-columns: 1fr; } }
.liste-icones { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.liste-icones li { background: var(--fond); border-radius: 10px; padding: .3em .75em; font-size: .88rem; }
.planche { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: #fff; }
.coches { list-style: none; padding: 0; margin: 0 0 1em; }
.coches li { padding-left: 2em; position: relative; margin-bottom: .55em; }
.coches li::before { content: "✓"; position: absolute; left: 0; top: .05em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--sauge); display: grid; place-items: center; font-size: .8em; font-weight: 700; color: #2F5E44; }
.coches.non li::before { content: "✕"; background: var(--rose); color: #8A3442; }
.licence { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.licence > div { background: var(--fond-2); border-radius: var(--rayon); padding: 26px; }
@media (max-width: 760px) { .licence { grid-template-columns: 1fr; } }

/* Pages de texte */
.page-texte { max-width: 760px; margin-inline: auto; padding: 48px 0 88px; }
.page-texte h2 { font-size: 1.35rem; margin-top: 2em; }
.a-completer { background: var(--vanille); padding: 0 .3em; border-radius: 4px; }
.galerie.trois { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .galerie.trois { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .galerie.trois { grid-template-columns: 1fr; } }

/* Scène du héros : imprimante 3D + stickers */
.scene { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; justify-self: center; }
.scene::before {
  content: ""; position: absolute; inset: 6%; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 30% 30%, var(--fond-2), var(--peche) 72%); opacity: .7;
}
.imprimante { position: absolute; inset: 12%; width: 76%; height: 76%; filter: drop-shadow(0 18px 24px rgba(63,58,74,.16)); }
.stickers { position: absolute; inset: 0; }
.sticker {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; border-radius: 999px; padding: 8px 16px 8px 8px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(63,58,74,.16); animation: flotte 6s ease-in-out infinite;
}
.pastille-ronde { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; }
.sticker.s1 { top: 6%; left: -2%; rotate: -6deg; animation-delay: -1s; }
.sticker.s2 { top: 44%; right: -4%; rotate: 5deg; animation-delay: -3s; }
.sticker.s3 { bottom: 6%; left: 4%; rotate: -3deg; animation-delay: -4.5s; }
.sticker-img {
  position: absolute; width: 19%; background: #fff; border-radius: 50%; padding: 2%;
  box-shadow: 0 10px 22px rgba(63,58,74,.16); animation: flotte 7s ease-in-out infinite;
}
.sticker-img.s4 { top: 2%; right: 6%; rotate: 8deg; animation-delay: -2s; }
.sticker-img.s5 { bottom: 4%; right: 10%; width: 16%; rotate: -10deg; animation-delay: -5s; }
@media (prefers-reduced-motion: reduce) { .sticker, .sticker-img { animation: none; } }
@media (max-width: 860px) { .scene { max-width: 400px; order: -1; } .sticker { font-size: .8rem; padding: 6px 12px 6px 6px; } .pastille-ronde { width: 24px; height: 24px; } }

/* Univers de l'atelier */
.grille-univers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.univers { background: var(--fond-2); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); display: flex; flex-direction: column; border-top: 6px solid var(--c); }
.univers-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.univers-picto { width: 52px; height: 52px; border-radius: 16px; background: var(--c); display: grid; place-items: center; font-size: 1.3rem; }
.univers .pastille { position: static; box-shadow: none; background: var(--fond); }
.univers p { color: var(--encre-douce); font-size: .96rem; }
.univers .lien-fleche { margin-top: auto; text-decoration: none; }
@media (max-width: 900px) { .grille-univers { grid-template-columns: 1fr; } }

/* Scène 3D du héros */
.scene3d { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; justify-self: center; }
.scene3d::before {
  content: ""; position: absolute; inset: 4% 2% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,253,250,.95), rgba(250,217,196,.55) 60%, rgba(247,243,238,0));
}
.scene3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.scene3d.pret canvas { opacity: 1; }
.scene3d .secours { display: none; position: absolute; inset: 25%; width: 50%; }
.scene3d.sans-3d .secours { display: block; }
.scene3d.sans-3d .hud { display: none; }
.tags { position: absolute; top: 3%; left: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tags span, .hud {
  background: rgba(255,253,250,.62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.85); box-shadow: 0 8px 24px rgba(63,58,74,.08);
}
.tags span { border-radius: 999px; padding: 6px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--encre); }
.hud { position: absolute; left: 0; bottom: 6%; width: min(250px, 62%); border-radius: 18px; padding: 14px 16px; }
.hud-etat { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); }
.hud-etat i { width: 8px; height: 8px; border-radius: 50%; background: #F1641E; box-shadow: 0 0 0 0 rgba(241,100,30,.5); animation: pouls 1.4s ease-out infinite; }
.fini .hud-etat i { background: var(--sauge-fonce); animation: none; }
@keyframes pouls { to { box-shadow: 0 0 0 8px rgba(241,100,30,0); } }
.hud-ligne { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 10px; }
.hud-nom { font-size: 1rem; }
.hud-pct { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--encre-douce); }
.hud-barre { height: 5px; border-radius: 5px; background: rgba(63,58,74,.1); overflow: hidden; }
.hud-barre b { display: block; height: 100%; background: linear-gradient(90deg, var(--sauge-fonce), #9FD3B5); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) { .scene3d { max-width: 440px; order: -1; } .hud { padding: 10px 12px; } .tags span { font-size: .7rem; padding: 5px 11px; } }
@media (prefers-reduced-motion: reduce) { .hud-etat i { animation: none; } }
@media (max-width: 500px) { .hud { bottom: 0; width: 56%; } .hud-nom { font-size: .88rem; } }
.mode-pack .hud-etat i { background: var(--rose-fonce); animation: none; }
.mode-pack .hud-barre b { background: linear-gradient(90deg, var(--rose-fonce), var(--rose)); }
.mode-fichier .hud-etat i { background: var(--bleu-fonce); animation: none; }
.mode-fichier .hud-barre b { background: linear-gradient(90deg, var(--bleu-fonce), #B8ACD9); }
