/* =========================================================
   Sortir du vide — feuille de style
   Reproduction fidèle de la landing page d'origine.
   Pas de framework, pas de build : CSS pur servi par nginx.
   ========================================================= */

/* ---------- Jetons ---------- */
:root {
  --vert:          #3E5959;  /* vert-gris principal (hero, candidature) */
  --vert-fonce:    #34494A;  /* pied de page sur fond sombre */
  --turquoise:     #3FC7C7;  /* sur-titres sur fond sombre */
  --bleu-vif:      #1A8CFF;  /* section bénéfices */
  --bleu-clair:    #9FE0FF;  /* titres des bénéfices */
  --bleu-acier:    #3D7EA6;  /* bande compte à rebours */
  --bleu-btn:      #1E88E5;  /* bouton « regarder la masterclass » */
  --orange:        #FF7043;  /* bouton « s'inscrire » */
  --vert-progress: #22C55E;  /* barre de progression candidature */
  --gris-bloc:     #EEEEEE;  /* bloc opt-in bas de page / bouton désactivé */
  --gris-desactive:#CCCCCC;
  --gris-icone:    #9AA0A6;
  --noir:          #1A1A1A;
  --gris-texte:    #4A4A4A;
  --rouge:         #E23B3B;

  --col-etroite:  620px;  /* colonne centrée (hero, candidature) */
  --col-large:   1100px;  /* sections deux colonnes */
}

/* ---------- Réinitialisation ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gris-texte);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

p { margin: 0 0 16px; }

/* ---------- Conteneurs ---------- */
.container {
  width: 100%;
  max-width: var(--col-large);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: var(--col-etroite); }

.center { text-align: center; }

.mt-large { margin-top: 36px; }

/* =========================================================
   1. Sur-titres (« kickers »)
   ========================================================= */
.kicker {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.kicker-turquoise { color: var(--turquoise); }
.kicker-bleu      { color: var(--bleu-btn); }
.kicker-bleuclair { color: #BFE3FF; }

/* petit trait sous le sur-titre (section opt-in bas de page) */
.kicker-rule::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--bleu-btn);
  margin-top: 14px;
  border-radius: 2px;
}

/* =========================================================
   2. Hero
   ========================================================= */
.hero {
  position: relative;
  background-color: var(--vert);
  padding: 100px 0;
  overflow: hidden;
}

/* Les dunes sont posées à 50 % d'opacité PAR-DESSUS le vert-gris. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: var(--col-etroite);
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  color: #fff;
  font-size: 47px;
  line-height: 1.2;
  margin: 0 0 22px;
}

.hero-content .subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 auto 34px;
  max-width: 560px;
}

/* =========================================================
   3. Formulaires
   ========================================================= */
.optin-form { text-align: left; }

.field {
  position: relative;
  margin: 0 0 14px;
  padding-top: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  display: block;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  color: #3A3A3A;
  background: #fff;
  border: 1px solid transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input[type="text"],
.field input[type="email"] {
  height: 52px;
  padding: 0 52px 0 24px;
  border-radius: 100px;
}

.field textarea {
  min-height: 90px;
  padding: 15px 52px 15px 18px;
  border-radius: 6px;
  line-height: 1.5;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: #8D8D8D; opacity: 1; }

.field input:focus,
.field textarea:focus { border-color: var(--bleu-btn); }

.field .is-invalid,
.field-check.is-invalid label { color: var(--rouge); }

.field input.is-invalid,
.field textarea.is-invalid { border-color: var(--rouge); }

/* Icône à droite du champ */
.field-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 3px; /* compense le padding-top du .field */
  width: 20px;
  height: 20px;
  color: var(--gris-icone);
  pointer-events: none;
}

.field-textarea .field-icon {
  top: 22px;
  transform: none;
  margin-top: 0;
}

/* Astérisque rouge en exposant, coin haut-droit du champ */
.field .req {
  position: absolute;
  top: -3px;
  right: 14px;
  z-index: 2;
  color: var(--rouge);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.req { color: var(--rouge); }

/* Cases à cocher */
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}

.field-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  border: 1px solid #fff;
  border-radius: 2px;
  background: #fff;
  accent-color: var(--bleu-btn);
  cursor: pointer;
}

