/* ==========================================================================
   Maison Lumen — feuille de style unique
   Maquette WebnexLab. Aucune dépendance, aucun build.

   Registre : institut. Beaucoup d'air, filets fins, tarifs alignés en colonne
   comme une carte. Rien n'est partagé avec les autres maquettes.
   ========================================================================== */

/* --- 1. Jetons de couleur (une ambiance = un bloc) ----------------------- */

:root,
[data-palette="nacre"] {
  --bg: #fbf5f3;
  --bg-alt: #f4e9e6;
  --surface: #fffdfc;
  --deep: #2e2226;
  --ink: #2b2024;
  --muted: #7d6a6d;
  --line: #ecdcd8;
  --accent: #b98a8e;
  --accent-deep: #96666b;
  --accent-soft: #f7ebe9;
  --accent-fg: #fffaf9;
  --shadow: 46 34 38;
}

[data-palette="olive"] {
  --bg: #f6f6ef;
  --bg-alt: #ecedde;
  --surface: #fdfdf8;
  --deep: #232719;
  --ink: #23271b;
  --muted: #6b7059;
  --line: #dfe1cd;
  --accent: #6f7e52;
  --accent-deep: #55613e;
  --accent-soft: #e9ecdb;
  --accent-fg: #fafbf3;
  --shadow: 35 39 25;
}

[data-palette="ambre"] {
  --bg: #fbf6ec;
  --bg-alt: #f4ead6;
  --surface: #fffdf8;
  --ink: #2e2318;
  --deep: #2e2318;
  --muted: #7c6a52;
  --line: #ecdcc2;
  --accent: #b98330;
  --accent-deep: #8f6320;
  --accent-soft: #f7ead3;
  --accent-fg: #fffaf0;
  --shadow: 46 35 24;
}

[data-palette="onyx"] {
  --bg: #131113;
  --bg-alt: #1a171a;
  --surface: #1c191a;
  --deep: #0d0b0d;
  --ink: #f1e8e5;
  --muted: #a3928e;
  --line: #2c2729;
  --accent: #d8b4a0;
  --accent-deep: #c39b85;
  --accent-soft: #241f21;
  --accent-fg: #161214;
  --shadow: 0 0 0;
}

/* --- 2. Jetons non colorés ---------------------------------------------- */

:root {
  --display: "Marcellus", "Optima", Georgia, serif;
  --sans: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --shell: 1120px;
  --gutter: clamp(1.15rem, 5vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- 3. Base ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; font-weight: 300; line-height: 1.7;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* L'attribut `hidden` du HTML doit toujours gagner : sans ce garde-fou, un
   `display: grid` posé plus bas laisse l'élément visible alors qu'il est caché. */
[hidden] { display: none !important; }

/* Vignette intégrée dans le site WebnexLab (`?apercu=1`). */
.is-apercu, .is-apercu body { overflow: hidden; }
.is-apercu .palette-picker,
.is-apercu .demo-flag { display: none; }
.is-apercu .reveal { opacity: 1; transform: none; transition: none; }

p { margin: 0; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.1rem; }
em { font-style: italic; color: var(--accent-deep); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
  position: fixed; top: .6rem; left: 50%; transform: translate(-50%, -200%);
  z-index: 300; padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--deep); color: #fff; font-size: .85rem;
}
.skip-link:focus { transform: translate(-50%, 0); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 3px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.over {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .24em;
  color: var(--accent-deep); margin-bottom: 1rem; font-weight: 600;
}

/* --- 4. Apparition ------------------------------------------------------ */

.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* --- 5. Boutons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .88rem; font-weight: 600; letter-spacing: .02em;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent-deep); color: var(--accent-fg); }
.btn--solid:hover { filter: brightness(1.08); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn--full { width: 100%; }

/* --- 6. Sélecteur de palette (sous l'en-tête, à gauche) ----------------- */

.palette-picker { position: fixed; top: 5.9rem; left: 1rem; z-index: 120; }
.palette-picker__toggle {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .8rem;
  border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(var(--shadow) / .1); font-size: .78rem; font-weight: 600;
  transition: border-color .25s var(--ease);
}
.palette-picker__toggle:hover { border-color: var(--accent-deep); }
.palette-picker__panel {
  margin-top: .5rem; width: 15.5rem; padding: 1rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgb(var(--shadow) / .14); animation: pop .28s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) } }
