/* La Source · DA warm, version « rouge assagi » (2026-11). Par-dessus club.css : base brune très sombre, rouge mat
   (grenat), aucun doré : les anciens accents dorés passent en crème.
   La fin du fichier porte la page d'accueil (h-*) et le bloc « Votre avis · Investir » commun à toutes les pages. */

:root {
  --velvet: #200D0B;
  --lacquer: #180908;
  --deep: #110605;
  --block: #6A211C;
  --crimson: #8A3029;
  --hot-light: #D29A91;
  --cream: #EFE7DC;
  --rose: #E3D5CB;
  --muted: rgba(227, 213, 203, .72);
  --gold: #EFE7DC;
  --gold-2: rgba(239, 231, 220, .34);
  --gold-3: rgba(239, 231, 220, .16);
  --on-gold: #180908;
  --hot: var(--crimson);
  --cold: #3E525B;
  --cold-light: #9DB3BC;
  --ink: #EFE7DC;
}

body { font-variation-settings: "SOFT" 0, "WONK" 0; }
/* le velours photographié laisse place à un fond mat, à peine plus rouge en haut */
body::before { background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--block) 26%, var(--velvet)), var(--velvet) 62%); }
h1 em, h2 em, h3 em { color: inherit; }
.hero::after { background: linear-gradient(180deg, rgba(17, 7, 8, .4) 0%, rgba(17, 7, 8, 0) 26%, rgba(17, 7, 8, .14) 45%, rgba(17, 7, 8, .8) 100%); }

/* en-tête, menus, boutons */
.top { background: color-mix(in srgb, var(--lacquer) 86%, transparent); border-bottom-color: var(--gold-3); }
.chrome.on-hero .top { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.sq { --sq-bg: var(--cream); --sq-fg: var(--on-gold); border-radius: 2px; }
.btn.sq:hover { --sq-bg: var(--hot-light); --sq-fg: var(--on-gold); }
.foot { background: var(--lacquer); }
.foot .foot-slogan { display: none; }

/* photos : un peu moins saturées, pour que le rouge reste mat */
main img, .hero-video { filter: saturate(.78); }

/* ---------------------------------------------------------------- accueil */
.h-hero .h-hero-in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 var(--pr) clamp(40px, 6vw, 72px) var(--pl); display: grid; gap: 20px; max-width: 1180px; color: var(--cream); }
.h-ctx { font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.h-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.6vw, 100px); line-height: 1; text-wrap: balance; letter-spacing: -.03em; }
.h-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 2px; border: 1px solid transparent; color: var(--cream); }
.h-btn.main { background: var(--cream); color: var(--on-gold); }
.h-btn.main:hover { background: var(--hot-light); }
.h-btn.line { border-color: var(--gold-2); }
.h-btn.line:hover { background: var(--gold-3); }

.h-sec { padding: clamp(88px, 10vw, 144px) var(--pr) clamp(88px, 10vw, 144px) var(--pl); }
.h-wrap { max-width: 1344px; margin: 0 auto; display: grid; gap: clamp(36px, 4vw, 56px); }
.h-head { display: grid; gap: 12px; }
.h-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.h-note { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 64ch; }
.h-concept { background: var(--cream); color: #2A0F0C; }
.h-concept-in { max-width: 760px; margin: 0 auto; display: grid; gap: 22px; justify-items: center; text-align: center; }
.h-kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); }
.h-concept .h-title { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }
.h-concept-t p + p { padding-top: 22px; border-top: 1px solid rgba(42, 15, 12, .28); }
.h-concept-t { display: grid; gap: 22px; margin-top: 6px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: #4A2620; }

.h-alt { background: var(--lacquer); }
.cls-cards.h-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 0; }
.h-four .cls { position: relative; transition: border-color .2s ease; }
.h-four .cls:has(a):hover { border-color: var(--cream); }
.h-four .cls-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.h-four .cls-body h3 { font-weight: 500; font-size: 24px; line-height: 1.05; }
.h-four .cls-body h3 a { color: inherit; text-decoration: none; }
.h-four .cls-body h3 a::after { content: ""; position: absolute; inset: 0; }
.h-four .cls-body h3 a:focus-visible { outline: 0; }
.h-four .cls:focus-within { border-color: var(--cream); }
.h-four .cls-body > p:not(.kicker):not(.cls-note) { font-size: 15px; }
.h-four .cls-meta { margin-top: auto; padding: 6px 0 0; list-style: none; }
@media (max-width: 1100px) { .cls-cards.h-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 560px) { .cls-cards.h-four { grid-template-columns: minmax(0, 1fr); }}

