:root {
  --charbon: #11100f;
  --charbon-soft: #1c1c1e;
  --ink: #080807;
  --ivory: #f7f3e9;
  --ivory-muted: #d8d0c2;
  --sand: #d9c4a1;
  --gold: #d99052;
  --cardinal: #9e2b24;
  --cardinal-hot: #c33a2f;
  --ember: #ef7d52;
  --sage: #6f8a6b;
  --line: rgba(247, 243, 233, 0.18);
  --line-strong: rgba(247, 243, 233, 0.32);
  --surface: rgba(28, 28, 30, 0.82);
  --surface-solid: #171514;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.2), rgba(17, 16, 15, 0.96) 780px, var(--charbon) 980px),
    var(--charbon);
  font-family:
    Inter, "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(247, 243, 233, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 243, 233, 0.022) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(158, 43, 36, 0.14), transparent 26%),
    radial-gradient(circle at 82% 76%, rgba(111, 138, 107, 0.11), transparent 30%),
    linear-gradient(90deg, rgba(158, 43, 36, 0.08), transparent 42%, rgba(217, 144, 82, 0.07));
  opacity: 0.4;
}

/* notre motif signature : réseau de signaux qui dérive en fond, sur tout le site.
   discret, masqué en haut/bas pour fondre dans le charbon. */
.signal-field {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  color: var(--ivory);
  background: var(--cardinal);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  width: min(calc(100% - 32px), var(--max));
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(247, 243, 233, 0.14);
  border-radius: 40px;
  background: rgba(12, 11, 10, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
  animation: header-in 720ms var(--ease) both;
}

.site-header.is-scrolled {
  border-color: rgba(247, 243, 233, 0.24);
  background: rgba(12, 11, 10, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  justify-self: start;
  gap: 4px;
  min-width: 0;
  color: var(--ivory);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.brand-dot,
.title-dot {
  color: var(--cardinal-hot);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cardinal-hot);
  box-shadow: 0 0 18px rgba(195, 58, 47, 0.68);
  transform-origin: center;
  animation: ember-pulse 2.8s var(--ease) infinite;
}

.nav-links {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  color: rgba(247, 243, 233, 0.78);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  border-radius: 999px;
  padding: 10px 12px;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ivory);
  background: rgba(247, 243, 233, 0.08);
  outline: none;
}

.header-cta,
.primary-button,
.secondary-button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 520;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.header-cta::before,
.primary-button::before,
.secondary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 44%, transparent 64%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 180ms var(--ease),
    transform 560ms var(--ease);
}

.header-cta:hover::before,
.header-cta:focus-visible::before,
.primary-button:hover::before,
.primary-button:focus-visible::before,
.secondary-button:hover::before,
.secondary-button:focus-visible::before {
  opacity: 1;
  transform: translateX(120%);
}

.header-cta {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
  color: var(--ivory);
  background: rgba(247, 243, 233, 0.1);
  border-color: rgba(247, 243, 233, 0.12);
}

.header-cta:hover,
.header-cta:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  color: var(--ivory);
  border-color: rgba(247, 243, 233, 0.3);
  background: rgba(247, 243, 233, 0.14);
  outline: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 132px 24px 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, rgba(217, 144, 82, 0.14), transparent 38%);
  opacity: 0.7;
}

.hero-image,
.hero-shade,
.signal-canvas {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.86) contrast(1.04) brightness(0.66);
  transform: scale(1.04);
  animation: hero-breathe 22s var(--ease) infinite alternate;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.36) 0%, rgba(8, 8, 7, 0.18) 34%, rgba(8, 8, 7, 0.88) 100%),
    radial-gradient(circle at 50% 46%, rgba(8, 8, 7, 0.04), rgba(8, 8, 7, 0.62) 72%),
    linear-gradient(90deg, rgba(8, 8, 7, 0.55), rgba(8, 8, 7, 0.06) 48%, rgba(8, 8, 7, 0.55));
}

