/* ==========================================================================
   KSPA GROUP — feuille de style du site institutionnel
   Palette : bleu nuit / ivoire / laiton. Typo : Fraunces (titres) + Inter.
   ========================================================================== */

:root {
    --ink: #15132A;
    --navy: #201D3C;
    --navy-2: #2A2650;
    --navy-line: rgba(255, 255, 255, .12);
    --ivory: #F4F1EA;
    --paper: #FBFAF7;
    --line: #E2DDD2;
    --text: #1B2436;
    --muted: #5E6778;
    --muted-dark: #A7AFBD;
    --gold: #F3A33A;        /* orange clair : accents sur fond sombre */
    --gold-deep: #CA4226;   /* rouge orangé KSPA : accents sur fond clair */
    --white: #FFFFFF;

    --serif: "Arvo", Georgia, "Times New Roman", serif;
    --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1240px;
    --gutter: clamp(20px, 4vw, 40px);
    --section: clamp(80px, 11vw, 150px);
    --radius: 30px;
    --card-radius: 16px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }

/* ---------- Typographie ---------- */
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow--gold { color: var(--gold); }

.display-1, .display-2, .display-3, .sub-hero-name {
    font-family: var(--serif);
    font-weight: 300;
    font-variation-settings: "opsz" 144;
    letter-spacing: -.02em;
    line-height: 1.06;
}
.display-1 { font-size: clamp(40px, 6.2vw, 84px); }
.display-2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.1; }
.display-3 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; font-weight: 350; letter-spacing: -.01em; }
.lead, .section-lead { font-size: 18px; color: var(--muted); max-width: 44ch; }

/* ---------- Boutons ---------- */
.btn {
    --h: 52px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: var(--h);
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 500 14px/1 var(--sans);
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 13px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D6B77F; }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); margin-top: 32px; }
.btn-dark:hover { background: var(--ink); }
.btn-outline { border-color: currentColor; }