/* le bloc « Votre avis · Investir », en bas de chaque page */
.h-cta { background: var(--block); color: var(--cream); padding: clamp(80px, 9vw, 120px) var(--pr) clamp(80px, 9vw, 120px) var(--pl); }
.h-cta-in { max-width: 1248px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.h-cta-in > div { display: grid; gap: 14px; align-content: start; justify-items: start; padding-right: 48px; }
.h-cta-in > div + div { border-left: 1px solid var(--gold-2); padding: 0 0 0 64px; }
.h-cta-t { max-width: 1248px; margin: 0 auto clamp(40px, 5vw, 72px); font-size: clamp(40px, 5vw, 72px) !important; }
.h-cta h2, .h-cta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.015em; line-height: 1.05; }
.h-cta p { font-size: 20px; }

@media (max-width: 900px) {
   .h-cta-in { grid-template-columns: minmax(0, 1fr); }
  .h-cta-in { gap: 48px; }
  .h-cta-in > div { padding: 0; }
  .h-cta-in > div + div { border-left: 0; border-top: 1px solid var(--gold-2); padding: 48px 0 0; }
}

/* les événements : un carrousel d'exemples, à faire défiler */
.h-events { overflow: hidden; }
.h-ev-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.h-events .h-kicker { color: var(--hot-light); }
.h-ev-nav { display: flex; gap: 10px; flex: none; }
.h-ev-nav button { appearance: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-2); background: transparent; color: var(--cream); font: 400 20px/1 var(--sans); cursor: pointer; }
.h-ev-nav button:hover { background: var(--cream); color: var(--on-gold); }
.h-ev-track { list-style: none; margin: 0 calc(-1 * var(--pr)) 0 0; padding: 0 var(--pr) 0 0; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h-ev-track::-webkit-scrollbar { display: none; }
.h-ev { flex: 0 0 clamp(260px, 30vw, 400px); scroll-snap-align: start; display: grid; gap: 18px; align-content: start; }
.h-ev img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--lacquer); filter: none; }
.h-ev > div { display: grid; gap: 6px; color: var(--cream); }
.h-ev h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.01em; }
.h-ev p { font-size: 15px; line-height: 1.45; color: var(--rose); }
@media (max-width: 700px) { .h-ev-nav { display: none; } .h-ev { flex-basis: 78vw; }}

/* le bloc du bas : devenir membre fondateur, demander le business plan */
.h-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 460px; margin-top: 14px; justify-items: start; }
.h-form label { display: grid; gap: 6px; width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.h-form label.wide, .h-form .form-status { grid-column: 1 / -1; }
.h-form input:not(.hp) { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--gold-2); border-radius: 2px; background: rgba(17, 6, 5, .28); color: var(--cream); font: 400 16px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.h-form input:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.h-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.h-form button { grid-column: 1 / -1; margin-top: 6px; cursor: pointer; font-family: var(--sans); }
.h-form button:disabled { opacity: .6; }
.h-form button.line { background: transparent; }
.h-cta .h-form .form-status { font-size: 15px; min-height: 1.4em; margin: 0; }
.cls-cards.h-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cls-cards.h-three { grid-template-columns: minmax(0, 1fr); }}
.h-lieu-head { margin-bottom: clamp(28px, 3vw, 44px); }

