/* TOYPOP — site local. Couleurs reprises de l'affiche du présentoir. */
:root {
  --blue: #1557c9;
  --blue-2: #2f7bff;
  --blue-deep: #0d3a8c;
  --yellow: #ffd84d;
  --pink: #ff2d87;
  --pink-dark: #d81b6f;
  --purple: #7b2ff7;
  --green: #3ccb5a;
  --ink: #14213d;
  --muted: #4a5568;
  --tint: #f2f7ff;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(13, 58, 140, 0.15);
  --head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light; /* identité de marque volontairement claire, un seul thème */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; }
.wrap { width: 100%; max-width: 1192px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.center { text-align: center; }
.light { color: var(--white); }
.sub { color: var(--muted); max-width: 640px; margin: -.2em auto 2em; }

/* Boutons */
.btn { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 1.05rem; text-decoration: none;
  padding: .7em 1.4em; border-radius: 999px; border: 3px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--big { font-size: 1.2rem; padding: .8em 1.6em; }
.btn--pink { background: var(--pink); color: var(--white); box-shadow: 0 6px 0 var(--pink-dark); }
.btn--pink:hover { box-shadow: 0 8px 0 var(--pink-dark); }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 6px 0 var(--blue-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.tag { display: inline-block; font-family: var(--head); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem;
  color: var(--pink); background: #ffe3f0; padding: .3em .9em; border-radius: 999px; margin: 0 0 .8em; }
.tag--center { display: table; margin-inline: auto; }
.tag--light { color: var(--ink); background: var(--yellow); }

/* En-tête */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--blue); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--blue); box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.top__logo img { height: 58px; width: auto; filter: drop-shadow(0 3px 0 rgba(13,58,140,.35)); }
.top__nav { display: flex; align-items: center; gap: 22px; }
.top__nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 800; }
.top__nav a:not(.btn):hover { color: var(--yellow); }
.top__nav .btn { padding: .5em 1.1em; font-size: 1rem; }
.top__burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.top__burger span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; }
/* Changement de langue : drapeau + code, toujours visible (aussi sur téléphone, hors du menu) */
.top__nav { margin-left: auto; }
.lang { order: 3; display: inline-flex; align-items: center; gap: 7px; color: var(--white); text-decoration: none; font-family: var(--head); font-weight: 800;
  font-size: .95rem; padding: 6px 10px; border: 2px solid rgba(255,255,255,.55); border-radius: 999px; line-height: 1; }
.lang:hover { background: rgba(255,255,255,.14); border-color: var(--white); }
.lang:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lang__flag { display: block; height: 16px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }

/* Accueil */
.hero { position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.12) 0 6px, transparent 7px) 0 0 / 46px 46px,
              linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-block: 56px 40px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; text-shadow: 0 4px 0 rgba(13,58,140,.45); }
.hero h1 span { color: var(--yellow); }
.hero .tag { background: var(--yellow); color: var(--ink); }
.lead { font-size: 1.2rem; max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__visual { position: relative; height: 560px; }
.hero__sun { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--yellow); right: 4%; top: 70px; box-shadow: 0 0 0 18px rgba(255,216,77,.25); }
.hero__stand { position: absolute; bottom: 0; height: 96%; width: auto; filter: drop-shadow(0 18px 18px rgba(0,0,0,.28)); }
.hero__stand--front { left: 24%; z-index: 2; }
.hero__stand--back { left: 52%; height: 84%; }
.price-burst { position: absolute; z-index: 3; left: 0; top: 34px; width: 150px; height: 150px; display: grid; place-content: center;
  background: var(--pink); color: var(--white); border-radius: 50%; border: 5px solid var(--white); transform: rotate(-10deg);
  font-family: var(--head); font-weight: 800; box-shadow: var(--shadow); }
.price-burst { grid-auto-flow: column; align-items: start; }
.price-burst__big { font-size: 4.2rem; line-height: 1; }
.price-burst__small { font-size: 1.5rem; line-height: 1; margin-top: .55em; }

/* Chiffres */
.facts { background: var(--yellow); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-block: 22px; text-align: center; }
.fact b { display: block; font-family: var(--head); font-size: 2rem; color: var(--blue-deep); line-height: 1; }
.fact span { font-weight: 800; font-size: .95rem; }

/* Sections */
.section { padding-block: 84px; }
.section--tint { background: var(--tint); }
.section--blue { background: linear-gradient(160deg, var(--blue-deep), var(--blue)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3.6; object-fit: cover; width: 100%; }
.checks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .6em; }
.checks li { padding-left: 2em; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -.05em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-content: center; font-size: .9em; }