.signal-canvas {
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.hero-content {
  width: min(820px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  perspective: 1000px;
}

.eyebrow,
.section-kicker,
.feature-label {
  margin: 0;
  color: var(--sand);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(58px, 9vw, 104px);
  font-weight: 440;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  max-width: 600px;
  margin: 4px 0 0;
  color: rgba(247, 243, 233, 0.84);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions,
.access-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.primary-button {
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  color: var(--ivory);
  background:
    linear-gradient(135deg, var(--cardinal), var(--cardinal-hot) 58%, var(--ember));
  box-shadow: 0 14px 34px rgba(158, 43, 36, 0.24);
}

.primary-button:hover,
.primary-button:focus-visible {
  color: #fff;
  background:
    linear-gradient(135deg, var(--cardinal-hot), var(--ember));
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(195, 58, 47, 0.28);
  outline: none;
}

.primary-button svg {
  width: 18px;
  height: 18px;
  /* le chevron est centré dans un viewBox 20x20 : on rattrape le blanc à gauche
     pour que la flèche colle visuellement au texte (gap optique trop large sinon) */
  margin-left: -4px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.secondary-button {
  min-height: 54px;
  padding: 0 22px;
  color: rgba(247, 243, 233, 0.84);
  background: rgba(247, 243, 233, 0.08);
  border-color: rgba(247, 243, 233, 0.14);
}

.hero-manifesto {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 136px 0;
}

.section[id] {
  scroll-margin-top: 108px;
}

.intro-grid,
.experience-layout,
.start-grid,
.access {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  gap: 64px;
  align-items: start;
}

.section-kicker {
  margin-bottom: 24px;
}

/* objets décoratifs (esprit Stanford / vallée) en filigrane derrière le contenu */
.start,
.access {
  position: relative;
  isolation: isolate;
}

.deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.start > .section-kicker,
.start > .start-grid,
.access > .access-panel,
.access > .official-links {
  position: relative;
  z-index: 1;
}

/* photo de vallée en filigrane derrière ces sections (fond très assombri,
   fondu haut/bas pour se fondre dans le charbon de la page) */
.start::before,
.access::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      180deg,
      rgba(17, 16, 15, 0.95),
      rgba(17, 16, 15, 0.85) 46%,
      rgba(17, 16, 15, 0.96)
    ),
    radial-gradient(circle at 50% 46%, transparent 28%, rgba(17, 16, 15, 0.55)),
    var(--section-photo);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 14%,
    #000 86%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 14%,
    #000 86%,
    transparent
  );
}

.start {
  --section-photo: url("assets/start-bg.jpg");
}

.access {
  --section-photo: url("assets/access-bg.jpg");
}

.deco svg path {
  stroke: var(--ivory);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deco svg .deco-accent {
  stroke: var(--gold);
}

/* tour Hoover + contours de vallée dans "Premiers pas" */
.deco-tower {
  position: absolute;
  left: 2%;
  bottom: 0;
  height: 52%;
  width: auto;
  opacity: 0.26;
}

.deco-contour {
  position: absolute;
  left: 0;
  bottom: 5%;
  width: 30%;
  height: auto;
  opacity: 0.22;
}


.intro {
  position: relative;
  isolation: isolate;
  padding: 144px 0;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 42px 0;
  z-index: -2;
  border: 1px solid rgba(247, 243, 233, 0.12);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.94) 0%, rgba(8, 8, 7, 0.72) 48%, rgba(8, 8, 7, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.35), rgba(8, 8, 7, 0.84)),
    url("assets/vision-bg.jpg") center / cover;
  opacity: 0.92;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 42px 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 243, 233, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(247, 243, 233, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 74% 28%, rgba(217, 144, 82, 0.18), transparent 26%);
  background-size: 54px 54px, 54px 54px, auto;
  mix-blend-mode: screen;
  opacity: 0.42;
}

.intro .section-kicker {
  margin-left: 64px;
}

.intro .intro-grid {
  padding: 0 64px 8px;
}

