/* ==========================================================
   pages/contact.html — formulaire multistep en MODAL
   --------------------------------------------------------
   La page contact charge intégralement le HTML+JS Framer
   d'origine (la nav home native fonctionne 100%). Notre
   modal typeform est posé au-dessus en overlay.
     - .gs-modal-backdrop : voile flouté plein écran qui
       masque le contenu Framer (entre nav et footer).
     - .gs-modal-wrap : conteneur centré, scrollable, qui
       porte la card typeform (.gs-tf).
   Le burger Framer continue de fonctionner par-dessus le
   modal grâce au z-index supérieur de la nav.
   ========================================================== */
.gs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);                /* ivoire opaque, pas le contenu Framer derrière */
}
/* Cache précisément les sections principales de page Framer
   (par data-framer-name) — sans toucher à la nav ni à ses
   sous-éléments (Bottom, Desktop, etc. qui contiennent le
   menu déroulant). */
[data-framer-name="Header"],
[data-framer-name="Contact Section"],
[data-framer-name="FAQ Section"],
[data-framer-name="Empowering (1)"],
[data-framer-name="Sponsers"],
[data-framer-name="Sponsors"],
figure[data-framer-name="Pattern"],
[data-framer-generated-page] footer {
  display: none !important;
}
/* Fond ivoire pour la zone de la page (au cas où) */
[data-framer-generated-page] > div { background: var(--bg) !important; }
.gs-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 32px;          /* réserve l'espace nav fixed en haut */
  overflow-y: auto;
}
@media (min-width: 900px) {
  .gs-modal-wrap { padding: 140px 40px 56px; }
}
/* La nav Framer reste cliquable au-dessus du modal */
.framer-cC2fU,
.framer-cC2fU * { pointer-events: auto; }
nav.framer-4eRKW,
.framer-1b6avro-container { z-index: 50 !important; }
/* Empêche le scroll du body quand modal ouvert */
body { overflow: hidden; }

/* ==========================================================
   DESIGN SYSTEM — aligné sur les tokens Framer du site
   --------------------------------------------------------------
   Couleurs, polices et ombres reprises 1:1 du HTML Framer
   pour que la modale paraisse "native" au site.
   ========================================================== */

/* ---------- Tokens (synchronisés avec --token-* Framer) ---------- */
:root {
  /* Fonds */
  --bg:            #eeeeee;         /* token-f32721c1 — ivoire de page */
  --bg-card:       #ffffff;         /* card / surfaces */
  --bg-dark:       #121212;         /* token-8bd81ae1 — surfaces sombres */
  --bg-soft:       #f3f3f3;         /* token-903b0944 — alt cards */

  /* Encre / texte */
  --ink:           #000000;         /* token-f08c50a5 — texte principal */
  --ink-soft:      #525252;         /* token-4bf80fd1 — texte secondaire */
  --ink-muted:     #969696;         /* token-0dcbc1b5 — placeholders */
  --ink-light:     #d2d2d2;         /* token-3b8e63d0 — disable / dividers visuels */

  /* Bordures */
  --line:          #000000;         /* bordure brutaliste 1px noir */
  --line-soft:     #303030;         /* token-8a726fd3 — bordure secondaire */
  --line-faint:    rgba(0, 0, 0, 0.10);

  /* Accent signature */
  --accent:        #00D4FF;         /* token-276bd830 — cyan principal */
  --accent-deep:   #00B4D8;         /* token-09172895 — cyan profond */
  --accent-soft:   rgba(0, 212, 255, 0.10);
  --accent-glow:   rgba(0, 212, 255, 0.25);

  /* Champs */
  --field-bg:      #ffffff;
  --field-focus:   rgba(0, 212, 255, 0.06);

  /* Rayons brutalistes (sharp = 0 partout, pas de round-corner) */
  --radius-card:   0;
  --radius:        0;
  --radius-sm:     0;
  --radius-pill:   0;

  /* Ombre signature brutaliste flat */
  --shadow-flat:   4px 4px 0 0 #d2d2d2;
  --shadow-flat-hover: 6px 6px 0 0 #000000;
  --shadow-card:   8px 8px 0 0 rgba(0, 0, 0, 0.12);

  /* Mesures */
  --maxw-card:    560px;        /* single column → card plus étroite */
  --maxw-form:    560px;
  --nav-h:        80px;
}

