/* ==========================================================================
   FER-Mali — Design System & Custom CSS  (Mobile-First)
   Breakpoints: sm=640px  md=768px  lg=1024px  xl=1200px
   ========================================================================== */

:root {
  --navy:  #12294D;
  --navy2: #0B1B33;
  --navy3: #071224;
  --red:   #EC1C24;
  --yellow:#FCD116;
  --gold:  #D4A311;
  --green: #0DA153;
  --ink:   #111827;
  --ink2:  #374151;
  --grey:  #6B7280;
  --line:  #E5E7EB;
  --soft:  #F9FAFB;
  --sh:    0 10px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.10);
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Outfit", "Georgia", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .wrap { padding: 0 20px; } }
@media (min-width: 1024px) { .wrap { padding: 0 24px; } }

/* ── Top Mock Bar ────────────────────────────────────────────────────────── */
.mock { display: none; }
@media (min-width: 768px) {
  .mock { display: flex; background: #071224; color: #9CA3AF; font-size: 11px;
    padding: 6px 24px; gap: 15px; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08); }
  .mock b { color: var(--yellow); letter-spacing: 1px; }
}

/* ── Flash Marquee ───────────────────────────────────────────────────────── */
.flash { background: #EC1C24; color: #fff; display: flex; align-items: center;
  height: 36px; overflow: hidden; font-size: 12px; font-weight: 600;
  position: relative; z-index: 1001; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.flash .lb { background: #991B1B; color: #fff; padding: 0 14px; height: 100%;
  display: flex; align-items: center; font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.2px; font-weight: 800; white-space: nowrap; flex-shrink: 0;
  box-shadow: 5px 0 15px rgba(0,0,0,.3); }
.flash .track { display: flex; gap: 32px;
  animation: marquee 25s linear infinite; white-space: nowrap; }
.flash .track span::before { content: "•"; margin-right: 12px; opacity: .8; color: var(--yellow); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (min-width: 768px) {
  .flash { height: 38px; font-size: 13px; }
  .flash .lb { padding: 0 22px; font-size: 11px; letter-spacing: 1.5px; }
  .flash .track { gap: 40px; }
}

/* ── Utility Bar ─────────────────────────────────────────────────────────── */
.util { display: none; }
@media (min-width: 768px) {
  .util { display: block; background: var(--navy3); color: #9CA3AF;
    font-size: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .util .wrap { display: flex; justify-content: space-between; align-items: center; }
  .util .s { display: flex; gap: 15px; }
  .util a:hover { color: #fff; }
  .util .lang { color: var(--yellow); font-weight: 700; cursor: pointer; }
}

/* ── Header & Nav ────────────────────────────────────────────────────────── */
header#hd { background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000; transition: box-shadow .3s; }
header#hd.stuck { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
header#hd .wrap { display: flex; justify-content: space-between;
  align-items: center; height: 60px; }
@media (min-width: 768px) { header#hd .wrap { height: 72px; } }

.brand img { height: 40px; width: auto; }
@media (min-width: 768px) { .brand img { height: 50px; } }

/* Desktop nav — hidden on mobile */
nav.main { display: none; }
@media (min-width: 1024px) {
  nav.main { display: flex; gap: 6px; }
  nav.main a { padding: 8px 12px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink2);
    border-radius: 4px; transition: all .2s; cursor: pointer; position: relative;
    min-height: 44px; display: flex; align-items: center; }
  nav.main a:hover, nav.main a.on { color: var(--red); background: transparent; }
  nav.main a.on::after { content: ""; position: absolute; bottom: -20px;
    left: 0; right: 0; height: 3px; background: var(--red); }
}

/* CTA button — hidden on mobile (shown in mobile nav) */
.hbtn { display: none; }
@media (min-width: 1024px) {
  .hbtn { display: inline-block; background: var(--red); color: #fff;
    padding: 11px 20px; border-radius: 4px; font-size: 11.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.2px; transition: background .2s; }
  .hbtn:hover { background: #C5141B; }
}

/* ── Hamburger Button ────────────────────────────────────────────────────── */
#nav-toggle { display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; background: none; border: none;
  cursor: pointer; padding: 8px; border-radius: 4px; flex-shrink: 0;
  transition: background .2s; }
#nav-toggle:hover { background: var(--soft); }
#nav-toggle span { display: block; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s, opacity .3s, width .3s; width: 100%; }
#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { #nav-toggle { display: none; } }

/* ── Mobile Nav Overlay ──────────────────────────────────────────────────── */
#mobile-nav { position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  pointer-events: none; }
#mobile-nav.open { transform: translateX(0); pointer-events: all; }
#mobile-nav .mn-backdrop { position: absolute; inset: 0;
  background: rgba(7,18,36,.65); backdrop-filter: blur(3px); }
#mobile-nav .mn-panel { position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw); background: #fff; display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,.22); overflow-y: auto; }
#mobile-nav .mn-head { padding: 18px 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; }
#mobile-nav .mn-head .brand img { height: 38px; }
#mobile-nav .mn-close { width: 36px; height: 36px; border: 1px solid var(--line);
  border-radius: 50%; background: var(--soft); cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  color: var(--ink2); transition: background .2s; flex-shrink: 0; }
#mobile-nav .mn-close:hover { background: var(--line); }
#mobile-nav nav { flex: 1; padding: 10px 0; }
#mobile-nav nav a { display: flex; align-items: center; padding: 15px 24px;
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink2); border-bottom: 1px solid var(--line); cursor: pointer;
  transition: color .2s, background .2s; min-height: 54px; }
