/* =========================================================
   Kaï Consulting — Charte graphique officielle
   Référence : design system Kaï Consulting v1
   - Palette rouge bordeaux (--kai-*) + neutres chauds (--ink-*)
   - Typo : Inter Tight (UI) + Fraunces (display) + JetBrains Mono
   - Espacement base 4 px, ombres chaudes, composants tokenisés
   ========================================================= */

/* =========================================================
   1. TOKENS — couleurs, espacement, rayons, ombres, typo
   ========================================================= */
:root {
    /* --- Brand : rouge Kaï --- */
    --kai-50:  #FDF4F4;
    --kai-100: #FAE5E5;
    --kai-200: #F3C5C5;
    --kai-300: #E99898;
    --kai-400: #D95F5F;
    --kai-500: #C13333;
    --kai-600: #A02020;
    --kai-700: #851B1B;
    --kai-800: #6B1717;
    --kai-900: #521212;
    --kai-950: #2E0909;

    /* --- Neutres chauds (jamais de gris bleutés) --- */
    --ink-50:  #FAF8F8;
    --ink-100: #F3F1F1;
    --ink-200: #E6E3E3;
    --ink-300: #CCC8C8;
    --ink-400: #9E9A9A;
    --ink-500: #736F6F;
    --ink-600: #524F4F;
    --ink-700: #363434;
    --ink-800: #252323;
    --ink-900: #171515;
    --ink-950: #0C0B0B;

    /* --- Sémantiques --- */
    --success-fg: #1F7A4C;  --success-bg: #E7F3EC;
    --warning-fg: #B06A0A;  --warning-bg: #FBF1DF;
    --info-fg:    #2B5FA3;  --info-bg:    #E6EEF9;
    --danger:     #ef4444;

    /* --- Tokens (clair) --- */
    --bg:             var(--ink-50);
    --surface:        #FFFFFF;
    --surface-2:      var(--ink-100);
    --surface-hover:  var(--ink-50);
    --border:         var(--ink-200);
    --border-strong:  var(--ink-300);
    --fg:             var(--ink-900);
    --fg-muted:       var(--ink-600);
    --fg-subtle:      var(--ink-400);
    --brand:          var(--kai-600);
    --brand-hover:    var(--kai-700);
    --brand-soft:     var(--kai-100);
    --brand-contrast: #FFFFFF;

    /* --- Espacement (base 4 px) --- */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  20px;
    --sp-6:  24px;
    --sp-7:  32px;
    --sp-8:  40px;
    --sp-9:  48px;
    --sp-10: 64px;

    /* --- Bordures arrondies --- */
    --r-xs:   4px;
    --r-sm:   6px;
    --r-md:   10px;
    --r-lg:   14px;
    --r-xl:   20px;
    --r-full: 999px;

    /* --- Ombres chaudes --- */
    --s-xs:  0 1px 2px rgba(23,21,21,.05);
    --s-sm:  0 1px 3px rgba(23,21,21,.08), 0 1px 2px rgba(23,21,21,.04);
    --s-md:  0 4px 12px rgba(23,21,21,.08), 0 2px 4px rgba(23,21,21,.04);
    --s-lg:  0 12px 32px rgba(23,21,21,.10), 0 4px 8px rgba(23,21,21,.04);
    --s-kai: 0 8px 24px rgba(160,32,32,.22);

    /* --- Typo --- */
    --font-ui:      'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-mono:    'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

    /* --- Transitions --- */
    --transition: all 0.15s ease;
    --transition-slow: all 0.3s ease-out;
}

[data-theme="dark"] {
    --bg:             var(--ink-950);
    --surface:        var(--ink-900);
    --surface-2:      #1F1D1D;
    --surface-hover:  var(--ink-800);
    --border:         #2E2B2B;
    --border-strong:  #3D3939;
    --fg:             var(--ink-50);
    --fg-muted:       var(--ink-300);
    --fg-subtle:      var(--ink-400);
    --brand-soft:     rgba(160,32,32,0.18);
    --s-xs:  0 1px 2px rgba(0,0,0,.30);
    --s-sm:  0 1px 3px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.20);
    --s-md:  0 4px 12px rgba(0,0,0,.40), 0 2px 4px rgba(0,0,0,.20);
    --s-lg:  0 12px 32px rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.25);
}