h2 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.intro-copy,
.section-lead,
.access-panel p {
  color: rgba(247, 243, 233, 0.76);
  font-size: 18px;
}

.intro-copy {
  display: grid;
  gap: 20px;
}

.intro-copy p,
.section-lead,
.access-panel p {
  margin: 0;
}

.experience {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  align-items: center;
}

.section-lead {
  margin-top: 24px;
  max-width: 560px;
}

.feature-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(260px, 1fr);
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(247, 243, 233, 0.045), transparent 42%),
    rgba(10, 9, 8, 0.58);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.feature-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, var(--feature-aura, rgba(195, 58, 47, 0.18)), transparent 28%),
    radial-gradient(circle at 86% 82%, rgba(217, 144, 82, 0.11), transparent 30%);
  opacity: 0.9;
  transition:
    background 260ms var(--ease),
    opacity 260ms var(--ease);
}

.feature-shell[data-active-feature="learning"] {
  --feature-aura: rgba(195, 58, 47, 0.2);
  --feature-detail-a: rgba(158, 43, 36, 0.22);
  --feature-detail-b: rgba(217, 144, 82, 0.12);
  --feature-image: url("assets/feature-learning.jpg");
}

.feature-shell[data-active-feature="help"] {
  --feature-aura: rgba(111, 138, 107, 0.22);
  --feature-detail-a: rgba(111, 138, 107, 0.18);
  --feature-detail-b: rgba(217, 196, 161, 0.1);
  --feature-image: url("assets/feature-help.jpg");
}

.feature-shell[data-active-feature="projects"] {
  --feature-aura: rgba(217, 144, 82, 0.22);
  --feature-detail-a: rgba(217, 144, 82, 0.18);
  --feature-detail-b: rgba(195, 58, 47, 0.12);
  --feature-image: url("assets/feature-projects.jpg");
}

.feature-shell[data-active-feature="opportunities"] {
  --feature-aura: rgba(247, 243, 233, 0.16);
  --feature-detail-a: rgba(217, 196, 161, 0.16);
  --feature-detail-b: rgba(111, 138, 107, 0.14);
  --feature-image: url("assets/feature-opportunities.jpg");
}

.feature-list {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: stretch;
  border-right: 1px solid var(--line);
}

.feature-item {
  --cell-a: rgba(195, 58, 47, 0.16);
  --cell-b: rgba(217, 144, 82, 0.08);
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px;
  color: rgba(247, 243, 233, 0.7);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    padding-left 240ms var(--ease);
}

.feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(var(--cardinal-hot), var(--ember));
  opacity: 0;
  transform: scaleY(0.2);
  transition:
    opacity 180ms var(--ease),
    transform 240ms var(--ease);
}

.feature-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--cell-a), transparent 64%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.feature-item[data-feature="help"] {
  --cell-a: rgba(111, 138, 107, 0.16);
  --cell-b: rgba(217, 196, 161, 0.1);
  --cell-image: url("assets/feature-help.jpg");
}

.feature-item[data-feature="projects"] {
  --cell-a: rgba(217, 144, 82, 0.16);
  --cell-b: rgba(195, 58, 47, 0.12);
  --cell-image: url("assets/feature-projects.jpg");
}

.feature-item[data-feature="opportunities"] {
  --cell-a: rgba(247, 243, 233, 0.09);
  --cell-b: rgba(111, 138, 107, 0.12);
  --cell-image: url("assets/feature-opportunities.jpg");
}

.feature-item:last-child {
  border-bottom: 0;
}

.feature-item span {
  position: relative;
  z-index: 1;
  color: rgba(217, 196, 161, 0.58);
  font-size: 12px;
}

.feature-item strong {
  position: relative;
  z-index: 1;
  color: inherit;
  font-size: 24px;
  font-weight: 380;
  line-height: 1.2;
}

.feature-item:hover,
.feature-item:focus-visible,
.feature-item.is-active {
  color: var(--ivory);
  outline: none;
}