/* ---------- En-tête ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    color: var(--white);
    transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 88px; transition: height .4s var(--ease); }
.site-header.is-solid { background: rgba(251, 250, 247, .94); color: var(--navy); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.site-header.is-solid .nav-inner { height: 72px; }
.site-header.is-open { background: var(--navy); color: var(--white); box-shadow: none; }

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { width: auto; height: 70px; transition: height .4s var(--ease); }
.site-header.is-solid .brand img { height: 56px; }
.brand-mark--dark { display: none; }
.site-header.is-solid:not(.is-open) .brand-mark--light { display: none; }
.site-header.is-solid:not(.is-open) .brand-mark--dark { display: block; }
.brand-word { font: 600 15px/1 var(--sans); letter-spacing: .22em; }
.brand-word span { font-weight: 400; opacity: .7; }

.nav-list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 10px 0; font-size: 14px; font-weight: 500; letter-spacing: .02em; opacity: .86; transition: opacity .25s; position: relative; }
.nav-list > li > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav-list > li > a:hover { opacity: 1; }
.nav-list > li > a:hover::after { right: 0; }
.nav-mobile-only { display: none; }

.sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -24px;
    width: 340px;
    padding: 10px;
    background: var(--paper);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -20px rgba(11, 22, 40, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; transition: background .2s; }
.sub-menu a img { width: 30px; height: 34px; flex: none; object-fit: contain; }
.sub-menu a:hover { background: var(--ivory); }
.sub-menu strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--navy); }
.sub-menu-text span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.lang a { padding: 6px 7px; opacity: .5; transition: opacity .2s; }
.lang a:hover, .lang a.is-active { opacity: 1; }
.lang a + a { border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 30%, transparent); }

.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.nav-toggle .bar { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle .bar:nth-child(2) { top: 18px; }
.nav-toggle .bar:nth-child(3) { top: 25px; }
.is-open .nav-toggle .bar:nth-child(2) { top: 21.5px; transform: rotate(45deg); }
.is-open .nav-toggle .bar:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

.mobile-nav { background: var(--navy); border-top: 1px solid var(--navy-line); max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-nav .container { padding-block: 16px 32px; }
.mobile-nav a { display: block; padding: 14px 0; font-family: var(--serif); font-weight: 300; font-size: 26px; border-bottom: 1px solid var(--navy-line); }
.mobile-subs { padding: 6px 0 10px 18px; border-bottom: 1px solid var(--navy-line); }
.mobile-subs a { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; font-weight: 500; padding: 9px 0; border: 0; color: var(--muted-dark); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 90px); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark .lead, .section--dark .section-lead { color: var(--muted-dark); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .display-2 { max-width: 16ch; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split-body p { font-size: 18px; color: var(--muted); }
.split-body p + p { margin-top: 1.2em; }
.split-body p:first-child { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 140px;
    background:
        radial-gradient(1100px 600px at 85% 30%, rgba(198, 164, 106, .08), transparent 60%),
        linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
    color: var(--white);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
    opacity: .35;
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; flex: 1; }
.hero .display-1 { max-width: 15ch; }
.hero-lead { margin-top: 32px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted-dark); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-visual { color: var(--gold); display: flex; justify-content: center; }
.globe { width: min(100%, 460px); height: auto; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--navy-line); }
.fact { padding: 28px 24px 40px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--navy-line); }
.fact dt { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; color: var(--white); }
.fact dd { margin-top: 8px; font-size: 13px; color: var(--muted-dark); letter-spacing: .02em; }

/* ---------- Piliers ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(64px, 8vw, 110px); }
.pillar { border-top: 1px solid var(--text); padding-top: 26px; }
.pillar-num, .value-num, .expertise-num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--gold-deep); }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 18px 0 12px; }
.pillar p { color: var(--muted); }

/* ---------- Liste des filiales ---------- */
.subs-list { border-top: 1px solid var(--line); }
.subs-list li { border-bottom: 1px solid var(--line); }
.sub-row {
    display: grid;
    grid-template-columns: 56px 56px minmax(220px, 4fr) 5fr 48px;
    align-items: center;
    gap: 24px;
    padding: 34px 16px;
    margin-inline: -16px;
    position: relative;
    isolation: isolate;
    transition: color .4s var(--ease);
}
.sub-row::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--navy);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .45s var(--ease);
    z-index: -1;
}
.sub-row:hover, .sub-row:focus-visible { color: var(--white); }
.sub-row:hover::before, .sub-row:focus-visible::before { transform: scaleY(1); }
.sub-index { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--gold-deep); }
.sub-row:hover .sub-index { color: var(--gold); }
.sub-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-deep); transition: border-color .4s, color .4s; }
.sub-icon .icon { width: 22px; height: 22px; }
.sub-row:hover .sub-icon { border-color: rgba(198,164,106,.5); color: var(--gold); }
.sub-name strong { display: block; font-weight: 600; font-size: 15px; letter-spacing: .16em; }
.sub-name em { display: block; font-style: normal; font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 1.25; margin-top: 6px; }
.sub-short { color: var(--muted); font-size: 15px; transition: color .4s; }
.sub-row:hover .sub-short { color: var(--muted-dark); }
.sub-go { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; }
.sub-go .icon { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.sub-row:hover .sub-go .icon { transform: translateX(6px); color: var(--gold); }

/* ---------- Valeurs ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--navy-line); }
.value { padding: 32px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--navy-line); }
.value .value-num { color: var(--gold); }
.value h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 18px 0 12px; }
.value p { color: var(--muted-dark); font-size: 15px; }

/* ---------- Gouvernance ---------- */
.governance-note { margin-top: 24px; max-width: 36ch; }
.leader { display: grid; grid-template-columns: 150px 1fr; gap: 40px; background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.leader-mono {
    width: 150px; height: 150px;
    display: grid; place-items: center;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--serif); font-weight: 300; font-size: 44px; letter-spacing: .06em;
    border-radius: 50%;
}
.leader h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.leader-role { margin: 8px 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.leader-body > p:not(.leader-role) { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 7px 12px; border: 1px solid var(--line); background: var(--ivory); }

/* ---------- Technologies ---------- */
.tech { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; }
.tech .eyebrow { margin-bottom: 12px; }
.tech-title { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.25; }
.tech-list { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.tech-list li { font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9AA1AE; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); }
.contact .lead { margin-top: 24px; }
.contact-list { margin-top: 48px; border-top: 1px solid var(--navy-line); }
.contact-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--navy-line); }
.contact-list dt { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted-dark); }
.contact-list dt .icon { width: 18px; height: 18px; color: var(--gold); }
.contact-list dd { text-align: right; }
.contact-list a:hover { color: var(--gold); }