/* =========================================================
   2. RESET ET BASE TYPOGRAPHIQUE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--brand);
    text-decoration: none;
    transition: var(--transition);
}
a:hover, a:focus { color: var(--brand-hover); }

ul { list-style: none; padding: 0; margin: 0; }

button { font-family: inherit; cursor: pointer; }

p { margin-top: 0; }

h1, h2, h3, h4, h5, h6 {
    color: var(--fg);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}
h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-3);
}
h3 {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--sp-2);
}

strong { font-weight: 600; }

/* =========================================================
   3. ACCESSIBILITÉ
   ========================================================= */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: var(--brand-contrast);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

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

/* =========================================================
   4. CONTENEUR ET LAYOUT
   ========================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-7);
}

.section {
    padding: var(--sp-10) 0;
}
.section-alt {
    background: var(--surface-2);
}
.section-intro {
    color: var(--fg-muted);
    max-width: 720px;
    margin: 0 0 var(--sp-7);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.section-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--fg-subtle);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}

/* =========================================================
   5. HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--s-xs);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}
.logo:hover, .logo:focus { text-decoration: none; }
.logo-img {
    width: 56px;
    height: 56px;
    border-radius: calc(56px * 0.22);  /* 12.32 px - règle officielle */
    display: block;
}

.primary-nav ul {
    display: flex;
    gap: var(--sp-6);
}
.primary-nav a {
    color: var(--fg);
    font-weight: 500;
    font-size: 14px;
    padding: var(--sp-2) 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--brand);
    border-bottom-color: var(--brand);
    text-decoration: none;
}

/* Bouton "Contact" — dernier élément de la nav */
.primary-nav li:last-child a {
    background: var(--brand);
    color: var(--brand-contrast);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}
.primary-nav li:last-child a:hover,
.primary-nav li:last-child a:focus {
    background: var(--brand-hover);
    color: var(--brand-contrast);
    border-bottom-color: transparent;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-between;
    padding: 11px 7px;
    border-radius: var(--r-sm);
}
.nav-toggle:hover { background: var(--surface-hover); }
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--fg);
    transition: var(--transition);
    border-radius: var(--r-full);
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
    background: linear-gradient(135deg,
                var(--kai-700) 0%,
                var(--kai-600) 50%,
                var(--kai-800) 100%);
    color: var(--brand-contrast);
    padding: var(--sp-10) 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    box-shadow: var(--s-kai);
    position: relative;
    overflow: hidden;
}
@media (max-width: 640px) {
    .hero-br { display: none; }
}
.hero h1 {
    color: var(--brand-contrast);
    margin-bottom: var(--sp-4);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.025em;
}
.hero-subtitle {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    max-width: 720px;
    margin: 0 0 var(--sp-7);
    letter-spacing: -0.005em;
    line-height: 1.5;
}
.hero-content {
    max-width: 820px;
    animation: fadeIn 0.3s ease-out;
    position: relative;
    z-index: 1;
}

/* Code décoratif ABAP — watermark droit du hero */
.hero-code {
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.22);
    white-space: pre;
    pointer-events: none;
    user-select: none;
    max-height: 460px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, white 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, white 55%, transparent 100%);
    z-index: 0;
}
@media (max-width: 1024px) {
    .hero-code { display: none; }
}

/* =========================================================
   6 bis. CHIFFRES CLÉS — strip stats
   ========================================================= */
.stats-strip {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-7) 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.stat {
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--sp-5) var(--sp-4);
}
.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 2.125rem);
    font-weight: 300;
    color: var(--brand);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--sp-2);
}
.stat-value span {
    font-size: 0.65em;
    font-weight: 400;
    opacity: 0.75;
    letter-spacing: 0;
}
.stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-subtle);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* =========================================================
   6 ter. LOGOS CLIENTS
   ========================================================= */
