/* =========================================================================
   Variant 2 — faithful recreation of fichedevoyage.gov.bf
   Design system reproduced from live-site recon:
     fonts  Raleway (titres) / Open Sans (corps)
     blue   #0622f3 (accent) · red #e6282a (nav actif) · green #28a745 (succès)
     red-gradient page titles (#ff3333 → #ff7777), light bg #f6f9ff
   ========================================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:#0622f3;
  --red:#e6282a;
  --green:#28a745;
  --green-dark:#109840;
  --ink:#343a40;
  --muted:#6e7681;
  --bg:#ffffff;
  --bg-light:#f6f9ff;
  --line:#e6e9f2;
  --shadow:0 0 20px rgba(0,0,0,.07);
  --container:1200px;
}

html { scroll-behavior:smooth; }
body {
  font-family:"Open Sans",system-ui,-apple-system,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.65;
  display:flex; flex-direction:column; min-height:100vh;
}
h1,h2,h3,h4,h5 { font-family:"Raleway",sans-serif; line-height:1.2; }
a { color:var(--accent); }
img { max-width:100%; display:block; }
.container { width:100%; max-width:var(--container); margin:0 auto; padding:0 20px; }
main { flex:1 0 auto; }

/* ---- Header ----------------------------------------------------------- */
#header {
  position:sticky; top:0; z-index:30; background:#fff; height:96px;
  display:flex; align-items:center; box-shadow:0 0 20px rgba(0,0,0,.10);
}
#header .container { display:flex; align-items:center; justify-content:space-between; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--ink); }
.brand img { width:48px; height:48px; }
.brand .logo-text { display:flex; flex-direction:column; line-height:1.15; }
.brand .logo-text b { font-family:"Raleway",sans-serif; font-weight:800; font-size:19px; }
.brand .logo-text span { font-size:12px; color:var(--muted); }

.nav { display:flex; align-items:center; gap:6px; }
.nav a {
  font-family:"Raleway",sans-serif; font-weight:700; font-size:15px;
  text-decoration:none; color:var(--ink);
  padding:9px 13px; border-radius:8px; transition:color .15s,background .15s;
}
.nav a:hover { color:var(--red); }
.nav a.active { color:var(--red); }
.nav a.lang {
  border:1.5px solid var(--line); font-size:13px; padding:7px 12px; color:var(--muted);
}
.nav a.lang:hover { border-color:var(--red); color:var(--red); }
.nav-toggle {
  display:none; background:none; border:0; font-size:28px; color:var(--ink); cursor:pointer;
}

