/* ===== Fonts ===== */
@font-face {
  font-family: 'Geomanist';
  src: url(assets/fonts/geomanist-regular.woff) format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geomanist';
  src: url(assets/fonts/geomanist-medium.woff2) format('woff2'),
       url(assets/fonts/geomanist-medium.woff) format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Saya SemiSans FY';
  src: url(assets/fonts/saya-semisans-medium.woff2) format('woff2'),
       url(assets/fonts/saya-semisans-medium.woff) format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --color-black: #1d1d1b;
  --color-night: #4a5156;
  --color-gold: #947046;
  --color-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Geomanist', 'Inter', sans-serif;
  color: var(--color-night);
  background: var(--color-white);
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* ===== Language Button ===== */
.lang-dropdown {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 10;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(74, 81, 86, 0.64);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.lang-text {
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.32px;
  color: var(--color-white);
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  width: 100%;
  height: 880px;
  background: var(--color-gold);
  overflow: hidden;
  position: relative;
}

.hero-content {
  width: 55%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 0 80px;
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 45%;
  flex-shrink: 0;
  height: 100%;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Logo ===== */
.logo-hero,
.logo-newsletter {
  height: 160px;
  width: auto;
}

/* ===== Hero Text ===== */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.hero-title {
  font-family: 'Saya SemiSans FY', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-white);
}

.hero-subtitle {
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-white);
}

/* ===== Primary Button ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(74, 81, 86, 0.64);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.32px;
  color: var(--color-white);
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: rgba(74, 81, 86, 0.8);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.lang-icon {
  width: 14px;
  height: 14px;
}

/* ===== Newsletter Section ===== */
.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1056px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px;
}

.newsletter-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.newsletter-title {
  font-family: 'Saya SemiSans FY', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  color: var(--color-night);
}

.newsletter-subtitle {
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
}

/* ===== Form ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
}

.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

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

.form-label {
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
}

.form-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-night);
  border-radius: 8px;
  background: var(--color-white);
  overflow: hidden;
}

.form-input input {
  flex: 1;
  padding: 16px;
  border: none;
  outline: none;
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
  background: transparent;
}

/* Phone Input */
.phone-input {
  padding: 0;
  overflow: visible;
}

.phone-prefix-wrapper {
  position: relative;
  flex-shrink: 0;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: none;
  border-right: 1px solid var(--color-night);
  background: transparent;
  cursor: pointer;
  height: 100%;
}

.prefix-code {
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: var(--color-night);
}

.prefix-icon {
  width: 16px;
  height: 16px;
}

/* Dropdown pays */
.phone-prefix-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 200px;
  overflow-y: auto;
  background: var(--color-white);
  border: 1px solid var(--color-night);
  border-radius: 8px;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.phone-prefix-dropdown.open {
  display: block;
}

.prefix-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-night);
  text-align: left;
  transition: background 0.1s ease;
}

.prefix-option:hover {
  background: rgba(148, 112, 70, 0.08);
}

.prefix-option-code {
  font-weight: 500;
  min-width: 28px;
}

.prefix-option-label {
  flex: 1;
}

.prefix-option-dial {
  opacity: 0.45;
  font-size: 13px;
}

/* ===== Checkbox / Choices ===== */
.form-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.choices-label {
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  width: 100%;
}

.checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-night);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.checkbox input[type="checkbox"]:checked + .checkbox-box {
  background: var(--color-night);
  border-color: var(--color-night);
}

.checkbox input[type="checkbox"]:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  flex: 1;
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
}

.checkbox-text a {
  text-decoration: underline;
  color: var(--color-night);
}

.checkbox-text a:hover {
  color: var(--color-gold);
}

.privacy-checkbox {
  padding-top: 8px;
  width: 100%;
}

[data-step="consent"] {
  align-items: center;
}

[data-step="consent"] .privacy-checkbox {
  justify-content: flex-start;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

[data-step="consent"] .checkbox-text {
  text-align: left;
}

[data-step="consent"] .form-nav {
  width: 100%;
  justify-content: center;
}

[data-step="consent"] .btn-submit {
  margin: 0 auto;
}

.btn-submit {
  margin-top: 16px;
  justify-content: center;
  font-weight: 700;
}

/* ===== Form Submit States ===== */
.btn-submit .btn-loading {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}

.form-success.visible {
  display: flex;
}

.form-success-title {
  font-family: 'Saya SemiSans FY', 'Inter', serif;
  font-size: 24px;
  line-height: 30px;
  color: var(--color-night);
}

.form-success-text {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
  opacity: 0.75;
}

/* ===== Barre de progression ===== */
.form-progress {
  display: none;
  width: 100%;
  height: 2px;
  background: #e8ddd0;
  margin-top: 16px;
  margin-bottom: 20px;
}

.form-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  transition: width 0.6s ease;
}