.contact-form { background: var(--navy-2); border: 1px solid var(--navy-line); padding: clamp(28px, 4vw, 52px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 10px; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.22);
    border-radius: 0;
    color: var(--white);
    font: 400 16px/1.5 var(--sans);
    transition: border-color .25s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23C6A46A' stroke-width='1.4'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.field select option { color: var(--text); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field-error { margin-top: 8px; font-size: 13px; color: #F0A99B; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--muted-dark); max-width: 30ch; }
.alert { padding: 14px 18px; margin-bottom: 28px; font-size: 14px; border-left: 2px solid; }
.alert--success { background: rgba(198,164,106,.1); border-color: var(--gold); }
.alert--error { background: rgba(240,169,155,.1); border-color: #F0A99B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-top: clamp(64px, 8vw, 100px); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 3fr; gap: 40px; padding-bottom: 64px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand img { height: 96px; }
.footer-brand p { margin-top: 24px; max-width: 32ch; }
.footer-title { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.site-footer ul li + li { margin-top: 10px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; border-top: 1px solid var(--navy-line); font-size: 13px; }
.footer-bottom-right { display: flex; align-items: center; gap: 28px; }

/* ---------- Page filiale ---------- */
.sub-hero {
    padding: 170px 0 clamp(64px, 8vw, 110px);
    background:
        radial-gradient(900px 500px at 90% 20%, rgba(198, 164, 106, .09), transparent 60%),
        linear-gradient(180deg, var(--ink), var(--navy));
    color: var(--white);
    overflow: hidden;
}
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .06em; color: var(--muted-dark); margin-bottom: clamp(48px, 7vw, 90px); transition: color .2s; }
.back-link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.back-link:hover { color: var(--white); }
.back-link:hover .icon { transform: translateX(-4px); }
.sub-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.sub-hero-name { font-size: clamp(48px, 8.5vw, 124px); line-height: .95; letter-spacing: -.03em; margin-bottom: 28px; }
.sub-hero .display-3 { color: var(--muted-dark); max-width: 26ch; }
.sub-hero-icon { color: var(--gold); opacity: .9; }
.sub-hero-icon .icon { width: clamp(120px, 16vw, 220px); height: auto; }
.intro-text { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 28px) !important; line-height: 1.45; color: var(--text) !important; }

.solutions { margin-top: clamp(64px, 8vw, 100px); }
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution { background: var(--paper); border: 1px solid var(--line); padding: 36px; }
.solution h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 12px; }
.solution p { color: var(--muted); }

.expertise { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-item { padding: 36px 32px 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.expertise-item:hover { background: var(--ivory); }
.expertise-item h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 20px 0 10px; }
.expertise-item p { color: var(--muted); font-size: 15px; }

.sub-cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.checklist li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--navy-line); font-size: 17px; }
.checklist li:first-child { border-top: 1px solid var(--navy-line); }
.checklist .icon { width: 20px; height: 20px; color: var(--gold); flex: none; }
.sub-cta-box { border: 1px solid rgba(198,164,106,.35); padding: clamp(28px, 4vw, 48px); }
.sub-cta-box p { color: var(--muted-dark); margin: 18px 0 32px; }

