/* Loupikids — feuille de style unique */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #fffaf3;
  --bg-tint: #eef7f8;
  --surface: #ffffff;
  --text: #1d2a30;
  --muted: #56666d;
  --line: #e4ddd2;
  --teal: #1f7f92;
  --teal-strong: #17687a;
  --teal-soft: #d6eef2;
  --orange: #c2410c;
  --orange-strong: #a3360a;
  --orange-soft: #fde4d4;
  --yellow-soft: #fff1c2;
  --pink-soft: #fbe0ea;
  --violet-soft: #e6e3fb;
  --green: #2f8a4c;
  --shadow: 0 10px 30px -12px rgba(29, 42, 48, .18);
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10191d;
    --bg-tint: #142328;
    --surface: #1a2a30;
    --text: #edf3f4;
    --muted: #a7b6bb;
    --line: #2a3d44;
    --teal: #4fc0d3;
    --teal-strong: #79d3e1;
    --teal-soft: #173d46;
    --orange: #ff8a4c;
    --orange-strong: #ffa774;
    --orange-soft: #43281b;
    --yellow-soft: #3d3418;
    --pink-soft: #40232f;
    --violet-soft: #2b2844;
    --green: #6fd492;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10191d;
  --bg-tint: #142328;
  --surface: #1a2a30;
  --text: #edf3f4;
  --muted: #a7b6bb;
  --line: #2a3d44;
  --teal: #4fc0d3;
  --teal-strong: #79d3e1;
  --teal-soft: #173d46;
  --orange: #ff8a4c;
  --orange-strong: #ffa774;
  --orange-soft: #43281b;
  --yellow-soft: #3d3418;
  --pink-soft: #40232f;
  --violet-soft: #2b2844;
  --green: #6fd492;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-strong); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.annonce { background: var(--orange); color: #fff; text-align: center; font-weight: 700; padding: 10px 16px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1rem; padding: .75em 1.35em; border-radius: 999px;
  border: 2px solid var(--teal); transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { font-size: 1.08rem; padding: .9em 1.6em; }
.btn-sm { font-size: .92rem; padding: .5em 1.05em; }
.btn-accent { background: var(--orange); border-color: var(--orange); }
.btn-accent:hover { background: var(--orange-strong); border-color: var(--orange-strong); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-strong); border-color: var(--teal-strong); }
[data-theme="dark"] .btn:not(.btn-ghost), [data-theme="dark"] .btn:not(.btn-ghost):hover { color: #0d1a1e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.btn-ghost), :root:not([data-theme="light"]) .btn:not(.btn-ghost):hover { color: #0d1a1e; }
}

/* En-tête */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.45rem; }
.brand img { width: 48px; height: 48px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:not(.btn):hover { background: var(--teal-soft); color: var(--teal-strong); }
.nav .btn { margin-left: 8px; }
.header-tools { display: flex; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 50%; cursor: pointer;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .header-tools { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Accueil */
.hero { position: relative; isolation: isolate;padding: clamp(36px, 7vw, 90px) 0 clamp(50px, 8vw, 100px); overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px);
}
.hero::before { width: 520px; height: 520px; background: var(--teal-soft); right: -160px; top: -140px; }
.hero::after { width: 300px; height: 300px; background: var(--yellow-soft); left: -120px; bottom: -120px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: .9em; }
.hl { color: var(--teal); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: var(--orange-soft); z-index: -1; border-radius: 4px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; }

.hero-visual { position: relative; justify-self: center; width: min(460px, 86vw); }
.blob {
  aspect-ratio: 1; overflow: hidden;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
  box-shadow: var(--shadow);
  border: 8px solid var(--surface);
}
.blob img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo {
  position: absolute; left: -18px; bottom: -14px; width: 132px; height: 132px;
  border-radius: 50%; border: 6px solid var(--surface); box-shadow: var(--shadow);
  animation: wobble 6s ease-in-out infinite;
}
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(340px, 78vw); }
  .hero-logo { width: 96px; height: 96px; left: -8px; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; color: var(--text); }
.card-icon svg { width: 28px; height: 28px; }
.c1 { background: var(--teal-soft); color: var(--teal); }
.c2 { background: var(--orange-soft); color: var(--orange); }
.c3 { background: var(--yellow-soft); }
.c4 { background: var(--pink-soft); }
.c5 { background: var(--violet-soft); }

/* Espace en ligne */
.online { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.online-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.online-card .card-icon { margin: 0; }
.online-card h2 { font-size: 1.55rem; }
.online-card p { color: var(--muted); }
@media (max-width: 760px) {
  .online { grid-template-columns: 1fr; }
  .online-card { flex-direction: column; padding: 24px; }
}

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 64px 22px 22px;
}
.steps li::before {
  content: counter(step); position: absolute; top: 18px; left: 22px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-family: "Fredoka", sans-serif; font-weight: 700;
}
[data-theme="dark"] .steps li::before { color: #1a0f08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { color: #1a0f08; } }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
.steps strong { color: var(--text); }

.seasons { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.season-now { display: inline-block; background: var(--teal-soft); color: var(--teal-strong); font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.season-list { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.season-list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); }
.season-list li.current { border-color: var(--teal); background: var(--teal-soft); }
.season-list div { display: flex; flex-direction: column; line-height: 1.35; }
.season-list span:not(.season-dot) { color: var(--muted); font-size: .95rem; }
.season-dot { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.s-spring { background: radial-gradient(circle at 35% 35%, #ffe17a, #f4b400); }
.s-autumn { background: radial-gradient(circle at 35% 35%, #ffad6b, #c2410c); }
.s-ski { background: radial-gradient(circle at 35% 35%, #d9f4ff, #5fb3d6); }
.note { color: var(--muted); font-size: .95rem; margin: 0; }

/* Charte */
.charter { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.charter-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.charter-item h3 { color: var(--teal); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7f92' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Infos pratiques */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.info-list { margin: 24px 0 0; display: grid; gap: 18px; }
.info-list div { display: grid; gap: 2px; }
.info-list dt { font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.info-list dd { margin: 0; font-size: 1.12rem; }
.info-list a { font-weight: 700; }
.hours { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); box-shadow: var(--shadow); }
.hours-state { font-weight: 800; margin-bottom: 12px; }
.hours-state.is-open { color: var(--green); }
.hours-state.is-closed { color: var(--orange); }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.hours th, .hours td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours th { font-weight: 700; width: 34%; }
.hours td { color: var(--muted); }
.hours td.closed { color: var(--orange); font-weight: 700; }
.hours tr.today th, .hours tr.today td { background: var(--teal-soft); color: var(--text); }
.hours tr.today th { border-radius: 10px 0 0 10px; }
.hours tr.today td { border-radius: 0 10px 10px 0; }
@media (max-width: 760px) {
  .infos { grid-template-columns: 1fr; }
  .hours th, .hours td { padding: 9px 6px; font-size: .95rem; }
}

/* Pied de page */
.footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.4; }
.footer-brand span { color: var(--muted); font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copy { color: var(--muted); font-size: .9rem; margin: 0; width: 100%; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
