/* =========================================================
   Écran d'introduction — choix de la version
   ========================================================= */
:root {
  --graphite: #0B111B;
  --graphite-2: #121a27;
  --blue: #145BFF;
  --orange: #FF7900;
  --offwhite: #F4F1EC;
  --steel: #AAB3C0;
  --classic-red: #D3121B;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body {
  background: var(--graphite);
  color: var(--offwhite);
  font-family: 'Archivo', system-ui, sans-serif;
}

.intro {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(16px, 2.6vw, 32px);
  padding: clamp(18px, 3vw, 40px);
  background:
    linear-gradient(rgba(170, 179, 192, .05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(170, 179, 192, .05) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--graphite);
}

.intro__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.intro__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel);
}
.intro__dot { width: 8px; height: 8px; background: var(--orange); transform: skewX(-12deg); }

.intro__close {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 18px; border-radius: 999px;
  border: 1px solid rgba(170, 179, 192, .3); color: var(--offwhite);
  text-decoration: none; font-size: 14px;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.intro__close svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.intro__close:hover { background: rgba(244, 241, 236, .08); border-color: rgba(244, 241, 236, .55); }
.intro__close:hover svg { transform: rotate(90deg); }
.intro__close:active { transform: scale(.97); }
.intro__close:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.intro__head { max-width: 900px; }
.intro__title {
  font-size: clamp(32px, 5.4vw, 72px); line-height: .98; font-weight: 800;
  font-stretch: 112%; letter-spacing: -.02em;
}
.intro__lead { margin-top: 14px; color: var(--steel); font-size: clamp(15px, 1.4vw, 18px); }

/* ---------- Les deux options ---------- */
.choices {
  display: flex; gap: clamp(12px, 1.6vw, 20px);
  min-height: clamp(380px, 56vh, 640px);
}
.choice {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 0; display: flex; align-items: flex-end;
  border-radius: 18px; text-decoration: none; color: inherit;
  border: 1px solid rgba(170, 179, 192, .18);
  transition: flex-grow .7s var(--ease), border-color .3s, box-shadow .4s;
}
.choice--new { flex-grow: 1.35; }
@media (hover: hover) and (min-width: 900px) {
  .choices:hover .choice { flex-grow: .85; }
  .choices:hover .choice:hover { flex-grow: 1.6; }
}
.choice:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.choice__media { position: absolute; inset: 0; z-index: -2; }
.choice__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s;
}
.choice:hover .choice__media img, .choice:focus-visible .choice__media img { transform: scale(1.1); }

/* Option 1 : esprit du site actuel — clair, rouge, gris */
.choice--classic { background: #fff; color: #1d232c; }
.choice--classic .choice__media img { filter: grayscale(.3) brightness(1.05); }
.choice--classic::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .88) 52%, #fff 78%);
}
.choice--classic .choice__index { color: var(--classic-red); }
.choice--classic .choice__text { color: #4a5360; }
.choice--classic .choice__cta { background: var(--classic-red); color: #fff; }
.choice--classic .choice__title { font-family: 'Barlow', 'Archivo', sans-serif; font-style: italic; font-weight: 800; font-stretch: 100%; }

/* Option 2 : nouvelle identité — graphite, bleu électrique, orange */
.choice--new { background: var(--graphite-2); }
.choice--new::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 17, 27, .1) 0%, rgba(11, 17, 27, .78) 55%, rgba(11, 17, 27, .97) 85%),
    linear-gradient(90deg, rgba(20, 91, 255, .22), transparent 60%);
}
.choice--new:hover { border-color: rgba(20, 91, 255, .7); box-shadow: 0 0 0 1px rgba(20, 91, 255, .4), 0 30px 80px rgba(20, 91, 255, .18); }
.choice--new .choice__index { color: var(--orange); }
.choice--new .choice__text { color: #c8cfd8; }
.choice--new .choice__cta { background: var(--blue); color: #fff; }

.choice__body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(22px, 3vw, 40px); width: 100%; max-width: 560px;
}
.choice__index { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.choice__logo { height: 34px; width: auto; margin: 2px 0 4px; }
.choice__title { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.04; font-weight: 750; font-stretch: 108%; letter-spacing: -.01em; }
.choice__text { font-size: clamp(14.5px, 1.2vw, 16.5px); line-height: 1.55; max-width: 44ch; }
.choice__cta {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: gap .3s var(--ease), transform .2s;
}
.choice__cta svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.choice:hover .choice__cta svg { transform: translateX(4px); }
.choice:active .choice__cta { transform: scale(.98); }
.choice__badge {
  position: absolute; top: clamp(16px, 2vw, 24px); right: clamp(16px, 2vw, 24px);
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: var(--orange); color: var(--graphite);
}
.choice__last {
  font-size: 12px; color: inherit; opacity: .75; display: inline-flex; align-items: center; gap: 8px;
}
.choice__last[hidden] { display: none; }
.choice__last::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.intro__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 13px; color: var(--steel);
}
.intro__foot kbd {
  font: inherit; font-size: 12px; padding: 2px 7px; border-radius: 4px;
  border: 1px solid rgba(170, 179, 192, .35);
}

/* ---------- Entrée animée ---------- */
.intro__head, .choice, .intro__bar, .intro__foot { opacity: 0; transform: translateY(18px); }
.is-ready .intro__bar { opacity: 1; transform: none; transition: opacity .6s, transform .6s var(--ease); }
.is-ready .intro__head { opacity: 1; transform: none; transition: opacity .8s .1s, transform .8s .1s var(--ease); }
.is-ready .choice { opacity: 1; transform: none; transition: opacity .9s .25s, transform .9s .25s var(--ease), flex-grow .7s var(--ease), border-color .3s, box-shadow .4s; }
.is-ready .choice--new { transition-delay: .38s, .38s, 0s, 0s, 0s; }
.is-ready .intro__foot { opacity: 1; transform: none; transition: opacity .8s .6s, transform .8s .6s var(--ease); }
html:not(.js) .intro__head, html:not(.js) .choice, html:not(.js) .intro__bar, html:not(.js) .intro__foot { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .choices { flex-direction: column-reverse; min-height: 0; }
  .choice { min-height: 330px; flex: none; }
  .choice--new { min-height: 380px; }
  .intro__keys { display: none; }
  .intro__close span { display: none; }
  .intro__close { padding: 10px; }
}

.intro__sign { display: inline-block; margin-top: 6px; color: #8d97a6; }
.intro__sign strong { color: var(--offwhite); font-weight: 600; }
