/* =========================================================
   Landing CUS202611 (ImmoPourExpat)
   Tokens de design : modifier ici pour passer à la charte IPE
   ========================================================= */
:root {
  /* Charte IPE — version claire */
  --navy: #16213A;       /* Bleu nuit : titres, texte principal */
  --navy-deep: #16213A;  /* Bleu nuit : footer */
  --gold: #C9A24D;       /* Or : CTA, étoiles, filets d'accent */
  --gold-hover: #D9B762; /* Or clair (charte) */
  --btn-bg: #D9B762;     /* Fond des boutons : Or clair */
  --btn-hover: #E3C67F;  /* Survol des boutons */
  --accent: #9A7B2F;     /* Bronze : eyebrows, chiffres, mots en relief (lisible sur blanc) */
  --on-gold: #16213A;    /* texte sur fond Or */
  --muted: #6E6A64;      /* Gris chaud : texte secondaire */
  --field: #F6F1E8;      /* Ivoire : champs, cartes, bandeaux */
  --line: #E6DDCB;       /* filet ivoire foncé */
  --error: #C62828;
  --font: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-logo: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--navy); font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }

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

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1; }
.logo-brand { font-weight: 800; font-size: 17.5px; letter-spacing: -0.45px; line-height: 20px; }
.logo-event { display: flex; align-items: center; gap: 7px; font-family: var(--font-logo); font-size: 22px; letter-spacing: -0.6px; line-height: 22px; margin-top: 1px; }
.logo .flag { width: 22px; height: 15px; flex: none; }
.logo--white { color: #fff; }
.logo-brand em { font-style: normal; color: var(--accent); }
.logo--white .logo-brand em { color: var(--gold); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--on-gold); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 0 24px 2px rgba(217, 183, 98, .35);
  font-family: var(--font); font-weight: 600; font-size: 18px; line-height: 1;
  letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.btn-spin { display: none; width: 14px; height: 14px; border: 2px solid rgba(22,33,58,.25); border-top-color: var(--on-gold); border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn-spin { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { padding: 0 0 15px; }
.hero-row { display: flex; align-items: center; max-width: 1170px; margin: 0 auto; padding: 40px 20px 0; }
.hero-col { width: 50%; padding: 0 15px; }
.hero-col--form { padding-top: 0; }
.hero-col--img { display: flex; justify-content: center; align-items: center; }

.hero-date {
  margin-top: 22px; font-weight: 700; font-size: 10px; line-height: 13px;
  letter-spacing: 1.25px; text-transform: uppercase; color: var(--accent);
}
.hero-h1 { font-weight: 700; font-size: 38px; line-height: 120%; letter-spacing: -.5px; color: var(--navy); max-width: 600px; padding: 10px 0 34px; }
.hero-h1 em { font-style: normal; color: var(--accent); }
.hero-h1 { padding-bottom: 16px; }
.hero-sub { max-width: 514px; font-weight: 400; font-size: 17px; line-height: 26px; color: var(--muted); }
.hero-when { display: flex; align-items: flex-start; gap: 10px; max-width: 498px; margin: 22px 0 26px; padding: 12px 16px; border-radius: 12px; background: var(--field); font-size: 13.5px; line-height: 20px; color: var(--navy); }
.hero-when b { font-weight: 700; }
.hero-when i { flex: none; width: 16px; height: 16px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A7B2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain; }

.field { width: 498px; max-width: 100%; margin: 0 0 12px; }
.input {
  display: block; width: 100%; height: 49px; padding: 15px 17px;
  font-family: var(--font); font-size: 14.25px; font-weight: 400; color: var(--navy);
  background: var(--field); border: 1px solid transparent; border-radius: 12px;
  outline: none; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #9C968C; opacity: 1; }
.input:focus { box-shadow: inset 0 0 0 1.5px rgba(201,162,77,.6); }
.field .iti { display: block; width: 100%; }
.field .iti input.input { padding-left: 56px; }
.iti__selected-country { border-radius: 12px 0 0 12px; }
.iti__country-list, .iti__dropdown-content { font-family: var(--font); font-size: 14px; }

.btn--hero { min-width: 332px; max-width: 100%; padding: 18px 32px; margin-top: 12px; }

.legal { padding: 10px 0; }
.legal i { display: block; font-size: 12px; line-height: 142%; color: rgba(110,106,100,.75); opacity: .8; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Erreurs */
.field.has-error .input { box-shadow: inset 0 0 0 1.5px var(--error); }
.field.has-error .input::placeholder { color: var(--error); }
.err-msg { display: block; margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--error); }
.form-error { margin-top: 10px; font-size: 13px; color: var(--error); }

/* Visuel */
.hero-media { position: relative; width: 496px; max-width: 100%; }
.hero-img { width: 100%; border-radius: 24px; }
.hero-badge {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 26px 10px 10px; border-radius: 100px; white-space: nowrap;
  background: rgba(22,33,58,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(217,183,98,.45);
  box-shadow: 0 10px 30px rgba(10,16,32,.35);
}
.hero-badge i {
  display: block; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--btn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316213A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2M12 19v3'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}
.hero-badge span { display: flex; flex-direction: column; gap: 3px; font-weight: 400; font-size: 12px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-hover); }
.hero-badge span b { font-weight: 700; font-size: 18px; line-height: 22px; letter-spacing: -.2px; text-transform: none; color: #fff; }

/* ---------- Chiffres ---------- */
.stats { padding: 49px 40px 0; }
.stats-grid {
  max-width: 1080px; margin: 0 auto; padding: 1px 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 50px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 8px; padding: 26px 21px 26px 20px; text-align: center; }
.stat:last-child { padding-left: 0; padding-right: 0; }
.stat b { font-weight: 600; font-size: 38px; line-height: 38px; color: var(--accent); }
.stat span { font-weight: 600; font-size: 9.5px; line-height: 12.35px; letter-spacing: 1.235px; text-transform: uppercase; color: var(--muted); }

/* ---------- Titres de section ---------- */
.eyebrow { font-weight: 600; font-size: 11px; line-height: 11px; color: var(--accent); letter-spacing: 1.54px; text-transform: uppercase; }
.h2 { font-weight: 300; font-size: 44px; line-height: 47.52px; color: var(--navy); letter-spacing: -1.32px; }

/* ---------- Programme ---------- */
.prog { padding: 68px 40px 64px; }
.prog .eyebrow { margin-bottom: 18px; }
.prog .h2 { margin-bottom: 36px; font-size: 36px; line-height: 42px; letter-spacing: -1px; }
.days { display: flex; flex-direction: column; gap: 12px; }
.day {
  background: var(--field); border: 1px solid var(--line); border-radius: 16px;
  min-height: 107px; padding: 22px 28px;
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center;
}
.day-meta { display: flex; flex-direction: column; gap: 8px; }
.day-meta em { font-style: normal; font-weight: 600; font-size: 10px; line-height: 10px; color: var(--accent); letter-spacing: 1.4px; text-transform: uppercase; }
.day-meta p { margin: 0; }
.day-meta b { display: block; font-weight: 700; font-size: 15px; line-height: 19.5px; color: var(--navy); }
.day-meta span { display: block; font-weight: 400; font-size: 13px; line-height: 18px; color: var(--muted); }
.day-txt strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--navy); }
.day-txt { font-weight: 300; font-size: 19px; line-height: 27px; color: var(--navy); }
.day--bonus { background: transparent; border: 1px dashed var(--gold); }
.day--bonus .day-txt { color: var(--muted); }
.bonus-title {
  display: flex; align-items: center; gap: 7px; padding-bottom: 4px;
  font-weight: 600; font-size: 11px; line-height: 11px; color: var(--accent); letter-spacing: 1.54px; text-transform: uppercase;
}
.bonus-title i {
  display: block; flex: none; width: 11px; height: 12.5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12.6' fill='none'%3E%3Crect x='.5' y='4.1' width='13' height='8' rx='1.5' stroke='%239A7B2F'/%3E%3Cpath d='M4.53 4s-.5-3.5 2.5-3.5 2.5 3.5 2.5 3.5' stroke='%239A7B2F' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cta-wrap { text-align: center; margin-top: 40px; }
.btn--prog { min-width: 332px; max-width: 100%; padding: 18px 36px; font-size: 17.5px; letter-spacing: 1.2px; }


/* ---------- Fondateur ---------- */
.fred { padding: 0 40px 40px; }
.fred-card { display: flex; align-items: center; gap: 56px; padding: 48px 56px; border-radius: 24px; background: var(--field); }
.fred-img { flex: none; width: 300px; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; border-radius: 20px; }
.fred-name { margin-top: 14px; font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: -1.2px; color: var(--navy); }
.fred-bio { margin-top: 18px; font-weight: 300; font-size: 19px; line-height: 29px; color: var(--muted); }
.fred-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fred-stats li { font-size: 17px; line-height: 1.3; color: var(--muted); }
.fred-stats b { margin-right: 6px; font-weight: 700; font-size: 30px; letter-spacing: -.5px; color: var(--accent); }

/* ---------- Avis ---------- */
.avis { padding: 30px 40px 110px; }
.avis .eyebrow { margin-bottom: 18px; }
.avis .h2 { font-size: 36px; line-height: 42px; letter-spacing: -1px; margin-bottom: 44px; }
.avis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.avis-sub { max-width: 640px; margin-top: -26px; margin-bottom: 40px; font-weight: 300; font-size: 18px; line-height: 27px; color: var(--muted); }
.cl-card { display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: 20px; background: var(--field); }
.cl-big { font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -1px; color: var(--accent); white-space: nowrap; }
.cl-l1 { margin-top: 10px; font-weight: 600; font-size: 17px; line-height: 24px; color: var(--navy); }
.cl-l2 { margin-top: 2px; font-weight: 300; font-size: 16px; line-height: 23px; color: var(--muted); flex: 1; }
.cl-card footer { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.cl-card footer b { font-weight: 600; color: var(--navy); }
.cl-photo { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); padding: 32px 40px 36px; }
.footer .wrap { text-align: center; max-width: 900px; }
.footer .logo { margin-bottom: 16px; }
.footer p + p { margin-top: 10px; }
.footer .foot-copy { color: rgba(255,255,255,.85); }
.footer p { font-weight: 400; font-size: 12px; line-height: 18px; color: rgba(255,255,255,.7); }
.footer nav { margin-top: 16px; display: flex; justify-content: center; gap: 24px; }
.footer nav a { font-size: 12px; line-height: 18px; color: rgba(255,255,255,.7); text-decoration: underline; text-underline-position: from-font; }

/* =================== Responsive =================== */
@media (max-width: 900px) {
  .stats { padding: 36px 20px 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .stat, .stat:last-child { padding: 22px 10px; }
  .hero-h1 { font-size: 34px; line-height: 120%; }

  .prog { padding: 48px 20px 44px; }
  .h2 { font-size: 32px; line-height: 35px; letter-spacing: -.9px; }
  .prog .h2 { margin-bottom: 28px; font-size: 26px; line-height: 31px; letter-spacing: -.6px; }
  .day, .day--bonus { height: auto; grid-template-columns: 1fr; gap: 10px; padding: 20px 22px; }
  .day-meta { gap: 6px; }
  .day-meta p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .day-meta b { width: 100%; }
  .day-txt { font-size: 17.5px; line-height: 25px; }

  .fred { padding: 0 20px 24px; }
  .fred-card { flex-direction: column; align-items: flex-start; gap: 28px; padding: 28px 22px; }
  .fred-img { width: 100%; max-width: 220px; }
  .fred-name { font-size: 34px; }
  .fred-bio { font-size: 17px; line-height: 26px; }
  .fred-stats b { font-size: 26px; }
  .avis { padding: 24px 20px 64px; }
  .avis .h2 { font-size: 32px; line-height: 35px; margin-bottom: 28px; }
  .avis-sub { margin-top: -16px; margin-bottom: 28px; font-size: 16px; line-height: 24px; }
  .cl-big { font-size: 30px; }
  .avis-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 770px) {
  .hero-row { flex-direction: column; padding: 0 20px; }
  .hero-col { width: 100%; padding: 0; }
  .hero-col--form { padding-top: 24px; }
  .logo-wrap, .hero-col--form .logo { display: flex; }
  .hero-col--img { margin-top: 32px; }
  .hero { padding-bottom: 8px; }
}

@media (max-width: 700px) {
  .hero-badge { bottom: 18px; gap: 11px; padding: 8px 20px 8px 8px; }
  .hero-badge i { width: 36px; height: 36px; background-size: 17px 17px; }
  .hero-badge span { font-size: 10.5px; line-height: 12px; }
  .hero-badge span b { font-size: 16px; line-height: 19px; }
  .footer { padding: 32px 20px 36px; }
  .footer p { font-size: 12px; line-height: 18px; }
  .footer nav { flex-wrap: wrap; gap: 6px 18px; }
  .footer nav a { font-size: 12px; }
}

@media (max-width: 560px) {
  .hero-h1 { font-size: 31px; line-height: 120%; }
  .hero-sub { font-size: 16px; line-height: 24px; }
  .hero-when { font-size: 13px; }
  .btn--hero { width: 100%; }
  .btn { font-size: 16px; letter-spacing: .6px; padding-left: 16px; padding-right: 16px; }
  .btn--hero, .btn--prog { min-width: 0; }
  .input { font-size: 18px; } /* ≥ 16px : évite le zoom auto iOS */
  .prog { padding-bottom: 32px; }
  .cta-wrap { margin-top: 16px; }
  .btn--prog { width: 100%; font-size: 16px; letter-spacing: .6px; }
}

.nowrap { white-space: nowrap; }
