/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:        #021a0a;
  --dark:         #042d12;
  --dark2:        #063318;
  --dark3:        #0a3d1e;
  --border:       #1a5c30;
  --gray:         #2a7a45;
  --silver:       #4a9e66;
  --light:        #7dc898;
  --off-white:    #c8e8d2;
  --white:        #f0f8f2;
  --gold:         #f0b429;
  --gold-light:   #ffd060;
  --gold-dark:    #c08000;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --radius:       0px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  padding: 64px 24px 60px;
  text-align: center;
  background: var(--black);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-header-content { position: relative; z-index: 1; }

.page-header-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 9vw, 64px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 6px;
}

.page-header-sub {
  font-family: var(--font-serif);
  font-size: clamp(14px, 3.5vw, 18px);
  font-style: italic;
  color: var(--silver);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--gold-dark);
  background: rgba(240,180,41,0.08);
  margin-bottom: 8px;
  transition: background 0.2s, color 0.2s;
}

.back-link:hover, .back-link:active {
  background: rgba(240,180,41,0.18);
  color: var(--gold-light);
}

/* Bouton retour flottant */
.back-floating {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #021a0a;
  background: var(--gold);
  text-decoration: none;
  padding: 12px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.back-floating:active {
  background: var(--gold-light);
  transform: translateX(-50%) scale(0.97);
}

/* ===== RAPPEL PAIEMENT ===== */
.rappel {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.rappel-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 18px 18px;
}

.rappel-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.rappel-text strong {
  display: block;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 5px;
  font-weight: 600;
}

.rappel-text p { font-size: 13px; color: var(--silver); line-height: 1.6; }

.rappel-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gold-dark);
  padding-bottom: 1px;
}

/* ===== LOGO ===== */
.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 24px;
  border-radius: 12px;
}

.footer-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  display: block;
  margin: 0 auto 10px;
  opacity: 0.85;
}

/* ===== ANNOUNCEMENT BAR ===== */
.topbar {
  background: var(--dark3);
  border-bottom: 1px solid var(--border);
  color: var(--light);
  text-align: center;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 60%, rgba(240,180,41,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 20%, rgba(240,180,41,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative lines */
.hero-bg::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(240,180,41,0.4));
}

.hero-bg::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 80px;
  background: linear-gradient(to top, transparent, rgba(240,180,41,0.4));
}

.hero-organizer {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.85;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(18px, 4.5vw, 26px);
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.4;
  max-width: 560px;
  margin: 0 auto 8px;
}

.hero-quote-sub {
  font-size: 14px;
  color: var(--light);
  margin-bottom: 20px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-eyebrow span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--border);
  opacity: 1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 11vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.hero-title-brand {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-title-main {
  display: block;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 22px auto;
  opacity: 1;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 400;
  font-style: italic;
  color: var(--light);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 44px;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--silver);
  letter-spacing: 0.5px;
}

.hero-meta-row strong {
  color: var(--off-white);
  font-weight: 500;
}

.hero-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
}

.hero-places {
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  width: 100%;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-gold {
  background: var(--gold);
  color: #021a0a;
  font-weight: 700;
}

.btn-gold:active { background: var(--gold-light); transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--gold-dark);
}

.btn-outline:active { background: rgba(240,180,41,0.08); }

/* ===== SECTION BASE ===== */
section { padding: 72px 0; }