.clients-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-5) 0 var(--sp-6);
}
.clients-eyebrow {
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--fg-subtle);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 var(--sp-5);
}
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3) var(--sp-8);
}
.client-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-400);
    letter-spacing: -0.01em;
    opacity: 0.65;
    transition: opacity var(--transition), color var(--transition);
    cursor: default;
    user-select: none;
    white-space: nowrap;
}
.client-logo:hover { opacity: 1; color: var(--ink-600); }
[data-theme="dark"] .client-logo { color: var(--ink-500); }

/* =========================================================
   6 quater. ACCENT RULE — trait rouge sous les titres de section
   ========================================================= */
.section-ruled > .container > h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--brand);
    border-radius: var(--r-full);
    margin-top: var(--sp-3);
}

/* =========================================================
   7. BOUTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 10px var(--sp-4);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 36px;
}
.btn-lg {
    padding: 14px var(--sp-6);
    font-size: 14px;
}
.btn-sm {
    padding: 7px var(--sp-3);
    font-size: 13px;
    min-height: 30px;
}
.btn-primary {
    background: var(--brand);
    color: var(--brand-contrast);
    box-shadow: var(--s-kai);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-hover);
    color: var(--brand-contrast);
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--surface);
    color: var(--fg);
    border-color: var(--border);
    box-shadow: var(--s-xs);
}
.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--surface-hover);
    color: var(--fg);
    text-decoration: none;
}
.btn-soft {
    background: var(--brand-soft);
    color: var(--brand);
}
.btn-soft:hover,
.btn-soft:focus {
    background: var(--kai-200);
    color: var(--brand-hover);
    text-decoration: none;
}
.btn-ghost {
    background: transparent;
    color: var(--fg-muted);
}
.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--surface-hover);
    color: var(--fg);
    text-decoration: none;
}

/* CTA dans le hero : inverse (clair sur dégradé sombre) */
.hero .btn-primary {
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--s-md);
}
.hero .btn-primary:hover,
.hero .btn-primary:focus {
    background: var(--ink-50);
    color: var(--brand-hover);
}

/* CTA en taille plus généreuse pour le hero */
.hero .btn { padding: 14px var(--sp-6); }

/* =========================================================
   8. CARTES SERVICES
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-4);
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--s-sm);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 3px 0 var(--brand), var(--s-md);
    border-color: var(--border-strong);
}
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: var(--r-md);
    margin-bottom: var(--sp-4);
}
.card-icon svg {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card p {
    color: var(--fg-muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   9. EXPERTISE — TAG LIST
   ========================================================= */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
    margin-bottom: var(--sp-6);
}
.expertise-block h3 {
    margin-bottom: var(--sp-3);
    color: var(--fg);
}
.expertise-approach {
    display: flex;
    gap: var(--sp-6);
    flex-wrap: wrap;
    padding: var(--sp-5) var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-lg);
}
.approach-point {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    flex: 1;
    min-width: 200px;
}
.approach-point svg {
    width: 18px;
    height: 18px;
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
}
.approach-point p {
    margin: 0;
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.55;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.tag-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 4px var(--sp-3);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.5;
    transition: var(--transition);
    cursor: default;
}
.tag-list li:hover {
    background: var(--brand-soft);
    border-color: var(--kai-200);
    color: var(--brand);
}
.expertise-block p {
    color: var(--fg-muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   10. PILIERS — POURQUOI NOUS CHOISIR
   ========================================================= */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-6);
    margin-top: var(--sp-4);
}
.pillar {
    padding: var(--sp-7);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--s-sm);
    transition: var(--transition);
}
.pillar:hover {
    border-color: var(--border-strong);
    box-shadow: var(--s-md);
}
.pillar-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-soft);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
    color: var(--brand);
}
.pillar-icon svg {
    width: 20px;
    height: 20px;
}
.pillar h3 {
    color: var(--fg);
    margin-bottom: var(--sp-2);
}
.pillar p {
    color: var(--fg-muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   11. À PROPOS
   ========================================================= */
.about-body {
    max-width: 780px;
}
.about-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--fg-muted);
    margin-bottom: var(--sp-4);
}
.about-detail {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--fg-muted);
    margin-bottom: var(--sp-7);
}
.about-facts {
    display: flex;
    gap: var(--sp-8);
    flex-wrap: wrap;
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
}
.about-fact strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}
.about-fact span {
    font-size: 12px;
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================
   11. EXPERTS — cartes co-fondateurs
   ========================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-6);
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--s-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--s-md);
    border-color: var(--border-strong);
}
.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-contrast);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--sp-6) var(--sp-6) 0;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.team-body {
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    flex: 1;
}
.team-body h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin: 0;
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
}
.team-role {
    margin: 0;
    color: var(--brand);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.team-bio {
    margin: 0;
    color: var(--fg-muted);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}
.team-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    align-self: flex-start;
    margin-top: var(--sp-2);
}
.team-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.team-highlight {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--r-full);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.team-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    list-style: none;
    padding: 0;
    margin: 0;
}
.team-stack li {
    padding: 2px 9px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--fg-muted);
}
.team-refs {
    font-size: 12.5px;
    color: var(--fg-subtle);
    margin: 0;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
}
.team-refs strong {
    color: var(--fg-muted);
    font-weight: 600;
}