.field-check label { cursor: pointer; }
.field-check a { text-decoration: underline; }
.field-check.is-invalid { color: #FFD2D2; }

/* Variante sur fond clair */
.optin-form-light .field-check { color: #555; }
.optin-form-light .field-check.is-invalid { color: var(--rouge); }
.optin-form-light .field input[type="text"],
.optin-form-light .field input[type="email"],
.optin-form-light .field textarea { border-color: #DDD; }

/* Groupe de boutons radio (candidature) */
.field-group {
  margin: 4px 0 18px;
  border: none;
  padding: 0;
  min-width: 0;
}

/* L'original met ce libelle en noir sur le fond vert-gris : illisible.
   Ecart assume, on le passe en blanc comme les autres libelles de la page. */
.field-group > .group-label {
  display: block;
  font-weight: 700;
  color: #FFF;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.field-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

.field-radio input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--bleu-btn);
  cursor: pointer;
}

.field-radio label { cursor: pointer; }

/* Messages */
.form-message {
  margin: 14px 0 0;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 6px;
}

.form-error   { background: #FDE2E2; color: #A32020; }
.form-success { background: #DFF5E3; color: #1E6B2E; }

/* =========================================================
   4. Boutons
   ========================================================= */
.btn {
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.btn-blue   { background: var(--bleu-btn); color: #fff; }
.btn-orange { background: var(--orange);   color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 18px 38px;
  font-size: 16px;
  letter-spacing: .5px;
}

.btn-outline:hover { background: #fff; color: var(--noir); }

/* Bouton de soumission : pleine largeur, pilule, 63 px */
.optin-submit {
  display: block;
  width: 100%;
  min-height: 63px;
  padding: 16px 22px;
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: .3px;
}

/* État désactivé : gris clair, texte gris — tant que le formulaire
   n'est pas valide. Plus spécifique que .btn-blue / .btn-orange. */
form:has(:invalid) .optin-submit,
form .optin-submit:disabled {
  background: var(--gris-bloc);
  color: var(--gris-desactive);
  cursor: not-allowed;
}

.cta-row { text-align: center; }
.cta-row .btn + .btn { margin-left: 14px; }

/* =========================================================
   5. Bande compte à rebours
   ========================================================= */
.countdown-band {
  background: var(--bleu-acier);
  padding: 50px 0;
}

.countdown-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.countdown-label {
  flex: 1 1 300px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
}

.countdown {
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
}

.countdown .unit { text-align: center; }

.countdown .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #fff;
}

.countdown .unit-label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* =========================================================
   6. Section bénéfices
   ========================================================= */
.benefits {
  background: var(--bleu-vif);
  padding: 80px 0;
}

.benefits .container {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.benefits-intro { flex: 0 0 35%; }

.benefits-intro h2 {
  color: #fff;
  font-size: 30px;
  line-height: 1.3;
  margin: 0;
}

.benefits-grid {
  flex: 1 1 65%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 30px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.benefit-icon svg { width: 20px; height: 20px; }

.benefit h3 {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--bleu-clair);
  margin: 0 0 8px;
}

.benefit p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(235, 246, 255, 0.88);
  margin: 0;
}

/* =========================================================
   7. Section opt-in basse
   ========================================================= */
.optin-section {
  background: #fff;
  padding: 70px 0;
}

.optin-box {
  background: var(--gris-bloc);
  border-radius: 8px;
  padding: 50px;
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.optin-box-intro { flex: 1 1 50%; }

.optin-box-intro h2 {
  color: #000;
  font-size: 28px;
  line-height: 1.3;
  margin: 0;
}

.optin-box-form { flex: 1 1 50%; }

/* =========================================================
   8. Section formateur
   ========================================================= */
.trainer-section {
  background: #fff;
  padding: 70px 0;
}

.trainer {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.trainer-photo {
  flex: 0 0 210px;
  width: 210px;
  height: auto;
  border-radius: 4px;
}

.trainer-text { flex: 1 1 auto; }

.trainer-text h2 {
  color: #000;
  font-size: 26px;
  margin: 0 0 18px;
}

.trainer-text p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gris-texte);
}

/* Liste à puces rendue avec des tirets */
.trainer-text ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.trainer-text li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.85;
}

.trainer-text li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gris-texte);
}

/* =========================================================
   9. Page masterclass (vidéo)
   ========================================================= */
body.page-video { background: #0F1414; }

.video-section {
  background: #0F1414;
  padding: 60px 0 80px;
}

.video-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.video-wrap video {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.urgency-note {
  margin: 34px auto 0;
  max-width: 760px;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #FF4D3D;
}

/* =========================================================
   10. Page candidature
   ========================================================= */
body.page-candidature { background: var(--vert); }

.candidature-hero {
  background: var(--vert);
  padding: 40px 0 60px;
}

.candidature-form-section {
  background: var(--vert);
  padding: 0 0 70px;
}

/* Barre de progression */
.progress {
  max-width: var(--col-etroite);
  margin: 0 auto 44px;
}

.progress-rail {
  position: relative;
  height: 34px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 95%;
  height: 100%;
  border-radius: 100px;
  background: var(--vert-progress);
}

.progress-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--vert-progress);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Sur cette page, tous les champs ont des coins modérés. */
.form-candidature .field input[type="text"],
.form-candidature .field input[type="email"] {
  border-radius: 6px;
  padding-left: 18px;
}

.small-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* =========================================================
   11. Pages claires (CGV, RGPD, réservation)
   ========================================================= */
body.page-light { background: #fff; }

.page-hero-light {
  background: var(--vert);
  padding: 60px 0;
}

.page-hero-light .hero-content {
  max-width: var(--col-etroite);
  margin: 0 auto;
  text-align: center;
}

.page-hero-light h1 {
  color: #fff;
  font-size: 36px;
  text-align: center;
  margin: 0;
}

.page-hero-light .subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.8;
  margin: 18px 0 0;
}

.legal-section { padding: 50px 0 70px; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  color: #3A3A3A;
  font-size: 15px;
}

.legal h2 {
  font-size: 19px;
  color: #000;
  margin: 34px 0 12px;
}

.legal a { color: var(--bleu-btn); }

.embed-section { padding: 40px 0 70px; }

#calcom-embed {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

/* =========================================================
   12. Page confirmation
   ========================================================= */
body.page-confirm { background: var(--vert); }

.confirm-section {
  background: var(--vert);
  padding: 80px 0;
}

.confirm-title {
  color: var(--turquoise);
  font-size: 38px;
  text-align: center;
  margin: 0 0 18px;
}

.confirm-section > .container > .center {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.confirm-block {
  max-width: var(--col-etroite);
  margin: 0 auto 22px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 26px 28px;
}

.confirm-block h3 {
  color: #fff;
  font-size: 15px;
  letter-spacing: .6px;
  margin: 0 0 10px;
}

.confirm-block p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  margin: 0;
}

/* =========================================================
   13. Pied de page
   ========================================================= */
footer {
  background: var(--vert-fonce);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 34px 0 40px;
  text-align: center;
}

.footer-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 13px;
}

.footer-links li { display: inline; }

.footer-links li + li::before {
  content: "|";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.legal-notice,
.copyright {
  max-width: 760px;
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
}

.copyright { margin-top: 8px; }

/* Pied de page sur fond clair */
body.page-light footer {
  background: #fff;
  border-top: 1px solid #E4E4E4;
}

body.page-light .footer-links a { color: #777; }
body.page-light .footer-links li + li::before { color: #BBB; }
body.page-light .legal-notice,
body.page-light .copyright { color: #999; }

/* =========================================================
   14. Popup exit-intent
   ========================================================= */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.exit-popup-overlay[hidden] { display: none; }

.exit-popup {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--vert);
  border-radius: 10px;
  padding: 40px 34px 34px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.exit-popup h3 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 12px;
}

.exit-popup > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  margin: 0 0 24px;
}

.exit-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.exit-popup-close:hover { color: #fff; }

/* =========================================================
   15. Bandeau cookies
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(26, 32, 32, 0.97);
  color: rgba(255, 255, 255, 0.85);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p { margin: 0; max-width: 640px; }

.cookie-actions { display: flex; gap: 10px; }

.cookie-banner button {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  border: none;
  border-radius: 100px;
  padding: 9px 20px;
  cursor: pointer;
}

.cookie-decline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.cookie-accept  { background: var(--bleu-btn); color: #fff; }

/* =========================================================
   16. Responsive
   ========================================================= */
@media (max-width: 900px) {
  .benefits .container,
  .optin-box,
  .trainer { flex-direction: column; gap: 34px; }

  .benefits-grid { grid-template-columns: 1fr; gap: 26px; }

  .optin-box { padding: 34px 24px; }

  .trainer-photo { width: 170px; flex-basis: auto; }

  .countdown-band .container { flex-direction: column; }
  .countdown-label { text-align: center; flex-basis: auto; }
}

@media (max-width: 700px) {
  .hero { padding: 64px 0; }
  .hero-content h1 { font-size: 30px; }
  .hero-content .subtitle { font-size: 15px; }

  .benefits { padding: 56px 0; }
  .benefits-intro h2 { font-size: 24px; }

  .optin-section,
  .trainer-section { padding: 48px 0; }

  .optin-box-intro h2 { font-size: 22px; }
  .trainer-text h2 { font-size: 22px; }

  .countdown-band { padding: 36px 0; }
  .countdown-label { font-size: 13px; }
  .countdown { gap: 10px; }
  .countdown .num { width: 62px; height: 62px; font-size: 22px; }
  .countdown .unit-label { font-size: 10px; letter-spacing: .5px; }

  .confirm-title { font-size: 28px; }
  .page-hero-light h1 { font-size: 27px; }
  .urgency-note { font-size: 14px; }

  .optin-submit { font-size: 16px; min-height: 58px; }
  .btn-outline { padding: 16px 24px; font-size: 14px; width: 100%; }

  .cta-row .btn + .btn { margin-left: 0; margin-top: 12px; }

  .exit-popup { padding: 34px 20px 26px; }
  .exit-popup h3 { font-size: 20px; }

  .cookie-banner { flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 380px) {
  .countdown { gap: 6px; }
  .countdown .num { width: 56px; height: 56px; font-size: 19px; }
  .hero-content h1 { font-size: 27px; }
}
