/* =============================================================================
   Arkanlis — feuille de style unique
   Le thème est piloté par la classe posée sur <html> (Site:Theme dans appsettings).
   Pour changer de thème : appsettings.json -> "Site": { "Theme": "nuit" }
   Pour en créer un : dupliquer un bloc .theme-xxx ci-dessous.
   ============================================================================= */

/* ----------------------------------------------------------------- Thèmes */
.theme-ocean   { --bg:#F2F6FA; --surf:#FFFFFF; --fg:#0C1723; --mut:#566579; --line:rgba(0,0,0,.11); --a:#0F62FE; --a2:#0891B2; }
.theme-nuit    { --bg:#0B1020; --surf:#111830; --fg:#F2F5FA; --mut:#9AA6BC; --line:rgba(255,255,255,.13); --a:#4ADE80; --a2:#60A5FA; }
.theme-ivoire  { --bg:#F4F2ED; --surf:#FFFFFF; --fg:#14161B; --mut:#5C6472; --line:rgba(0,0,0,.13); --a:#0F766E; --a2:#1D4ED8; }
.theme-cobalt  { --bg:#101A3D; --surf:#17245A; --fg:#EEF2FF; --mut:#A5B0D8; --line:rgba(255,255,255,.16); --a:#FBBF24; --a2:#7DD3FC; }
.theme-ardoise { --bg:#171A1F; --surf:#1F242B; --fg:#EEF2F6; --mut:#98A2AF; --line:rgba(255,255,255,.11); --a:#38BDF8; --a2:#F59E0B; }
.theme-foret   { --bg:#0C1613; --surf:#132320; --fg:#E9F3EF; --mut:#8FAAA0; --line:rgba(255,255,255,.11); --a:#4ADE80; --a2:#FBBF24; }
.theme-sable   { --bg:#F4EFE6; --surf:#FFFDF9; --fg:#1D1913; --mut:#6B6152; --line:rgba(0,0,0,.12); --a:#B45309; --a2:#0F766E; }
.theme-prune   { --bg:#15101A; --surf:#1E1726; --fg:#F2ECF6; --mut:#A79BB2; --line:rgba(255,255,255,.12); --a:#C084FC; --a2:#F472B6; }
.theme-cuivre  { --bg:#141110; --surf:#1D1917; --fg:#F7EFE8; --mut:#B3A497; --line:rgba(255,255,255,.12); --a:#E08D45; --a2:#D4A24C; }
.theme-signal  { --bg:#0B0B0B; --surf:#151515; --fg:#F5F5F1; --mut:#9C9C95; --line:rgba(255,255,255,.14); --a:#E4FF37; --a2:#FF5C39; }

/* ------------------------------------------------------------------ Socle */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.14; margin: 0; }

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

.wrap { max-width: 1340px; margin: 0 auto; padding: 0 32px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--a); color: var(--surf); padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

.ic { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.15em; }
.ic-sm { width: 1em; height: 1em; }
.ic-xs { width: .85em; height: .85em; }

/* ---------------------------------------------------------------- Boutons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    border-radius: 999px; padding: 12px 24px;
    font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
    transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.btn-primary { background: var(--a); color: var(--surf); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }

/* ----------------------------------------------------------------- Header */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 10px 30px -24px rgba(0,0,0,.5); }

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

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px; flex: none;
    background: linear-gradient(135deg, var(--a), var(--a2));
    display: grid; place-items: center; color: var(--surf);
}
.logo-mark svg { width: 20px; height: 20px; }

.nav-links ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nav-links a { color: var(--mut); padding: 6px 0; position: relative; }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 1px; background: var(--a); transition: right .25s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { right: 0; }

.nav-side { display: flex; align-items: center; gap: 14px; }

.lang { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-item { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--mut); padding: 5px 10px; border-radius: 999px; }
.lang-item:hover { color: var(--fg); }
.lang-item.is-current { background: var(--fg); color: var(--bg); }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--fg); }
.burger svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ Intro */
.intro { padding: 72px 0 52px; text-align: center; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--mut); margin: 0 0 18px; }
.intro h1 { font-size: clamp(30px, 4vw, 50px); max-width: 20ch; margin: 0 auto 16px; font-weight: 700; }
.lead { color: var(--mut); font-size: 17px; line-height: 1.75; max-width: 66ch; margin: 0 auto; }
.lead-left { margin-left: 0; margin-right: 0; }

.intro-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.intro-chips {
    list-style: none; margin: 30px 0 0; padding: 0;
    display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center;
    color: var(--mut); font-size: 13.5px;
}
.intro-chips li { display: inline-flex; align-items: center; gap: 8px; }
.intro-chips .ic { color: var(--a); }

/* En-tête de section : surtitre, titre, chapeau */
.section-head { max-width: 78ch; margin-bottom: 34px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(24px, 2.9vw, 34px); margin-bottom: 14px; }

/* -------------------------------------------------- Triptyque des 3 pôles */
.split { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }

.col {
    padding: 44px 32px 50px; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; transition: background .25s;
}
.col:last-child { border-right: 0; }
.col:hover { background: var(--surf); }

.col.c1 { --accent: var(--a); }
.col.c2 { --accent: var(--a2); }
.col.c3 { --accent: var(--fg); }

.col-shot {
    position: relative; margin: 0 0 22px;
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    container-type: inline-size;          /* les tailles ci-dessous suivent la largeur du bloc */
}
.col-shot img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; display: block; }

/* Bandeau : mêmes proportions que le visuel d'origine (1600 x 1000).
   Le fond sombre et le filet d'accent sont dans l'image ; seul le texte est ici,
   ce qui le rend traduisible. */
.shot-band {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 25%;                           /* 250 / 1000 */
    padding: 3% 5% 0;                      /* 30 / 1000  ·  80 / 1600 */
    display: flex; flex-direction: column; justify-content: flex-start;
    color: #fff; pointer-events: none;
}
.shot-eyebrow {
    font-size: 1.32cqw;                    /* 21 / 1600 */
    letter-spacing: .1em; text-transform: uppercase; color: #6DB2FF;
    line-height: 1.1;
}
.shot-title {
    font-size: 4.63cqw;                    /* 74 / 1600 */
    font-weight: 700; letter-spacing: -.03em; line-height: 1.12;
    margin-top: .9cqw;
}
.shot-sub {
    font-size: 1.44cqw;                    /* 23 / 1600 */
    color: #BED0E2; line-height: 1.35; margin-top: 1.4cqw;
}

/* Repli pour les navigateurs sans requêtes de conteneur */
@supports not (container-type: inline-size) {
    .shot-eyebrow { font-size: 11px; }
    .shot-title { font-size: 34px; margin-top: 6px; }
    .shot-sub { font-size: 12px; margin-top: 10px; }
}

.tag {
    color: var(--accent); display: inline-flex; align-items: center; gap: 9px; width: max-content;
    font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    padding: 6px 13px; border-radius: 999px; border: 1px solid currentColor;
}

.col h3 { font-size: 25px; margin: 22px 0 12px; font-weight: 700; }
.col > p { color: var(--mut); font-size: 15px; line-height: 1.75; margin: 0 0 22px; }

.col-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.col-list li { display: flex; gap: 10px; align-items: flex-start; }
.col-list .ic { color: var(--accent); margin-top: .3em; flex: none; }

.col-audience {
    font-size: 13.5px; font-style: italic; color: var(--mut);
    border-left: 2px solid var(--accent); padding-left: 12px; margin: 0 0 24px;
}
.col-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--accent); }
.col-cta:hover { gap: 13px; }

/* --------------------------------------------------------------- Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--surf); }
.section-title { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mut); margin: 0 0 26px; font-weight: 600; }

/* Produits */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product { background: var(--surf); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.product-visual img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.product-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.product-logo { color: var(--fg); margin-bottom: 16px; }
.product-logo svg { height: 30px; width: auto; }
.product-baseline { font-size: 15px; font-weight: 600; color: var(--fg); margin: 0 0 12px; }
.product p { color: var(--mut); font-size: 15px; line-height: 1.8; margin: 0 0 20px; }
.product-features {
    list-style: none; margin: 0 0 26px; padding: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.product-features li {
    border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 13px; font-size: 12.5px; color: var(--mut);
}
.product-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-note { font-size: 12px; color: var(--mut); }

/* Spécialités : cartographie du SI + GRC */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.spec { border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px 34px; background: var(--surf); }
.spec-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--a); margin-bottom: 18px; }
.spec h3 { font-size: 21px; margin-bottom: 12px; }
.spec > p { color: var(--mut); font-size: 15px; line-height: 1.8; margin: 0 0 20px; }
.spec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.spec li { display: flex; gap: 11px; align-items: flex-start; }
.spec li .ic { color: var(--a); margin-top: .35em; flex: none; }

/* Référencements aux centrales d'achat public */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref { border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; background: var(--bg); }
.ref-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--a); color: var(--surf);
    display: grid; place-items: center; margin-bottom: 16px; }