.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.other { display: flex; flex-direction: column; gap: 6px; padding: 26px; background: var(--paper); border: 1px solid var(--line); position: relative; transition: border-color .3s, transform .4s var(--ease); }
.other:hover { border-color: var(--gold); transform: translateY(-3px); }
.other .sub-icon { margin-bottom: 18px; }
.other strong { font-size: 13px; letter-spacing: .14em; font-weight: 600; }
.other em { font-style: normal; font-size: 14px; color: var(--muted); }
.other-go { position: absolute; top: 26px; right: 26px; color: var(--gold-deep); }
.other-go .icon { width: 18px; height: 18px; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { position: absolute; right: -120px; top: 90px; width: 440px; opacity: .35; z-index: -1; }
    .sub-row { grid-template-columns: 44px 48px 1fr 40px; }
    .sub-short { display: none; }
    .values { grid-template-columns: 1fr 1fr; }
    .value:nth-child(3) { padding-left: 0; border-left: 0; }
    .value:nth-child(n+3) { border-top: 1px solid var(--navy-line); margin-top: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .others { grid-template-columns: 1fr 1fr; }
    .expertise { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .split, .contact-grid, .sub-cta, .tech { grid-template-columns: 1fr; }
    .split { gap: 28px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
    .facts { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(3) { padding-left: 0; border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--navy-line); }
    .pillars { grid-template-columns: 1fr; gap: 40px; }
    .leader { grid-template-columns: 1fr; gap: 24px; }
    .leader-mono { width: 96px; height: 96px; font-size: 30px; }
    .solutions-grid { grid-template-columns: 1fr; }
    .sub-hero-icon { display: none; }
    .sub-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .nav-actions { gap: 10px; }
    .brand-word { font-size: 13px; letter-spacing: .18em; }
    .brand img, .site-header.is-solid .brand img { height: 52px; }
    .hero { padding-top: 120px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .sub-row { grid-template-columns: 48px 1fr 28px; gap: 16px; padding-block: 26px; }
    .sub-index { display: none; }
    .sub-name em { font-size: 19px; }
    .values, .expertise, .others { grid-template-columns: 1fr; }
    .value, .value + .value { padding-left: 0; border-left: 0; }
    .value + .value { border-top: 1px solid var(--navy-line); margin-top: 24px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-foot { flex-direction: column; align-items: stretch; }
    .form-foot .btn { justify-content: center; }
    .contact-list > div { flex-direction: column; gap: 6px; }
    .contact-list dd { text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .lang--footer { display: none; }
}

/* ---------- Écosystèmes technologiques (onglets par filiale) ---------- */
.eco-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.eco-tabs button {
    background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    padding: 14px 18px; cursor: pointer;
    font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
    transition: color .25s, border-color .25s;
}
.eco-tabs button:hover { color: var(--navy); }
.eco-tabs button.is-active { color: var(--navy); border-bottom-color: var(--gold); }
.js .eco-panel:not(.is-active) { display: none; }
.eco-panel + .eco-panel { margin-top: 24px; }
.js .eco-panel + .eco-panel { margin-top: 0; }
.eco-panel.is-active { animation: eco-in .45s var(--ease); }
@keyframes eco-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eco-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.eco-item {
    height: 128px; padding: 22px 26px;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--paper); transition: background .3s;
}
.eco-item:hover { background: var(--white); }
.eco-item img { max-width: min(100%, 150px); max-height: 44px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.eco-item:hover img { filter: none; opacity: 1; }
.eco-item--text span { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8C93A0; text-align: center; line-height: 1.35; transition: color .3s; }
.eco-item--text:hover span { color: var(--navy); }
@media (max-width: 1080px) { .eco-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .eco-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  {
    .eco-grid { grid-template-columns: repeat(2, 1fr); }
    .eco-item { height: 104px; padding: 18px; }
    .eco-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .eco-tabs button { flex: none; padding: 14px 12px; }
}

/* ---------- Logos des filiales ---------- */
.sub-logo { position: relative; width: 48px; height: 52px; display: block; }
.sub-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s var(--ease); }
.sub-logo-dark { opacity: 0; }
.sub-row:hover .sub-logo-light, .sub-row:focus-visible .sub-logo-light { opacity: 0; }
.sub-row:hover .sub-logo-dark, .sub-row:focus-visible .sub-logo-dark { opacity: 1; }
.sub-hero-icon img { width: clamp(130px, 17vw, 230px); height: auto; }
.sub-logo-full { width: min(100%, 300px); height: auto; margin-top: 10px; }
.other-logo { width: 40px; height: 45px; object-fit: contain; margin-bottom: 18px; }


/* ==========================================================================
   Harmonisation avec le site KSPA DOMOTIK (domotik.kspagroup.com)
   Typo : Arvo (titres, gras) + Poppins (texte) · boutons « pilule » ·
   étiquettes arrondies · cartes à coins arrondis.
   ========================================================================== */
body { font-size: 15px; line-height: 1.7; color: #2B2B33; }

/* Titres : Arvo gras, sans effet d'italique ni crénage serré */
.display-1, .display-2, .display-3, .sub-hero-name {
    font-weight: 700; font-variation-settings: normal; letter-spacing: normal; color: inherit;
}
.display-1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.18; }
.display-2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.22; }
.display-3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.35; font-weight: 400; }
.sub-hero-name { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.05; }
.section--paper .display-2, .section--ivory .display-2 { color: var(--navy); }
.pillar h3, .value h3, .leader h3, .solution h3, .expertise-item h3 { font-weight: 700; }
.pillar h3 { font-size: 22px; } .value h3 { font-size: 21px; } .expertise-item h3 { font-size: 19px; }
.solution h3 { font-size: 24px; } .leader h3 { font-size: 26px; }
.sub-name em { font-family: var(--sans); font-weight: 500; font-size: 18px; }
.fact dt { font-weight: 700; }
.tech-title { font-weight: 700; font-size: 22px; }
.mobile-nav a { font-weight: 700; font-size: 22px; }
.intro-text { font-family: var(--sans) !important; font-weight: 400; font-size: clamp(17px, 1.6vw, 20px) !important; line-height: 1.75; }
.lead, .section-lead, .hero-lead { font-weight: 400; }

/* Étiquettes (eyebrow) en pilule, comme « DOMAINE 01 » */
.eyebrow {
    display: inline-flex; gap: 0; padding: 6px 14px; border-radius: 30px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
    color: var(--gold-deep); background: rgba(202, 66, 38, .09);
}
.eyebrow::before { display: none; }
.eyebrow--gold, .section--dark .eyebrow, .hero .eyebrow, .sub-hero .eyebrow { color: var(--gold); background: rgba(243, 163, 58, .14); }

/* Boutons « pilule » en capitales */
.btn { --h: 48px; padding: 0 26px; border-radius: 30px; font: 500 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.btn-sm { --h: 40px; padding: 0 20px; font-size: 12px; }
.btn-gold { background: var(--gold-deep); color: #fff; }
.btn-gold:hover { background: #B23A20; }
.btn-ghost { border-color: rgba(255,255,255,.6); }
.btn-dark { background: var(--navy); }
.site-header.is-solid .nav-cta { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Cartes et blocs à coins arrondis */
.leader, .solution, .contact-form, .sub-cta-box, .other, .sub-menu { border-radius: var(--card-radius); }
.sub-menu { overflow: hidden; }
.sub-menu a { border-radius: 10px; }
.expertise, .eco-grid { border-radius: var(--card-radius); overflow: hidden; border-right: 1px solid var(--line); }
.expertise-item:nth-child(3n), .eco-item:nth-child(6n) { border-right: 0; }
.sub-row::before { border-radius: var(--card-radius); }
.tags li { border-radius: 30px; padding: 6px 14px; }
.alert { border-radius: 10px; }
.leader, .solution, .other { box-shadow: 0 10px 30px -18px rgba(32, 29, 60, .25); }
.other:hover { border-color: var(--gold-deep); }

/* Formulaire : champs encadrés et arrondis */
.field input, .field select, .field textarea {
    padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.04);
}
.field select { background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }

/* Onglets des écosystèmes en pilules */
.eco-tabs { gap: 8px; border-bottom: 0; }
.eco-tabs button { border: 1px solid var(--line); border-radius: 30px; margin: 0; padding: 11px 20px; font-family: var(--sans); }
.eco-tabs button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.hero .display-1 { max-width: 19ch; }
.section-head .display-2 { max-width: 22ch; }

/* ---------- Repères (bandeau sous le hero) ---------- */
.facts {
    grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-top: clamp(48px, 7vw, 88px); margin-bottom: clamp(40px, 5vw, 64px);
    border-top: 0;
}
.fact, .fact + .fact {
    padding: 26px 24px 28px; border: 1px solid var(--navy-line); border-left: 1px solid var(--navy-line);
    border-radius: var(--card-radius); background: rgba(255, 255, 255, .035);
    transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.fact:hover { border-color: rgba(243, 163, 58, .45); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.fact-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(243, 163, 58, .14); color: var(--gold); margin-bottom: 20px; }
.fact-icon .icon { width: 22px; height: 22px; }
.fact dt { font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; color: var(--white); }
.fact dd { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--muted-dark); letter-spacing: 0; }
@media (max-width: 1080px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .fact:nth-child(3), .fact:nth-child(n+3) { padding-left: 24px; border-left: 1px solid var(--navy-line); border-top: 1px solid var(--navy-line); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
