/*
=========================================================
MAMADOU FALL — STYLE.CSS GLOBAL
V1 CONSOLIDÉE
- One-page premium
- Formulaire / anti-spam
- Pages légales
- Responsive mobile-first
- Accessibilité
- Réduction des animations
=========================================================
*/

/* =========================================================
   01 — VARIABLES / RESET
   ========================================================= */

:root {
    --ink: #0b1220;
    --muted: #667085;
    --line: #e7eaf0;
    --paper: #fbfcfe;
    --accent: #1f6feb;
    --accent-dark: #1558bd;
    --soft: #eef5ff;
    --white: #ffffff;

    --success: #35b77a;

    --radius: 22px;
    --max: 1180px;

    --shadow: 0 18px 60px rgba(11, 18, 32, 0.08);
    --shadow-soft: 0 12px 50px rgba(11, 18, 32, 0.05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
}

h1 {
    max-width: 750px;
    margin-bottom: 25px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.01;
    letter-spacing: -0.055em;
    font-weight: 780;
}

h1 em,
h2 span {
    font-style: normal;
    color: var(--accent);
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
    margin-inline: auto;
}

.section {
    padding: 120px 0;
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    left: 15px;
    top: -100px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    top: 15px;
}


/* =========================================================
   02 — HEADER / NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(251, 252, 254, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231, 234, 240, 0.8);
}

.nav-wrap {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.brand strong {
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #465064;
    font-size: 13px;
}

.nav a {
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--accent);
}

.nav-cta {
    padding: 11px 16px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--ink);
    color: #fff !important;
}

.mobile-cta {
    display: none;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   03 — HERO
   ========================================================= */

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    padding-top: 86px;
    padding-bottom: 34px;
}

.hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 20px;
    color: #687386;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-lead {
    max-width: 680px;
    color: #596477;
    font-size: 18px;
    line-height: 1.7;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 36px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--ink);
    color: #fff;
}

.btn-primary:hover {
    background: #182337;
}

.btn-secondary {
    border-color: #d6dbe4;
    background: #fff;
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--ink);
}

.proof-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #7a8495;
    font-size: 11px;
    font-weight: 650;
}

.proof-row i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b9bfca;
}

.hero-visual {
    position: relative;
    min-height: 530px;
    display: grid;
    place-items: center;
}

.portrait-frame {
    position: relative;
    width: min(380px, 78%);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 190px 190px 28px 28px;
    background: #e8edf4;
    box-shadow: var(--shadow);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-glow {
    position: absolute;
    z-index: 1;
    inset: auto -20% -28% -20%;
    height: 48%;
    background: radial-gradient(
        circle,
        rgba(31, 111, 235, 0.22),
        transparent 65%
    );
    pointer-events: none;
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(11, 18, 32, 0.09);
    font-size: 12px;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.card-one {
    top: 13%;
    left: 1%;
}

.card-two {
    right: 0;
    bottom: 13%;
}

.dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px #e8f8f1;
}

.mini-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--soft);
    color: var(--accent);
    font-weight: 800;
}

.hero-bottom {
    display: flex;
    gap: 12px;
    padding-top: 30px;
    color: #8b94a3;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   04 — STATEMENT / EXPERTISE
   ========================================================= */

.statement {
    background: #fff;
}

.statement h2,
.section-head h2,
.method h2,
.africa h2,
.about h2,
.contact h2 {
    margin-bottom: 22px;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.section-intro {
    max-width: 690px;
    color: var(--muted);
    font-size: 17px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 55px;
}

.feature-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

/*
   IMPORTANT :
   Aucune carte n'est sélectionnée par défaut.
   Seule la carte survolée ou atteinte au clavier
   devient noire.
*/

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-5px);
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
}