.ref b { display: block; font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px; }
.ref span { color: var(--mut); font-size: 14px; line-height: 1.75; }
.ref-note { color: var(--mut); font-size: 14px; margin: 22px 0 0; }

/* Implantations : montage photo du siège + agences */
.loc { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; align-items: start; }
.loc-montage { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 10px; }
.loc-montage figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.loc-montage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.loc-montage figure:hover img { transform: scale(1.04); }
.loc-montage .m-main { grid-row: span 2; }
.loc-montage .m-wide { grid-column: span 2; }
.loc-montage figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 26px 18px 14px; color: #fff; font-size: 14px; font-weight: 600;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.loc-list { display: grid; gap: 14px; }
.loc-item { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--surf); }
.loc-item b { display: block; font-size: 16.5px; margin-bottom: 7px; }
.loc-text { color: var(--mut); font-size: 14px; line-height: 1.7; display: block; }
.loc-label { display: inline-block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--a); margin-bottom: 10px; }
.loc-hq { border-color: var(--a); }
.loc-shot { margin: -20px -22px 16px; border-radius: 16px 16px 0 0; overflow: hidden; }
.loc-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.loc-metropole {
    display: flex; align-items: flex-start; gap: 11px;
    color: var(--mut); font-size: 14px; line-height: 1.7; margin: 24px 0 0;
}
.loc-metropole .ic { color: var(--a); margin-top: .3em; flex: none; }