.palette-picker__title { font-size: .64rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 600; margin-bottom: .7rem; }
.palette-picker__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.palette-picker__grid button {
  display: flex; align-items: center; gap: .5rem; padding: .5rem; border-radius: 10px;
  border: 1px solid var(--line); font-size: .76rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.palette-picker__grid button:hover { border-color: var(--accent-deep); }
.palette-picker__grid button[aria-checked="true"] { border-color: var(--accent-deep); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.palette-picker__grid button span {
  width: 1.1rem; height: 1.1rem; flex: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--sw1) 0 33%, var(--sw2) 33% 66%, var(--sw3) 66%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12);
}
.palette-picker__note { margin-top: .8rem; font-size: .7rem; line-height: 1.5; color: var(--muted); }

/* --- 7. Bandeau démonstration ------------------------------------------ */

.demo-flag { position: fixed; right: 1rem; bottom: 1rem; z-index: 120; max-width: min(23rem, calc(100vw - 2rem)); }
.demo-flag__row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }

.demo-flag__admin {
  display: inline-flex; align-items: center;
  padding: .55rem 1rem;
  background: var(--surface, #fff); color: var(--ink, #111);
  border: 1px solid var(--line, #ddd);
  font-size: .76rem; font-weight: 600;
  box-shadow: 0 10px 26px rgb(var(--shadow, 0 0 0) / .16);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.demo-flag__admin:hover { transform: translateY(-2px); border-color: currentColor; }

.demo-flag__btn {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
  padding: .55rem 1rem .55rem .8rem; border-radius: 999px;
  background: var(--deep); color: #fff; font-size: .76rem; font-weight: 600;
  box-shadow: 0 10px 26px rgb(var(--shadow) / .2); transition: transform .25s var(--ease);
}
.demo-flag__btn:hover { transform: translateY(-2px); }
.demo-flag__note {
  margin-top: .6rem; padding: 1.05rem 1.15rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .79rem; line-height: 1.6; color: var(--muted);
  box-shadow: 0 16px 40px rgb(var(--shadow) / .14); animation: pop .28s var(--ease);
}
.demo-flag__note p + p { margin-top: .6rem; }
.demo-flag__note strong { color: var(--ink); font-weight: 600; }

/* --- 8. En-tête --------------------------------------------------------- */

.head { position: sticky; top: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 95%, transparent); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 1.2rem; min-height: 5rem; }

.brand { display: grid; gap: .1rem; margin-right: auto; }
.brand__name { font-family: var(--display); font-size: 1.3rem; letter-spacing: .02em; }
.brand__sub { font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.7rem; font-size: .85rem; }
.nav a { color: var(--muted); transition: color .25s var(--ease); }
.nav a:hover { color: var(--accent-deep); }
.nav__cta {
  padding: .6rem 1.2rem; border-radius: 999px; background: var(--accent-deep);
  color: var(--accent-fg) !important; font-weight: 600;
}
.nav__cta:hover { filter: brightness(1.08); }

.burger { display: none; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: 999px; border: 1px solid var(--line); }

/* --- 9. Héros ----------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero__glow {
  position: absolute; top: -30%; right: -10%; width: 40rem; max-width: 110%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 62%);
  pointer-events: none;
}
.hero__in { position: relative; }
.hero h1 { margin-bottom: 1.5rem; }
.hero__lede { max-width: 44ch; color: var(--muted); font-size: 1.05rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__facts div { display: grid; gap: .15rem; }
.hero__facts dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent-deep); font-weight: 600; }
.hero__facts dd { margin: 0; font-size: .95rem; color: var(--muted); }

/* --- 10. Titre de bloc -------------------------------------------------- */

.head-block { max-width: 50ch; margin-bottom: 2.6rem; }
.head-block h2 { margin-bottom: .9rem; }
.head-block > p:not(.over) { color: var(--muted); font-size: .97rem; }
.head-block--light .over { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.head-block--light h2 { color: #fff; }

/* --- 11. Onglets et tarifs ---------------------------------------------- */

.tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.tabs button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.3rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .87rem; font-weight: 600; color: var(--muted);
  transition: all .25s var(--ease);
}
.tabs button:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.tabs button.is-on { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-fg); }

.prices { border-top: 1px solid var(--line); }
.price-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: .4rem 1.6rem; align-items: center;
  padding-block: 1.4rem; border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.price-row:hover { padding-left: .7rem; }
.price-row[hidden] { display: none; }
.price-row h3 { font-size: 1.12rem; }
.price-row p { font-size: .87rem; color: var(--muted); margin-top: .2rem; }
.price-row__time { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.price-row__price { font-family: var(--display); font-size: 1.35rem; color: var(--accent-deep); white-space: nowrap; }

.prices__note { margin-top: 1.6rem; font-size: .82rem; color: var(--muted); font-style: italic; }

/* --- 12. Équipe (bande foncée) ----------------------------------------- */

.band { background: var(--deep); color: #fff; }
[data-palette="onyx"] .band { border-block: 1px solid var(--line); }

.team { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.member { padding: 1.7rem 1.5rem; border: 1px solid rgb(255 255 255 / .14); border-radius: 18px; }
.member__initials {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 30%, transparent);
  font-family: var(--display); font-size: 1.05rem; color: #fff;
}
.member h3 { color: #fff; }
.member__role { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, var(--accent) 75%, #fff); margin: .3rem 0 .8rem; }
.member p:last-child { font-size: .89rem; color: rgb(255 255 255 / .66); }

/* --- 13. Avis ----------------------------------------------------------- */

.quotes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.quote { margin: 0; padding: 1.8rem 1.6rem; border-radius: 18px; background: var(--accent-soft); }
.quote p { font-size: .97rem; line-height: 1.65; }
.quote footer { margin-top: 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }

/* --- 14. Rendez-vous ---------------------------------------------------- */

.rdv { border-top: 1px solid var(--line); }
.rdv__in { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
.rdv__lede { color: var(--muted); margin-top: 1rem; max-width: 44ch; }
.rdv__facts { margin-top: 1.8rem; display: grid; gap: .6rem; }
.rdv__facts li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--muted); }
.rdv__facts li::before { content: "—"; position: absolute; left: 0; color: var(--accent-deep); }

.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.2rem); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: .4rem; }
.field label, .field__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: .75rem .9rem; font: inherit; font-size: .95rem; border-radius: 10px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent-deep); }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }

.slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.slots button {
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--muted);
  transition: all .2s var(--ease);
}
.slots button:hover:not(:disabled) { border-color: var(--accent-deep); color: var(--accent-deep); }
.slots button.is-on { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-fg); }
.slots button:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.slots__note { font-size: .75rem; color: var(--muted); }

.form-status { font-size: .83rem; line-height: 1.55; color: var(--accent-deep); font-weight: 600; }
.form-status:empty { display: none; }

/* --- 15. Pied de page --------------------------------------------------- */

.foot { background: var(--deep); color: #fff; padding-block: 2.8rem 2.2rem; }
.foot__in { display: grid; gap: 1.3rem; }
.foot__name { font-family: var(--display); font-size: 1.3rem; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.foot__in > div p:last-child { font-size: .87rem; color: rgb(255 255 255 / .62); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .85rem; color: rgb(255 255 255 / .7); }
.foot__nav a:hover { color: #fff; }
.foot__legal { font-size: .77rem; color: rgb(255 255 255 / .45); }
.foot__legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: .85rem; }
.foot__legal-links a { font-size: .85rem; opacity: .85; padding-block: .35rem; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: currentColor; }
.foot__legal-links a:hover, .foot__legal-links a:focus-visible { opacity: 1; }

/* --- 16. Adaptations ---------------------------------------------------- */

@media (max-width: 900px) {
  .rdv__in { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .burger { display: grid; }
  .head__in { min-height: 4.6rem; }
  .nav {
    position: fixed; inset: 4.6rem 0 auto; z-index: 88; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.4rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding-block: .9rem; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: .8rem; text-align: center; border-bottom: 0; }

  .palette-picker { top: 5.4rem; }
  .demo-flag { max-width: calc(100vw - 9.5rem); }
  .demo-flag__note { max-height: 55vh; overflow-y: auto; }

  .price-row { grid-template-columns: 1fr auto; }
  .price-row__time { grid-column: 1; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .palette-picker__toggle span, .demo-flag__btn span { display: none; }
  .palette-picker__panel { width: min(17rem, calc(100vw - 2rem)); }
  .tabs button { font-size: .8rem; padding: .55rem 1rem; }
}