/* =========================================================
   11 bis. RECRUTEMENT
   ========================================================= */
.recruitment-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6) var(--sp-7);
    box-shadow: var(--s-sm);
    margin-top: var(--sp-6);
    flex-wrap: wrap;
}
.recruitment-cta p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
    min-width: 200px;
}
.recruitment-cta .btn {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* =========================================================
   11 quater. RÉFÉRENCES CLIENTS
   ========================================================= */
.references-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    max-width: 900px;
}
.reference-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--s-sm);
    transition: var(--transition);
}
.reference-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--s-md);
}
.reference-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
    flex-wrap: wrap;
}
.reference-header h3 { margin: 0 0 var(--sp-1); }
.reference-meta {
    margin: 0;
    color: var(--fg-muted);
    font-size: 13px;
}
.reference-tag {
    flex-shrink: 0;
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px var(--sp-3);
    border-radius: var(--r-full);
    white-space: nowrap;
}
.reference-desc {
    color: var(--fg-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 var(--sp-4);
}
.reference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.reference-tags li {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    padding: 2px var(--sp-2);
    border-radius: var(--r-full);
    font-size: 11.5px;
    font-weight: 600;
}

/* =========================================================
   11 ter. FAQ — accordéon natif <details>/<summary>
   ========================================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    max-width: 820px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: var(--transition);
    overflow: hidden;
}
.faq-item[open] {
    box-shadow: var(--s-sm);
    border-color: var(--border-strong);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--sp-4) var(--sp-5);
    font-weight: 600;
    font-size: 15px;
    color: var(--fg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
    line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform var(--transition);
}
.faq-item[open] summary::after {
    transform: rotate(-135deg) translate(-3px, -3px);
}
.faq-item summary:hover {
    color: var(--brand);
}
.faq-item summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
    border-radius: var(--r-md);
}
.faq-answer {
    padding: 0 var(--sp-5) var(--sp-5);
    color: var(--fg-muted);
    line-height: 1.65;
    font-size: 14px;
    animation: fadeIn 0.2s ease-out;
}
.faq-answer p { margin: 0; }
.faq-answer strong { color: var(--fg); font-weight: 600; }
.faq-answer a { color: var(--brand); }

/* =========================================================
   12. CONTACT
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-9);
    align-items: start;
}
.contact-info {
    display: grid;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}
.contact-info li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--sp-4);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--border);
}
.contact-info li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info strong {
    color: var(--fg);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.contact-info span,
.contact-info a {
    font-size: 14px;
    color: var(--fg);
}
.contact-info a {
    color: var(--brand);
}
.contact-info a:hover { color: var(--brand-hover); }

/* =========================================================
   13. FORMULAIRE
   ========================================================= */
.contact-form {
    background: var(--surface);
    padding: var(--sp-7);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--s-sm);
}
.form-group {
    margin-bottom: var(--sp-5);
}
.form-group label {
    display: block;
    margin-bottom: var(--sp-2);
    font-weight: 600;
    color: var(--fg);
    font-size: 13px;
}
.form-group label span {
    color: var(--brand);
    font-weight: 700;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 14px;
    color: var(--fg);
    transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--fg-subtle);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--danger);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}