/* ---------- Fonts (alias des Framer @font-face déjà chargés en head) ---------- */
/* Pas besoin de re-déclarer @font-face : le head Framer charge déjà
   "Chakra Petch" et "Inter" pour le rendu de la nav et des sections.
   On les référence directement. */

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
/* Resets ciblés sur NOTRE modale uniquement (pas sur le DOM Framer).
   Le logo Framer .framer-r2zbev > img a un viewBox 8070×3325 affiché
   à height:24px ; un reset global `img { max-width: 100% }` collapse
   l'image dans la chaîne flex `width:min-content` du wrapper Framer
   et tronque le SVG. On scope donc le reset à `.gs-tf` / `.gs-modal-wrap`. */
.gs-tf button,
.gs-modal-wrap button { font: inherit; cursor: pointer; }
.gs-tf img,
.gs-modal-wrap img { display: block; max-width: 100%; }
.gs-tf a,
.gs-modal-wrap a { color: inherit; text-decoration: none; }

/* Safety net : si jamais un autre reset CSS impose max-width sur l'img
   du logo Framer, on ré-ouvre explicitement. */
nav.framer-4eRKW img {
  max-width: none !important;
}

/* ==========================================================
   NAV FRAMER — Overrides minimaux
   --------------------------------------------------------------
   La nav `nav.framer-4eRKW` est rendue en SSR par Framer et
   hydratée nativement (burger / menu déroulant / responsive).
   On override uniquement :
     - Cache le bloc Socials (Instagram / X / Facebook) du menu
       (Inscription + Mentions légales suffisent ici)
   Le countdown qui remplace le clock NY est géré par
   js/custom-16-countdown-nav.js (chargé en bas du body).
   ========================================================== */
nav.framer-4eRKW [data-framer-name="Socials"] {
  display: none !important;
}

/* ==========================================================
   PAGE WRAPPER (centrage de la modale)
   ========================================================== */
.gs-page {
  /* La nav Framer copiée est en position fixed (h≈80, top≈24) → on réserve
     l'espace en haut du wrapper de la modale pour qu'elle ne soit pas
     recouverte par la nav. */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 32px;
}
@media (min-width: 900px) {
  .gs-page { padding: 140px 40px 56px; }
}

/* ==========================================================
   MODAL CARD — single column (visual désactivé)
   ========================================================== */
.gs-tf {
  width: 100%;
  max-width: var(--maxw-card);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-flat);
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease;
}

/* ---------- Visual side : DÉSACTIVÉ ---------- */
.gs-tf__visual { display: none; }

/* ---------- Step tag remonté en haut du form ---------- */
.gs-tf__step-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  font-family: "Chakra Petch", "Chakra Petch Placeholder", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 0 var(--ink);
  align-self: flex-start;
}

/* ---------- Form side (droite) ---------- */
.gs-tf__form {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--bg-card);
}
@media (min-width: 900px) {
  .gs-tf__form { padding: 36px 40px; }
}
@media (min-width: 1200px) {
  .gs-tf__form { padding: 44px 48px; }
}

/* ---------- Progress bar (cyan fill) ---------- */
.gs-tf__progress {
  position: relative;
  width: 100%;
  max-width: var(--maxw-form);
  height: 4px;
  background: var(--ink-light);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 36px;
}
.gs-tf__progress-fill {
  display: block;
  height: 100%;
  width: 17%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Steps ---------- */
.gs-tf__steps {
  position: relative;
  flex: 1 1 auto;
  max-width: var(--maxw-form);
  width: 100%;
}
.gs-tf__step {
  display: none;
  animation: gs-tf-in .35s cubic-bezier(.2, .7, .2, 1);
}
.gs-tf__step.is-active { display: block; }
@keyframes gs-tf-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Step header (Chakra Petch UPPERCASE) ---------- */
.gs-tf__title {
  font-family: "Chakra Petch", "Chakra Petch Placeholder", sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ink);
}
.gs-tf__subtitle {
  font-family: "Inter", "Inter Placeholder", sans-serif;
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 420px;
}