/* Méthode : quatre étapes numérotées */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.step { background: var(--bg); padding: 30px 26px 34px; }
.step-num { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--a); margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--mut); font-size: 14.5px; line-height: 1.75; margin: 0; }

/* Pourquoi nous */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why { border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; background: var(--surf); }
.why-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--a); margin-bottom: 16px; }
.why h3 { font-size: 18px; margin-bottom: 10px; }
.why p { color: var(--mut); font-size: 14.5px; line-height: 1.8; margin: 0; }

/* FAQ */
.faq { max-width: 82ch; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surf); padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--a); flex: none; transition: transform .2s; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { color: var(--mut); font-size: 15px; line-height: 1.8; margin: 14px 0 0; }

/* Repères */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.facts b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.facts span { color: var(--mut); font-size: 14px; line-height: 1.65; }

/* Secteurs */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surf); }
.sector img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.sector figcaption { padding: 16px 18px 20px; }
.sector figcaption b { display: block; font-size: 16px; margin-bottom: 8px; }
.sector figcaption span { display: block; color: var(--mut); font-size: 13.5px; line-height: 1.7; }
.sector-note { color: var(--mut); font-size: 14px; margin: 20px 0 0; }

/* ---------------------------------------------------------------- Contact */
.section-contact { background: var(--surf); border-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-intro h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.contact-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.contact-points li { display: flex; gap: 11px; align-items: flex-start; }
.contact-points .ic { color: var(--a); margin-top: .35em; flex: none; }
.contact-direct { margin: 22px 0 0; display: flex; align-items: center; gap: 10px; color: var(--a); font-weight: 600; }

.contact-panel { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--mut); }
.field input, .field select, .field textarea {
    font: inherit; font-size: 15px; color: var(--fg);
    background: var(--surf); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; width: 100%; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--a); outline: none; }
.field input.input-error, .field textarea.input-error, .field select.input-error { border-color: #E11D48; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-note { color: var(--mut); font-size: 13px; margin: 0; }
.form-alt { color: var(--mut); font-size: 13.5px; margin: 16px 0 0; }
.form-alt a { color: var(--a); font-weight: 600; }

/* ------------------------------------------------------- Pages de contenu */
.section-doc h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 26px; }
.section-doc h2 { font-size: 18px; margin: 32px 0 10px; }
.section-doc p { color: var(--mut); font-size: 15.5px; line-height: 1.85; max-width: 70ch; margin: 0; }

.section-error { text-align: center; padding: 110px 0; border-bottom: 0; }
.section-error h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section-error .lead { margin-bottom: 28px; }
.section-error code { font-size: 12px; }
.section-error .form-note { margin-top: 22px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 52px 0 0; font-size: 14.5px; }
.f-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 44px; padding-bottom: 44px; }
.f-brand p { color: var(--mut); line-height: 1.75; margin: 16px 0 0; max-width: 40ch; }
.site-footer h2 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.site-footer li a:hover { color: var(--a); }
.f-bottom {
    border-top: 1px solid var(--line); padding: 20px 0;
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    color: var(--mut); font-size: 13px;
}
.f-bottom a:hover { color: var(--a); }
.f-bottom .sep { opacity: .5; margin: 0 6px; }

/* ------------------------------------------------------------- Apparitions */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Mobile */
@media (max-width: 1024px) {
    .split, .product-grid, .facts, .contact-grid, .f-grid, .steps, .why-grid,
    .spec-grid, .ref-grid, .loc { grid-template-columns: 1fr; }
    .loc-montage { grid-auto-rows: 150px; }
    .sector-grid { grid-template-columns: 1fr 1fr; }
    .col { border-right: 0; border-bottom: 1px solid var(--line); }
    .facts { gap: 22px; }

    .burger { display: inline-flex; }
    .nav-links {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--bg); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .nav-links.open { max-height: 70vh; }
    .nav-links ul { flex-direction: column; gap: 0; padding: 8px 32px 20px; }
    .nav-links li { border-bottom: 1px solid var(--line); }
    .nav-links a { display: block; padding: 14px 0; font-size: 16px; }
    .nav-side .btn-ghost { display: none; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 20px; }
    .field-row { grid-template-columns: 1fr; }
    .sector-grid { grid-template-columns: 1fr; }
    .col { padding: 34px 20px 40px; }
    .contact-panel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