/* ---- Hero (interior pages) ------------------------------------------- */
.page-hero {
  position:relative; padding:74px 0 64px; text-align:center; color:#fff;
  background:linear-gradient(rgba(8,16,40,.62),rgba(8,16,40,.72)),
             linear-gradient(135deg,#0b1530,#16306b);
}
.page-hero h1 {
  font-size:clamp(30px,5vw,46px); font-weight:800;
  background:linear-gradient(90deg,#ff3333,#ff7777);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-hero p { margin-top:10px; font-size:17px; color:#dbe3f4; }

/* ---- Home carousel ---------------------------------------------------- */
.carousel { position:relative; height:clamp(340px,52vh,520px); overflow:hidden; }
.carousel__slide {
  position:absolute; inset:0; opacity:0; transition:opacity .9s ease;
  display:flex; align-items:center;
  background-size:cover; background-position:center;
}
.carousel__slide.is-active { opacity:1; }
.carousel__slide:nth-child(1){ background-image:linear-gradient(rgba(7,14,34,.58),rgba(7,14,34,.66)),linear-gradient(120deg,#0b1530,#1d4ed8); }
.carousel__slide:nth-child(2){ background-image:linear-gradient(rgba(7,14,34,.58),rgba(7,14,34,.66)),linear-gradient(120deg,#0a3d2b,#16a34a); }
.carousel__slide:nth-child(3){ background-image:linear-gradient(rgba(7,14,34,.58),rgba(7,14,34,.66)),linear-gradient(120deg,#3b0764,#7c3aed); }
.carousel__inner { color:#fff; max-width:760px; }
.carousel__inner h2 {
  font-size:clamp(30px,5.4vw,52px); font-weight:800; margin-bottom:14px;
}
.carousel__inner p { font-size:17px; color:#e7ecf7; margin-bottom:26px; max-width:60ch; }
.carousel__dots { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); display:flex; gap:9px; }
.carousel__dots button {
  width:11px; height:11px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(255,255,255,.45);
}
.carousel__dots button.is-active { background:#fff; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; gap:8px; cursor:pointer;
  font-family:"Raleway",sans-serif; font-weight:700; font-size:15px;
  padding:13px 26px; border-radius:999px; border:0; text-decoration:none;
  transition:filter .15s, transform .1s;
}
.btn:active { transform:translateY(1px); }
.btn--green { background:var(--green); color:#fff; }
.btn--green:hover { filter:brightness(1.07); }
.btn--blue  { background:var(--accent); color:#fff; }
.btn--ghost { background:#fff; color:var(--ink); border:1.5px solid var(--line); }
.btn--dark  { background:#0b1220; color:#fff; }

/* ---- Sections / cards ------------------------------------------------- */
section.block { padding:62px 0; }
section.block.alt { background:var(--bg-light); }
.section-head { text-align:center; max-width:760px; margin:0 auto 42px; }
.section-head h2 { font-size:clamp(24px,3.6vw,34px); font-weight:800; }
.section-head p { color:var(--muted); margin-top:8px; }

.steps {
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px; position:relative;
}
.steps .step { text-align:center; padding:8px; }
.steps .step .num {
  width:56px; height:56px; border-radius:50%; margin:0 auto 14px;
  display:flex; align-items:center; justify-content:center;
  font-family:"Raleway",sans-serif; font-weight:800; font-size:20px;
  color:#fff; background:var(--green);
}
.steps .step h3 { font-size:18px; margin-bottom:6px; }
.steps .step p { font-size:13.5px; color:var(--muted); }

.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:22px; align-items:stretch; }
.cards .ad-host { align-items:stretch; }
.cards .ad-slot { height:100%; }
.info-card {
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:26px 22px; box-shadow:var(--shadow);
}
.info-card .ic {
  width:54px; height:54px; border-radius:14px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:center; font-size:26px;
  background:var(--bg-light); color:var(--green-dark);
}
.info-card h3 { font-size:19px; margin-bottom:8px; }
.info-card p { font-size:14px; color:var(--muted); }
.info-card.is-sponsored { border:1px solid var(--green); position:relative; }
.info-card.is-sponsored::after {
  content:"Sponsorisé"; position:absolute; top:14px; right:14px;
  font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:#9a6b00; background:#fdf7e3; padding:4px 9px; border-radius:6px;
}

/* ---- Generic content card (forms / search / contact) ------------------ */
.panel {
  max-width:920px; margin:0 auto; background:#fff;
  border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow);
  overflow:hidden;
}
.panel__head {
  background:var(--green); color:#fff; padding:18px 26px;
  font-family:"Raleway",sans-serif; font-weight:800; font-size:18px;
}
.panel__body { padding:30px 26px; }

/* ---- Forms ------------------------------------------------------------ */
.field { margin-bottom:18px; }
.field label { display:block; font-size:13.5px; font-weight:600; margin-bottom:6px; }
.field label .req { color:var(--red); }
.field input, .field select, .field textarea {
  width:100%; font:inherit; font-size:14px; color:var(--ink);
  padding:11px 13px; border:1.5px solid #ced4da; border-radius:8px; background:#fff;
}
.field select { border-color:var(--green); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline:0; border-color:var(--green-dark);
  box-shadow:0 0 0 3px rgba(40,167,69,.18);
}
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px 20px; }
.form-section-title {
  font-family:"Raleway",sans-serif; font-weight:800; font-size:15px;
  color:var(--green-dark); text-transform:uppercase; letter-spacing:.04em;
  margin:26px 0 14px; padding-bottom:8px; border-bottom:1px solid var(--line);
}
.form-section-title:first-child { margin-top:0; }

/* Stepper (Remplir) */
.stepper { display:flex; gap:8px; margin-bottom:26px; flex-wrap:wrap; }
.stepper button {
  flex:1; min-width:120px; cursor:pointer; border:0;
  font-family:"Raleway",sans-serif; font-weight:700; font-size:13.5px;
  padding:11px 10px; border-radius:8px; background:#eef1f8; color:var(--muted);
  transition:background .15s,color .15s;
}
.stepper button .b { display:inline-block; width:22px; }
.stepper button.is-active { background:var(--green); color:#fff; }
.stepper button.is-done   { background:#d9f0e0; color:var(--green-dark); }
.form-step { display:none; }
.form-step.is-active { display:block; animation:fade .25s ease; }
@keyframes fade { from{opacity:0; transform:translateY(6px);} to{opacity:1;transform:none;} }
.form-nav { display:flex; justify-content:space-between; margin-top:26px; gap:12px; }

/* Récap (step 4) */
.recap { display:grid; grid-template-columns:1fr 1fr; gap:10px 26px; margin-bottom:22px; }
.recap .grp { grid-column:1/-1; font-weight:800; color:var(--green-dark);
  font-family:"Raleway",sans-serif; margin-top:10px; }
.recap .row { display:flex; justify-content:space-between; gap:14px;
  border-bottom:1px dashed var(--line); padding:6px 0; font-size:14px; }
.recap .row span:first-child { color:var(--muted); }
.certify {
  display:flex; gap:12px; align-items:flex-start; background:var(--bg-light);
  border:1px solid var(--line); border-radius:10px; padding:16px 18px; font-size:14px;
}
.certify input { margin-top:4px; width:18px; height:18px; accent-color:var(--green); }
.certify small { display:block; color:var(--muted); margin-top:4px; }

/* Confirmation (QR) */
.confirm { text-align:center; max-width:680px; margin:0 auto; }
.confirm .ok {
  width:66px; height:66px; border-radius:50%; background:var(--green); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:34px; margin:0 auto 16px;
}
.confirm h2 { font-size:26px; font-weight:800; margin-bottom:6px; }
.confirm .ref { color:var(--muted); margin-bottom:26px; }
.qr-frame {
  border:2px dashed var(--green); border-radius:14px; padding:24px;
  display:flex; align-items:center; gap:24px; justify-content:center; flex-wrap:wrap;
  background:#fbfffc;
}
.qr-box {
  width:160px; height:160px; border-radius:10px; background:#0b1220; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font:800 26px/1 "Raleway",sans-serif; letter-spacing:.1em;
}
.qr-meta { text-align:left; }
.qr-meta .v { font-weight:800; color:var(--green-dark); font-size:18px; }
.qr-partner {
  margin-top:10px; font-weight:700; color:#9a6b00;
  background:#fdf7e3; border:1px solid #f0d98a; padding:8px 12px; border-radius:8px;
  display:inline-block; font-size:13px;
}
.confirm .actions { display:flex; gap:14px; justify-content:center; margin-top:26px; flex-wrap:wrap; }

/* ---- FAQ accordion ---------------------------------------------------- */
.accordion { max-width:860px; margin:0 auto; }
.acc-item { border:1px solid var(--line); border-radius:10px; margin-bottom:12px; overflow:hidden; }
.acc-item.is-sponsored { border-color:#f0d98a; background:#fffdf3; }
.acc-q {
  width:100%; text-align:left; cursor:pointer; border:0; background:#fff;
  font-family:"Raleway",sans-serif; font-weight:700; font-size:15.5px; color:var(--ink);
  padding:17px 20px; display:flex; justify-content:space-between; gap:16px; align-items:center;
}
.acc-item.is-sponsored .acc-q { background:#fffdf3; color:#9a6b00; }
.acc-q::after { content:"+"; font-size:22px; color:var(--accent); transition:transform .2s; }
.acc-item.open .acc-q::after { content:"–"; }
.acc-a { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.acc-a > div { padding:0 20px 18px; color:var(--muted); font-size:14.5px; }
.acc-item.open .acc-a { max-height:340px; }

/* ---- Contact ---------------------------------------------------------- */
.contact-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:30px; align-items:start; }
.contact-info { display:flex; flex-direction:column; gap:18px; }
.contact-info .ci {
  display:flex; gap:14px; align-items:flex-start;
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px 20px;
}
.contact-info .ci .ic {
  width:44px; height:44px; border-radius:10px; flex:none;
  display:flex; align-items:center; justify-content:center; font-size:20px;
  background:var(--bg-light); color:var(--green-dark);
}
.contact-info .ci b { font-family:"Raleway",sans-serif; font-size:14px; }
.contact-info .ci a, .contact-info .ci span { color:var(--muted); font-size:14px; text-decoration:none; }

/* ---- Ad host helpers -------------------------------------------------- */
.ad-rail { display:flex; flex-direction:column; gap:22px; }
.layout-with-rail { display:grid; grid-template-columns:1fr 300px; gap:34px; align-items:start; }
.ad-host { display:flex; justify-content:center; }
/* explicit `auto` left/right so the banner always centres with the page
   (a bare `22px 0` here would clobber .container's centering) */
.ad-host--top { margin:22px auto; }
.ad-host--bottom { margin:34px auto 8px; }
.sticky-rail { position:sticky; top:112px; }

/* ---- Sponsor interstitial overlay ------------------------------------- */
.sponsor-overlay {
  position:fixed; inset:0; z-index:60; padding:24px;
  background:rgba(8,14,30,.78);
  display:flex; align-items:center; justify-content:center;
}
.sponsor-overlay[hidden] { display:none !important; }   /* attribute must win */
.sponsor-overlay__card {
  background:#fff; border-radius:16px; max-width:780px; width:100%;
  padding:22px; text-align:center;
}
.sponsor-overlay__tag {
  font:700 12px/1 "Open Sans",sans-serif; letter-spacing:.1em;
  color:#9a6b00; text-transform:uppercase; margin-bottom:14px;
}

/* Clean mode: sponsored content folded into the page disappears too */
.ad-mode-clean .acc-item.is-sponsored,
.ad-mode-clean .info-card.is-sponsored { display:none !important; }

/* ---- Footer ----------------------------------------------------------- */
#footer { flex-shrink:0; background:#10182b; color:#c7cedd; margin-top:40px; }
.footer-main {
  display:grid; grid-template-columns:1.4fr 1fr 1fr auto; gap:34px;
  padding:48px 0;
}
#footer h3 { color:#fff; font-size:18px; margin-bottom:8px; }
#footer h4 { color:#fff; font-size:15px; margin-bottom:14px; }
#footer p, #footer li { font-size:14px; }
#footer .sub-text { color:#8a93a8; font-size:13px; }
#footer ul { list-style:none; display:flex; flex-direction:column; gap:9px; }
#footer a { color:#c7cedd; text-decoration:none; }
#footer a:hover { color:#fff; }
.footer-badge { display:flex; flex-direction:column; align-items:center; gap:10px; }
.footer-badge img { width:54px; }
.footer-badge .badge-label {
  font-family:"Raleway",sans-serif; font-weight:800; font-size:12px; letter-spacing:.12em;
}
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.10); padding:18px 0; text-align:center;
  font-size:13px; color:#8a93a8;
}
.footer-bottom strong { color:#c7cedd; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width:992px){
  .footer-main { grid-template-columns:1fr 1fr; }
  .cards, .steps { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px){
  #header { height:74px; }
  .brand .logo-text span { display:none; }
  .nav {
    position:fixed; inset:74px 0 auto 0; background:#fff; flex-direction:column;
    align-items:stretch; gap:0; padding:8px 16px 18px;
    box-shadow:0 14px 24px rgba(0,0,0,.12); display:none;
  }
  .nav.open { display:flex; }
  .nav a { padding:13px 8px; border-bottom:1px solid var(--line); }
  .nav-toggle { display:block; }
  .layout-with-rail, .contact-grid, .grid-2, .recap { grid-template-columns:1fr; }
  .cards, .steps { grid-template-columns:1fr; }
  .sticky-rail { position:static; }
}
