/* ==========================================================================
   Brandini — feuille de style
   Charte : marine #121C30 (fond), marine doux #1E2541 (cartes),
   jaune #E6C034 (logo, accents, boutons), blanc (texte sur marine).
   Toujours du texte marine sur fond jaune.
   ========================================================================== */

:root {
  --navy: #121c30;
  --navy-soft: #1e2541;
  --navy-deep: #0d1424;
  --yellow: #e6c034;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, .72);
  --text-mute: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .12);
  --wa: #25d366;

  --font-display: "Comfortaa", "Quicksand", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

html[lang="ar"] {
  --font-display: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--yellow); color: var(--navy); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.12; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.35; letter-spacing: 0; }
.display { font-size: clamp(38px, 5.6vw, 72px); }
.h2 { font-size: clamp(30px, 3.8vw, 48px); }
.h3 { font-size: clamp(20px, 1.9vw, 24px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-soft); max-width: 56ch; margin: 0; }
em, .hl { font-style: normal; color: var(--yellow); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); border-radius: 2px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid var(--yellow);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--white); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow, html[dir="rtl"] a:hover > .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 28, 48, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--yellow); flex: none; }
.logo .logo-mark { height: 48px; width: auto; }
.logo .logo-word { height: 17px; width: auto; }
.nav-links { display: flex; gap: clamp(14px, 1.8vw, 28px); list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav-links a { position: relative; padding: 6px 0; color: var(--text-soft); transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--yellow); border-radius: 2px; }
.nav-links .nav-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-soft); line-height: 1; }
.lang-switch a[data-lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 14px; }
.lang-switch a.on { background: var(--yellow); color: var(--navy); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; position: relative; }
.menu-toggle span { position: absolute; inset-inline: 13px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Accroche ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); }
.hero .container { position: relative; z-index: 1; }
.hero-logo { width: clamp(150px, 16vw, 210px); color: var(--yellow); margin-bottom: 36px; }
.hero-logo svg { width: 100%; height: auto; display: block; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }

/* Décoration statique : la ligne jaune du logo */
.deco-line { position: absolute; inset-inline-end: -4%; top: 50%; transform: translateY(-50%); width: clamp(280px, 38vw, 560px); color: var(--yellow); opacity: .14; pointer-events: none; }
.deco-line svg { width: 100%; height: auto; display: block; }
html[dir="rtl"] .deco-line { transform: translateY(-50%) scaleX(-1); }