.feature-item:hover,
.feature-item:focus-visible {
  padding-left: 34px;
}

.feature-item:hover::after,
.feature-item:focus-visible::after,
.feature-item.is-active::after {
  opacity: 1;
}

.feature-item.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.feature-item.is-active span {
  color: var(--cardinal-hot);
}

.feature-detail {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 34px;
  background:
    radial-gradient(circle at 82% 14%, var(--feature-detail-a, rgba(158, 43, 36, 0.22)), transparent 48%),
    radial-gradient(circle at 12% 92%, var(--feature-detail-b, rgba(217, 144, 82, 0.12)), transparent 52%),
    linear-gradient(155deg, rgba(30, 29, 31, 0.92), rgba(8, 8, 7, 0.97));
  overflow: hidden;
  transition:
    opacity 180ms var(--ease),
    transform 220ms var(--ease);
}

.feature-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(111, 138, 107, 0.1), transparent 30%);
}

.feature-detail::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 72px;
  height: 2px;
  display: block;
  background: linear-gradient(90deg, var(--cardinal-hot), rgba(247, 243, 233, 0.34), transparent);
  box-shadow: 0 0 22px rgba(195, 58, 47, 0.24);
}

.feature-detail.is-changing {
  opacity: 0.64;
  transform: translateY(8px);
}

.feature-label {
  position: relative;
  z-index: 1;
  color: var(--ivory-muted);
}

.feature-text {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0;
  color: var(--ivory);
  font-size: 24px;
  font-weight: 360;
  line-height: 1.32;
}

.start-grid {
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding-left 220ms var(--ease),
    background 220ms var(--ease);
}

.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: var(--cardinal-hot);
  opacity: 0;
  transform: scaleY(0);
  transition:
    opacity 180ms var(--ease),
    transform 240ms var(--ease);
}

.steps li:hover {
  padding-left: 16px;
  background: rgba(247, 243, 233, 0.035);
}

.steps li:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.steps span {
  color: var(--cardinal-hot);
  font-size: 12px;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: rgba(247, 243, 233, 0.84);
  font-size: 18px;
}

.staff {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 0;
  align-items: stretch;
}

.staff-intro {
  min-height: 720px;
  display: grid;
  align-content: end;
  gap: 24px;
  padding: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 4px 0 0 4px;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.12), rgba(8, 8, 7, 0.88) 78%),
    linear-gradient(90deg, rgba(8, 8, 7, 0.42), transparent),
    url("assets/staff-bg.jpg") center / cover;
  overflow: hidden;
}

.staff-intro .section-kicker {
  margin: 0;
}

.staff-intro h2 {
  max-width: 530px;
  font-size: 48px;
}

.staff-intro > p:not(.section-kicker) {
  max-width: 530px;
  margin: 0;
  color: rgba(247, 243, 233, 0.8);
  font-size: 18px;
}

.staff-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 243, 233, 0.18);
  color: var(--ivory-muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.staff-values span {
  position: relative;
}

.staff-values span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cardinal-hot);
}