.error-message {
    display: block;
    color: var(--danger);
    font-size: 12px;
    margin-top: var(--sp-1);
    min-height: 16px;
}
.form-status {
    margin-top: var(--sp-4);
    font-weight: 600;
    font-size: 14px;
    padding: var(--sp-3);
    border-radius: var(--r-md);
}
.form-status:empty { display: none; }
.form-status.success {
    color: var(--success-fg);
    background: var(--success-bg);
}
.form-status.error {
    color: var(--danger);
    background: var(--kai-50);
}

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer {
    background: var(--ink-900);
    color: var(--ink-200);
    padding: var(--sp-6) 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-4);
    font-size: 13px;
}
.site-footer p { margin: 0; color: var(--ink-200); }
.site-footer a {
    color: var(--ink-50);
}
.site-footer a:hover {
    color: var(--ink-50);
    text-decoration: underline;
}
.site-footer ul {
    display: flex;
    gap: var(--sp-5);
}

/* =========================================================
   15. PAGE MENTIONS LÉGALES
   ========================================================= */
.legal {
    padding: var(--sp-9) 0 var(--sp-10);
}
.legal h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: var(--sp-7);
}
.legal h2 {
    margin-top: var(--sp-8);
    font-size: 1.25rem;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.015em;
}
.legal p, .legal li {
    color: var(--fg-muted);
    margin-bottom: var(--sp-3);
    font-size: 0.9375rem;
    line-height: 1.65;
}
.legal ul {
    list-style: disc;
    padding-left: var(--sp-5);
    margin-bottom: var(--sp-4);
}
.legal a { color: var(--brand); }
.legal a:hover { color: var(--brand-hover); }

/* =========================================================
   16. RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
    .container { padding: 0 var(--sp-4); }

    .nav-toggle { display: flex; }

    .primary-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--s-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .primary-nav.open { max-height: 320px; }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--sp-2) var(--sp-4) var(--sp-4);
    }
    .primary-nav a {
        display: block;
        padding: var(--sp-3) 0;
        border-bottom: 1px solid var(--border);
        min-height: 44px;
    }
    .primary-nav li:last-child a { border-bottom: none; }
    .primary-nav a:hover,
    .primary-nav a:focus {
        border-bottom-color: var(--border);
        color: var(--brand);
    }

    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .clients-logos { gap: var(--sp-3) var(--sp-6); }
    .expertise-grid { grid-template-columns: 1fr; gap: var(--sp-6); }

    .about,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-7);
    }

    .hero { padding: var(--sp-9) 0; }
    .section { padding: var(--sp-9) 0; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-inner { height: 70px; }
    .logo-img {
        width: 46px;
        height: 46px;
        border-radius: calc(46px * 0.22);
    }
    .primary-nav { top: 70px; }
    .contact-info li {
        grid-template-columns: 1fr;
        gap: var(--sp-1);
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-logos { gap: var(--sp-3) var(--sp-4); }
    .client-logo { font-size: 0.875rem; }
    .contact-form { padding: var(--sp-5); }
    .pillar { padding: var(--sp-6); }
    .card { padding: var(--sp-5); }
}

/* =========================================================
   17. ANIMATIONS
   ========================================================= */

/* =========================================================
   18. ARTICLE PAGES
   ========================================================= */
.article-page {
    padding: var(--sp-10) 0;
}

.article-header {
    margin-bottom: var(--sp-9);
    padding-bottom: var(--sp-7);
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--fg);
    margin-bottom: var(--sp-5);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
    color: var(--fg-muted);
    font-size: 0.875rem;
}

.article-meta .tag {
    display: inline-block;
    padding: var(--sp-1) var(--sp-3);
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content {
    max-width: 72ch;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--fg);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: var(--sp-9);
    margin-bottom: var(--sp-4);
    color: var(--fg);
}

.article-content p { margin-bottom: var(--sp-5); }