#mobile-nav nav a:last-child { border-bottom: none; }
#mobile-nav nav a:hover, #mobile-nav nav a.on { color: var(--red); background: #FFF5F5; }
#mobile-nav nav a.on { border-left: 4px solid var(--red); padding-left: 20px; }
#mobile-nav .mn-foot { padding: 20px; border-top: 1px solid var(--line);
  background: var(--soft); }
#mobile-nav .mn-foot a { display: block; width: 100%; text-align: center;
  background: var(--red); color: #fff; padding: 14px; border-radius: 4px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
#mobile-nav .mn-foot a:hover { background: #C5141B; }
@media (min-width: 1024px) { #mobile-nav { display: none; } }

/* ── Page Header (.pgh) ──────────────────────────────────────────────────── */
.pgh { background: var(--navy2); color: #fff; padding: 32px 0 36px; position: relative; }
.pgh::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66%); }
.pgh .bc { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: #94A3B8; margin-bottom: 8px; }
.pgh h1 { font-family: var(--serif); font-size: 26px; font-weight: 700;
  color: #fff; line-height: 1.2; }
@media (min-width: 768px) {
  .pgh { padding: 48px 0 52px; }
  .pgh h1 { font-size: 38px; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--navy2); color: #fff;
  padding: 40px 0 52px; overflow: hidden; }
.hero .bgsvg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero .veil { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,27,51,.4) 0%, rgba(11,27,51,.9) 100%); }
.hero .wrap { position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) {
  .hero { padding: 60px 0 80px; }
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
}

.kicker { font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--yellow); margin-bottom: 10px; }
@media (min-width: 640px) { .kicker { font-size: 12px; } }

.hero h1 { font-family: var(--serif); font-size: 28px; line-height: 1.2;
  font-weight: 700; margin-bottom: 14px; }
@media (min-width: 640px)  { .hero h1 { font-size: 34px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 44px; line-height: 1.15; margin-bottom: 16px; } }
.hero h1 span { color: var(--yellow); }

