:root{
  --bg:#0b2942;           /* bleu foncé (barre & steps) */
  --bg-hero:#0a2340;      /* overlay hero */
  --text:#f8fafc;         /* presque blanc */
  --muted:#cbd5e1;        /* gris bleuté */
  --accent:#ffd166;       /* bouton jaune */
  --accent-hover:#f3c651;
  --container:1150px;
  --hero-image:url('sunset-2823779_1920.jpg'); /* placez votre image ici, sinon dégradé uniquement */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#0f172a;background:#f6f7f9}

.container{max-width:var(--container);margin:0 auto;padding:0 20px}



.backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:50}
.hidden{display:none}
.modal{background:#fff;max-width:760px;width:92vw;border-radius:16px;border:1px solid #e2e8f0;box-shadow:0 10px 30px rgba(0,0,0,.15);overflow:hidden}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb}
.modal-header h2{margin:0}
.modal-close{background:transparent;border:0;font-size:22px;line-height:1;cursor:pointer}
.modal-body{padding:16px 20px;color:#334155}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #e5e7eb}
.checklist{margin:8px 0 12px 20px}
.checklist li{margin:4px 0}
.sep{border:0;border-top:1px solid #e5e7eb;margin:14px 0}
.consent{display:flex;gap:10px;align-items:flex-start;margin-top:10px}
.consent input{margin-top:3px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:12px;border:1px solid #e5e7eb;background:#f8fafc;cursor:pointer;font-weight:700}
.btn-primary{background:#ffd166;border-color:#ffd166;color:#1f2937}
.btn[disabled]{opacity:.6;cursor:not-allowed}



/* Topbar */
.topbar{background:var(--bg);color:var(--text)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:40px;height:40px;border-radius:8px;
  background-image:url('flag.png');
  background-size:cover;background-position:center;
  border:2px solid #fff; box-shadow:0 0 0 2px rgba(0,0,0,.1);
}
.brand-title{font-weight:700}
.brand-sub{font-size:12px;color:var(--muted)}
.nav a{color:var(--text);text-decoration:none;margin-left:16px;opacity:.9}
.nav a:hover{opacity:1;text-decoration:underline}

.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.footer-nav a{margin-left:12px;opacity:.9;text-decoration:none}
.footer-nav a:hover{opacity:1;text-decoration:underline}


/* Hero */
.hero{position:relative;min-height:62vh;display:flex;align-items:center;justify-content:center;background:
  linear-gradient(rgba(10,35,64,.65),rgba(10,35,64,.65)),
  var(--hero-image);
background-size:cover;background-position:center}
.hero .overlay{position:absolute;inset:0}
.hero-inner{position:relative;text-align:center;color:#fff;padding:60px 0}
.hero h1{font-size:48px;line-height:1.1;margin:0 0 8px}
.hero .lead{font-size:20px;color:#e2e8f0;margin:0 0 24px}
.nowrap{white-space:nowrap}
.cta{display:inline-block;background:var(--accent);color:#1f2937;font-weight:700;padding:14px 22px;border-radius:12px;text-decoration:none;box-shadow:0 6px 14px rgba(0,0,0,.15)}
.cta:hover{background:var(--accent-hover)}
.disclaimer{max-width:780px;margin:18px auto 0;color:#e2e8f0;font-size:14px}

/* Steps */
.steps{background:var(--bg);color:var(--text);padding:48px 0}
.steps h2{text-align:center;margin:0 0 24px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.step{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:16px;padding:20px}
.num{width:36px;height:36px;border-radius:50%;background:#fff;color:#0b2942;display:flex;align-items:center;justify-content:center;font-weight:800;margin-bottom:8px}

/* Footer */
.footer{background:#0a2136;color:#cbd5e1}
.footer-inner{display:flex;align-items:center;justify-content:space-between;min-height:64px}
.footer a{color:#93c5fd}

/* Responsive */
@media (max-width:920px){
  .hero h1{font-size:36px}
  .grid{grid-template-columns:1fr}
  .topbar-inner{flex-direction:column;gap:10px;height:auto;padding:12px 0}
  .footer-inner{flex-direction:column;gap:8px;padding:12px 0}
}

/* === Layout de page : footer collé en bas mais responsive === */
html, body { height: 100%; }
body {
  min-height: 100dvh;            /* prend toute la hauteur */
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }         /* le contenu pousse le footer vers le bas */
.footer { flex-shrink: 0; }

/* === Footer responsive === */
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 20px;
  flex-wrap:wrap;                /* passe à la ligne si manque de place */
}
.footer-inner p{ margin:0; }
.footer-inner a{
  text-decoration:none;
  overflow-wrap:anywhere;        /* évite le débordement sur petits écrans */
}
.footer-inner a:hover{ text-decoration:underline; }

/* Empile tout au centre sur mobile */
@media (max-width: 640px){
  .footer-inner{
    flex-direction:column;
    text-align:center;
    gap:8px;
  }
}


/* Centrage du bloc de paiement */
.paybox{ display:flex; justify-content:center; }

/* Contrainte de largeur pour éviter les retours à la ligne par caractère */
.paypal-wrap{
  width:min(420px, 100%);   /* 360–480px marche aussi selon ton design */
  margin:0 auto;
  text-align:center;
}

/* Le conteneur PayPal prend toute la largeur disponible */
#paypal-container-PM9BTC4WMFEQY{ width:100%; }

/* Neutraliser d’éventuels styles globaux qui cassent le texte */
.paypal-wrap *{
  letter-spacing: normal !important;
  word-break: keep-all !important;
  white-space: normal !important;
  text-transform: none !important;
}


/* Bloc info ETA-IL (page d'accueil) */
.eta-notice{
  background:#fff7ed;                 /* fond léger (ambre) */
  border:1px solid #f7f7f7;           /* bordure ambrée */
  border-left:6px solid #1d4ed8;      /* trait accent */
  border-radius:14px;
  padding:16px 18px;
  color:#1f2937;
  max-width:820px;
  margin:16px auto;
}
.eta-notice h2{
  margin:6px 0 6px;
  font-size:20px;
  line-height:1.3;
}
.eta-notice p{ margin:6px 0; }
.eta-notice .eta-note{ color:#374151; }
.eta-badge{
  display:inline-block;
  font-size:12px; font-weight:800; letter-spacing:.2px;
  background:#f59e0b; color:#fff;
  border-radius:999px; padding:4px 10px;
}
@media (max-width:640px){
  .eta-notice{ margin:12px 0; border-left-width:4px; }
  .eta-notice h2{ font-size:18px; }
}


/* CTA v2 — pill bleu, moderne + effet "shine" */
.btn-xl{
  font-size:clamp(18px,2.4vw,22px);
  line-height:1.15;
  padding:18px 34px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.3px;
}

.btn-cta{
  position:relative; isolation:isolate;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  background:linear-gradient(135deg,#1d4ed8,#0ea5e9); /* bleu -> plus institutionnel */
  color:#fff; border:0; border-radius:999px;
  box-shadow:0 8px 22px rgba(29,78,216,.35), inset 0 -2px 0 rgba(255,255,255,.18);
  transform:translateZ(0);
  transition:transform .06s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-cta:hover{
  transform:translateY(-1px) scale(1.01);
  box-shadow:0 12px 28px rgba(29,78,216,.42);
  filter:saturate(1.05) brightness(1.03);
}
.btn-cta:active{ transform:translateY(0) scale(.99); }

/* Focus accessible */
.btn-cta:focus-visible{
  outline:0;
  box-shadow:0 0 0 4px rgba(255,255,255,.95), 0 0 0 7px rgba(59,130,246,.55);
}

/* Effet "shine" qui balaie le bouton au hover */
.btn-cta::after{
  content:"";
  position:absolute; top:0; left:-160%;
  width:50%; height:100%;
  transition:left .6s ease;
  border-radius:inherit; pointer-events:none;
}
.btn-cta:hover::after{ left:160%; }

/* Mobile : large et cliquable */
@media (max-width:520px){
  .hero .btn-cta{ width:100%; max-width:460px; }
}

/* Respecte “réduire les animations” */
@media (prefers-reduced-motion: reduce){
  .btn-cta, .btn-cta::after{ transition:none }
}



/* Sélecteur pays : fix RTL + alignement */
.msel-panel{ direction:ltr; }
.msel-list{
  display:block; max-height:280px; overflow:auto;
  padding-right:8px; text-align:left !important;
}
.msel-item{
  display:grid !important;
  grid-template-columns:22px 1fr;  /* [☑] [Nom du pays] */
  align-items:center; gap:10px; width:100%;
  direction:ltr; unicode-bidi:plaintext; text-align:left !important;
}
.msel-item input[type="checkbox"]{ margin:0; justify-self:start; }
.msel-item span{ display:block; white-space:normal; overflow-wrap:anywhere; }


.hidden{ display:none !important; }




/* Boutons Oui/Non façon "chips" */
.question{margin:16px 0 8px;font-weight:700}
.note{color:#64748b;font-size:14px}

.yn{display:flex;gap:10px;margin:.25rem 0 0}
.yn label{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid #e2e8f0;border-radius:10px;
  padding:8px 12px;cursor:pointer;background:#f8fafc;
  user-select:none;
}
.yn input{accent-color:#1d4ed8}
/* état sélectionné */
.yn label:has(input:checked){
  border-color:#1d4ed8;background:#eff6ff;box-shadow:0 0 0 3px rgba(29,78,216,.08) inset;
  font-weight:700;
}
/* fallback si :has non supporté (facultatif) */
@supports not (selector(:has(*))) {
  .yn input:checked{outline:2px solid #1d4ed8;outline-offset:2px}
}



/* Nav déroulante */
.mega-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.mega-nav .btn-small{padding:10px 14px;border-radius:10px;font-weight:800}

.nav-group{position:relative}
.nav-trigger{
  background:transparent;border:0;cursor:pointer;
  font:inherit;color:#ffffff;font-weight:700;display:flex;align-items:center;gap:6px;
  padding:8px 2px;border-radius:8px;
}
.nav-trigger:focus-visible{outline:2px solid #ffffff;outline-offset:2px}
.chev{font-size:12px;opacity:.8}

.menu{
  position:absolute;top:calc(100% + 10px);left:0;min-width:240px;
  background:#fff;border:1px solid #e2e8f0;border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);padding:10px;
  display:none; /* visible quand .open */
  z-index:30;
}
.menu a{
  display:block;padding:10px 12px;border-radius:8px;color:#111827;text-decoration:none;
}
.menu a:hover{background:#f1f5f9}

.nav-group.open > .menu{display:block;animation:fadeScale .12s ease}
@keyframes fadeScale{
  from{opacity:0;transform:translateY(-2px) scale(.99)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* Responsive */
@media (max-width: 820px){
  .mega-nav{gap:12px}
  .menu{min-width:200px}
}



/* ===== Nav + header : variantes mobiles ===== */
@media (max-width: 640px){
  /* Marque */
  .brand .logo{ width:40px; height:41px }
  .brand-title{ font-size:14px; line-height:1.2 }
  .brand-sub{ font-size:11px; line-height:1.2; opacity:0.9 }

  /* Barre de nav */
  .mega-nav{ gap:1px }
  .nav-trigger{
    font-size:px;
    padding:8px 10px;
    border-radius:10px;
  }
  .chev{ font-size:11px }

  /* Menus déroulants */
  .menu{ min-width:180px; }
  .menu a{ font-size:14px; padding:8px 10px }

  /* Bouton CTA */
  .btn-small{ font-size:14px; padding:10px 12px; border-radius:10px }
}

/* Optionnel : très petits écrans */
@media (max-width: 380px){
  .brand-sub{ display:none }          /* gagne une ligne */
  .nav-trigger{ font-size:12px; padding:7px 9px }
  .btn-small{ font-size:13px; padding:9px 10px }
}