.staff-form {
  position: relative;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 44px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background:
    linear-gradient(135deg, rgba(158, 43, 36, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(247, 243, 233, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(247, 243, 233, 0.03) 1px, transparent 1px),
    rgba(18, 17, 16, 0.94);
  background-size: auto, 54px 54px, 54px 54px, auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-row-compact {
  grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr) minmax(0, 1fr);
}

.staff-form label {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.staff-form label > span {
  color: rgba(247, 243, 233, 0.76);
  font-size: 13px;
  font-weight: 620;
}

.staff-form input:not([type="checkbox"]),
.staff-form select,
.staff-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(247, 243, 233, 0.18);
  border-radius: 4px;
  color: var(--ivory);
  background: rgba(247, 243, 233, 0.055);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.staff-form input:not([type="checkbox"]),
.staff-form select {
  min-height: 50px;
  padding: 0 14px;
}

.staff-form textarea {
  min-height: 118px;
  padding: 13px 14px;
  line-height: 1.5;
  resize: vertical;
}

.staff-form select {
  color-scheme: dark;
}

/* le menu déroulant natif : on force un fond sombre lisible sur tous les OS,
   sinon en mode clair le popup s'affiche blanc avec le texte ivoire = illisible */
.staff-form option {
  background-color: #1c1c1e;
  color: var(--ivory);
}

.staff-form option:disabled {
  color: rgba(247, 243, 233, 0.45);
}

.staff-form input:focus,
.staff-form select:focus,
.staff-form textarea:focus {
  border-color: rgba(239, 125, 82, 0.72);
  background: rgba(247, 243, 233, 0.08);
  box-shadow: 0 0 0 3px rgba(195, 58, 47, 0.12);
}

.form-consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px !important;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--cardinal-hot);
}

.form-consent span {
  font-weight: 450 !important;
  line-height: 1.45;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-footer p {
  max-width: 310px;
  margin: 0;
  color: rgba(247, 243, 233, 0.56);
  font-size: 12px;
}

.staff-form .primary-button {
  flex: 0 0 auto;
  cursor: pointer;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.access {
  padding-bottom: 128px;
}

.access-panel {
  position: relative;
  min-height: 430px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 22px;
  padding: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(158, 43, 36, 0.22), rgba(217, 144, 82, 0.08) 34%, rgba(247, 243, 233, 0.045)),
    var(--surface-solid);
  overflow: hidden;
}

.access-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(247, 243, 233, 0.08);
  opacity: 0.9;
}

.access-panel > * {
  position: relative;
  z-index: 1;
}

.access-panel .eyebrow {
  color: var(--sand);
}

.access-panel h2 {
  font-size: 54px;
}

.access-panel .access-actions {
  justify-content: flex-start;
}

.official-links {
  align-self: stretch;
  display: grid;
  border-top: 1px solid var(--line);
}

.official-links a {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 104px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    padding 180ms var(--ease);
}

.official-links a::after {
  content: "↗";
  position: absolute;
  right: 16px;
  color: rgba(247, 243, 233, 0.46);
  font-size: 26px;
  line-height: 1;
  opacity: 0;
  transform: translate(-6px, 8px);
  transition:
    opacity 180ms var(--ease),
    transform 220ms var(--ease);
}

.official-links a:hover,
.official-links a:focus-visible {
  padding-left: 14px;
  color: var(--ivory);
  background: rgba(247, 243, 233, 0.045);
  outline: none;
}

.official-links a:hover::after,
.official-links a:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.official-links .link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 243, 233, 0.5);
  transition: color 180ms var(--ease);
}

.official-links .link-icon svg {
  width: 22px;
  height: 22px;
}

.official-links a:hover .link-icon,
.official-links a:focus-visible .link-icon {
  color: var(--ivory);
}

.official-links span {
  color: rgba(217, 196, 161, 0.68);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.official-links strong {
  min-width: 0;
  color: rgba(247, 243, 233, 0.9);
  font-size: 24px;
  font-weight: 380;
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(calc(100% - 48px), var(--max));
  min-height: 96px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: rgba(247, 243, 233, 0.68);
}

.site-footer p {
  margin: 0;
}

.footer-tagline {
  color: rgba(247, 243, 233, 0.56);
  font-size: 14px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.footer-links a {
  color: rgba(247, 243, 233, 0.6);
  transition: color 180ms var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ivory);
  outline: none;
}

.thanks-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.9), rgba(8, 8, 7, 0.42)),
    linear-gradient(180deg, rgba(8, 8, 7, 0.2), rgba(8, 8, 7, 0.86)),
    url("assets/staff-bg.jpg") center / cover fixed;
}

.thanks-shell {
  width: min(calc(100% - 48px), var(--max));
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 40px;
  margin: 0 auto;
  padding: 32px 0 64px;
}

.thanks-content {
  max-width: 760px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
}

