/* Ambiances de couleurs de la maquette Rainette Tattoo.
   Sans attribut data-da sur <html>, rien ne change : c'est l'ambiance « Stand de convention » (sombre).
   Chaque ambiance redéfinit les jetons de couleur, puis corrige partie par partie. */

/* ---- le choix dans la barre de maquette ---- */
.mq-barre label[for="mq-couleurs"] { margin: 0 0.1rem 0 0.5rem; }
#mq-couleurs { min-height: 2.4rem; max-width: 11.5rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 0; cursor: pointer; background: #fff; color: #23122f; font: inherit; font-weight: 800; color-scheme: light; }
#mq-couleurs:focus-visible { outline: 3px solid #ff5a70; outline-offset: 2px; }
@media (max-width: 700px) { .mq-barre label[for="mq-couleurs"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } #mq-couleurs { max-width: 7.6rem; min-height: 2.4rem; padding-inline: 0.5rem; font-size: 0.82rem; } }

/* ---- commun aux quatre ambiances claires ---- */
html[data-da] { color-scheme: light; }
html[data-da] .cta:focus-visible { outline-color: var(--sc-ink); }
html[data-da] .bon { background: #ffffff; border: 2px solid var(--da-bord); }
html[data-da] .zoom__fermer, html[data-da] .guide__fermer { background: #23122f; color: #ffffff; }
html[data-da] :is(.flash, .piece__cadre, .conv__photo, .moi__portrait, .moi__stand, .objet) { outline: 1px solid var(--da-bord); outline-offset: -1px; }
html[data-da] .flash:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 4px; }

/* =====================================================================
   1. « Carte cadeau » : le dégradé pastel et les petits cœurs de ses cartes
   ===================================================================== */
html[data-da="pastel"] {
  --sc-canvas: #fbf2fa; --sc-surface: #efe6ff; --sc-ink: #2a1a3f; --sc-ink-soft: #5a4a6e;
  --sc-accent: #c40f27; --sc-accent-ink: #ffffff; --sc-shadow-color: 270 35% 32%;
  --da-bord: #dccdf0; --da-titre: #5b3f8c;
}
html[data-da="pastel"] .hero { background: linear-gradient(135deg, #e7e0ff 0%, #f4e4ff 30%, #ffeedd 62%, #dcebff 100%); }
html[data-da="pastel"] .hero__dots {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cpath fill='white' d='M34 44c-4-7-14-4-14 4 0 7 14 15 14 15s14-8 14-15c0-8-10-11-14-4z'/%3E%3Cpath fill='white' d='M120 122c-2.5-4.5-9-2.5-9 2.5 0 4.5 9 9.5 9 9.5s9-5 9-9.5c0-5-6.5-7-9-2.5z'/%3E%3C/svg%3E");
  background-size: 170px 170px; opacity: 0.95; -webkit-mask-image: none; mask-image: none;
}
html[data-da="pastel"] :is(.hero h1, .conv h2, .planche h2, .salon h2, .infos h3, .hero__index a) { color: var(--da-titre); }
html[data-da="pastel"] .hero__index a:hover { color: var(--sc-accent); }
html[data-da="pastel"] .salon { background: #dcebff; }
html[data-da="pastel"] .papier { background: #fff8f3; }

/* =====================================================================
   2. « Robe à pois » : l'ouverture en rouge, la rainette sur un pois géant
   ===================================================================== */
html[data-da="pois"] {
  --sc-canvas: #fff6f1; --sc-surface: #ffe7e2; --sc-ink: #2a0f15; --sc-ink-soft: #6b464d;
  --sc-accent: #c40f27; --sc-accent-ink: #ffffff; --sc-shadow-color: 350 40% 28%;
  --da-bord: #f3d2cd;
}
html[data-da="pois"] .hero {
  background: #d4142c; color: #ffffff;
  --sc-ink: #ffffff; --sc-ink-soft: #ffffff; --sc-accent: #ffd21e; --sc-accent-ink: #2a0f15;
  --fh: min(88svh, 58vw); --d: min(84svh, 46vw);
}
html[data-da="pois"] .hero__dots { background-image: radial-gradient(circle at center, #b80f25 0 15%, transparent 16%); opacity: 1; -webkit-mask-image: none; mask-image: none; }
html[data-da="pois"] .hero::after {
  content: ""; position: absolute; z-index: 1; width: var(--d); height: var(--d); border-radius: 50%; background: #fff6f1;
  right: calc(clamp(-2rem, 2vw, 4rem) + var(--fh) * 0.375 - var(--d) / 2);
  bottom: calc(-5svh + var(--fh) / 2 - var(--d) / 2);
}
html[data-da="pois"] .hero__frog { height: var(--fh); }
html[data-da="pois"] .hero .cta { box-shadow: 0 3px 0 #b08a00, var(--sc-e2); }
html[data-da="pois"] .hero .cta:focus-visible { outline-color: #ffffff; }
@media (hover: hover) and (pointer: fine) { html[data-da="pois"] .hero .cta:hover { background: #ffe26a; } }
@media (max-width: 899px) {
  html[data-da="pois"] .hero { --fh: 52svh; --d: min(58svh, 96vw); }
  html[data-da="pois"] .hero::after { right: calc(-7vw + var(--fh) * 0.375 - var(--d) / 2); bottom: calc(-3svh + var(--fh) / 2 - var(--d) / 2); }
}

/* =====================================================================
   3. « Lagon » : le bleu du logo Lady's Nez et des méduses peintes au salon
   ===================================================================== */
html[data-da="lagon"] {
  --sc-canvas: #e6f7fc; --sc-surface: #cdeef9; --sc-ink: #0c2a3a; --sc-ink-soft: #35586a;
  --sc-accent: #c40f27; --sc-accent-ink: #ffffff; --sc-shadow-color: 200 55% 22%;
  --da-bord: #a9dcee;
}
html[data-da="lagon"] .hero {
  background: radial-gradient(55vh 55vh at var(--frog-x, 80%) 50%, #19b5e6 0%, rgba(25, 181, 230, 0) 70%), linear-gradient(180deg, #0e78b2 0%, #0a5f96 100%);
  color: #ffffff; --sc-ink: #ffffff; --sc-ink-soft: #ffffff; --sc-accent: #ffd21e; --sc-accent-ink: #0c2a3a;
}
html[data-da="lagon"] .hero__dots { background-image: radial-gradient(circle at center, transparent 0 9%, #ffffff 10% 12.5%, transparent 13.5%); opacity: 0.22; }
html[data-da="lagon"] .hero .cta { box-shadow: 0 3px 0 #b08a00, var(--sc-e2); }
html[data-da="lagon"] .hero .cta:focus-visible { outline-color: #ffffff; }
@media (hover: hover) and (pointer: fine) { html[data-da="lagon"] .hero .cta:hover { background: #ffe26a; } }
html[data-da="lagon"] .papier { background: #f6fcfe; }
@media (max-width: 899px) {
  html[data-da="lagon"] .hero { background: radial-gradient(34svh 34svh at 68% 74%, #19b5e6 0%, rgba(25, 181, 230, 0) 72%), linear-gradient(180deg, #0e78b2 0%, #0a5f96 100%); }
}

/* =====================================================================
   4. « Planche de stickers » : une couleur vive par partie, découpes en pointillés
   ===================================================================== */
html[data-da="stickers"] {
  --sc-canvas: #fffaf2; --sc-surface: #ffffff; --sc-ink: #23122f; --sc-ink-soft: #58466a;
  --sc-accent: #c40f27; --sc-accent-ink: #ffffff; --sc-shadow-color: 280 35% 28%;
  --da-bord: #e4d8ee; --da-coupe: 3px dashed rgba(35, 18, 47, 0.28);
}
html[data-da="stickers"] .hero { background: #ffd21e; }
html[data-da="stickers"] .hero__dots { background-image: radial-gradient(circle at center, #ffffff 0 15%, transparent 16%); opacity: 0.6; }
html[data-da="stickers"] .conv { background: #7fdbe9; border-top: var(--da-coupe); }
html[data-da="stickers"] .planche { border-top: var(--da-coupe); }
html[data-da="stickers"] .salon { background: #dccbff; }
html[data-da="stickers"] .papier.moi { background: #ffd9c4; border-top: var(--da-coupe); }
html[data-da="stickers"] .papier.deroule { background: #c8f0d2; border-top: var(--da-coupe); }
html[data-da="stickers"] .projet { background: #cfe6ff; border-top: var(--da-coupe); }
html[data-da="stickers"] .bar { background: #fffaf2; }

/* ambiance sombre : la mascotte avec sa signature claire */
html[data-da="sombre"] .hero__frog { content: url("assets/mascotte3-sombre.webp"); }