/* ---------- Bloc « à propos » ---------- */
.about { background: var(--navy-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-grid p { margin: 0 0 18px; color: var(--text-soft); font-size: 17px; }
.about-grid p.big { color: var(--white); font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.45; font-weight: 700; }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; background: var(--navy-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, transform .3s var(--ease); }
.card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--yellow); }
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.6; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); }
.card-link { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--yellow); display: inline-flex; gap: 8px; align-items: center; }
.card.card-yellow { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.card.card-yellow p, .card.card-yellow .card-num { color: rgba(18, 28, 48, .78); }
.card.card-yellow .card-link { color: var(--navy); }
.card.card-yellow:hover { border-color: var(--white); }
.more-row { margin-top: 32px; }

/* ---------- Bande jaune ---------- */
.band-yellow { background: var(--yellow); color: var(--navy); }
.band-yellow .eyebrow { color: var(--navy); }
.band-yellow .eyebrow::before { background: var(--navy); }
.band-yellow .lead { color: rgba(18, 28, 48, .8); }
.band-yellow em { color: var(--navy); }
.band-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 4.6vw, 60px); max-width: 18ch; margin: 0 auto; }
.cta p { margin: 18px auto 30px; max-width: 52ch; color: rgba(18, 28, 48, .8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Références ---------- */
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.refs.three { grid-template-columns: repeat(3, 1fr); }
.ref { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 170px; padding: 24px; border-radius: var(--radius); background: var(--navy-soft); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.ref:hover { border-color: var(--yellow); transform: translateY(-3px); }
.ref-mono { width: 46px; height: 46px; border-radius: 14px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.ref h3 { font-size: 19px; }
.ref span { font-size: 13.5px; color: var(--text-mute); }

/* ---------- Chiffres (statiques) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding-top: 30px; padding-inline: 0 22px; }
.stat + .stat { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; color: var(--yellow); line-height: 1.05; white-space: nowrap; }
.stat strong small { font-size: .42em; color: var(--white); margin-inline-start: 4px; }
.stat span { display: block; margin-top: 8px; color: var(--text-soft); font-size: 14.5px; line-height: 1.5; }
.sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }
.sectors-label { font-size: 14px; color: var(--text-mute); }
.sectors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sectors li { font-size: 13.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--navy-soft); border: 1px solid var(--line); }

/* ---------- Manifeste ---------- */
.manifesto { padding-top: 0; }
.manifesto blockquote { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.35; max-width: 26ch; }
.manifesto cite { display: block; margin-top: 22px; font-style: normal; color: var(--text-mute); font-size: 15px; }

/* ---------- Consulting ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.format { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-radius: var(--radius); background: var(--navy-soft); border: 1px solid var(--line); }
.format-dur { font-size: 14px; font-weight: 700; color: var(--yellow); }
.format h3 { font-size: 23px; }
.format p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.format ul { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.format li { position: relative; padding-inline-start: 24px; }
.format li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--yellow); }
.format .btn { margin-top: auto; }
.format.recommended { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.format.recommended p, .format.recommended .format-dur { color: rgba(18, 28, 48, .8); }
.format.recommended li::before { border-color: var(--navy); }
.format-badge { position: absolute; top: -13px; inset-inline-start: 26px; background: var(--navy); color: var(--yellow); font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--yellow); }

/* ---------- Méthode + engagements ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 26px 24px; border-radius: var(--radius); background: var(--navy-soft); border: 1px solid var(--line); }
.step .n { display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--yellow); margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-soft); font-size: 15px; }
.commitments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.commitment { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.c-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--navy); margin-bottom: 16px; }
.c-icon svg { width: 20px; height: 20px; }
.commitment h3 { font-size: 17px; margin-bottom: 6px; }
.commitment p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* ---------- Agence ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--navy-soft); border: 1px solid var(--line); }
.mv-card.yellow { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.mv-card .eyebrow { margin-bottom: 14px; }
.mv-card.yellow .eyebrow { color: var(--navy); }
.mv-card.yellow .eyebrow::before { background: var(--navy); }
.mv-card p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; }
.objectives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.objective { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.objective .n { font-family: var(--font-display); font-weight: 700; color: var(--yellow); font-size: 15px; }
.objective h3 { font-size: 22px; margin: 14px 0 10px; }
.objective p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline: 0; top: 8px; height: 2px; background: var(--line); }
.tl-item { position: relative; padding-top: 34px; }
.tl-dot { position: absolute; top: 0; inset-inline-start: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 2px solid var(--yellow); }
.tl-item.key .tl-dot { background: var(--yellow); }
.tl-year { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--yellow); }
.tl-item h3 { font-size: 17px; margin: 8px 0 6px; }
.tl-item p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

.founder-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.founder-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(26px, 3.4vw, 38px); border-radius: 26px; background: var(--navy-soft); border: 1px solid var(--line); }
.founder-card.fc-yellow { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.fc-top { display: flex; align-items: center; gap: 20px; }
.fc-photo { flex: none; width: 112px; height: 112px; border-radius: 50%; padding: 4px; background: var(--yellow); }
.fc-yellow .fc-photo { background: var(--navy); }
.fc-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fc-id h3 { font-size: clamp(26px, 2.8vw, 34px); }
.fc-role { display: block; margin-top: 6px; font-size: 14.5px; font-weight: 700; opacity: .85; }
.fc-flags { display: block; margin-top: 10px; }
.fc-bio { margin: 0; font-size: 16px; line-height: 1.6; opacity: .9; }
.fc-track { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.fc-yellow .fc-track { border-top-color: rgba(18, 28, 48, .2); }
.fc-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; color: var(--yellow); }
html[lang="ar"] .fc-label { letter-spacing: 0; font-size: 14px; }
.fc-yellow .fc-label { color: var(--navy); }
.fc-track ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.fc-track li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); }
.fc-yellow .fc-track li { border-color: rgba(18, 28, 48, .25); }
.fc-li { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: var(--white); color: #0a66c2; font-size: 14px; font-weight: 700; }
.fc-li svg { width: 16px; height: 16px; }
.fc-yellow .fc-li { background: var(--navy); color: var(--white); }

.crew { margin-top: 48px; }
.crew-title { font-size: 22px; margin-bottom: 20px; }
.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.crew-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--navy-soft); border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.crew-card:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.crew-photo { width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: var(--yellow); transition: background .3s; }
.crew-card:hover .crew-photo { background: var(--navy); }
.crew-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.crew-info h4 { font-size: 18px; }
.crew-role { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--yellow); }
.crew-card:hover .crew-role { color: var(--navy); }
.crew-flags { display: block; margin-top: 8px; }
.crew-bio { margin: 0; font-size: 14.5px; color: var(--text-soft); }
.crew-card:hover .crew-bio { color: rgba(18, 28, 48, .8); }
.crew-li { position: absolute; top: 18px; inset-inline-end: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: #0a66c2; }
.crew-li svg { width: 16px; height: 16px; }
.crew-card:hover .crew-li { background: var(--navy); color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info h3 { font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 32px 0 12px; }
html[lang="ar"] .contact-info h3 { letter-spacing: 0; font-size: 15px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-lines a { display: inline-flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 700; }
.contact-lines a:hover { color: var(--yellow); }
.contact-lines small { color: var(--text-mute); font-size: 14px; font-weight: 500; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.wa-cards { display: grid; gap: 10px; }
.wa-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--navy-soft); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.wa-card:hover { border-color: var(--yellow); }
.wa-avatar { flex: none; width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background: var(--yellow); }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-card .who { flex: 1; min-width: 0; line-height: 1.35; }
.wa-card .who strong { display: flex; align-items: center; font-size: 16px; }
.wa-card .who > span { display: block; font-size: 13.5px; color: var(--text-soft); }
.cc-actions { flex: none; display: flex; gap: 8px; }
.cc-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .25s var(--ease); }
.cc-btn:hover { transform: scale(1.06); }
.cc-btn svg { width: 19px; height: 19px; }
.cc-wa { background: var(--wa); }
.cc-li { background: #0a66c2; }

.form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: 26px; background: var(--navy-soft); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--text-soft); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--white); background: var(--navy); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] .field select { background-position: 14px 50%, 20px 50%; }
.field select option, .field select optgroup { background: var(--navy); color: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(230, 192, 52, .25); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #7ee2a4; }
.form-status.err { color: #ff9d8f; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); padding: 72px 0 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-top .logo .logo-mark { height: 56px; }
.footer-top .logo .logo-word { height: 20px; }
.footer-top p { color: var(--text-soft); max-width: 34ch; margin: 18px 0 0; font-size: 15px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 0 0 16px; }
html[lang="ar"] .footer-col h4 { letter-spacing: 0; font-size: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer-col a { color: var(--text-soft); }
.footer-col a:hover { color: var(--white); }
.footer-big { margin: 44px 0 12px; color: rgba(230, 192, 52, .1); }
.footer-word { display: block; width: 100%; height: auto; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 18px; font-size: 13.5px; color: var(--text-mute); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- WhatsApp flottant ---------- */
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; }
.wa-float-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.wa-float-btn:hover { transform: scale(1.06); }
.wa-float-btn svg { width: 28px; height: 28px; }
.wa-menu { position: absolute; inset-inline-end: 0; bottom: 72px; width: min(320px, calc(100vw - 40px)); padding: 10px; border-radius: 20px; background: var(--navy-soft); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.wa-float.open .wa-menu { opacity: 1; visibility: visible; transform: none; }
.wa-menu p { margin: 6px 10px 10px; font-size: 14px; color: var(--text-soft); }
.wa-menu .wa-card { border-color: transparent; background: none; }
.wa-menu .wa-card:hover { background: var(--navy); border-color: var(--line); }
.wa-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.wa-icon svg { width: 18px; height: 18px; }
.menu-open .wa-float { display: none; }

/* ---------- Drapeaux ---------- */
.flags { display: inline-flex; gap: 5px; vertical-align: middle; margin-inline-start: 6px; }
.flag { width: 21px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); display: block; }
.fc-flags .flags, .crew-flags .flags { margin: 0; }
.fc-flags .flag { width: 24px; height: 16px; }

/* ---------- Media Hub ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.hub-grid .hub-card.featured { grid-column: span 2; }
.hub-grid.three .hub-card.featured { grid-column: auto; }
.hub-card { display: flex; flex-direction: column; }
.hub-card-body { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hub-card-meta { font-size: 13px; color: var(--text-mute); font-weight: 600; }
.hub-card h3 { font-size: 20px; line-height: 1.3; }
.hub-card p { margin: 0; font-size: 15px; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hub-card-link { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--yellow); }
.hub-card.featured h3 { font-size: 26px; }
.hub-cover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); transition: border-color .3s; }
.hub-card:hover .hub-cover { border-color: var(--yellow); }
.hub-cover.has-img { padding: 0; }
.hub-cover.has-img img { width: 100%; height: 100%; object-fit: cover; }
.tone-0 { background: var(--navy-soft); color: var(--white); }
.tone-1 { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.tone-2 { background: var(--navy-deep); color: var(--white); }
.tone-2 .hub-cover-title { color: var(--yellow); }
.hub-cover-cat { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid currentColor; }
.hub-cover-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.25; max-width: 92%; }
.hub-cover.big .hub-cover-title { font-size: clamp(24px, 3.2vw, 42px); max-width: 80%; }
.hub-cover-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; opacity: .85; }
.hub-mark { width: 22px; height: auto; }
.hub-cover.big { aspect-ratio: 21 / 9; padding: clamp(24px, 4vw, 48px); }
.hub-cover.big .hub-mark { width: 32px; }
html[lang="fr"] .lang-en, html[lang="en"] .lang-fr, html[lang="ar"] .lang-fr, html:not([lang="ar"]) .lang-ar, html[lang="ar"] .has-ar > .lang-en { display: none !important; }

.article-narrow { max-width: 780px; }
.article-wide { max-width: 1100px; }
.article-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.article-back { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-soft); margin-bottom: 24px; }
.article-back:hover { color: var(--yellow); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.article-tag { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--navy); }
.article-tag.ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.article-title { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.15; }
.article-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-soft); margin: 20px 0 0; }
.article-meta { font-size: 14px; color: var(--text-mute); margin: 16px 0 0; }
.article-body { padding: clamp(36px, 5vw, 64px) 0 8px; font-size: 18px; line-height: 1.8; color: rgba(255, 255, 255, .88); }
.article-body > * + * { margin-top: 1.1em; }
.article-body p { margin-bottom: 0; }
.article-body h2 { font-size: clamp(23px, 2.3vw, 30px); margin-top: 2em; color: var(--white); line-height: 1.3; }
.article-body h3 { font-size: 20px; margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-inline-start: 1.2em; margin-bottom: 0; }
.article-body li + li { margin-top: .5em; }
.article-body li::marker { color: var(--yellow); }
.article-body a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.article-body sup { font-size: .62em; line-height: 0; }
.article-body sup a { text-decoration: none; font-weight: 700; }
.article-body blockquote { margin: 1.6em 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--yellow); font-family: var(--font-display); font-size: 21px; }
.stat-callout { margin: 1.8em 0 !important; padding: 26px 28px; border-radius: var(--radius); background: var(--yellow); color: var(--navy); display: flex; align-items: center; gap: 24px; }
.stat-callout strong { flex: none; font-family: var(--font-display); font-size: clamp(38px, 4.6vw, 56px); font-weight: 700; line-height: 1; }
.stat-callout span { font-size: 16px; line-height: 1.5; color: rgba(18, 28, 48, .85); }
.stat-callout a { color: var(--navy); }
.article-sources { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.article-sources h2 { font-size: 18px; margin-bottom: 14px; }
.article-sources ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 10px; font-size: 14px; color: var(--text-soft); }
.article-sources li:target { color: var(--white); background: rgba(230, 192, 52, .18); border-radius: 4px; }
.src-pub { font-weight: 700; color: var(--white); }
.article-sources a { color: var(--yellow); word-break: break-word; }
.hub-related { padding-top: clamp(56px, 8vw, 100px); }

/* ---------- Page légale ---------- */
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p { color: var(--text-soft); max-width: 75ch; }
.legal a { color: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .nav-right .btn { display: none; } }
@media (max-width: 1000px) {
  .cards, .refs, .refs.three { grid-template-columns: repeat(2, 1fr); }
  .process, .commitments, .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .timeline::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 920px) {
  :root { --header-h: 70px; }
  .nav-links { position: absolute; top: 100%; inset-inline: 0; height: calc(100dvh - var(--header-h)); flex-direction: column; gap: 0; padding: 18px var(--gutter); background: var(--navy); font-family: var(--font-display); font-size: 24px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 0; color: var(--white); }
  .nav-links a.active { color: var(--yellow); }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta { display: block; border: 0; margin-top: 22px; }
  .nav-links .nav-cta a { text-align: center; padding: 16px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-family: var(--font-body); font-size: 16px; font-weight: 700; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-toggle { display: block; }
  .logo .logo-mark { height: 44px; }
  .logo .logo-word { height: 14px; }
  .section-head, .about-grid, .contact-grid, .mv, .band-inner { grid-template-columns: 1fr; }
  .formats, .founder-cards, .objectives { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .cards, .refs, .refs.three, .process, .commitments, .crew-grid, .hub-grid { grid-template-columns: 1fr; }
  .hub-grid .hub-card.featured { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-top > :last-child { grid-column: 1 / -1; }
  .lang-switch a { padding: 6px 8px; }
  .logo .logo-word { display: none; }
  .hero-logo { width: 140px; margin-bottom: 26px; }
  .deco-line { width: 260px; opacity: .1; inset-inline-end: -20%; }
  .fc-photo { width: 84px; height: 84px; }
  .crew-card { display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; align-items: center; }
  .crew-photo { width: 84px; height: 84px; }
  .crew-bio { grid-column: 1 / -1; }
  .stat-callout { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hub-cover.big { aspect-ratio: 4 / 3; }
  .article-body { font-size: 17px; }
  .wa-float { inset-inline-end: 14px; bottom: 14px; }
  .wa-float-btn { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   Bouton thème + thème clair (fond blanc, texte marine, accents jaunes)
   ========================================================================== */
.theme-toggle { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--yellow); display: grid; place-items: center; overflow: hidden; flex: none; }
.theme-toggle:hover { border-color: var(--yellow); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; transition: transform .4s var(--ease), opacity .3s; }
.theme-toggle .ico-moon { opacity: 0; transform: translateY(24px); }
html[data-theme="light"] .theme-toggle { color: var(--navy); }
html[data-theme="light"] .theme-toggle .ico-sun { opacity: 0; transform: translateY(-24px); }
html[data-theme="light"] .theme-toggle .ico-moon { opacity: 1; transform: none; }

html[data-theme="light"] {
  --text-soft: rgba(18, 28, 48, .72);
  --text-mute: rgba(18, 28, 48, .52);
  --line: rgba(18, 28, 48, .13);
}
html[data-theme="light"] body { background: #ffffff; color: var(--navy); }
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, .94); }
html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .nav-links a.active { color: var(--navy); }
html[data-theme="light"] .menu-toggle span { background: var(--navy); }
html[data-theme="light"] .nav-links { background: #ffffff; }
html[data-theme="light"] .nav-links a { color: var(--navy); }

/* Logo bicolore en clair : haut jaune, reste marine */
html[data-theme="light"] .site-header .logo, html[data-theme="light"] .hero-logo { color: var(--navy); }
html[data-theme="light"] .lg-top { fill: var(--yellow); }

/* Accents jaunes illisibles sur blanc → marine (+ soulignement jaune pour les mots clés) */
html[data-theme="light"] em, html[data-theme="light"] .hl { color: var(--navy); background: linear-gradient(transparent 62%, rgba(230, 192, 52, .55) 62%, rgba(230, 192, 52, .55) 92%, transparent 92%); }
html[data-theme="light"] .band-yellow em, html[data-theme="light"] .site-footer em { background: none; }
html[data-theme="light"] .eyebrow { color: var(--navy); }
html[data-theme="light"] .band-yellow .eyebrow { color: var(--navy); }
html[data-theme="light"] .stat strong, html[data-theme="light"] .tl-year, html[data-theme="light"] .card-num,
html[data-theme="light"] .step .n, html[data-theme="light"] .objective .n, html[data-theme="light"] .format-dur,
html[data-theme="light"] .crew-role, html[data-theme="light"] .card-link, html[data-theme="light"] .hub-card-link,
html[data-theme="light"] .contact-info h3, html[data-theme="light"] .article-body a, html[data-theme="light"] .article-sources a,
html[data-theme="light"] .legal a, html[data-theme="light"] .article-back:hover { color: var(--navy); }
html[data-theme="light"] .stat strong small { color: var(--navy); }
html[data-theme="light"] .format.recommended .format-dur { color: rgba(18, 28, 48, .8); }

/* Surfaces */
html[data-theme="light"] .about { background: rgba(18, 28, 48, .035); }
html[data-theme="light"] .card, html[data-theme="light"] .ref, html[data-theme="light"] .format:not(.recommended),
html[data-theme="light"] .step, html[data-theme="light"] .mv-card:not(.yellow), html[data-theme="light"] .founder-card:not(.fc-yellow),
html[data-theme="light"] .crew-card, html[data-theme="light"] .wa-card, html[data-theme="light"] .form,
html[data-theme="light"] .sectors li, html[data-theme="light"] .wa-menu {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 14px 34px -26px rgba(18, 28, 48, .45);
}
html[data-theme="light"] .card.card-yellow { background: var(--yellow); }
html[data-theme="light"] .crew-card:hover { background: var(--yellow); }
html[data-theme="light"] .founder-card:not(.fc-yellow) .fc-track { border-top-color: var(--line); }
html[data-theme="light"] .founder-card:not(.fc-yellow) .fc-track li { border-color: var(--line); }
html[data-theme="light"] .founder-card:not(.fc-yellow) .fc-label { color: var(--navy); }
html[data-theme="light"] .fc-li, html[data-theme="light"] .crew-li { background: var(--navy); color: #ffffff; }
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea { background: #ffffff; color: var(--navy); }
html[data-theme="light"] .field select option, html[data-theme="light"] .field select optgroup { background: #ffffff; color: var(--navy); }
html[data-theme="light"] .btn-ghost { color: var(--navy); border-color: rgba(18, 28, 48, .3); }
html[data-theme="light"] .btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--yellow); }
html[data-theme="light"] .btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #ffffff; }
html[data-theme="light"] .contact-lines a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); }
html[data-theme="light"] .wa-menu .wa-card:hover { background: rgba(18, 28, 48, .04); }
html[data-theme="light"] .tl-dot { background: #ffffff; }
html[data-theme="light"] .tl-item.key .tl-dot { background: var(--yellow); }
html[data-theme="light"] .flag { box-shadow: 0 0 0 1px rgba(18, 28, 48, .2); }
html[data-theme="light"] .deco-line { opacity: .22; }

/* Media Hub & articles */
html[data-theme="light"] .article-body { color: rgba(18, 28, 48, .9); }
html[data-theme="light"] .article-body h2 { color: var(--navy); }
html[data-theme="light"] .article-tag.ghost { color: var(--navy); }
html[data-theme="light"] .src-pub { color: var(--navy); }
html[data-theme="light"] .article-sources li:target { color: var(--navy); }
html[data-theme="light"] .hub-card:hover .hub-cover { border-color: var(--navy); }

@media (max-width: 640px) {
  .theme-toggle { width: 36px; height: 36px; }
  .nav-right { gap: 8px; }
}
html[data-theme="light"] .about-grid p.big { color: var(--navy); }
/* le pied de page reste marine : on lui rend ses couleurs claires */
html[data-theme="light"] .site-footer { --text-soft: rgba(255, 255, 255, .72); --text-mute: rgba(255, 255, 255, .5); --line: rgba(255, 255, 255, .12); color: #ffffff; }
html[data-theme="light"] .site-footer .logo { color: var(--yellow); }