.thanks-content h1 {
  margin: 0;
  color: var(--ivory);
  font-size: 64px;
  font-weight: 390;
  line-height: 1.08;
}

.thanks-content > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: rgba(247, 243, 233, 0.8);
  font-size: 19px;
}

.thanks-content .primary-button {
  margin-top: 8px;
}

/* page légale (confidentialité) : texte long, fond charbon sobre */
.legal-shell {
  width: min(calc(100% - 48px), 760px);
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 48px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.legal-content {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 20px;
}

.legal-content h1 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.legal-lead {
  max-width: 580px;
  margin: 0 0 12px;
  color: rgba(247, 243, 233, 0.8);
  font-size: 19px;
}

.legal-content section {
  display: grid;
  gap: 8px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-content section h2 {
  font-size: 22px;
  font-weight: 520;
  letter-spacing: 0;
}

.legal-content section p {
  margin: 0;
  color: rgba(247, 243, 233, 0.74);
  font-size: 16px;
  line-height: 1.6;
}

.legal-content section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content > .primary-button {
  margin-top: 16px;
}

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms var(--ease),
    transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Preloader : rideau d'accueil avec fond LaValley */
html:not(.is-loaded) {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: var(--charbon);
  transition:
    transform 1000ms var(--ease),
    opacity 560ms ease 180ms;
  will-change: transform;
}

.preloader::before {
  content: "";
  position: absolute;
  inset: -6%;
  pointer-events: none;
  background: url("assets/hero-valley.jpg") center / cover no-repeat;
  filter: saturate(1.05) brightness(0.62);
  transform: scale(1.04);
  animation: pre-zoom 14s ease-in-out infinite alternate;
}

.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(158, 43, 36, 0.26), transparent 56%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.5), rgba(8, 8, 7, 0.2) 40%, rgba(8, 8, 7, 0.82)),
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(8, 8, 7, 0.6));
  animation: pre-glow 6.5s ease-in-out infinite;
}

html.is-loaded .preloader {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  text-align: center;
}

.preloader-eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(247, 243, 233, 0.62);
  opacity: 0;
  animation: pre-fade 700ms var(--ease) 140ms forwards;
}

.preloader-word {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
  padding: 0.12em 0.14em 0.16em;
  font-weight: 600;
  font-size: clamp(42px, 9vw, 78px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ivory);
}

.preloader-word span {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  animation: pre-letter 820ms var(--ease) forwards;
  animation-delay: calc(180ms + var(--i) * 56ms);
}

.preloader-dot {
  color: var(--cardinal-hot);
  text-shadow: 0 0 26px rgba(195, 58, 47, 0.72);
}

.preloader-bar {
  position: relative;
  width: 100%;
  height: 2px;
  margin: 34px 0 16px;
  border-radius: 999px;
  background: rgba(247, 243, 233, 0.16);
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cardinal-hot), var(--gold));
  box-shadow: 0 0 18px rgba(217, 144, 82, 0.5);
}

.preloader-count {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(247, 243, 233, 0.7);
}

.preloader-count i {
  font-style: normal;
  opacity: 0.5;
}

@keyframes pre-letter {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pre-fade {
  to {
    opacity: 1;
  }
}

@keyframes pre-glow {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pre-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12) translate3d(-1%, -1%, 0);
  }
}

.hero [data-reveal]:nth-child(1) {
  --reveal-delay: 80ms;
}

.hero [data-reveal]:nth-child(2) {
  --reveal-delay: 170ms;
}

.hero [data-reveal]:nth-child(3) {
  --reveal-delay: 260ms;
}

.hero [data-reveal]:nth-child(4) {
  --reveal-delay: 350ms;
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translate(-50%, -16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes ember-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(195, 58, 47, 0.58);
  }
  50% {
    transform: scale(1.22);
    box-shadow: 0 0 28px rgba(239, 125, 82, 0.86);
  }
}

