/* KADI Développement International — feuille de style */

:root {
    --ink: #0D1B2A;        /* bleu marine de la marque */
    --ink-2: #16293D;      /* marine plus clair, surfaces sur fond foncé */
    --gold: #C9A227;       /* or de la marque */
    --gold-text: #8A6D10;  /* or assombri, lisible sur fond clair */
    --mist: #EEF2F5;       /* fond clair froid */
    --slate: #44515E;      /* texte courant */
    --line: #D5DCE2;
    --white: #FFFFFF;

    --serif: 'Spectral', Georgia, 'Times New Roman', serif;
    --sans: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.625rem;
    --step-3: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

    --wrap: 1180px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 3rem + 6vw, 8rem);
    --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: .08em; }
.brand-sub { font-size: .8rem; color: var(--slate); letter-spacing: .01em; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink); padding: .4rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav .nav-cta { background: var(--ink); color: var(--white); padding: .55rem 1.1rem; border-radius: 3px; border: none; }
.site-nav .nav-cta:hover { background: var(--ink-2); }

.lang-btn {
    font: 600 .85rem var(--sans); color: var(--ink); background: none; cursor: pointer;
    border: 1px solid var(--line); border-radius: 3px; padding: .45rem .65rem; letter-spacing: .04em;
}
.lang-btn:hover { border-color: var(--ink); }

.menu-btn { display: none; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
    padding: .95rem 1.6rem; border-radius: 3px; border: 2px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #DDB43A; }
.btn-line { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-line:hover { border-color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Accueil : carte ---------- */
.hero {
    background: var(--ink);
    color: #C9D3DD;
    padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(3rem, 2rem + 4vw, 5.5rem);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { color: var(--white); font-size: var(--step-4); letter-spacing: -.01em; max-width: 13ch; }
.hero-lead { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.55; max-width: 36ch; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-map { margin-right: calc(var(--gutter) * -1); }
.map { width: 100%; height: auto; overflow: visible; }
.map .land { stroke: #3A5068; stroke-width: 4.2; stroke-linecap: round; fill: none; }
.map .arc { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; opacity: .9; }
.map .city { fill: var(--gold); stroke: var(--ink); stroke-width: 3; }
.map .city-hq { fill: var(--white); stroke: var(--gold); stroke-width: 3; }
.map .labels text { fill: #E3E9EF; font: 500 21px var(--sans); paint-order: stroke; stroke: var(--ink); stroke-width: 6px; stroke-linejoin: round; }
.hero-map figcaption { margin-top: 1rem; font-size: var(--step--1); color: #8FA1B3; }

/* Un seul moment animé : les liaisons se tracent au chargement */
@media (prefers-reduced-motion: no-preference) {
    .map .arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) forwards; animation-delay: calc(.3s + var(--i) * .14s); }
    .map .cities .city:not(.city-hq), .map .labels { opacity: 0; animation: appear .5s ease-out forwards; animation-delay: 1.3s; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
    @keyframes appear { to { opacity: 1; } }
}

/* ---------- Sections ---------- */
.section-title { font-size: var(--step-3); letter-spacing: -.005em; }

.why { padding-block: var(--section); background: var(--white); }
.why-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.why-item { border-top: 2px solid var(--gold); padding-top: 1.4rem; }
.why-item h3 { font-size: var(--step-2); margin-bottom: .6rem; }
.why-item p { max-width: 32ch; }

.services { padding-block: var(--section); background: var(--mist); }
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.services-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.services-intro p { margin-top: 1.1rem; max-width: 34ch; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem clamp(1.5rem, 3vw, 3rem); }
.service h3 { font-size: var(--step-1); line-height: 1.3; padding-bottom: .9rem; border-bottom: 1px solid var(--ink); margin-bottom: .4rem; }
.service li { padding: .55rem 0; border-bottom: 1px solid var(--line); }

.sectors { padding-block: var(--section); background: var(--ink); }
.sectors .section-title { color: var(--white); }
.sector-list { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2.75rem; }
.sector-list li { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); color: #DCE3EA; line-height: 1.25; }
.sector-list li:nth-child(odd) { font-style: italic; color: var(--gold); }

.presence { padding-block: var(--section); }
.region-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.region { border-left: 2px solid var(--gold); padding-left: 1.25rem; }
.region h3 { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--gold-text); margin-bottom: .8rem; letter-spacing: .01em; }
.region p { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); line-height: 1.5; }
.region .region-note { font-family: var(--sans); font-size: var(--step--1); color: var(--slate); margin-top: .3rem; }

.about { padding-block: var(--section); background: var(--mist); }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-mono {
    aspect-ratio: 1; max-width: 300px; display: grid; place-items: center;
    background: var(--ink); color: var(--gold); font: italic 500 clamp(4rem, 9vw, 7.5rem) var(--serif); letter-spacing: .04em;
}
.about-name { margin-top: 1.5rem; font-family: var(--serif); font-size: var(--step-2); color: var(--ink); font-weight: 600; }
.about-role { color: var(--gold-text); font-weight: 600; margin-bottom: 1.25rem; }
.about-text p:not(.about-name):not(.about-role) { max-width: 62ch; margin-bottom: 1rem; }

.contact { padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-info > p { margin-top: 1.1rem; max-width: 38ch; }
.contact-details { margin-top: 2.25rem; display: grid; gap: .25rem; }
.contact-details dt { font-size: var(--step--1); font-weight: 600; color: var(--gold-text); margin-top: 1rem; }
.contact-details dd { color: var(--ink); overflow-wrap: anywhere; }
.contact-details a { text-decoration-color: var(--gold); text-underline-offset: 3px; }

.contact-form { display: grid; gap: 1.25rem; background: var(--mist); padding: clamp(1.5rem, 3vw, 2.5rem); border-top: 3px solid var(--gold); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--white);
    border: 1px solid #B9C4CE; border-radius: 3px; padding: .8rem .9rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 162, 39, .45); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1E6B3A; }
.form-status.err { color: #B42318; }

.site-footer { background: var(--ink); color: #8FA1B3; padding-block: 2rem; font-size: var(--step--1); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-row p:last-child { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 16ch; }
    .hero-map { margin-right: 0; }
    .services-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-intro { position: static; }
    .region-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .about-mono { max-width: 160px; font-size: 4rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
    .menu-btn {
        display: inline-flex; align-items: center; gap: .55rem;
        font: 600 .95rem var(--sans); color: var(--ink); background: none;
        border: 1px solid var(--line); border-radius: 3px; padding: .5rem .8rem; cursor: pointer;
    }
    .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
    .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
    .menu-icon::before { top: -6px; }
    .menu-icon::after { top: 6px; }
    .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
    .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
    .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

    .site-nav {
        display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .site-nav a:hover { border-bottom-color: var(--line); color: var(--gold-text); }
    .site-nav .nav-cta { margin-top: 1rem; text-align: center; padding: .9rem; }
    .lang-btn { margin-top: .75rem; align-self: flex-start; }

    .why-grid { grid-template-columns: 1fr; gap: 2rem; }
    .service-list { grid-template-columns: 1fr; }
    .map .labels { display: none; }
}

@media (max-width: 480px) {
    .brand-sub { display: none; }
    .region-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .sector-list { gap: .5rem 1.75rem; }
}