.hero .sub { font-size: 14px; color: #D1D5DB; line-height: 1.7; margin-bottom: 22px; }
@media (min-width: 640px) { .hero .sub { font-size: 16px; margin-bottom: 28px; } }

.hbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.b-red { background: var(--red); color: #fff; padding: 13px 20px; border-radius: 4px;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  display: inline-block; min-height: 44px; display: inline-flex; align-items: center; }
.b-red:hover { background: #C5141B; }
.b-gh { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2);
  padding: 13px 20px; border-radius: 4px; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px; display: inline-flex;
  align-items: center; min-height: 44px; cursor: pointer; }
.b-gh:hover { background: rgba(255,255,255,.2); }
@media (min-width: 640px) {
  .b-red, .b-gh { padding: 14px 26px; }
}

/* ── Solde Card ──────────────────────────────────────────────────────────── */
.svcard { background: #fff; color: var(--ink); border-radius: 8px;
  overflow: hidden; box-shadow: var(--sh); }
.svcard .h { background: var(--navy); color: #fff; padding: 16px 18px; }
.svcard .h b { display: block; font-size: 15px; font-family: var(--serif); }
.svcard .h span { font-size: 11px; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; }
.svcard .bd { padding: 18px; }

.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--grey); margin-bottom: 5px; }
.fld input { width: 100%; border: 1px solid var(--line); border-radius: 4px;
  padding: 12px; font-size: 14px; font-family: var(--sans);
  background: var(--soft); outline: none; min-height: 44px; }
.fld input:focus { border-color: var(--navy); background: #fff; }
.svcard button { width: 100%; background: var(--navy); color: #fff; border: none;
  padding: 14px; border-radius: 4px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase; cursor: pointer;
  font-family: var(--sans); min-height: 48px; }
.svcard button:hover { background: var(--navy2); }

.qlinks { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; }
.qlinks a { padding: 14px 6px; text-align: center; font-size: 10px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase; color: var(--navy);
  border-right: 1px solid var(--line); cursor: pointer;
  min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qlinks a:last-child { border-right: none; }
.qlinks a:hover { background: var(--soft); color: var(--red); }
.qlinks i { display: block; font-style: normal; font-size: 18px; margin-bottom: 4px; }

/* ── Slogan bar ──────────────────────────────────────────────────────────── */
.slog { background: var(--red); color: #fff; text-align: center;
  padding: 12px 16px; font-family: var(--serif);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
@media (min-width: 640px) { .slog { font-size: 15px; letter-spacing: 3.2px; padding: 15px; } }

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats { background: var(--navy); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }

.stat { padding: 28px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:nth-child(2n) { border-right: none; }
@media (min-width: 1024px) {
  .stat { padding: 40px 22px; }
  .stat:nth-child(2n)  { border-right: 1px solid rgba(255,255,255,.1); }
  .stat:last-child     { border-right: none; }
}
.stat .v { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1; }
@media (min-width: 768px) { .stat .v { font-size: 40px; } }
.stat .v em { font-style: normal; color: var(--yellow); font-size: 20px; }
@media (min-width: 768px) { .stat .v em { font-size: 25px; } }
.stat .l { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #8FA3BE; margin-top: 8px; }
@media (min-width: 768px) { .stat .l { font-size: 10.5px; letter-spacing: 1.8px; } }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 48px 0; }
@media (min-width: 768px) { section { padding: 64px 0; } }
@media (min-width: 1024px) { section { padding: 86px 0; } }

.sec-h { margin-bottom: 28px; }
@media (min-width: 768px) { .sec-h { margin-bottom: 42px; } }
.sec-h .ov { font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px; }
.sec-h .ov::before { content: ""; width: 20px; height: 2px; background: var(--red); }
@media (min-width: 640px) { .sec-h .ov { font-size: 10.5px; letter-spacing: 2.6px; } .sec-h .ov::before { width: 28px; } }
.sec-h h2 { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.2; }
@media (min-width: 640px)  { .sec-h h2 { font-size: 28px; } }
@media (min-width: 1024px) { .sec-h h2 { font-size: 35px; } }
.sec-h p { font-size: 14px; color: var(--ink2); max-width: 700px; margin-top: 11px; line-height: 1.7; }
@media (min-width: 640px)  { .sec-h p { font-size: 15.5px; margin-top: 13px; } }
.sec-h.ctr { text-align: center; }
.sec-h.ctr .ov { justify-content: center; }
.sec-h.ctr p  { margin-left: auto; margin-right: auto; }
.alt { background: var(--soft); }

/* ── Words (Mots) grid ───────────────────────────────────────────────────── */
.words { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .words { grid-template-columns: 1fr 1fr; gap: 26px; } }

.word { background: #fff; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; align-items: center; gap: 0;
  padding: 20px; flex-direction: column; text-align: center; }
@media (min-width: 480px) { .word { flex-direction: row; text-align: left; padding: 24px 26px; } }
.word:hover { box-shadow: var(--sh); }
.word .avatar { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: #EEF3FA; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line);
  object-fit: cover; margin-bottom: 14px; }
@media (min-width: 480px) {
  .word .avatar { width: 100px; height: 100px; margin-bottom: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--line); }
}
@media (min-width: 1024px) { .word .avatar { width: 118px; height: 118px; } }
.word .c { padding: 0; }
@media (min-width: 480px) { .word .c { padding: 0 0 0 20px; } }
@media (min-width: 1024px) { .word .c { padding: 0 0 0 24px; } }
.word .role { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); font-weight: 700; }
.word h3 { font-size: 18px; color: var(--navy); margin: 6px 0 10px; }
@media (min-width: 640px) { .word h3 { font-size: 20px; } }
.word p { font-size: 13px; color: var(--ink2); line-height: 1.85; }
@media (min-width: 640px) { .word p { font-size: 14px; } }
.word .more { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy);
  border-bottom: 2px solid var(--yellow); padding-bottom: 3px; cursor: pointer; }
.word .more:hover { color: var(--red); border-color: var(--red); }

/* ── Miss grid ───────────────────────────────────────────────────────────── */
.miss { display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .miss { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .miss { grid-template-columns: repeat(3, 1fr); } }
.mi { background: #fff; padding: 24px 20px; }
@media (min-width: 768px) { .mi { padding: 32px 28px; } }
.mi:hover { background: var(--navy); }
.mi:hover h4, .mi:hover .ic { color: #fff; }
.mi:hover p { color: #B9C6D8; }
.mi .ic { font-size: 26px; color: var(--red); margin-bottom: 12px; font-style: normal; display: block; }
@media (min-width: 768px) { .mi .ic { font-size: 28px; margin-bottom: 14px; } }
.mi h4 { font-size: 16px; color: var(--navy); margin-bottom: 7px; }
@media (min-width: 768px) { .mi h4 { font-size: 18px; } }
.mi p { font-size: 13px; color: var(--ink2); line-height: 1.75; }
@media (min-width: 640px) { .mi p { font-size: 13.5px; } }

/* ── Payment cards (.pgrid) ──────────────────────────────────────────────── */
section.pay { background: var(--navy2); color: #fff; }
section.pay .sec-h h2 { color: #fff; }
section.pay .sec-h p { color: #A4B7D1; }

.pgrid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.pc { background: #102442; border: 1px solid #1D375F; border-radius: 8px;
  padding: 26px 20px; text-align: left; color: #fff; display: flex;
  flex-direction: column; transition: transform .2s, box-shadow .2s; }
@media (min-width: 768px) { .pc { padding: 32px 26px; } }
.pc:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.pc.feat { border: 1px solid #991D24; background: #132746; box-shadow: 0 0 25px rgba(236,28,36,.25); }

.pc .vis { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
@media (min-width: 768px) { .pc .vis { height: 120px; margin-bottom: 20px; } }
.pc .tagl { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 8px; }
.pc h4 { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 10px; }
@media (min-width: 768px) { .pc h4 { font-size: 24px; margin-bottom: 12px; } }
.pc p { font-size: 13px; color: #A4B7D1; line-height: 1.7; margin-bottom: 18px; }
@media (min-width: 640px) { .pc p { font-size: 13.5px; margin-bottom: 20px; } }
.pc ul { list-style: none; margin-bottom: 22px; flex: 1;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
@media (min-width: 640px) { .pc ul { margin-bottom: 28px; padding-top: 16px; } }
.pc ul li { font-size: 12px; color: #C5D4E8; margin-bottom: 9px; line-height: 1.5; }
@media (min-width: 640px) { .pc ul li { font-size: 12.5px; margin-bottom: 10px; } }
.pc .act { display: block; width: 100%; text-align: center; padding: 12px;
  border: 1px solid #284775; border-radius: 4px; color: #fff; font-size: 11px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-top: auto; transition: all .2s; cursor: pointer; min-height: 44px;
  display: flex; align-items: center; justify-content: center; }
.pc .act:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pc.feat .act { background: var(--red); border-color: var(--red); }
.pc.feat .act:hover { background: #C5141B; }

/* ── Opérateurs ──────────────────────────────────────────────────────────── */
.ops { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .ops { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1024px) { .ops { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; } }
.op { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
@media (min-width: 768px) { .op { padding: 18px 22px; } }
.op .sq { width: 40px; height: 40px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; font-weight: 800;
  font-size: 14px; color: #fff; flex-shrink: 0; }
@media (min-width: 768px) { .op .sq { width: 44px; height: 44px; font-size: 15px; } }
.op b { display: block; font-family: var(--serif); font-size: 15px; color: #fff; margin-bottom: 2px; }
@media (min-width: 768px) { .op b { font-size: 16px; } }
.op span { font-size: 12px; color: #8FA3BE; }

/* ── 3D Badge ────────────────────────────────────────────────────────────── */
.badge3d { width: 160px; height: 96px; background: linear-gradient(135deg, #12294D, #1E3E6E);
  border-radius: 8px; border: 1px solid #3A5F95; box-shadow: 0 8px 20px rgba(0,0,0,.4);
  padding: 12px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .badge3d { width: 170px; height: 100px; } }
.badge3d .w { font-size: 11px; font-weight: 800; color: #fff; letter-spacing: 1.5px; }
.badge3d .t { font-size: 9px; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.badge3d .s { font-size: 8px; color: #8FA3BE; margin-top: 18px; text-transform: uppercase; }
.badge3d .wv { position: absolute; bottom: 10px; right: 12px; font-size: 14px; font-weight: bold; color: var(--yellow); }

/* ── Réalisations (Proofs) ───────────────────────────────────────────────── */
.proofs { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .proofs { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1024px) { .proofs { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.pr { border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s; }
.pr:hover { box-shadow: 0 12px 28px rgba(15,35,66,.12); }
.pr .ba { height: 180px; background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  position: relative; display: flex; overflow: hidden; }
@media (min-width: 640px) { .pr .ba { height: 200px; } }
.pr .ba::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0,
    rgba(255,255,255,.03) 10px, transparent 10px, transparent 20px);
  pointer-events: none; }
.pr .ba .b { flex: 1; background: rgba(180,140,80,.25); position: relative;
  border-right: 2px solid rgba(255,255,255,.3); display: flex; align-items: flex-end;
  padding: 10px; cursor: pointer;
  transition: flex .45s cubic-bezier(.25,1,.5,1), filter .35s ease; z-index: 1; }
.pr .ba .a { flex: 1; position: relative; display: flex; align-items: flex-end;
  justify-content: flex-end; padding: 10px; cursor: pointer;
  transition: flex .45s cubic-bezier(.25,1,.5,1), filter .35s ease; z-index: 1; }
.pr .ba .b:hover, .pr .ba .a:hover { flex: 9.5; z-index: 3; filter: brightness(1.08); }
.pr .ba:hover .b:not(:hover), .pr .ba:hover .a:not(:hover) { flex: 0.5; filter: brightness(.45) opacity(.7); }
.pr .ba span { background: rgba(15,35,66,.85); backdrop-filter: blur(4px); color: #fff;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2);
  white-space: nowrap; z-index: 4; transition: transform .2s; }
@media (min-width: 640px) { .pr .ba span { font-size: 9.5px; letter-spacing: 1.2px; padding: 5px 10px; } }
.pr .ba .b:hover span, .pr .ba .a:hover span { transform: scale(1.05);
  background: var(--navy); border-color: var(--gold, #FCD116); }
.pr .c { padding: 18px 16px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 768px) { .pr .c { padding: 22px 20px; } }
.pr .m { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--grey); margin-bottom: 7px; }
.pr h4 { font-family: var(--serif); font-size: 16px; color: var(--navy);
  margin-bottom: 8px; line-height: 1.3; }
@media (min-width: 768px) { .pr h4 { font-size: 18px; margin-bottom: 10px; } }
.pr p { font-size: 13px; color: var(--ink2); line-height: 1.7; margin-bottom: 15px; flex: 1; }
@media (min-width: 640px) { .pr p { font-size: 13.5px; margin-bottom: 18px; } }

.pill { display: inline-block; padding: 5px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; align-self: flex-start; }
.pill.p-i { background: #EBF8FF; color: #2B6CB0; border: 1px solid #BEE3F8; }
.pill.p-w { background: #FEFCBF; color: #744210; border: 1px solid #FEEBC8; }

.info { background: #EFF6FF; border-left: 4px solid #3B82F6; color: #1E40AF;
  padding: 14px 16px; border-radius: 4px; font-size: 13px; line-height: 1.7; margin-top: 22px; }
@media (min-width: 640px) { .info { padding: 16px 20px; font-size: 13.5px; margin-top: 26px; } }

/* ── News & Aside ────────────────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) { .two { grid-template-columns: 2fr 1fr; gap: 40px; } }

.news { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .news { grid-template-columns: 1fr 1fr; gap: 20px; } }

.nw { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s; }
.nw:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.nw .im { height: 140px; background: var(--navy2); position: relative;
  display: flex; align-items: flex-start; padding: 10px; }
@media (min-width: 640px) { .nw .im { height: 160px; padding: 12px; } }
.nw .im .cat { position: absolute; top: 10px; left: 10px; background: var(--red);
  color: #fff; padding: 3px 7px; font-size: 9px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase; border-radius: 2px; z-index: 2; }
@media (min-width: 640px) { .nw .im .cat { top: 12px; left: 12px; padding: 4px 8px; } }
.nw .im::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66%); z-index: 2; }
.nw .c { padding: 16px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 640px) { .nw .c { padding: 20px; } }
.nw .d { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--grey); margin-bottom: 7px; }
@media (min-width: 640px) { .nw .d { font-size: 10.5px; margin-bottom: 8px; } }
.nw h4 { font-family: var(--serif); font-size: 15px; color: var(--navy);
  margin-bottom: 8px; line-height: 1.35; font-weight: 700; }
@media (min-width: 640px) { .nw h4 { font-size: 17px; margin-bottom: 10px; } }
.nw p { font-size: 12.5px; color: var(--ink2); line-height: 1.65; }
@media (min-width: 640px) { .nw p { font-size: 13px; } }

/* Aside Column */
.aside { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
@media (min-width: 640px) { .aside { padding: 26px; } }
.aside h3 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--navy);
  margin-bottom: 14px; font-weight: 800; font-family: var(--sans);
  border-bottom: 2px solid var(--red); padding-bottom: 8px; }
@media (min-width: 640px) { .aside h3 { margin-bottom: 16px; } }
.ao { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .ao { padding-bottom: 14px; margin-bottom: 14px; } }
.ao:last-of-type { border-bottom: none; margin-bottom: 0; }
.ao .t { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 5px; line-height: 1.4; }
@media (min-width: 640px) { .ao .t { font-size: 13.5px; margin-bottom: 6px; } }
.ao .mt { display: flex; justify-content: space-between; font-size: 11px; color: var(--grey); flex-wrap: wrap; gap: 4px; }
.ao .mt b { color: var(--red); font-weight: 700; }
.dl { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .dl { gap: 14px; padding: 12px 0; } }
.dl:last-of-type { border-bottom: none; }
.dl .ic { background: #FEE2E2; color: var(--red); font-size: 9px; font-weight: 800;
  padding: 4px 6px; border-radius: 3px; letter-spacing: 1px; white-space: nowrap; }
.dl b { font-size: 13px; color: var(--navy); display: block; font-family: var(--sans); }
@media (min-width: 640px) { .dl b { font-size: 13.5px; } }
.dl span { font-size: 11px; color: var(--grey); }
.seeall { display: inline-block; margin-top: 12px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--red); cursor: pointer; }
.seeall:hover { text-decoration: underline; }

/* ── Tariff grid ─────────────────────────────────────────────────────────── */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 640px) { .tgrid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .tgrid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tc { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; text-align: center; }
.tc:hover { box-shadow: var(--sh); }
.tc .ill { height: 88px; background: var(--soft); display: flex; align-items: center;
  justify-content: center; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .tc .ill { height: 104px; } }
.tc .c { padding: 14px 12px; }
@media (min-width: 640px) { .tc .c { padding: 18px 16px; } }
.tc h4 { font-size: 13px; color: var(--navy); margin-bottom: 3px; }
@media (min-width: 640px) { .tc h4 { font-size: 15.5px; margin-bottom: 4px; } }
.tc .cat { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.tc .pr { font-family: var(--serif); font-size: 20px; color: var(--red); font-weight: 700;
  background: #FFF5F5; border: 1px solid #FED7D7; border-radius: 6px;
  padding: 5px 10px; margin: 10px auto 5px; display: block; width: 90%; text-align: center; }
@media (min-width: 640px) { .tc .pr { font-size: 26px; padding: 6px 16px; margin: 12px auto 6px; } }
.tc .un { font-size: 11px; color: var(--grey); margin-top: 5px; }

/* ── Exonérations ────────────────────────────────────────────────────────── */
.exo { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
@media (min-width: 640px) { .exo { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1024px) { .exo { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; } }
.ex { border: 1px solid var(--green); background: #F0FFF4; border-radius: 6px;
  padding: 18px 18px; display: flex; align-items: center; gap: 12px; }
@media (min-width: 640px) { .ex { padding: 20px 22px; gap: 14px; } }
.ex b { font-family: var(--serif); font-size: 16px; color: #0b6b39; display: block; }
@media (min-width: 640px) { .ex b { font-size: 17px; } }
.ex span { font-size: 12px; color: #2b6b48; }
@media (min-width: 640px) { .ex span { font-size: 12.5px; } }
.ex .ic { font-size: 24px; color: var(--green); }
@media (min-width: 640px) { .ex .ic { font-size: 26px; } }

/* ── Speech / Mot du Directeur ───────────────────────────────────────────── */
.speech { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 768px) { .speech { grid-template-columns: 260px 1fr; gap: 40px; } }
@media (min-width: 1024px) { .speech { grid-template-columns: 300px 1fr; gap: 44px; } }

.pf { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff;
  max-width: 260px; margin: 0 auto; }
@media (min-width: 768px) { .pf { max-width: none; margin: 0; } }
.pf .avatar-lg { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto; display: block;
  background: #EEF3FA; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--line); object-fit: cover; }
@media (min-width: 768px) {
  .pf .avatar-lg { width: 180px; height: 180px; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--line); }
}
@media (min-width: 1024px) { .pf .avatar-lg { width: 224px; height: 224px; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--line); } }
.pf .idc { padding: 18px; text-align: center; }
@media (min-width: 640px) { .pf .idc { padding: 22px; } }
.pf .idc b { display: block; font-family: var(--serif); font-size: 17px; color: var(--navy); }
@media (min-width: 640px) { .pf .idc b { font-size: 19px; } }
.pf .idc span { font-size: 12px; color: var(--grey); }
@media (min-width: 640px) { .pf .idc span { font-size: 12.5px; } }
.pf .idc .fl { height: 4px; width: 56px; margin: 12px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66%); }
@media (min-width: 640px) { .pf .idc .fl { width: 64px; margin-top: 14px; } }
.pull { font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--navy);
  border-left: 4px solid var(--red); padding-left: 16px; margin-bottom: 20px; }
@media (min-width: 640px) { .pull { font-size: 22px; padding-left: 20px; margin-bottom: 26px; } }
.speech .tx p { font-size: 14px; color: var(--ink2); line-height: 1.9; margin-bottom: 13px; }
@media (min-width: 640px) { .speech .tx p { font-size: 15.5px; margin-bottom: 15px; line-height: 1.95; } }

/* ── Table ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.st { border-collapse: collapse; width: 100%; font-size: 13px;
  border: 1px solid var(--line); margin-top: 14px; min-width: 480px; }
@media (min-width: 640px) { table.st { font-size: 14px; margin-top: 15px; } }
table.st th { background: var(--navy); color: #fff; padding: 11px 14px; text-align: left;
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; }
@media (min-width: 640px) { table.st th { padding: 13px 16px; font-size: 10.5px; } }
table.st td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { table.st td { padding: 12px 16px; } }
table.st tr:nth-child(even) td { background: var(--soft); }

/* ── Map Legend ──────────────────────────────────────────────────────────── */
.maplg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
  margin-top: 16px; font-size: 12px; color: var(--ink2); }
@media (min-width: 640px) { .maplg { grid-template-columns: repeat(3, 1fr); gap: 12px 18px; font-size: 13px; margin-top: 18px; } }
@media (min-width: 1024px) { .maplg { grid-template-columns: repeat(4, 1fr); gap: 14px 20px; } }
.maplg span { display: flex; align-items: center; gap: 8px; }
.maplg i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.maplg u { display: inline-block; width: 20px; height: 3px; border-radius: 2px; flex-shrink: 0; text-decoration: none; }
@media (min-width: 640px) { .maplg u { width: 24px; } }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.fbar { height: 4px; background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66%); }
footer { background: var(--navy3); color: #93A6C0; padding: 40px 0 0; font-size: 13px; }
@media (min-width: 768px) { footer { padding: 54px 0 0; font-size: 13.5px; } }
@media (min-width: 1024px) { footer { padding: 66px 0 0; } }

.fg { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
@media (min-width: 640px) { .fg { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1024px) { .fg { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 44px; padding-bottom: 44px; } }

footer img.fl { height: 38px; margin-bottom: 14px; }
@media (min-width: 768px) { footer img.fl { height: 44px; margin-bottom: 18px; } }
footer h5 { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: #fff; margin-bottom: 14px; font-weight: 700; font-family: var(--sans); }
@media (min-width: 640px) { footer h5 { margin-bottom: 18px; } }
footer ul { list-style: none; }
footer li { padding: 5px 0; }
footer a:hover { color: #fff; }

.nl input { width: 100%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px; padding: 12px; color: #fff; font-size: 13px; outline: none;
  font-family: var(--sans); margin-bottom: 10px; min-height: 44px; }
.nl button { width: 100%; background: var(--red); color: #fff; border: none;
  padding: 12px; border-radius: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer;
  font-family: var(--sans); min-height: 44px; }
.fbot { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  font-size: 11.5px; display: flex; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; flex-direction: column; text-align: center; }
@media (min-width: 640px) { .fbot { font-size: 12px; flex-direction: row; text-align: left; padding: 20px 0; } }

/* ── Pages show/hide ─────────────────────────────────────────────────────── */
.pages { display: none; }
.pages.on { display: block; }

/* ── FAQ Accordion ───────────────────────────────────────────────────────── */
.faq-accordion { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .faq-accordion { gap: 14px; } }
.faq-item { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px;
  overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item:hover { border-color: #CBD5E1; box-shadow: 0 4px 12px rgba(15,35,66,.06); }
.faq-item[open] { background: #FFF; border-color: var(--navy); box-shadow: 0 8px 24px rgba(15,35,66,.10); }
.faq-item summary { padding: 15px 18px; font-weight: 700; font-size: 14px; color: #0F2342;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; user-select: none; transition: color .2s; min-height: 54px; }
@media (min-width: 640px) { .faq-item summary { padding: 18px 24px; font-size: 16px; } }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--red); }
.faq-item .faq-icon { font-size: 20px; font-weight: 700; color: var(--red);
  transition: transform .3s cubic-bezier(.4,0,.2,1); display: inline-block;
  width: 24px; text-align: center; flex-shrink: 0; }
@media (min-width: 640px) { .faq-item .faq-icon { font-size: 22px; } }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item .faq-content { padding: 14px 18px 18px; font-size: 14px; color: #475569;
  line-height: 1.7; border-top: 1px dashed #E2E8F0; background: #fff;
  animation: fadeIn .3s ease-out; }
@media (min-width: 640px) { .faq-item .faq-content { padding: 16px 24px 22px; font-size: 14.5px; } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