.card-number {
    color: #9aa3b1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.feature-card:hover .card-number,
.feature-card:focus-within .card-number {
    color: #aab5c5;
}

.feature-card h3 {
    margin-top: auto;
    margin-bottom: 12px;
    color: inherit;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.feature-card p {
    margin-bottom: 24px;
    color: #697386;
    font-size: 13px;
    transition: color 0.25s ease;
}

.feature-card:hover p,
.feature-card:focus-within p {
    color: #b7c0cd;
}

.card-link {
    margin-top: auto;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-link b {
    margin-left: 8px;
}


/* =========================================================
   05 — SOLUTIONS
   ========================================================= */

.solutions {
    background: var(--soft);
}

.section-head {
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: end;
    gap: 80px;
    margin-bottom: 50px;
}

.section-head > p {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 14px;
}

.solution-list {
    border-top: 1px solid rgba(11, 18, 32, 0.13);
}

.solution-item {
    display: grid;
    grid-template-columns: 55px 1fr 30px;
    align-items: center;
    gap: 25px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(11, 18, 32, 0.13);
}

.solution-index {
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
}

.solution-item h3 {
    margin-bottom: 4px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.solution-item p {
    max-width: 720px;
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.solution-item > span {
    font-size: 20px;
}


/* =========================================================
   06 — METHOD
   ========================================================= */

.method {
    background: #fff;
}

.method-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 110px;
    margin-top: 25px;
}

.method-grid > div > p {
    max-width: 470px;
    color: var(--muted);
}

.steps {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 22px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.steps li > span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.steps h3 {
    margin-bottom: 4px;
    font-size: 17px;
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   07 — AFRIQUE
   ========================================================= */

.africa {
    background: var(--ink);
    color: #fff;
}

.africa-panel {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    align-items: center;
    gap: 120px;
}

.africa .eyebrow {
    color: #aab5c5;
}

.africa h2 {
    color: #fff;
}

.africa-copy > p {
    color: #b8c1ce;
    font-size: 16px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
}

.pill-row span {
    padding: 8px 12px;
    border: 1px solid #313c4e;
    border-radius: 999px;
    color: #e0e5ec;
    font-size: 11px;
}

.africa-copy .small {
    color: #8895a7;
    font-size: 12px;
}


/* =========================================================
   08 — ABOUT
   ========================================================= */

.about {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.78fr 1fr;
    align-items: center;
    gap: 100px;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 1 / 1.12;
    object-fit: cover;
    border-radius: 28px;
}

.photo-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 11px;
}

.photo-caption span {
    font-weight: 900;
}

.role {
    color: #3e4a5e;
    font-size: 15px;
    font-weight: 750;
}

.about-grid p:not(.eyebrow):not(.role) {
    max-width: 610px;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    gap: 14px;
    margin-top: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   09 — CONTACT / FORMULAIRE
   ========================================================= */

.contact {
    background: #f2f5f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 100px;
}

.contact-grid > div > p:not(.eyebrow) {
    max-width: 500px;
    color: var(--muted);
}

.contact-direct {
    margin-top: 34px;
}

.whatsapp {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.whatsapp:hover,
.whatsapp:focus-visible {
    transform: translateY(-2px);
    border-color: #cfd6e2;
    box-shadow: var(--shadow-soft);
}

.whatsapp span {
    color: #3a9b69;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.whatsapp b {
    font-size: 13px;
}

.contact-form {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-field {
    position: relative;
}

label {
    display: block;
    margin-bottom: 16px;
    color: #3d4758;
    font-size: 11px;
    font-weight: 800;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid #d9dee7;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9aa3b1;
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

.submit {
    width: 100%;
    cursor: pointer;
    border: 0;
}

.form-note {
    margin: 12px 0 0;
    color: #8a93a2;
    text-align: center;
    font-size: 10px;
}

.form-status {
    margin-top: 12px;
    font-size: 12px;
}

.form-status.success {
    color: #267a52;
}

.form-status.error {
    color: #a43b3b;
}


/* =========================================================
   10 — ANTI-SPAM / HONEYPOT
   ========================================================= */

.hp,
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-field input:invalid:not(:placeholder-shown),
.form-field select:invalid,
.form-field textarea:invalid {
    outline: none;
}


/* =========================================================
   11 — FOOTER PRINCIPAL
   ========================================================= */

.footer {
    padding: 42px 0 22px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 50px;
}

.footer p {
    margin: 14px 0 0;
    color: #8992a0;
    font-size: 11px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: #697386;
    font-size: 11px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #929aa7;
    font-size: 10px;
}

.footer-bottom a {
    color: #6e7787;
}


/* =========================================================
   12 — PAGES LÉGALES
   Compatible avec les deux structures HTML utilisées
   ========================================================= */

.legal-page {
    --bg: #f7f7f5;
    --text: #111;

    background: var(--bg);
    color: var(--text);
}

.legal-page .site-header {
    position: relative;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-page .site-header > .container,
.legal-page .site-header-inner,
.legal-page .site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.legal-page .site-header > .container {
    min-height: 72px;
}

.legal-page .site-logo {
    font-weight: 700;
    letter-spacing: -0.04em;
}

.legal-page .site-logo span {
    opacity: 0.55;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    opacity: 0.6;
    transform: translateX(-3px);
}


/* =========================================================
   13 — HERO LÉGAL
   ========================================================= */

.legal-hero {
    padding:
        clamp(5rem, 10vw, 9rem)
        0
        clamp(4rem, 7vw, 6rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.legal-hero .container,
.legal-hero-inner {
    max-width: 920px;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.58;
}

.legal-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: -0.065em;
    font-weight: 700;
}

.legal-hero h1 em {
    font-style: normal;
    opacity: 0.38;
}

.legal-intro,
.legal-lead {
    max-width: 680px;
    margin: 2.2rem 0 0;
    color: rgba(0, 0, 0, 0.68);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.legal-update,
.legal-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    color: #777;
    font-size: 0.78rem;
}

.legal-meta span::after {
    content: "·";
    margin-left: 0.75rem;
}


/* =========================================================
   14 — CONTENU LÉGAL
   ========================================================= */

.legal-content {
    padding: clamp(3rem, 7vw, 7rem) 0;
}

.legal-container {
    max-width: 880px;
}

.legal-intro-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    margin-bottom: clamp(3rem, 7vw, 6rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 22px;
    background: #111;
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.legal-card-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.legal-card-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.45;
}

.legal-intro-card p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.legal-section {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.legal-section:first-of-type {
    border-top: 0;
}

.legal-section h2 {
    margin: 0 0 1.75rem;
    color: #111;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.legal-section-heading {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.legal-section-heading > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.legal-section-heading h2 {
    margin: 0;
}

.legal-section p {
    max-width: 740px;
    margin: 0 0 1.15rem;
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.98rem;
    line-height: 1.85;
}

.legal-section-heading + p,
.legal-section-heading ~ p {
    margin-left: 64px;
}

.legal-section strong {
    color: var(--text);
}

.legal-section a {
    text-underline-offset: 3px;
}


/* =========================================================
   15 — LISTES LÉGALES
   Gère aussi les <ul> sans classe de la page actuelle
   ========================================================= */

.legal-section > ul,
.legal-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 740px;
    margin: 1.4rem 0 1.6rem 64px;
    padding: 0;
    list-style: none;
}

.legal-section > ul > li,
.legal-list li {
    position: relative;
    padding: 0.65rem 0 0.65rem 2rem;
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.95rem;
    line-height: 1.65;
}

.legal-section > ul > li::before,
.legal-list li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 1.25rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111;
}

.legal-section > ul > li:not(:last-child)::after,
.legal-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0.38rem;
    bottom: -0.1rem;
    width: 1px;
    height: 0.45rem;
    background: rgba(0, 0, 0, 0.12);
}

.legal-ordered-list {
    counter-reset: legal-counter;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 740px;
    margin: 1.5rem 0 1.5rem 64px;
    padding: 0;
    list-style: none;
}

.legal-ordered-list li {
    counter-increment: legal-counter;
    position: relative;
    padding: 0.95rem 1rem 0.95rem 3.6rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.32);
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.94rem;
    line-height: 1.65;
}

.legal-ordered-list li::before {
    content: counter(legal-counter, decimal-leading-zero);
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
}


/* =========================================================
   16 — INFORMATIONS STRUCTURÉES
   ========================================================= */

.legal-details,
.legal-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: 740px;
    margin: 2rem 0 0 64px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.08);
}

.legal-details > div,
.legal-data-item {
    padding: 1.25rem;
    background: var(--bg);
}

.legal-details dt {
    margin-bottom: 0.45rem;
    opacity: 0.42;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-details dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.legal-details a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.legal-data-item strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}

.legal-data-item span {
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.5;
}


/* =========================================================
   17 — HIGHLIGHT / CONTACT LÉGAL
   ========================================================= */

.legal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 740px;
    margin: 2rem 0 0 64px;
    padding: 1.25rem 1.35rem;
    border-left: 2px solid #111;
    border-radius: 0 14px 14px 0;
    background: rgba(0, 0, 0, 0.035);
}

.legal-highlight-mark {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 50%;
    font-size: 0.85rem;
}

.legal-highlight p {
    margin: 0;
    font-size: 0.9rem;
}

.legal-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 740px;
    margin: 2rem 0 0 64px;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.42);
}

.legal-contact-card > span {
    color: #777;
    font-size: 0.78rem;
}

.legal-contact-card a {
    color: inherit;
    font-size: 0.88rem;
    font-weight: 700;
}

.legal-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 740px;
    margin: 2rem 0 0 64px;
    padding: 1.75rem;
    border-radius: 18px;
    background: #111;
    color: #fff;
}

.legal-contact strong {
    color: #fff;
    font-size: 1.15rem;
}

.legal-contact span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    line-height: 1.6;
}

.legal-contact a {
    margin-top: 0.5rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}


/* =========================================================
   18 — FOOTER DES PAGES LÉGALES
   ========================================================= */

.legal-page .site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-page .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.legal-page .site-footer a {
    color: inherit;
    font-size: 0.78rem;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.legal-page .site-footer a:hover,
.legal-page .site-footer a:focus-visible,
.legal-page .site-footer a[aria-current="page"] {
    opacity: 1;
}

.legal-page .site-footer p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.45;
}


/* =========================================================
   19 — TABLETTE
   ========================================================= */

@media (max-width: 980px) {

    .nav {
        gap: 17px;
    }

    .nav a:not(.nav-cta) {
        display: none;
    }

    .mobile-cta {
        display: block;
    }

    .hero-grid,
    .method-grid,
    .about-grid,
    .contact-grid,
    .africa-panel {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        min-height: 490px;
    }

    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-grid {
        max-width: 720px;
    }

    .contact-grid {
        max-width: 760px;
    }

    .africa-panel {
        gap: 35px;
    }

    .method-grid {
        gap: 55px;
    }
}


/* =========================================================
   20 — MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .section {
        padding: 78px 0;
    }

    .nav-wrap {
        height: 68px;
    }

    .brand {
        font-size: 13px;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
    }

    h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .proof-row {
        line-height: 1.7;
    }

    .hero-visual {
        min-height: 410px;
    }

    .portrait-frame {
        width: 78%;
    }

    .card-one {
        top: 8%;
        left: -2%;
    }

    .card-two {
        right: -2%;
        bottom: 8%;
    }

    .floating-card {
        max-width: 190px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 270px;
    }

    .section-head h2,
    .statement h2,
    .method h2,
    .africa h2,
    .about h2,
    .contact h2 {
        font-size: 39px;
    }

    .solution-item {
        grid-template-columns: 28px 1fr 20px;
        gap: 12px;
    }

    .solution-item h3 {
        font-size: 17px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    /* Pages légales */

    .legal-page .site-header > .container,
    .legal-page .site-header-inner {
        min-height: 68px;
    }

    .legal-hero {
        padding-top: 4.5rem;
    }

    .legal-hero h1 {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }

    .legal-intro,
    .legal-lead {
        font-size: 0.98rem;
    }

    .legal-update,
    .legal-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    .legal-meta span::after {
        display: none;
    }

    .legal-intro-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        border-radius: 18px;
    }

    .legal-section-heading {
        grid-template-columns: 42px 1fr;
        gap: 0.75rem;
    }

    .legal-section-heading > span {
        width: 34px;
        height: 34px;
    }

    /*
       Suppression de l'indentation desktop.
       Important pour conserver une lecture confortable
       sur smartphone.
    */

    .legal-section p,
    .legal-section-heading + p,
    .legal-section-heading ~ p,
    .legal-section > ul,
    .legal-list,
    .legal-ordered-list,
    .legal-highlight,
    .legal-contact-card,
    .legal-contact,
    .legal-details,
    .legal-data-grid {
        margin-left: 0;
    }

    .legal-section > ul,
    .legal-list {
        gap: 0.1rem;
    }

    .legal-section > ul > li,
    .legal-list li {
        padding-left: 1.7rem;
    }

    .legal-details,
    .legal-data-grid {
        grid-template-columns: 1fr;
    }

    .legal-contact-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-page .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-page .site-footer nav {
        gap: 0.8rem 1rem;
    }
}


/* =========================================================
   21 — ACCESSIBILITÉ / MOTION
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}