/* Jouets : la scène reste fixée à l'écran pendant 2 hauteurs d'écran de défilement ;
   script.js fait grandir chaque carte vidéo et fait avancer sa vidéo (le jouet qui tourne) selon l'avancement */
.toys-show__track { position: relative; height: 240vh; }
.toys-show__stage { position: sticky; top: 72px; height: calc(100vh - 72px); height: calc(100svh - 72px); display: flex; flex-direction: column; overflow: hidden; }
.toys-show__head { flex: none; padding-top: 1vh; }
.toys-show__head .sub { margin-bottom: 0; }
.toys-show__floor { position: relative; flex: 1; min-height: 0; }
.toys-show__toy { position: absolute; left: var(--x); bottom: var(--b); height: var(--h); width: auto; max-width: none; aspect-ratio: 9 / 16;
  object-fit: cover; border-radius: 22px; background: #ffe27a; box-shadow: 0 14px 30px rgba(13,58,140,.22);
  transform: translateX(-50%); transform-origin: 50% 100%; will-change: transform; }
.toys-show__toy.sq { aspect-ratio: 1; }
.v1 { --x: 14%; --b: 4%; --h: 80%; }
.v2 { --x: 37%; --b: 4%; --h: 80%; }
.v3 { --x: 60%; --b: 4%; --h: 80%; }
.v4 { --x: 84%; --b: 4%; --h: 52%; }
.toys-show .toys-fan { margin-top: 48px; }
.toys-fan { display: block; width: 100%; max-width: 1100px; height: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(13,58,140,.18); }
.toys { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.toy { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(13,58,140,.10); transition: transform .2s; }
.toy:hover { transform: translateY(-4px) rotate(-1deg); }
.toy img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.toy p { margin: 0; padding: .6em .8em .8em; font-family: var(--head); font-weight: 800; text-align: center; font-size: 1.05rem; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--tint); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.steps__n { display: grid; place-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.8rem; margin-bottom: 14px; box-shadow: 0 5px 0 var(--pink-dark); }
.steps p { margin: 0; color: var(--muted); }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2em; align-items: stretch; }
.price { background: var(--white); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.price--star { border: 4px solid var(--yellow); transform: translateY(-8px); }
.price__badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--yellow); font-family: var(--head); font-weight: 800; padding: .25em 1em; border-radius: 999px; white-space: nowrap; }
.price__amount { font-family: var(--head); font-weight: 800; font-size: 2.8rem; color: var(--blue); margin: 0 0 .3em; line-height: 1; }
.price__amount small { font-size: 1rem; color: var(--muted); }
.price ul { padding-left: 1.1em; margin: 0 0 1.4em; flex: 1; }
.price .btn { align-self: flex-start; }
.margin-note { color: var(--white); text-align: center; margin: 2.2em auto 0; max-width: 720px; font-size: 1.1rem; background: rgba(255,255,255,.1); padding: 1em 1.4em; border-radius: var(--radius); }