@keyframes hero-breathe {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.095) translate3d(-1.5%, -1%, 0);
  }
}

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

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .intro-grid,
  .experience-layout,
  .start-grid,
  .access {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .staff {
    grid-template-columns: 1fr;
  }

  .staff-intro {
    min-height: 480px;
    border-radius: 4px 4px 0 0;
  }

  .staff-form {
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 0 0 4px 4px;
  }

  .intro .section-kicker {
    margin-left: 36px;
  }


  .intro .intro-grid {
    padding: 0 36px 8px;
  }

  h2 {
    font-size: 38px;
  }

  .feature-shell {
    grid-template-columns: 1fr;
  }

  .feature-list {
    border-right: 0;
  }

  .feature-detail {
    min-height: 250px;
    border-top: 1px solid var(--line);
  }

  .access-panel h2 {
    font-size: 44px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
    min-height: 54px;
    gap: 10px;
    padding: 7px 7px 7px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    min-height: 100svh;
    padding: 112px 18px 118px;
  }

  .hero-image {
    object-position: 45% center;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions,
  .access-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 52px;
  }

  .section {
    width: min(calc(100% - 32px), var(--max));
    padding: 76px 0;
  }

  .intro {
    padding: 86px 0;
  }

  /* mobile : on simplifie façon unaite — fond plat au lieu des photos texturées */
  .intro::before {
    inset: 16px 0;
    background: rgba(8, 8, 7, 0.5);
    border-color: rgba(247, 243, 233, 0.1);
  }

  .intro::after {
    display: none;
  }

  /* objets décoratifs (tour, contours) : trop chargé sur petit écran */
  .deco {
    display: none;
  }

  /* panneau des piliers : on enlève la photo, on garde une teinte d'accent discrète */
  .feature-detail {
    background:
      radial-gradient(circle at 82% 16%, var(--feature-detail-a, rgba(158, 43, 36, 0.18)), transparent 52%),
      var(--surface-solid);
  }

  /* le réseau de signaux reste, mais discret pour ne pas gêner la lecture */
  .signal-field {
    opacity: 0.3;
  }

  .intro .section-kicker {
    margin-left: 20px;
  }

  .intro .intro-grid {
    padding: 0 20px 6px;
  }

  h2 {
    font-size: 32px;
    line-height: 1.16;
  }

  .intro-copy,
  .section-lead,
  .access-panel p {
    font-size: 16px;
  }

  .feature-item {
    grid-template-columns: 34px 1fr;
    padding: 20px;
  }

  .feature-item strong {
    font-size: 21px;
  }

  .feature-detail {
    padding: 26px 22px;
  }

  .feature-text {
    font-size: 20px;
  }

  .steps li {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .steps p {
    font-size: 16px;
  }

  .staff-intro {
    min-height: 430px;
    padding: 28px 20px;
  }

  .staff-intro h2 {
    font-size: 34px;
  }

  .staff-intro > p:not(.section-kicker) {
    font-size: 16px;
  }

  .staff-form {
    gap: 20px;
    padding: 26px 20px;
  }

  .form-row,
  .form-row-compact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer p {
    max-width: none;
  }

  .access {
    padding-bottom: 86px;
  }

  .access-panel {
    min-height: auto;
    padding: 28px 20px;
  }

  .access-panel h2 {
    font-size: 38px;
  }

  .official-links a {
    grid-template-columns: 28px 1fr;
    gap: 16px;
    min-height: auto;
    padding: 22px 0;
  }

  .official-links strong {
    font-size: 21px;
  }

  .site-footer {
    width: min(calc(100% - 32px), var(--max));
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 34px;
  }

  .thanks-shell {
    width: min(calc(100% - 32px), var(--max));
    padding: 24px 0 40px;
  }

  .thanks-content h1 {
    font-size: 40px;
  }

  .thanks-content > p:not(.eyebrow) {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .signal-canvas,
  .signal-field {
    display: none;
  }

  .preloader-word span,
  .preloader-eyebrow {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