/* ---------- Field (bordures brutalistes noires) ---------- */
.gs-tf__field { display: grid; gap: 8px; margin-bottom: 18px; }
.gs-tf__field label {
  font-family: "Chakra Petch", "Chakra Petch Placeholder", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gs-tf__field label .req { color: var(--accent-deep); margin-left: 4px; font-weight: 700; }
.gs-tf__field input,
.gs-tf__field textarea,
.gs-tf__field select {
  width: 100%;
  padding: 12px 14px;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  resize: vertical;
}
.gs-tf__field textarea { min-height: 120px; }
.gs-tf__field input::placeholder,
.gs-tf__field textarea::placeholder { color: var(--ink-muted); }
.gs-tf__field input:hover,
.gs-tf__field textarea:hover,
.gs-tf__field select:hover {
  border-color: var(--accent-deep);
}
.gs-tf__field input:focus,
.gs-tf__field textarea:focus,
.gs-tf__field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--field-focus);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gs-tf__field.has-error input,
.gs-tf__field.has-error textarea,
.gs-tf__field.has-error select {
  border-color: #c81e1e;
  box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.10);
}
.gs-tf__field-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* ---------- Options radio (style brutaliste cards) ---------- */
.gs-tf__options { display: grid; gap: 8px; margin-bottom: 20px; }
.gs-tf__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.gs-tf__option:hover {
  border-color: var(--accent-deep);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.gs-tf__option input { position: absolute; opacity: 0; pointer-events: none; }
.gs-tf__option-mark {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--bg-card);
  position: relative;
  transition: background .15s, border-color .15s;
}
.gs-tf__option input:checked ~ .gs-tf__option-mark {
  border-color: var(--ink);
  background: var(--accent);
}
.gs-tf__option input:checked ~ .gs-tf__option-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--ink);
  border-radius: 50%;
}
.gs-tf__option-text {
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 14px;
  color: var(--ink);
}
.gs-tf__option:has(input:checked) {
  border-color: var(--ink);
  background: var(--accent-soft);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.gs-tf__options.has-error .gs-tf__option {
  border-color: #c81e1e;
}

/* ---------- Phone group ---------- */
.gs-tf__phone {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px;
}
.gs-tf__phone select {
  -webkit-appearance: none;
  appearance: none;
  background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding-right: 32px;
}

/* ---------- Navigation footer (boutons brutalistes, en flow flex) ---------- */
.gs-tf__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;          /* pousse en bas du form en flex */
  padding-top: 28px;          /* respiration au-dessus */
  background: var(--bg-card);
}
.gs-tf__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: "Chakra Petch", "Chakra Petch Placeholder", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s, color .15s, border-color .15s;
}
.gs-tf__btn--ghost {
  color: var(--ink-soft);
  border-color: transparent;
}
.gs-tf__btn--ghost:hover {
  color: var(--ink);
  background: var(--bg-soft);
}
.gs-tf__btn--ghost[disabled] {
  opacity: 0;
  pointer-events: none;
}
.gs-tf__btn--primary {
  padding: 14px 26px;
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.gs-tf__btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--ink);
}
.gs-tf__btn--primary:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 0 var(--ink);
}
.gs-tf__btn--primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.gs-tf__btn svg { width: 16px; height: 16px; }

/* ---------- Final / merci ---------- */
/* Quand la nav est cachée (dernier step), on centre le contenu
   verticalement dans la colonne form pour un rendu équilibré. */
.gs-tf__steps:has(.gs-tf__step--done.is-active) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}
.gs-tf__step--done {
  text-align: center;
  padding: 16px 0;
}
.gs-tf__step--done .gs-tf__title { font-size: clamp(28px, 3vw, 36px); }
.gs-tf__check {
  width: 64px; height: 64px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  display: grid;
  place-items: center;
}
.gs-tf__check svg { width: 28px; height: 28px; stroke-width: 3; }

/* ---------- Erreur de soumission Supabase ---------- */
.gs-tf__submit-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #7a1313;
  background: #fde8e8;
  border: 1px solid #c81e1e;
  box-shadow: 3px 3px 0 0 #c81e1e;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gs-tf__step { animation: none; }
  .gs-tf__progress-fill { transition: none; }
  .gs-tf,
  .gs-tf__option,
  .gs-tf__btn { transition: none; }
}