/* Magasins : mosaïque sur 6 colonnes, 3 grandes photos en quinconce et 18 petites autour */
.shops { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 12px; margin-top: 2em; }
.shops img { border-radius: 18px; object-fit: cover; width: 100%; height: 100%; grid-row: span 2; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.shops .b1 { grid-column: 1 / span 2; grid-row: 1 / span 4; }
.shops .b2 { grid-column: 5 / span 2; grid-row: 3 / span 4; }
.shops .b3 { grid-column: 3 / span 2; grid-row: 7 / span 4; }

.poster img { border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: auto; }

/* Commander */
.order { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.order__note { background: #fff7d6; border-left: 6px solid var(--yellow); padding: 1em 1.2em; border-radius: 12px; }
.order > * { min-width: 0; }
/* carte WhatsApp (remplace le formulaire le 28/10/2026) ; vert foncé pour que le texte blanc reste lisible */
.order__wa { background: var(--tint); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); text-align: center; display: grid; justify-items: center; gap: 10px; }
.order__wa-logo { display: block; color: #25d366; }
.order__wa h3 { margin: 0; font-size: 1.6rem; }
.order__wa-num { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.5rem; }
.order__wa-num a { color: var(--ink); text-decoration: none; }
.order__wa .btn { margin-top: 8px; }
.order__wa-hint { margin: 0; color: var(--muted); max-width: 380px; }
.order__wa-alt { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.btn--wa { background: #128c3e; color: var(--white); box-shadow: 0 6px 0 #0b6b2e; }
.btn--wa:hover { box-shadow: 0 8px 0 #0b6b2e; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--white); border-radius: 16px; margin: 0 0 12px; box-shadow: 0 4px 14px rgba(13,58,140,.08); }
.faq summary { cursor: pointer; padding: 1em 1.3em; font-family: var(--head); font-weight: 800; font-size: 1.15rem; list-style: none; position: relative; padding-right: 3em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1em; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--pink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.3em 1.2em; color: var(--muted); }

/* Pied de page */
.foot { background: var(--ink); color: #dbe4f5; padding-block: 56px 24px; }
.foot__in { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 32px; }
.foot h3 { color: var(--white); font-size: 1.1rem; }
.foot a { color: var(--yellow); }
.foot__logo { height: 64px; width: auto; margin-bottom: 10px; }
.foot__copy { text-align: center; font-size: .85rem; opacity: .7; margin: 36px 0 0; }
.foot__legal { margin-top: 32px; font-size: .85rem; color: #b9c6df; }
.foot__legal summary { cursor: pointer; font-weight: 800; color: #dbe4f5; }
.foot__legal p { margin: .8em 0 0; max-width: 900px; }
.foot { padding-bottom: 96px; } /* laisse la place au bouton WhatsApp en bas de page */

/* Bouton WhatsApp flottant, avec une bulle « Contactez-nous » qui s'affiche quelques secondes */
.wa { position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: grid; place-content: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white);
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s; }
.wa:hover { transform: scale(1.07); }
.wa:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wa__icon { display: block; }
.wa__bubble { position: absolute; right: calc(100% + 14px); top: 50%; white-space: nowrap; background: var(--white); color: var(--ink);
  font-family: var(--head); font-weight: 800; font-size: 1.05rem; padding: .45em 1em; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  opacity: 0; transform: translate(8px, -50%); pointer-events: none; transition: opacity .35s, transform .35s; }
.wa__bubble::after { content: ""; position: absolute; right: -5px; top: 50%; width: 12px; height: 12px; background: var(--white); border-radius: 2px; transform: translateY(-50%) rotate(45deg); }
.wa.show .wa__bubble, .wa:hover .wa__bubble, .wa:focus-visible .wa__bubble { opacity: 1; transform: translate(0, -50%); }

/* Tablette */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 36px; }
  .hero__visual { height: 440px; }
  .hero__sun { width: 320px; height: 320px; top: 60px; right: 10%; }
  .split, .order { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prices, .steps { grid-template-columns: 1fr; }
  .price--star { transform: none; }
  .shops { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .shops img, .shops .b1, .shops .b2, .shops .b3 { grid-column: auto; grid-row: auto; height: auto; aspect-ratio: 3 / 4; }
  .shops img:nth-child(n+16) { display: none; } /* 15 photos sur tablette */
  .foot__in { grid-template-columns: 1fr; }
}
/* Téléphone */
@media (max-width: 820px) {
  .top__burger { display: block; order: 4; }
  .lang { margin-left: auto; }
  .top__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--blue); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; display: none; }
  .top__nav.open { display: flex; }
  .top__nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .top__nav .btn { margin-top: 12px; text-align: center; }
  .top__logo img { height: 46px; }
  /* cartes vidéo en 2 x 2 */
  .v1, .v3 { --x: 27%; } .v2, .v4 { --x: 73%; }
  .v1, .v2 { --b: 51%; --h: 47%; }
  .v3 { --b: 1%; --h: 47%; } .v4 { --b: 1%; --h: 40%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: 60px; }
  .facts__in { grid-template-columns: repeat(2, 1fr); }
  .hero__visual { height: 360px; }
  .hero__sun { width: 250px; height: 250px; }
  .price-burst { width: 110px; height: 110px; top: 10px; }
  .price-burst__big { font-size: 3rem; }
  .price-burst__small { font-size: 1.1rem; }
  .toys { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .v4 { --h: 36%; }
  .toys-show__toy { border-radius: 16px; }
  .shops { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shops img:nth-child(n+13) { display: none; } /* 12 photos suffisent sur téléphone */
  .order__wa { padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  /* pas de scène fixée ni de rotation : les jouets s'affichent directement en grand */
  .toys-show__track { height: auto; }
  .toys-show__stage { position: relative; top: auto; height: 640px; }
}

/* Concept : vidéo du présentoir qui tourne (boucle de 5 s, sans son) */
.split__media { display: grid; place-items: center; }
.split__video { display: block; width: min(100%, 460px); max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--yellow); }