/* AfriversalAI - portail Afrique de l'Ouest (Senegal, Guinee, Togo).
   Shared by index.html and the three country pages. Layers on
   ../assets/style.css; adds nothing global. */

/* Portail Afrique de l'Ouest francophone. Un seul portail, trois
   juridictions : le contenu est partagé, seul le droit change. */
.fw-hero { position:relative; background:linear-gradient(145deg,#07190F 0%,#0E2A20 60%,#123528 100%);
  color:#fff; padding:62px 20px 56px; }

/* Photographic hero. Text sits left, so the scrim is weighted left and thins
   out to the right, where each city's landmark sits. The image is a separate
   modifier so each page uses its own city: --dakar (hub + Senegal, the Monument
   de la Renaissance Africaine), --conakry (Guinea), --lome (Togo). */
.fw-hero--photo { background-size:cover; background-position:72% top;
  background-repeat:no-repeat; background-color:#07190F; min-height:380px;
  display:flex; align-items:center; }
.fw-hero--dakar   { background-image:url('/assets/dakar-hero-sm.jpg'); }
.fw-hero--conakry { background-image:url('/assets/conakry-hero-sm.jpg'); }
.fw-hero--lome    { background-image:url('/assets/lome-hero-sm.jpg'); }
@media (min-width:901px){
  .fw-hero--photo   { min-height:470px; }
  .fw-hero--dakar   { background-image:url('/assets/dakar-hero.jpg'); }
  .fw-hero--conakry { background-image:url('/assets/conakry-hero.jpg'); }
  .fw-hero--lome    { background-image:url('/assets/lome-hero.jpg'); }
}
.fw-hero--photo::before { content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(100deg, rgba(4,17,11,.95) 0%, rgba(4,17,11,.90) 30%,
    rgba(5,21,14,.70) 52%, rgba(5,21,14,.34) 74%, rgba(5,21,14,.18) 100%); }
@media (max-width:760px){
  .fw-hero--photo::before { background:linear-gradient(170deg, rgba(4,17,11,.90) 0%,
    rgba(4,17,11,.86) 55%, rgba(5,21,14,.72) 100%); }
}
/* The photo hero is a flex container, so its inner block is a flex item: min-width:0
   lets it shrink with the viewport instead of holding its content width. */
.fw-hero--photo .fw-hero__in { position:relative; z-index:1; width:100%; min-width:0; }
.fw-hero__in { max-width:1080px; margin:0 auto; }
.fw-hero h1 { font-size:2.1em; line-height:1.12; font-weight:800; letter-spacing:-0.7px; margin:14px 0 0; }
.fw-hero h1 em { font-style:normal; color:var(--gold); display:block; }
.fw-hero .lead { font-size:1.06em; line-height:1.7; color:#CFE0D6; margin-top:18px; max-width:62ch; }
.fw-flags { display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }
.fw-flag { font-size:0.84em; font-weight:800; letter-spacing:1.4px; text-transform:uppercase;
  border:1px solid rgba(255,255,255,.26); border-radius:999px; padding:8px 18px; color:#EEF1F0; }
@media (min-width:760px){ .fw-hero h1 { font-size:3em; } }

.fw-sec { padding:54px 0; }
.fw-sec + .fw-sec { border-top:1px solid var(--border); }
.fw-sec h2 { font-size:1.6em; line-height:1.22; font-weight:800; color:var(--green-dark); letter-spacing:-0.3px; }
.fw-sec > p,
.fw-sec__main > p { font-size:1.03em; line-height:1.74; color:#374151; margin-top:14px; max-width:68ch; }
.fw-kicker { font-size:0.74em; font-weight:800; letter-spacing:2.2px; text-transform:uppercase; color:var(--gold-dark); }

.fw-law { display:grid; grid-template-columns:1fr; gap:18px; margin-top:28px; }
@media (min-width:880px){ .fw-law { grid-template-columns:repeat(3,1fr); } }
.fw-card { display:flex; flex-direction:column; gap:10px; padding:26px 24px;
  border:1px solid var(--border); border-radius:var(--radius-lg); background:#fff; }
.fw-card h3 { font-size:1.2em; font-weight:800; color:var(--green-dark); }
.fw-card__law { font-size:0.95em; font-weight:700; color:var(--gold-dark); line-height:1.45; }
.fw-card__body { font-size:0.93em; line-height:1.6; color:#374151; }
.fw-card__auth { margin-top:auto; padding-top:12px; border-top:1px dashed var(--border);
  font-size:0.88em; color:var(--green-mid); font-weight:700; }
.fw-card__go { margin-top:12px; font-size:0.9em; font-weight:800; color:var(--gold-dark);
  text-decoration:none; align-self:flex-start; }
.fw-card__go:hover { text-decoration:underline; }
.fw-flag { transition:background .15s ease, border-color .15s ease; }
a.fw-flag { text-decoration:none; }
a.fw-flag:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.5); }

.fw-mods { display:grid; grid-template-columns:1fr; gap:12px; margin-top:24px; }
@media (min-width:760px){ .fw-mods { grid-template-columns:1fr 1fr; } }
.fw-mod { display:flex; gap:14px; align-items:baseline; padding:16px 18px;
  border:1px solid var(--border); border-radius:12px; background:#fff; }
.fw-mod b { color:var(--gold-dark); font-size:1.05em; min-width:22px; }
.fw-mod span { font-size:0.95em; color:#374151; line-height:1.5; }
.fw-mod span i { font-style:normal; font-weight:800; color:var(--green-dark); display:block; }

.fw-note { margin-top:26px; background:var(--green-pale); border-left:4px solid var(--green-mid);
  border-radius:0 12px 12px 0; padding:20px 22px; }
.fw-note p { font-size:0.98em; line-height:1.7; color:#1f3b2d; }
.fw-note strong { color:var(--green-dark); }
.fw-fine { font-size:0.87em; color:var(--muted); line-height:1.65; margin-top:16px; }

.fw-cta { background:var(--green-dark); color:#fff; padding:52px 20px; text-align:center; }
.fw-cta h2 { font-size:1.7em; font-weight:800; letter-spacing:-0.4px; }
.fw-cta p { color:#CFE0D6; margin:12px auto 22px; max-width:56ch; line-height:1.7; }

/* --- country pages (senegal / guinee / togo) --- */
.fw-crumb { display:inline-block; font-size:0.8em; font-weight:800; letter-spacing:1.6px;
  text-transform:uppercase; color:rgba(255,255,255,.72); text-decoration:none; }
.fw-crumb:hover { color:#fff; }
.fw-hero__law { margin-top:20px; display:inline-block; max-width:60ch;
  border:1px solid rgba(255,255,255,.26);
  border-left:3px solid var(--gold); border-radius:4px 10px 10px 4px; padding:14px 20px;
  background:rgba(0,0,0,.28); backdrop-filter:blur(2px); }
.fw-hero__law b { display:block; font-size:0.74em; font-weight:800; letter-spacing:1.8px;
  text-transform:uppercase; color:var(--gold); margin-bottom:6px; }
.fw-hero__law span { font-size:1em; line-height:1.5; color:#EEF1F0; }

.fw-oblig { list-style:none; margin-top:26px; display:grid; gap:14px; }
.fw-oblig li { display:grid; grid-template-columns:30px 1fr; gap:14px; align-items:start;
  padding:18px 20px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.fw-oblig li b { grid-column:1; font-size:1.1em; color:var(--gold-dark); line-height:1.3; }
.fw-oblig li div { grid-column:2; }
.fw-oblig li i { font-style:normal; font-weight:800; color:var(--green-dark);
  display:block; font-size:1.02em; margin-bottom:5px; }
.fw-oblig li p { font-size:0.95em; line-height:1.62; color:#374151; }

.fw-warn { margin-top:26px; background:#FBF4EC; border-left:4px solid #B9602B;
  border-radius:0 12px 12px 0; padding:20px 22px; }
.fw-warn b { display:block; font-size:0.76em; font-weight:800; letter-spacing:1.8px;
  text-transform:uppercase; color:#8F4A1E; margin-bottom:8px; }
.fw-warn p { font-size:0.95em; line-height:1.68; color:#4A3524; }
.fw-warn ul { margin:10px 0 0 18px; }
.fw-warn li { font-size:0.95em; line-height:1.7; color:#4A3524; }

.fw-sibs { display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.fw-sib { font-size:0.92em; font-weight:700; text-decoration:none; color:var(--green-dark);
  border:1px solid var(--border); border-radius:999px; padding:10px 20px; background:#fff; }
.fw-sib:hover { border-color:var(--green-mid); background:var(--green-pale); }

/* --- portal nav. The portal is excluded from nav.js (microsites keep their own),
       so without this the sub-site is a dead end once you arrive. --- */
.fw-nav { position:relative; z-index:3; background:#04110B; border-bottom:1px solid rgba(255,255,255,.1); }
.fw-nav__in { max-width:1080px; margin:0 auto; padding:14px 20px; display:flex;
  align-items:center; gap:18px; flex-wrap:wrap; }
.fw-nav__logo { display:inline-flex; align-items:center; gap:10px; text-decoration:none; }
.fw-nav__logo img { height:40px; width:auto; display:block; }
.fw-nav__tag { font-size:0.72em; font-weight:800; letter-spacing:1.6px; text-transform:uppercase;
  color:var(--gold); border-left:1px solid rgba(255,255,255,.22); padding-left:10px; }
.fw-nav__links { margin-left:auto; display:flex; gap:4px; flex-wrap:wrap; list-style:none; }
.fw-nav__links a { display:inline-block; font-size:0.88em; font-weight:600; text-decoration:none;
  color:#CFE0D6; padding:7px 13px; border-radius:999px; }
.fw-nav__links a:hover { color:#fff; background:rgba(255,255,255,.09); }
.fw-nav__links a[aria-current="page"] { color:#04110B; background:var(--gold); font-weight:800; }
@media (max-width:620px){
  .fw-nav__in { gap:12px; }
  .fw-nav__links { margin-left:0; width:100%; }
  .fw-nav__tag { display:none; }
}

/* Country flags on the law cards. Inline SVG, not emoji: Windows renders flag
   emoji as bare letter pairs ("SN"), which would look broken for a B2B buyer. */
.fw-card h3 { display:flex; align-items:center; gap:10px; }
.fw-flagicon { flex:0 0 auto; width:28px; height:19px; border-radius:2px; overflow:hidden;
  display:block; box-shadow:0 0 0 1px rgba(0,0,0,.14); }
.fw-flagicon svg { display:block; width:100%; height:100%; }

/* Language toggle. FR is the portal's language; EN hands over to the main site. */
.fw-lang { display:inline-flex; align-items:center; gap:2px; padding:3px;
  border:1px solid rgba(255,255,255,.22); border-radius:999px; flex:0 0 auto; }
.fw-lang span, .fw-lang a { font-size:0.76em; font-weight:800; letter-spacing:.06em;
  padding:5px 11px; border-radius:999px; text-decoration:none; line-height:1; }
.fw-lang__on { background:var(--gold); color:#04110B; }
.fw-lang a { color:#CFE0D6; }
.fw-lang a:hover { color:#fff; background:rgba(255,255,255,.1); }

/* Country badge above the hero heading on each country page. */
.fw-heroflag { display:inline-flex; align-items:center; gap:10px; margin-top:16px; }
.fw-heroflag__name { font-size:0.8em; font-weight:800; letter-spacing:2px;
  text-transform:uppercase; color:#EEF1F0; }
.fw-flagicon--lg { width:38px; height:26px; }
@media (max-width:620px){ .fw-lang { margin-left:auto; } }

/* Readiness assessment form. */
.fw-form { margin-top:24px; display:grid; gap:16px; max-width:760px; }
.fw-form__row { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:680px){ .fw-form__row { grid-template-columns:1fr 1fr; } }
.fw-form label { display:grid; gap:7px; font-size:0.88em; font-weight:700; color:var(--green-dark); }
.fw-form input, .fw-form select, .fw-form textarea {
  font:inherit; font-weight:400; color:#111827; background:#fff;
  border:1px solid var(--border); border-radius:10px; padding:12px 14px; width:100%; }
.fw-form input:focus, .fw-form select:focus, .fw-form textarea:focus {
  outline:2px solid var(--gold); outline-offset:1px; border-color:var(--gold); }
.fw-form textarea { resize:vertical; }
.fw-form button { justify-self:start; margin-top:4px; }
.fw-oblig--arrow li b { color:var(--green-mid); font-size:1.2em; }

/* "Watch the film" card in the hero. */
.fw-play { display:inline-flex; align-items:center; gap:14px; margin-top:22px; text-decoration:none;
  border:1px solid rgba(255,255,255,.26); background:rgba(0,0,0,.30); border-radius:999px;
  padding:9px 22px 9px 10px; transition:background .15s, border-color .15s; }
.fw-play:hover { background:rgba(0,0,0,.48); border-color:var(--gold); }
.fw-play__ico { flex:0 0 auto; width:38px; height:38px; border-radius:50%; background:var(--gold);
  color:#04110B; display:grid; place-items:center; font-size:0.9em; padding-left:3px; }
.fw-play__t { display:grid; gap:2px; font-size:0.86em; color:#CFE0D6; line-height:1.3; }
.fw-play__t b { color:#fff; font-size:1.06em; font-weight:800; }

/* Featured welcome film in the hero. Sits left, under the lead, so it never
   covers the landmark on the right of the hero photograph. */
.fw-film { display:inline-flex; align-items:center; gap:18px; margin-top:26px; max-width:430px;
  text-decoration:none; border:1px solid rgba(255,255,255,.28); border-radius:18px;
  padding:14px 26px 14px 14px; background:rgba(4,17,11,.62); backdrop-filter:blur(3px);
  transition:background .16s, border-color .16s, transform .16s; }
.fw-film:hover { background:rgba(4,17,11,.82); border-color:var(--gold); transform:translateY(-2px); }
.fw-film__face { position:relative; flex:0 0 auto; width:68px; height:68px; border-radius:50%;
  overflow:hidden; border:2px solid var(--gold); background:#0f2f24; }
.fw-film__face img { width:100%; height:100%; object-fit:cover; display:block; }
.fw-film__play { position:absolute; inset:0; display:grid; place-items:center; font-size:1.1em;
  color:#fff; background:rgba(4,17,11,.42); padding-left:3px; transition:background .16s; }
.fw-film:hover .fw-film__play { background:rgba(4,17,11,.14); }
.fw-film__body { display:grid; gap:3px; }
.fw-film__kicker { font-size:0.68em; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:var(--gold); }
.fw-film__title { font-size:1.02em; font-weight:800; color:#fff; line-height:1.25; }
.fw-film__meta { font-size:0.82em; color:#CFE0D6; }
.fw-sec__aside .fw-film__meta { font-size:0.9em; }
@media (max-width:520px){
  .fw-film { gap:14px; padding:12px 18px 12px 12px; }
  .fw-film__face { width:56px; height:56px; }
}

/* Funda Five wordmark. Ships as a dark card on its own ground, so it needs no
   container - just room to breathe and a cap so it never dominates the section. */
.fw-ff-logo { display:block; width:100%; max-width:420px; height:auto; margin:22px 0 4px;
  border-radius:14px; box-shadow:0 12px 34px rgba(0,0,0,.18); }

/* Split section: prose left, the film card in the space the 68ch measure leaves
   empty on the right. Stacks on narrow screens, film first so it is not buried. */
.fw-sec--split { display:grid; grid-template-columns:1fr; gap:26px; align-items:start; }
@media (min-width:900px){
  .fw-sec--split { grid-template-columns:minmax(0,1fr) 460px; gap:52px; }
}
.fw-sec--split .fw-sec__main { min-width:0; }
.fw-sec__aside { min-width:0; }
@media (max-width:899px){ .fw-sec__aside { order:-1; } }

/* On a light ground the film card inverts: dark card, same shape. */
.fw-sec__aside .fw-film { display:flex; max-width:none; width:100%; margin-top:0;
  flex-direction:column; align-items:flex-start; gap:18px; text-align:left;
  background:linear-gradient(150deg,#07190F 0%,#123528 100%);
  border-color:rgba(255,255,255,.16); padding:14px; border-radius:18px; }
.fw-sec__aside .fw-film:hover { border-color:var(--gold); }
.fw-sec__aside .fw-film__face { width:100%; height:auto; aspect-ratio:1.16; border:none;
  border-radius:14px; }
.fw-sec__aside .fw-film__face img { object-position:50% 50%; }
.fw-sec__aside .fw-film__play { font-size:2.6em; }
.fw-sec__aside .fw-film__title { font-size:1.34em; line-height:1.2; }

/* Sign-in / sign-up actions in the portal nav. */
.fw-auth { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; }
.fw-auth a { font-size:0.85em; font-weight:700; text-decoration:none; white-space:nowrap;
  padding:8px 15px; border-radius:999px; }
.fw-auth__in { color:#CFE0D6; }
.fw-auth__in:hover { color:#fff; background:rgba(255,255,255,.09); }
.fw-auth__up { color:#04110B; background:var(--gold); font-weight:800; }
.fw-auth__up:hover { filter:brightness(1.06); }

/* Module cards on the course page: open ones are links, locked ones are not. */
.fw-mods--cards .fw-mod { align-items:flex-start; text-decoration:none; }
.fw-mod--open { border-color:var(--green-mid); background:#fff; }
.fw-mod--open:hover { border-color:var(--gold); box-shadow:0 8px 26px rgba(0,0,0,.08); }
.fw-mod--locked { opacity:.62; }
.fw-mod__badge { display:block; margin-top:7px; font-style:normal; font-size:0.84em;
  font-weight:800; letter-spacing:.3px; color:var(--gold-dark); }
.fw-mod--locked .fw-mod__badge { color:var(--muted); }

/* Form error line + consent checkbox. */
.fw-err { margin-top:16px; padding:13px 16px; border-radius:10px; background:#FDECEC;
  border-left:4px solid #B3261E; color:#5F1A14; font-size:0.95em; line-height:1.55; }
.fw-check { display:flex !important; align-items:flex-start; gap:10px; font-weight:400 !important;
  font-size:0.92em; color:#374151; line-height:1.55; }
.fw-check input { width:auto !important; margin-top:3px; flex:0 0 auto; }

/* Local partner: photo beside the name, flag kept on the name itself. */
.fw-partner { display:flex; align-items:center; gap:16px; }
.fw-partner__photo { flex:0 0 auto; width:76px; height:76px; border-radius:50%;
  object-fit:cover; border:2px solid var(--gold); display:block; }
.fw-partner h3 { margin:0; }

/* The three jurisdictions are a different kind of item from the offerings, so
   they get their own compact group rather than lengthening the main list. */
.fw-nav__countries { display:flex; gap:4px; flex-wrap:wrap; list-style:none; margin:0; }
.fw-nav__countries a { display:inline-block; font-size:0.82em; font-weight:700;
  text-decoration:none; color:#AFC6B8; padding:6px 11px; border-radius:999px;
  border:1px solid rgba(255,255,255,.16); }
.fw-nav__countries a:hover { color:#fff; border-color:rgba(255,255,255,.4); }
.fw-nav__countries a[aria-current="page"] { color:#04110B; background:var(--gold);
  border-color:var(--gold); font-weight:800; }
@media (max-width:860px){ .fw-nav__countries { width:100%; } }
