/* ============================================================
   TAGNON AFRICA — Feuille de style officielle
   Charte : Jaune #ffcd00 · Noir #000 · Gris #3c3c3b · #F4F6F8
   Typographie : Montserrat
   « L'Afrique aux standards du monde »
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --yellow: #ffcd00;
  --yellow-dark: #e6ad00;
  --black: #000000;
  --ink: #1a1a18;
  --graphite: #3c3c3b;
  --slate: #5d5d5b;
  --slate-2: #7c7c79;
  --mist: #F4F6F8;
  --mist-2: #eceff2;
  --line: #e4e6e9;
  --white: #ffffff;
  --max: 1200px;
  --radius: 6px;
  --radius-lg: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.07);
  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  font-weight: 400;
}

h1, h2, h3, h4 { font-family: var(--font); line-height: 1.16; color: var(--black); font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--slate); }
a { color: var(--graphite); text-decoration: none; transition: color .2s; }
a:hover { color: var(--black); }
img, svg { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--black); color: #cfcfcd; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #b4b4b1; }

.rule { width: 54px; height: 4px; background: var(--yellow); margin-bottom: 26px; }
.center .rule { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: var(--graphite); margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--yellow); }

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.85rem); margin-bottom: 22px; font-weight: 700; }
.section-lead { font-size: 1.16rem; color: var(--slate); max-width: 760px; line-height: 1.7; }
.section--dark .section-lead { color: #b4b4b1; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.lead-xl { font-size: 1.28rem; line-height: 1.6; color: var(--slate); font-weight: 400; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 32px; border-radius: 3px; font-family: var(--font);
  font-weight: 600; font-size: 0.95rem; letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s; cursor: pointer; border: none;
}
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--yellow-dark); color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--graphite); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--line { background: transparent; border: 1px solid var(--black); color: var(--black); }
.btn--line:hover { background: var(--black); color: #fff; }

/* ---------- En-tête / navigation ---------- */
.topbar { background: var(--black); color: #b4b4b1; font-size: .8rem; letter-spacing: .04em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { color: #b4b4b1; }
.topbar a:hover { color: #fff; }
.topbar .tagline { color: var(--yellow); font-weight: 600; font-style: italic; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.brand-logo--white { filter: none; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .92rem; padding: 9px 13px; border-radius: 3px; transition: color .2s, box-shadow .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-links a.active { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--black); }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: #fff; padding: 132px 0 140px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px;
  background:
    repeating-conic-gradient(from -38deg at 50% 50%, var(--yellow) 0deg 6deg, transparent 6deg 22deg);
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 29%, #000 46%, transparent 47%);
          mask: radial-gradient(circle, transparent 28%, #000 29%, #000 46%, transparent 47%);
  opacity: .16;
}
.hero .container { position: relative; z-index: 1; }
.hero .kicker { color: var(--yellow); font-weight: 600; font-style: italic; font-size: 1.12rem; margin-bottom: 20px; letter-spacing: .01em; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 3.9rem); margin-bottom: 26px; max-width: 880px; line-height: 1.08; }
.hero p { font-size: 1.2rem; color: #d2d2cf; max-width: 660px; margin-bottom: 38px; }
.hero .accent { color: var(--yellow); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero { background: var(--black); color: #fff; padding: 92px 0 78px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px;
  background: repeating-conic-gradient(from -38deg at 50% 50%, var(--yellow) 0deg 6deg, transparent 6deg 22deg);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 31%, #000 48%, transparent 49%);
          mask: radial-gradient(circle, transparent 30%, #000 31%, #000 48%, transparent 49%);
  opacity: .14;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 20px; max-width: 860px; }
.page-hero p { color: #c8c8c5; font-size: 1.16rem; max-width: 700px; }
.breadcrumb { font-size: .8rem; letter-spacing: .06em; color: #8d8d8a; margin-bottom: 22px; text-transform: uppercase; }
.breadcrumb a { color: #8d8d8a; }
.breadcrumb a:hover { color: var(--yellow); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--yellow); }
.card-num { font-size: .82rem; color: var(--graphite); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.card-icon {
  width: 54px; height: 54px; border-radius: 4px; background: var(--yellow);
  color: var(--black); display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; margin-bottom: 22px;
}
.card h3 { font-size: 1.28rem; margin-bottom: 13px; font-weight: 700; }
.card p { color: var(--slate); font-size: 1rem; }
.card .more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: .9rem; letter-spacing: .03em; color: var(--black); }
.card .more::after { content: " →"; transition: margin .2s; }
.card:hover .more::after { margin-left: 4px; }

/* Carte expertise (liste) */
.expertise { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.expertise > div { padding: 38px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.expertise > div:hover { background: var(--mist); }
.expertise > div:nth-child(2n) { border-right: none; }
.expertise h3 { font-size: 1.22rem; margin-bottom: 10px; font-weight: 700; }
.expertise .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); font-weight: 700; display: block; margin-bottom: 12px; }
.expertise .tag b { color: var(--yellow-dark); }
.expertise p { font-size: .98rem; }
.expertise a { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--black); }

/* ---------- Étapes (process) ---------- */
.steps { display: grid; gap: 0; border-left: 3px solid var(--line); counter-reset: step; }
.step { display: flex; gap: 26px; align-items: flex-start; padding: 26px 0 26px 38px; position: relative; }
.step::before { content: ""; position: absolute; left: -8px; top: 32px; width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff; }
.step-num { flex: 0 0 auto; font-size: 1.7rem; font-weight: 800; color: var(--yellow-dark); width: 54px; counter-increment: step; }
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h4 { font-size: 1.16rem; margin-bottom: 6px; font-weight: 700; }
.step p { color: var(--slate); font-size: .99rem; }
.section--dark .steps { border-left-color: #333; }
.section--dark .step::before { border-color: var(--black); }
.section--dark .step-num { color: var(--yellow); }

/* ---------- Listes à puces ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 15px; height: 8px;
  border-left: 3px solid var(--yellow-dark); border-bottom: 3px solid var(--yellow-dark); transform: rotate(-45deg);
}
.section--dark .checklist li { color: #d2d2cf; }
.section--dark .checklist li::before { border-color: var(--yellow); }

/* ---------- Normes (grille) ---------- */
.norms { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.norm { background: #fff; padding: 24px 26px; transition: background .2s; }
.norm:hover { background: var(--mist); }
.norm strong { display: block; font-size: 1.1rem; color: var(--black); margin-bottom: 5px; font-weight: 700; }
.norm span { font-size: .92rem; color: var(--slate); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 8px 18px; font-weight: 600; font-size: .88rem; color: var(--black); }
.badge--solid { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat { text-align: left; padding: 0 28px; border-left: 1px solid #333; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat strong { display: block; font-size: 3rem; color: var(--yellow); font-weight: 800; line-height: 1; margin-bottom: 12px; }
.stat span { color: #b4b4b1; font-size: .95rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wider-left { grid-template-columns: 1.15fr .85fr; }
.panel {
  background: var(--black); border-radius: var(--radius); min-height: 320px; color: #fff;
  padding: 48px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
  border-left: 5px solid var(--yellow);
}
.panel::after { content: "\201D"; position: absolute; right: 30px; top: 8px; font-size: 9rem; color: rgba(255,205,0,.18); line-height: 1; font-weight: 800; }
.panel blockquote { font-size: 1.5rem; font-style: italic; line-height: 1.42; position: relative; z-index: 1; color: #fff; font-weight: 400; }
.panel cite { display: block; margin-top: 22px; font-style: normal; font-size: .9rem; letter-spacing: .04em; color: var(--yellow); font-weight: 600; }

.panel--stats { background: var(--mist); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid var(--yellow); display: grid; gap: 28px; align-content: center; }
.panel--stats .pstat { border-left: 3px solid var(--yellow); padding-left: 20px; }
.panel--stats .pstat strong { display: block; font-size: 2.4rem; color: var(--black); line-height: 1; font-weight: 800; }
.panel--stats .pstat span { color: var(--slate); font-size: .96rem; }
.panel--stats::after { display: none; }

/* ---------- Points de vue ---------- */
.insight { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.insight:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.insight .ribbon { height: 6px; background: var(--yellow); }
.insight .body { padding: 30px 30px 34px; }
.insight .meta { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); font-weight: 700; margin-bottom: 14px; }
.insight h3 { font-size: 1.2rem; margin-bottom: 12px; font-weight: 700; }
.insight p { font-size: .98rem; }

/* ---------- Implantations ---------- */
.offices { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; border-top: 4px solid var(--yellow); }
.office h3 { font-size: 1.25rem; margin-bottom: 4px; font-weight: 700; }
.office .country { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); font-weight: 700; margin-bottom: 16px; }
.office p { font-size: .96rem; margin-bottom: 10px; color: var(--slate); }
.office a { color: var(--black); font-weight: 500; }
.office .lbl { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); font-weight: 700; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq summary { font-size: 1.12rem; color: var(--black); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow-dark); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 14px; color: var(--slate); }

/* ---------- CTA bande ---------- */
.cta-band { background: var(--yellow); color: var(--black); border-radius: var(--radius-lg); padding: 60px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 260px; height: 260px; border-radius: 50%; border: 16px solid rgba(0,0,0,.06); }
.cta-band h2 { color: var(--black); font-size: 2rem; margin-bottom: 8px; font-weight: 700; }
.cta-band p { color: #5a4f15; max-width: 560px; }
.cta-band .cta-text { position: relative; z-index: 1; }

/* ---------- Formulaire ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 7px; color: var(--black); letter-spacing: .02em; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow-dark); box-shadow: 0 0 0 3px rgba(255,205,0,.25); }
.field textarea { min-height: 150px; resize: vertical; }

.contact-cards { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 4px; background: var(--yellow); color: var(--black); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-item h4 { font-size: 1.05rem; margin-bottom: 3px; font-weight: 700; }
.contact-item p, .contact-item a { color: var(--slate); font-size: .98rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--black); color: #b4b4b1; padding: 76px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #b4b4b1; font-size: .94rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand .brand-logo { height: 52px; margin-bottom: 8px; }
.footer-brand .fslogan { color: var(--yellow); font-style: italic; font-weight: 600; margin: 8px 0 10px; }
.footer-brand p { font-size: .94rem; max-width: 320px; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid #2a2a2a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }
.footer-bottom span { color: #8d8d8a; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .footer-top, .offices, .norms { grid-template-columns: 1fr; }
  .split.wider-left { grid-template-columns: 1fr; }
  .norms { gap: 1px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 36px 0; }
  .stat { padding-left: 28px; }
  .stat:first-child { padding-left: 28px; }
  .footer-top { gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .expertise { grid-template-columns: 1fr; }
  .expertise > div { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .nav-links { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 28px 22px; border-bottom: 1px solid var(--line); gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a.active { box-shadow: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: block; }
  .cta-band { padding: 42px 30px; }
  .hero { padding: 92px 0 100px; }
  .panel { padding: 36px; }
}
