/* KOROZ — feuille de style commune */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --concrete: #a3a6aa;
  --mist: #eeeff0;
  --graphite: #4a4d51;
  --line: #d6d8da;
  --ico-filter: none;
  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ffffff;
    --paper: #000000;
    --concrete: #8d9095;
    --mist: #161718;
    --graphite: #b9bcc0;
    --line: #2e3033;
    --ico-filter: invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ffffff; --paper: #000000; --concrete: #8d9095; --mist: #161718;
  --graphite: #b9bcc0; --line: #2e3033; --ico-filter: invert(1); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.125rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--concrete); outline-offset: 3px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.ico { filter: var(--ico-filter); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; max-width: 38em; }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; }
.muted { color: var(--graphite); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em;
  padding: .7em 1.4em; border: 2px solid currentColor; background: transparent; color: inherit;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn:not(.btn--solid):hover { background: var(--ink); color: var(--paper); }
.hero .btn--solid { background: #fff; color: #000; border-color: #fff; }
.hero .btn--solid:hover { background: transparent; color: #fff; }
.hero .btn:not(.btn--solid):hover { background: #fff; color: #000; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: #000; color: #fff; border-bottom: 1px solid #222; }
.nav .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4rem; }
.nav__logo img { height: 1.6rem; width: auto; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.nav__links a { text-decoration: none; padding: .3em 0; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-color: #fff; }
.nav__cta { font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 2px solid #fff; padding: .3em .9em; }
.nav__cta:hover { background: #fff; color: #000; }
@media (max-width: 760px) {
  .nav .wrap { flex-wrap: wrap; gap: .4rem 1rem; padding-block: .6rem; }
  .nav__links { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 1.2rem; }
  .nav__cta { margin-left: auto; }
}

/* Hero (toujours noir : c'est la couleur de la marque) */
.hero { background: #000; color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; padding-block: clamp(3rem, 8vw, 6rem); }
.hero p { color: #c9cbce; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__img { justify-self: center; width: min(100%, 30rem); }
.hero--small .wrap { grid-template-columns: 1fr auto; }
.hero--small .hero__img { width: clamp(7rem, 16vw, 11rem); }
.hero--small .hero__img img.inv { filter: invert(1); }
.hero--small .hero__img--logo { width: clamp(11rem, 26vw, 19rem); }
@media (max-width: 760px) {
  .hero .wrap, .hero--small .wrap { grid-template-columns: 1fr; }
  .hero__img { width: min(70%, 18rem); grid-row: 1; }
  .hero--small .hero__img { width: 6rem; justify-self: start; }
}
.hero__gorilla { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(2rem) scale(.97); } to { opacity: 1; transform: none; } }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--mist { background: var(--mist); }
.section__head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }

/* Orientation */
.quiz { border-top: 2px solid var(--ink); }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; }
.chain { display: flex; align-items: center; }
.chain span { width: 2.6rem; height: 1.15rem; border: 3px solid var(--line); border-radius: 1rem; margin-left: -.55rem; transition: border-color .35s, transform .5s; }
.chain span:first-child { margin-left: 0; }
.chain span.on { border-color: var(--ink); }
.chain.broken span:nth-child(1) { transform: translateX(-.6rem) rotate(-14deg); }
.chain.broken span:nth-child(2) { transform: translateY(-.25rem) rotate(8deg); }
.chain.broken span:nth-child(3) { transform: translateX(.7rem) rotate(18deg); }
.quiz__back { font-family: var(--display); font-weight: 600; font-size: 1.1rem; background: none; border: 0; color: var(--graphite); cursor: pointer; padding: .3em 0; text-decoration: underline; text-underline-offset: .2em; }
.quiz__back[hidden] { display: none; }
.quiz__q { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; margin: 1rem 0 1.5rem; }
.quiz__opts { list-style: none; margin: 0; padding: 0; }
.quiz__opts li + li { border-top: 1px solid var(--line); }
.quiz__opt {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; color: inherit; cursor: pointer; padding: 1.1rem .9rem;
  font-family: var(--text); font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.3;
  transition: background .15s, color .15s;
}
.quiz__opt small { display: block; font-size: .8em; color: var(--graphite); margin-top: .15em; }
.quiz__opt:hover, .quiz__opt:focus-visible { background: var(--ink); color: var(--paper); }
.quiz__opt:hover small, .quiz__opt:focus-visible small { color: inherit; opacity: .75; }
.quiz__opt svg { flex: none; width: 1.4rem; height: 1.4rem; }
.quiz__stage { min-height: 22rem; }
.quiz__stage.enter { animation: stage .35s ease both; }
@keyframes stage { from { opacity: 0; transform: translateX(1.2rem); } to { opacity: 1; transform: none; } }
.result { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; padding-block: 1.5rem 1rem; }
.result img { width: clamp(5rem, 12vw, 8rem); }
.result h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: .6rem; }
.result__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.result__note { font-size: 1rem; color: var(--graphite); margin-top: 1.2rem; }
@media (max-width: 600px) { .result { grid-template-columns: 1fr; } }

/* Univers */
.houses { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.house { padding: 1.6rem 1.4rem 1.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; display: grid; gap: .5rem; align-content: start; }
.house + .house { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.house h3 { display: flex; justify-content: space-between; align-items: baseline; }
.house p { font-size: 1rem; margin: 0; color: var(--graphite); }
.house:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.house--main { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; padding: 2rem 0; border-left: 0 !important; padding-left: 0 !important; }
.house--main h3 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
.house--main p { font-size: 1.15rem; }
.house__tag { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--graphite); }
@media (max-width: 760px) {
  .houses { grid-template-columns: 1fr; }
  .house + .house { padding-left: 0; border-left: 0; }
  .house--main { grid-template-columns: 1fr; }
}

/* Manifeste */
.manifesto { background: #000; color: #fff; }
.manifesto blockquote { margin: 0; font-family: var(--text); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; max-width: 22em; }
.manifesto p { color: #c9cbce; margin-top: 2rem; }

/* Programmes */
.programs { border-top: 2px solid var(--ink); }
.program { display: grid; grid-template-columns: 7rem 1fr 1fr; gap: 1.5rem 3rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.program img { width: 6rem; }
.program h3 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; margin-bottom: .4rem; }
.program__for { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--graphite); margin: 0 0 1rem; }
.program ul { margin: 0; padding-left: 1.1em; font-size: 1.02rem; }
.program li { margin-bottom: .3em; }
.program__meta { font-size: .95rem; color: var(--graphite); margin-top: 1rem; }
@media (max-width: 860px) { .program { grid-template-columns: 5rem 1fr; } .program img { width: 4.5rem; } .program > div:last-child { grid-column: 1 / -1; } }

/* Colonnes simples */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3rem; }
.cols h3 { margin-bottom: .6rem; }
.cols ul { margin: 0; padding-left: 1.1em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.duo > div { padding: 2rem 2rem 2rem 0; }
.duo > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } .duo > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* 11 commandements */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; border-top: 2px solid var(--ink); }
.rules li { border-bottom: 1px solid var(--line); counter-increment: r; }
.rules details summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; gap: 1rem; padding: 1rem 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.1;
}
.rules details summary::-webkit-details-marker { display: none; }
.rules details summary::before { content: counter(r); font-weight: 800; color: var(--concrete); }
.rules details summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; transition: transform .25s; }
.rules details[open] summary::after { transform: rotate(45deg); }
.rules details p { padding: 0 0 1.2rem 4.2rem; margin: 0; color: var(--graphite); }
@media (max-width: 600px) { .rules details p { padding-left: 0; } }

/* Contact & pied de page */
.contact { background: #000; color: #fff; }
.contact .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.contact p { color: #c9cbce; }
.contact__lines { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; text-align: right; }
.contact__lines a { text-decoration: none; display: block; }
.contact__lines a:hover { text-decoration: underline; }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: 1fr; } .contact__lines { text-align: left; } }
.footer { background: #000; color: #8d9095; font-size: .92rem; border-top: 1px solid #222; padding-block: 2rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer a { color: #c9cbce; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.backlink { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }

/* Pages texte */
.legal h2 { font-size: 2rem; margin: 2.5rem 0 .8rem; }
.legal p { font-size: 1.02rem; }

/* Ajustements */
.hero h1 { margin-bottom: 1.4rem; }
.hero--small h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); }
[id] { scroll-margin-top: 5rem; }

/* ---------- V2 ---------- */
/* Arbre de l'accueil */
.tree { width: 100%; max-width: 54rem; margin: 1rem auto 0; color: var(--ink); }
.tree svg { width: 100%; height: auto; overflow: visible; }
.tree .stroke { fill: none; stroke: currentColor; stroke-linecap: round; }
.tree .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s cubic-bezier(.3,.6,.2,1) forwards; }
.tree .draw.d2 { animation-delay: .5s; } .tree .draw.d3 { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tree text { font-family: var(--display); fill: currentColor; }
.tree .node { fill: var(--paper); stroke: currentColor; stroke-width: 3; transition: fill .2s; }
.tree a:hover .node, .tree a:focus .node { fill: var(--ink); }
.tree a:hover text.inv, .tree a:focus text.inv { fill: var(--paper); }
.tree .t-big { font-size: 34px; font-weight: 800; }
.tree .t-mid { font-size: 22px; font-weight: 700; }
.tree .t-small { font-size: 16px; font-weight: 600; fill: var(--graphite); }
@media (prefers-reduced-motion: reduce) { .tree .draw { stroke-dashoffset: 0; } }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.story h3 { margin-bottom: .8rem; }
.acronym { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; margin: 1rem 0 .4rem; letter-spacing: .02em; }
.acronym s { color: var(--concrete); text-decoration-thickness: 4px; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

/* Onglets de public */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 2px solid var(--ink); width: fit-content; max-width: 100%; }
.tabs button { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.3rem); padding: .6em 1.2em; background: none; border: 0; color: var(--ink); cursor: pointer; }
.tabs button + button { border-left: 2px solid var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 560px) { .tabs { width: 100%; } .tabs button { flex: 1 1 100%; } .tabs button + button { border-left: 0; border-top: 2px solid var(--ink); } }
[data-pour] { display: none; }
.pour-particulier [data-pour~="particulier"], .pour-dirigeant [data-pour~="dirigeant"], .pour-sportif [data-pour~="sportif"] { display: block; }
.program__badge { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; border: 2px solid var(--ink); padding: .1em .6em; margin-bottom: .6rem; }

/* Réservation */
.booking { border: 2px solid var(--ink); min-height: 40rem; background: var(--paper); }
.booking iframe { width: 100%; height: 44rem; border: 0; display: block; background: #fff; }
.booking__fallback { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1rem; align-content: center; min-height: 20rem; }
.pay { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; border-top: 2px solid var(--ink); padding-top: 2rem; }
@media (max-width: 700px) { .pay { grid-template-columns: 1fr; } }
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.steps3 li { counter-increment: s; }
.steps3 li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--concrete); margin-bottom: .5rem; }
@media (max-width: 700px) { .steps3 { grid-template-columns: 1fr; } }
.private { border: 2px dashed var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); }
.tree .t-big { font-size: 46px; }
.tree .t-mid { font-size: 30px; }
.tree .t-small { font-size: 21px; }
.program ul { margin-bottom: 1rem; }
.handwritten { font-family: "Homemade Apple", "Segoe Script", "Bradley Hand", cursive; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.5; margin: 1.2rem 0 1rem; transform: rotate(-2deg); transform-origin: left center; max-width: none; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.person { margin: 0; }
.person img { width: 100%; max-width: 26rem; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 1.2rem; }
.person h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.person p { font-size: 1.05rem; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }

.result img.result__logo { width: clamp(6rem, 14vw, 9rem); }
@media (max-width: 760px) { .hero--small .hero__img--logo { width: 11rem; } }
.hero--small .hero__img--logo { display: flex; justify-content: center; }
.hero--small .hero__img--logo img { width: auto; max-width: 100%; max-height: 19rem; }
@media (max-width: 760px) { .hero--small .hero__img--logo img { max-height: 12rem; } }
.pour-entreprise [data-pour~="entreprise"] { display: block; }
.prose h3 { margin: 2rem 0 .6rem; } .prose h3:first-child { margin-top: 0; }
.story .person img { max-width: 24rem; }

/* ---------- Finale ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; }
.gallery figcaption { font-size: .95rem; color: var(--graphite); margin-top: .5rem; }
.gallery__wide { grid-column: 1 / -1; }
.gallery [hidden] { display: none; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.places { margin: 0; padding-left: 1.1em; } .places li { margin-bottom: .6em; }
.program__price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 0 0 .4rem; }
.program__price[hidden], [data-pay][hidden] { display: none; }
.program__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer__social { display: flex; flex-wrap: wrap; gap: 1.2rem; width: 100%; }
.footer__social:empty { display: none; }
.footer__social a { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.gallery figure:not(.gallery__wide) img { aspect-ratio: 4 / 5; height: auto; }
.program > div { min-width: 0; }
.program h3 { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .program { grid-template-columns: 3.5rem 1fr; gap: 1rem 1.2rem; }
  .program img { width: 3.5rem; }
  .program h3 { font-size: 2rem; }
}
.gallery img { object-position: 50% 0; }
.gallery figure:not(.gallery__wide) img { max-height: none; }