.section-label {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 600;
  color: var(--white);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.section-sub {
  text-align: center;
  color: var(--silver);
  font-size: 14px;
  margin-bottom: 48px;
  font-weight: 300;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.section-line {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 14px auto 36px;
  opacity: 1;
}

/* ===== PLACES COUNTER ===== */
.places-counter {
  width: 100%;
  max-width: 360px;
  margin-bottom: 36px;
  text-align: center;
}

.places-bar-wrap {
  height: 3px;
  background: var(--dark3);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
}

.places-bar {
  height: 100%;
  background: var(--gold);
  transition: width 0.8s ease;
  width: 0%;
}

.places-text {
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Bannière places sur inscription.html */
.places-banner {
  background: var(--dark3);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.places-banner-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* ===== MODULES MASTERCLASS ===== */
.programme {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.modules-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.module-card {
  padding: 32px 24px;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.module-card:last-child { border-bottom: none; }

.module-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 12px;
}

.module-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.module-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.15;
}

.module-desc {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.7;
  max-width: 480px;
}

/* ===== INCLUDED ===== */
.included { background: var(--black); }

.included-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.included-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--dark);
  transition: background 0.15s;
}

.included-item:last-child { border-bottom: none; }
.included-item:active { background: var(--dark2); }

.included-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(240,180,41,0.08);
  border: 1px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.included-text h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.included-text p {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 48px 28px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.price-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}

.price-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.price-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.price-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.price-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.price-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 18px;
  display: block;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: clamp(36px, 10vw, 58px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.price-currency {
  font-size: 16px;
  font-weight: 400;
  color: var(--silver);
  margin-left: 4px;
  vertical-align: super;
  font-family: var(--font-sans);
}

.price-desc {
  font-size: 12px;
  color: var(--silver);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.price-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.3px;
  line-height: 1.6;
}

/* ===== PAYMENT STEPS ===== */
.payment-info { background: var(--black); }

.steps {
  display: flex;
  flex-direction: column;
  max-width: 580px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--dark3);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-serif);
}

.step-body h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
  line-height: 1.25;
}

.step-body p {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.7;
}

.step-body strong {
  color: var(--white);
  font-weight: 600;
}

/* ===== FORM ===== */
.inscription {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
}

.form-group input,
.form-group select {
  background: var(--dark2);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px; /* 16px prevents zoom on iOS */
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option { background: var(--dark2); }

.form-group input::placeholder { color: var(--gray); }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,180,41,0.12);
}

.form-hint {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 16px;
}

.form-check input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--gold);
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.form-check label {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--silver);
  cursor: pointer;
  line-height: 1.65;
  font-weight: 400;
}

.form-check label strong { color: var(--off-white); font-weight: 600; }

.form-notice {
  font-size: 12px;
  color: var(--silver);
  background: rgba(240,180,41,0.04);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  line-height: 1.6;
}

.form-notice strong { color: var(--off-white); }

.btn-submit {
  width: 100%;
  padding: 19px;
  font-size: 12px;
  margin-top: 6px;
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-message {
  text-align: center;
  font-size: 13px;
  padding: 18px 16px;
  line-height: 1.7;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(10,60,20,0.6);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
}

.form-message.error {
  display: block;
  background: rgba(200,50,50,0.07);
  border: 1px solid rgba(200,50,50,0.4);
  color: #f08080;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--dark);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--light);
  transition: border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.contact-card:active {
  border-color: var(--silver);
  color: var(--white);
}

.contact-emoji { font-size: 22px; flex-shrink: 0; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-type {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 600;
}

.contact-value {
  font-size: 14px;
  color: inherit;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 6px;
  display: block;
}

.footer-tagline {
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-divider {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 16px;
}

.footer-copy {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.3px;
}

/* ===== DESKTOP ===== */
@media (min-width: 640px) {
  section { padding: 96px 0; }

  .hero { padding: 80px 40px 100px; }

  .hero-meta { flex-direction: row; gap: 20px; }

  .hero-cta-group {
    flex-direction: row;
    max-width: 480px;
  }

  .modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
  }

  .module-card {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .module-card:last-child { border-right: none; }

  .included-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
  }

  .included-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .included-item:nth-child(2n) { border-right: none; }
  .included-item:nth-last-child(-n+2) { border-bottom: none; }

  .price-card { padding: 64px 56px; }

  .contact-cards {
    flex-direction: row;
    max-width: 560px;
    justify-content: center;
  }

  .contact-card { flex: 1; }

  .btn { width: auto; }
}