.article-content ul,
.article-content ol {
    margin-bottom: var(--sp-5);
    padding-left: var(--sp-7);
}

.article-content li { margin-bottom: var(--sp-2); }

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--surface-2);
    padding: 0.1em 0.4em;
    border-radius: var(--r-xs);
    color: var(--brand);
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 500;
    margin-top: var(--sp-7);
    margin-bottom: var(--sp-3);
    color: var(--fg);
}

.article-tldr {
    margin: var(--sp-7) 0 var(--sp-9);
    padding: var(--sp-5) var(--sp-6);
    background: var(--surface-2);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-md);
}
.article-tldr h2 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 var(--sp-2);
    font-family: var(--font-sans);
}
.article-tldr p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fg-muted);
}

.article-content blockquote {
    margin: var(--sp-6) 0;
    padding: var(--sp-4) var(--sp-6);
    border-left: 3px solid var(--brand);
    background: var(--surface-2);
    border-radius: var(--r-sm);
    font-style: italic;
    color: var(--fg-muted);
}
.article-content blockquote p:last-child { margin-bottom: 0; }

.article-content .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--sp-5) 0;
}
.article-content table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.article-content table th,
.article-content table td {
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.article-content table th {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--fg);
}

.article-faq {
    margin-top: var(--sp-10);
}
.article-faq h2 {
    margin-bottom: var(--sp-5);
}
.article-faq details {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-5);
    margin-bottom: var(--sp-3);
    background: var(--surface);
}
.article-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    color: var(--fg);
    padding: var(--sp-2) 0;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
    content: "+";
    float: right;
    color: var(--brand);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1;
}
.article-faq details[open] summary::after { content: "−"; }
.article-faq details[open] summary { color: var(--brand); }
.article-faq details p {
    margin-top: var(--sp-3);
    margin-bottom: var(--sp-3);
    font-size: 0.9375rem;
    color: var(--fg-muted);
}

.article-cta {
    margin-top: var(--sp-10);
    padding: var(--sp-8);
    background: var(--brand-soft);
    border-radius: var(--r-lg);
    border-left: 4px solid var(--brand);
    text-align: center;
}

.article-cta p { margin-bottom: var(--sp-5); font-size: 1.0625rem; }

/* Article cards (index page) */
.article-card-tag {
    display: inline-block;
    padding: var(--sp-1) var(--sp-3);
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-3);
}

.article-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.article-card-link:hover h3 { color: var(--brand); }

.article-card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--brand);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: var(--sp-4);
    transition: var(--transition);
}

.article-card-cta:hover { gap: var(--sp-3); }

/* Articles liés */
.article-related {
    margin-top: var(--sp-10);
    padding-top: var(--sp-7);
    border-top: 1px solid var(--border);
}
.article-related h2 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-5);
}
.article-related ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.article-related a {
    color: var(--brand);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}
.article-related a:hover { text-decoration: underline; }

/* Fil d'Ariane */
.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-7);
    font-size: 0.875rem;
    flex-wrap: wrap;
}
.breadcrumb li + li::before {
    content: "›";
    margin-right: var(--sp-2);
    color: var(--fg-subtle);
}
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--fg); font-weight: 500; }

/* =========================================================
   19. PAGES PROFIL EXPERTS
   ========================================================= */
.profile-link { color: inherit; text-decoration: none; }
.profile-link:hover { color: var(--brand); }

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-8);
    margin-bottom: var(--sp-9);
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-contrast);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--s-kai);
}
.profile-meta { flex: 1; min-width: 240px; }
.profile-meta h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-2);
}
.profile-role {
    color: var(--brand);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 var(--sp-4);
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-9);
    align-items: start;
}
.profile-section { margin-bottom: var(--sp-8); }
.profile-section h2 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-4);
    font-family: var(--font-ui);
}
.profile-section p {
    color: var(--fg-muted);
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: var(--sp-4);
}
.profile-sidebar {
    position: sticky;
    top: calc(80px + var(--sp-6));
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-6);
    box-shadow: var(--s-sm);
}
.profile-card h3 {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-4);
}
.profile-actions-bar {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin-top: var(--sp-5);
}
@media (max-width: 860px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