/* la maquette : les points du chaud et du froid */
.hotspot.hot i { background: #E08A4F; box-shadow: 0 0 0 4px rgba(224, 138, 79, .3); }
.hotspot.cold i { background: #8FC3E0; box-shadow: 0 0 0 4px rgba(143, 195, 224, .3); }

/* le menu léger du hero : il s'efface dès qu'on fait défiler */
.h-nav { margin-left: auto; display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; transition: opacity .25s ease, visibility .25s; }
.h-nav a { color: #FFFFFF; text-decoration: none; padding: 8px 0; opacity: .9; }
.h-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.scrolled .h-nav { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 700px) { .h-nav { gap: 10px; font-size: 11.5px; letter-spacing: 0; }}

/* ---------------------------------------------------------------- essai « créatif » (branche creatif) */
/* le chaud et le froid : la page passe au bleu nuit autour du lieu, puis revient au grenat */
@property --velvet { syntax: "<color>"; inherits: true; initial-value: #200D0B; }
@property --lacquer { syntax: "<color>"; inherits: true; initial-value: #180908; }
@property --block { syntax: "<color>"; inherits: true; initial-value: #6A211C; }
:root { --temp: #E08A4F; transition: --velvet 1.6s ease, --lacquer 1.6s ease, --block 1.6s ease; }
:root[data-temp="cold"] { --velvet: #0C1A21; --lacquer: #09141A; --block: #1F3A46; --temp: #8FC3E0; }
.model { background: var(--lacquer); }
.lieu .model { border-color: color-mix(in srgb, var(--temp) 34%, transparent); transition: border-color 1.6s ease; }

/* un grain de film, très léger, sur toute la page */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* le fil de la page, sur le bord droit : il prend la couleur du chaud ou du froid */
.thermo { position: fixed; top: 0; right: 0; z-index: 65; width: 3px; height: 100vh; pointer-events: none; transform-origin: 50% 0; transform: scaleY(var(--scroll, 0)); background: var(--temp); transition: background-color 1.6s ease; }

/* les titres et les cartes sortent de la vapeur */
.rv { opacity: 0 !important; filter: blur(12px) !important; transform: translateY(22px) !important; transition: opacity 1.1s ease, filter 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1) !important; transition-delay: calc(var(--i, 0) * 110ms) !important; }
.rv.in { opacity: 1 !important; filter: none !important; transform: none !important; }

/* le héros : le titre recule et la vidéo s'approche quand on descend */
.h-hero .h-hero-in { transform: translateY(calc(var(--hs, 0) * -70px)); opacity: calc(1 - var(--hs, 0) * 1.5); }
.h-hero .hero-video { transform: scale(calc(1 + var(--hs, 0) * .1)); }

/* les cartes : la photo s'approche, la carte se soulève */
.h-three .cls { transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .5s ease; }
@property --ps { syntax: "<number>"; inherits: false; initial-value: 1.12; }
.h-three .cls figure img { transform: translateY(calc(var(--py, 0) * -4%)) scale(var(--ps)); transition: --ps 1.4s cubic-bezier(.2, .7, .2, 1), filter .8s ease; }
.h-ev img { object-position: 50% calc(50% + var(--py, 0) * 22%); }
.h-ev img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
@media (hover: hover) {
  .h-three .cls:hover { transform: translateY(-8px); border-color: var(--hot-light); }
  .h-three .cls:hover figure img { --ps: 1.2; filter: saturate(1.08) brightness(1.07) sepia(.12); }
  .h-ev:hover img { transform: translateY(-8px); filter: brightness(1.1) saturate(1.15) sepia(.1); }
}
.h-ev-track.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.h-ev-track { cursor: grab; }
.h-ev img { -webkit-user-drag: none; }

/* la maquette : le repère visité pendant la visite automatique */
.hotspot { transition: background-color .4s ease, transform .4s ease; }
.hotspot.live { background: var(--crimson); transform: scale(1.14); }
.hotspot.cold.live { background: #24505F; }

/* le point qui suit la souris : orange dans le chaud, bleu dans le froid */
.cur { position: fixed; left: 0; top: 0; z-index: 80; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; background: var(--temp); opacity: 0; transition: opacity .3s ease, width .3s ease, height .3s ease, margin .3s ease, background-color .6s ease; mix-blend-mode: screen; }
.cur.on { opacity: .9; }
.cur.big { width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: .45; }
.cur.is-hot { background: #E08A4F; }
.cur.is-cold { background: #8FC3E0; }

/* après l'inscription : le bloc s'éclaire, le logo apparaît */
.h-cta-in > div { position: relative; }
.h-cta-in > div::before { content: ""; position: absolute; inset: -24px -24px -24px -32px; z-index: 0; pointer-events: none; opacity: 0; background: radial-gradient(80% 70% at 30% 40%, rgba(239, 231, 220, .18), rgba(239, 231, 220, 0) 62%); transition: opacity 1.4s ease; }
.h-cta-in > div.done::before { opacity: 1; }
.h-cta-in > div > * { position: relative; z-index: 1; }
.h-form.done label, .h-form.done button { display: none; }
.h-form.done { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
.h-form.done .form-status { grid-column: auto; font-family: var(--serif); font-size: clamp(20px, 2vw, 26px) !important; line-height: 1.25; }
.h-done-logo { width: 84px; height: 84px; animation: done-logo 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.h-done-logo .spin { transform-origin: 60px 60px; animation: done-spin 26s linear infinite; }
@keyframes done-logo { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes done-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  :root, .thermo, .lieu .model { transition: none; }
  .grain, .cur { display: none; }
  .h-done-logo, .h-done-logo .spin { animation: none; }
}

/* ---------------------------------------------------------------- essai « le site comme une session » */
/* entre les sections, un passage plein écran : la photo d'une pièce s'ouvre, tient l'écran, puis se fond dans la suite.
   --p va de 0 à 1 au fil du défilement (club.js). */
.pass { position: relative; height: 230svh; --p: 0; }
.pass-in { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.pass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; --o: clamp(0, calc(var(--p) * 2.6), 1); transform: scale(calc(1.3 - var(--p) * .3)); clip-path: inset(calc((1 - var(--o)) * 24%) calc((1 - var(--o)) * 30%) round calc((1 - var(--o)) * 10px)); }
.pass-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 50%, rgba(12, 5, 4, .38), rgba(12, 5, 4, 0) 75%); opacity: clamp(0, calc((var(--p) - .3) * 5), 1); }
.pass-t { position: relative; z-index: 2; margin: 0; padding: 0 24px; text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 112px); line-height: 1; letter-spacing: -.03em; color: var(--cream); text-wrap: balance; opacity: calc(clamp(0, calc((var(--p) - .34) * 6), 1) * (1 - clamp(0, calc((var(--p) - .87) * 9), 1))); transform: translateY(calc((.58 - var(--p)) * 90px)); }
.pass-veil { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--to, var(--velvet)); opacity: clamp(0, calc((var(--p) - .9) * 10), 1); }
@media (prefers-reduced-motion: reduce) {
  .pass { height: auto; }
  .pass-in { position: relative; height: 70svh; }
  .pass img { transform: none; clip-path: none; }
  .pass-t, .pass-in::after { opacity: 1; transform: none; }
  .pass-veil { display: none; }
}

/* ---------------------------------------------------------------- essai « événements à l'affiche » */
/* les cinq titres en très grand, l'un sous l'autre ; la photo de l'événement en cours occupe tout le fond de la section
   (club.js pose .on sur le titre le plus proche du milieu de l'écran, ou sur celui que la souris survole) */
.h-events { position: relative; isolation: isolate; overflow: visible; padding-bottom: clamp(60px, 12svh, 140px); }
.evx-bg { position: absolute; inset: 0; z-index: -1; }
.evx-frame { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.evx-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 6s cubic-bezier(.2, .6, .2, 1); }
.evx-frame img.on { opacity: 1; transform: none; }
.evx-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 6, 5, .82) 0%, rgba(14, 6, 5, .5) 46%, rgba(14, 6, 5, .16) 100%), linear-gradient(180deg, var(--velvet) 0%, rgba(14, 6, 5, 0) 16%, rgba(14, 6, 5, 0) 84%, var(--lacquer) 100%); }
.h-events .h-ev-head { margin-bottom: clamp(24px, 6svh, 80px); }
.evx-list { list-style: none; margin: 0; padding: 0; }
.evx { display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 1.4vw, 18px); min-height: 28svh; }
.evx p { margin: 0; max-width: 36ch; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.4; color: var(--cream); opacity: 0; transform: translateX(clamp(10px, 2.4vw, 40px)); transition: opacity .7s ease; }
.evx.on p { opacity: 1; }
.evx h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 8.6vw, 136px); line-height: .96; letter-spacing: -.035em; color: var(--cream); opacity: .26; transform-origin: 0 50%; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); cursor: default; }
.evx.on h3 { opacity: 1; transform: translateX(clamp(10px, 2.4vw, 40px)); }
@media (max-width: 700px) {
  .evx { min-height: 20svh; }
  .evx-frame::after { background: linear-gradient(180deg, var(--velvet) 0%, rgba(14, 6, 5, .5) 18%, rgba(14, 6, 5, .5) 82%, var(--lacquer) 100%); }
}
@media (prefers-reduced-motion: reduce) { .evx-frame img, .evx h3, .evx p { transition: none; } }