/* ===== Multi-step Form ===== */
.form-step {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 24px;
}

.form-step.active {
  display: flex;
}

.form-row--half {
  max-width: calc(50% - 8px);
}

@media (max-width: 1024px) {
  .form-row--half {
    max-width: 100%;
  }
}

.step-question {
  font-family: 'Saya SemiSans FY', 'Inter', serif;
  font-size: 22px;
  line-height: 28px;
  color: var(--color-night);
  text-align: center;
}

/* Choice buttons */
.choice-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-btn {
  width: 100%;
  padding: 16px 24px;
  border: 1px solid var(--color-night);
  border-radius: 8px;
  background: var(--color-white);
  font-family: 'Geomanist', sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.choice-btn:hover {
  background: rgba(148, 112, 70, 0.08);
  border-color: var(--color-gold);
}

.choice-btn.selected {
  border-color: var(--color-gold);
}


/* Form navigation */
.form-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-nav--center  { justify-content: center;      }
.form-nav--start   { justify-content: flex-start;  }
.form-nav--between { justify-content: space-between; }

/* FlÃ¨che rotÃ©e pour bouton Suivant */
.btn-icon--right {
  transform: rotate(-90deg);
}

/* Back button */
.btn-back {
  background: none;
  border: none;
  font-family: 'Geomanist', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-night);
  opacity: 0.5;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.btn-back:hover {
  opacity: 1;
}

/* Renter message */
.form-renter {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 24px;
  text-align: center;
}

.form-renter.visible {
  display: flex;
}

.form-renter-text {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
}

/* Submit states */
.btn-submit .btn-loading {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* Success message */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}

.form-success.visible {
  display: flex;
}

.form-success-title {
  font-family: 'Saya SemiSans FY', 'Inter', serif;
  font-size: 24px;
  line-height: 30px;
  color: var(--color-night);
}

.form-success-text {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-night);
  opacity: 0.75;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
  width: 100%;
  background: var(--color-white);
}

.footer-logo {
  width: 123px;
  height: 80px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-border {
  width: 100%;
  height: 1px;
  background: var(--color-night);
  opacity: 0.3;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-gold);
}

.footer-dot {
  width: 2px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-night);
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-gold);
  text-decoration: underline;
}

.footer-link:hover {
  color: var(--color-night);
}

.footer-credits {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-gold);
}

/* ===== Language Dropdown ===== */
.lang-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: rgba(74, 81, 86, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  overflow: hidden;
  min-width: 100%;
}

.lang-dropdown.open .lang-options {
  display: flex;
  flex-direction: column;
}

.lang-option {
  display: block;
  padding: 10px 16px;
  font-family: 'Geomanist', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.32px;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Responsive - Hero vertical (â¤ 1500px) ===== */
@media (max-width: 1500px) {
  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero-content {
    width: 100%;
    gap: 40px;
    padding: 108px 48px 40px;
  }

  .hero-image {
    width: 100%;
    height: auto;
    padding: 0 16px 16px;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .logo-hero,
  .logo-newsletter {
    height: 120px;
  }

  .lang-dropdown {
    top: 16px;
    right: 16px;
  }
}

/* ===== Responsive - Tablet ===== */
@media (max-width: 1024px) {
  /* Newsletter */
  .newsletter {
    max-width: 100%;
    padding: 48px 32px;
  }
}

/* ===== Responsive - Footer ===== */
@media (max-width: 1145px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .footer-dot {
    display: none;
  }

  .footer-copyright,
  .footer-link,
  .footer-credits {
    text-align: center;
  }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
  .hero-content {
    gap: 32px;
    padding: 108px 16px 32px;
  }

  .hero-image {
    padding: 0 16px;
  }

  .hero-image img {
    aspect-ratio: 1 / 1;
  }

  .logo-hero,
  .logo-newsletter {
    height: 100px;
  }

  /* Hero text */
  .hero-title {
    font-size: 18px;
    line-height: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 22px;
  }

  .hero-text {
    gap: 8px;
  }

  /* Newsletter */
  .newsletter {
    padding: 48px 24px;
    gap: 24px;
  }

  .newsletter-title {
    font-size: 20px;
    line-height: 26px;
  }

  /* Form */
  .form-row {
    flex-direction: column;
  }

  /* Consentement mobile */
  [data-step="consent"] .checkbox-text {
    text-align: left;
  }

  [data-step="consent"] .privacy-checkbox {
    justify-content: flex-start;
    max-width: 100%;
    margin: 0;
  }

  [data-step="consent"] .btn-submit {
    display: block;
    width: fit-content;
    margin: 0 auto;
  }

  /* Footer */
  .footer {
    padding: 24px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-dot {
    display: none;
  }

  .footer-copyright,
  .footer-link,
  .footer-credits {
    text-align: center;
  }
}
