/* Atlantic Engineering — design system
   Deux univers : ATEX (jaune signalétique Ex) et Assistance technique (bleu Atlantic).
   Une seule famille, Archivo, dont l'axe de chasse porte la personnalité. */

:root {
    --ink: #14212b;
    --ink-2: #2a3a46;
    --steel: #586873;
    --line: #d3dade;
    --paper: #f2f4f5;
    --white: #ffffff;
    --ex: #f5c518;
    --ex-deep: #6e5400;
    --atlantic: #1d5c8f;
    --atlantic-deep: #123f63;
    --atlantic-soft: #dce8f2;
    --ex-soft: #fbefc0;

    --accent: var(--atlantic);
    --accent-ink: var(--white);
    --accent-text: var(--atlantic);
    --accent-soft: var(--atlantic-soft);

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wide: 118;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(64px, 9vw, 128px);
    --radius: 4px;
    --header-h: 76px;
}

[data-universe="atex"] {
    --accent: var(--ex);
    --accent-ink: var(--ink);
    --accent-text: var(--ex-deep);
    --accent-soft: var(--ex-soft);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; font-stretch: 112%; font-variation-settings: "wdth" var(--wide); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[data-universe="atex"] :focus-visible { outline-color: var(--ink); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typographie ---------- */
.display { font-size: clamp(2.5rem, 6.2vw, 5.25rem); font-weight: 850; line-height: 0.98; letter-spacing: -0.025em; font-variation-settings: "wdth" 125; }
.h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; font-variation-settings: "wdth" 122; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; font-variation-settings: "wdth" 108; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--steel); }
.prose { max-width: 42em; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin: 1.6em 0 0.5em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin: 1.4em 0 0.4em; font-size: 1.25rem; font-variation-settings: "wdth" 108; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
    border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--accent); color: var(--accent-ink); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.on-dark .btn-line:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: inset 0 -4px 0 var(--accent);
}
.site-header--home { box-shadow: none; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1; font-variation-settings: "wdth" 120; letter-spacing: -0.01em; }
.brand-name small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--steel); margin-top: 4px; font-variation-settings: "wdth" 100; letter-spacing: 0; }

.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link, .nav-trigger {
    display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
    font: inherit; font-size: 0.975rem; font-weight: 600; color: var(--ink);
    background: none; border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none;
}
.nav-link:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { background: var(--paper); }
.nav-link[aria-current="page"], .nav-item.is-current > .nav-trigger { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.nav-swatch--atex { background: var(--ex); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); width: 12px; height: 11px; }
.nav-swatch--assistance { background: var(--atlantic); }
.nav-trigger svg { transition: transform .2s; }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }

.nav-item { position: relative; }
.nav-panel {
    position: absolute; top: calc(100% + 14px); left: -12px; width: 380px;
    background: var(--white); border: 1px solid var(--line); border-radius: 6px;
    box-shadow: 0 24px 48px -16px rgba(20, 33, 43, 0.28);
    padding: 10px; display: none;
}
.nav-item.open .nav-panel { display: block; }
.nav-panel a { display: block; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; }
.nav-panel a:hover { background: var(--paper); }
.nav-panel a[aria-current="page"] { background: var(--paper); box-shadow: inset 3px 0 0 var(--panel-accent); }
.nav-panel strong { display: block; font-weight: 700; font-size: 0.975rem; }
.nav-panel span { display: block; font-size: 0.875rem; color: var(--steel); line-height: 1.4; margin-top: 2px; }
.nav-panel .panel-head { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 14px; }
.nav-item--atex { --panel-accent: var(--ex); }
.nav-item--assistance { --panel-accent: var(--atlantic); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch a { padding: 6px 9px; font-size: 0.8125rem; font-weight: 700; text-decoration: none; color: var(--steel); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--white); }
.header-cta { min-height: 44px; padding: 8px 18px; }

.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
    :root { --header-h: 68px; }
    .site-header { backdrop-filter: none; background: var(--white); }
    .menu-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
        overflow-y: auto; padding: 8px var(--gutter) 40px; display: none;
    }
    .menu-open .main-nav { display: block; }
    .menu-open { overflow: hidden; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul > li { border-bottom: 1px solid var(--line); }
    .nav-link, .nav-trigger { height: auto; min-height: 60px; width: 100%; padding: 0 4px; font-size: 1.125rem; justify-content: flex-start; }
    .nav-trigger svg { margin-left: auto; }
    .nav-link[aria-current="page"], .nav-item.is-current > .nav-trigger { box-shadow: none; }
    .nav-panel { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 14px; }
    .nav-panel a { padding: 10px 12px; }
    .nav-panel .panel-head { border: 0; padding-bottom: 10px; margin-bottom: 0; }
    .nav-mobile-cta { display: block !important; padding-top: 24px; border: 0 !important; }
    .nav-mobile-cta .btn { width: 100%; justify-content: center; }
}
.nav-mobile-cta { display: none !important; }
.lang-switch--menu { margin-top: 16px; }
.lang-switch--menu a { flex: 1; text-align: center; padding: 12px; font-size: 0.9375rem; }
@media (max-width: 560px) {
    .header-inner { gap: 12px; }
    .lang-switch--header { display: none; }
    .brand img { width: 34px; height: 34px; }
    .brand-name { font-size: 0.95rem; }
    .brand-name small { display: none; }
}

/* ---------- Accueil : choix des deux univers ---------- */
.home-intro { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 3.5vw, 44px); }
.home-intro .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; }
.home-intro .display { font-size: clamp(2.5rem, 5.4vw, 4.75rem); }
.home-intro .lead { margin: 0; }
@media (max-width: 900px) { .home-intro .container { grid-template-columns: 1fr; } }

.gateway { display: flex; gap: 6px; padding: 0 6px 6px; min-height: clamp(520px, 72vh, 760px); }
.gate {
    position: relative; flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(28px, 4vw, 56px); overflow: hidden; color: var(--white); text-decoration: none;
    border-radius: 6px; isolation: isolate;
    transition: flex-grow .5s cubic-bezier(.2, .7, .2, 1);
}
.gate--atex { flex-grow: 1.35; }
@media (hover: hover) and (min-width: 900px) {
    .gateway:hover .gate { flex-grow: 1; }
    .gateway .gate:hover, .gateway .gate:focus-visible { flex-grow: 1.7; }
}
.gate-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.gate:hover .gate-bg { transform: scale(1.04); }
.gate::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.gate--atex::before { background: linear-gradient(180deg, rgba(20, 33, 43, .15) 0%, rgba(20, 33, 43, .55) 45%, rgba(20, 33, 43, .94) 100%); }
.gate--assistance::before { background: linear-gradient(180deg, rgba(18, 63, 99, .25) 0%, rgba(18, 63, 99, .7) 50%, rgba(13, 45, 71, .96) 100%); }
.gate-mark { position: absolute; top: clamp(24px, 3.5vw, 48px); left: clamp(28px, 4vw, 56px); }
.gate-mark svg { width: clamp(64px, 7vw, 96px); height: auto; }
.gate-tag { display: inline-block; align-self: flex-start; margin-bottom: 18px; padding: 6px 12px; border-radius: 3px; font-size: 0.875rem; font-weight: 700; }
.gate--atex .gate-tag { background: var(--ex); color: var(--ink); }
.gate--assistance .gate-tag { background: var(--white); color: var(--atlantic-deep); }
.gate h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 0.98; font-variation-settings: "wdth" 125; font-weight: 850; letter-spacing: -0.025em; }
.gate p { margin: 16px 0 0; max-width: 34em; font-size: 1.0625rem; color: rgba(255, 255, 255, .86); }
.gate-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.gate-list li { font-size: 0.875rem; font-weight: 600; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; }
.gate-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-weight: 800; font-size: 1.0625rem; }
.gate-go svg { transition: transform .3s; }
.gate:hover .gate-go svg { transform: translateX(6px); }
.gate--atex .gate-go { color: var(--ex); }
@media (max-width: 899px) {
    .gateway { flex-direction: column; min-height: 0; }
    .gate { min-height: 440px; }
    .gate-mark { position: static; margin-bottom: auto; padding-bottom: 32px; }
    .gate-mark svg { width: 64px; }
}

/* ---------- Bandeaux d'en-tête de page ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 33, 43, .96) 0%, rgba(20, 33, 43, .86) 45%, rgba(20, 33, 43, .35) 100%); }
[data-universe="assistance"] .page-hero::before { background: linear-gradient(90deg, rgba(13, 45, 71, .97) 0%, rgba(18, 63, 99, .86) 45%, rgba(18, 63, 99, .3) 100%); }
.page-hero .container { padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(48px, 8vw, 112px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { color: rgba(255, 255, 255, .85); margin-top: 24px; }
.page-hero--plain { background: var(--paper); color: var(--ink); }
.page-hero--plain::before { display: none; }
.page-hero--plain .lead { color: var(--ink-2); }

.crumbs { padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin-bottom: 28px; font-size: 0.9375rem; }
.crumbs a { text-decoration: none; opacity: .8; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .45; }
.crumbs .crumb-universe { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section--continue { padding-top: 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .lead, .section--ink .prose p, .section--ink .prose li { color: rgba(255, 255, 255, .8); }
.section--ink .muted { color: rgba(255, 255, 255, .62); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > :first-child { grid-column: span 6; }
.split > :last-child { grid-column: span 6; }
.split--wide-left > :first-child { grid-column: span 7; }
.split--wide-left > :last-child { grid-column: span 5; }
.split--wide-right > :first-child { grid-column: span 5; }
.split--wide-right > :last-child { grid-column: span 7; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split > :first-child, .split > :last-child { grid-column: 1 / -1 !important; } }

.figure { position: relative; border-radius: 6px; overflow: hidden; background: var(--paper); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 3 / 2; }
.figure figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 14px 18px; font-size: 0.875rem; color: var(--white); background: linear-gradient(transparent, rgba(20, 33, 43, .85)); }

/* ---------- Bloc ATEXpert (l'outil qui fait la différence) ---------- */
.atexpert { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.atexpert-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.atexpert-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.atexpert-brand svg { width: 52px; height: auto; }
.atexpert-brand b { font-size: 1.5rem; font-weight: 850; font-variation-settings: "wdth" 125; letter-spacing: -0.01em; }
.atexpert-brand b em { font-style: normal; color: var(--ex); }
.atexpert h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.atexpert h1 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); }
.atexpert .lead { color: rgba(255, 255, 255, .8); margin-top: 20px; }
.atexpert-points { list-style: none; margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, .16); }
.atexpert-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .86); }
.atexpert-points li::before { content: ""; width: 12px; height: 11px; margin-top: 7px; background: var(--ex); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.atexpert-points strong { color: var(--white); }
.screen-stack { position: relative; padding-bottom: 14%; }
.screen-main { border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .12); }
.screen-side { position: absolute; width: 42%; right: -4%; bottom: 0; border-radius: 8px; overflow: hidden; border: 4px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
@media (max-width: 900px) { .atexpert-grid { grid-template-columns: 1fr; } .screen-side { right: 0; } }

/* ---------- Prestations ATEX ---------- */
.service-feature {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); text-decoration: none;
    background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.service-feature .sf-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.service-feature .sf-img { position: relative; min-height: 320px; }
.service-feature .sf-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-flag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); padding: 6px 12px; border-radius: 3px; margin-bottom: 22px; }
.service-feature h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.service-feature p { margin-top: 16px; color: var(--ink-2); max-width: 36em; }
.service-feature .text-link { margin-top: auto; padding-top: 24px; align-self: flex-start; }
.service-feature:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
@media (max-width: 860px) { .service-feature { grid-template-columns: 1fr; } .service-feature .sf-img { min-height: 220px; order: -1; } }

.service-rows { list-style: none; border-top: 1px solid var(--line); margin-top: 24px; }
.service-rows a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 40px; gap: 16px 40px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-rows h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-variation-settings: "wdth" 115; }
.service-rows p { margin: 0; color: var(--ink-2); }
.service-rows .row-arrow { justify-self: end; align-self: center; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.service-rows a:hover .row-arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.service-rows a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 760px) { .service-rows a { grid-template-columns: 1fr 40px; } .service-rows p { grid-column: 1 / 2; } .service-rows .row-arrow { grid-row: 1; grid-column: 2; } }

/* ---------- Zones ATEX (explication visuelle) ---------- */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.zone { padding: 28px 24px 26px; border-right: 1px solid var(--line); position: relative; }
.zone:last-child { border-right: 0; }
.zone-level { display: block; height: 8px; margin: -28px -24px 24px; }
.zone:nth-child(1) .zone-level { background: #c8361f; }
.zone:nth-child(2) .zone-level { background: #ea7d1a; }
.zone:nth-child(3) .zone-level { background: var(--ex); }
.zone-ids { display: flex; gap: 8px; margin-bottom: 14px; }
.zone-id { display: inline-grid; place-items: center; min-width: 48px; height: 42px; padding: 0 10px; font-weight: 850; font-variation-settings: "wdth" 120; font-size: 1.125rem; border: 2px solid var(--ink); clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%); background: var(--ink); color: var(--white); }
.zone-id--dust { background: var(--white); color: var(--ink); }
.zone h3 { font-size: 1.125rem; font-variation-settings: "wdth" 108; margin-bottom: 8px; }
.zone p { font-size: 0.9375rem; color: var(--ink-2); margin: 0; }
.zones-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-size: 0.875rem; color: var(--steel); }
.zones-legend span { display: inline-flex; align-items: center; gap: 8px; }
.zones-legend i { width: 16px; height: 14px; display: inline-block; clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%); background: var(--ink); }
.zones-legend i.dust { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 760px) { .zones { grid-template-columns: 1fr; } .zone { border-right: 0; border-bottom: 1px solid var(--line); } .zone:last-child { border-bottom: 0; } }

/* ---------- Démarche (séquence réelle) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.section--ink .steps { border-top-color: var(--ex); }
.steps li { counter-increment: step; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.section--ink .steps li { border-bottom-color: rgba(255, 255, 255, .14); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 850; font-size: 1rem; font-variation-settings: "wdth" 125; color: var(--accent-text); margin-bottom: 14px; }
.section--ink .steps li::before { color: var(--ex); }
.steps h3 { font-size: 1.1875rem; font-variation-settings: "wdth" 110; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 0.975rem; color: var(--ink-2); }
.section--ink .steps p { color: rgba(255, 255, 255, .75); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* ---------- Matrice de priorisation ATEXpert ---------- */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 4px; font-size: 0.9375rem; }
.matrix th { font-weight: 700; text-align: left; padding: 10px 12px; vertical-align: bottom; }
.matrix thead th { font-size: 0.875rem; color: var(--steel); font-weight: 600; }
.matrix thead th strong { display: block; color: var(--ink); font-size: 0.975rem; }
.matrix tbody th { width: 34%; background: var(--paper); border-radius: 3px; vertical-align: middle; }
.matrix tbody th span { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--steel); }
.matrix td { text-align: center; font-weight: 850; font-size: clamp(1.75rem, 3vw, 2.5rem); font-variation-settings: "wdth" 125; padding: 18px 0; border-radius: 3px; color: var(--ink); }
.p1 { background: #fbe9a6; } .p2 { background: #f8d66a; } .p3 { background: #f5b94a; }
.p4 { background: #f3a043; } .p5 { background: #ec7f37; } .p6 { background: #e0592b; color: var(--white) !important; }
.p7 { background: #c8441f; color: var(--white) !important; } .p8 { background: #a8341b; color: var(--white) !important; } .p9 { background: #7d2414; color: var(--white) !important; }

/* ---------- Faits / engagements ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 28px 24px 28px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font-size: 1.25rem; font-weight: 800; font-variation-settings: "wdth" 115; line-height: 1.2; }
.fact span { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--steel); }
.section--ink .facts, .section--ink .fact + .fact { border-color: rgba(255, 255, 255, .16); }
.section--ink .fact span { color: rgba(255, 255, 255, .65); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(3) { padding-left: 0; border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Listes à deux colonnes (métiers, domaines) ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-cloud li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); font-weight: 600; font-size: 0.9375rem; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.group h3 { font-size: 1.25rem; font-variation-settings: "wdth" 112; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--accent); }
.group p { color: var(--ink-2); }
@media (max-width: 760px) { .groups { grid-template-columns: 1fr; } }

.check-list { list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(-45deg); }
.check-list strong { color: var(--ink); }
.section--ink .check-list li { color: rgba(255, 255, 255, .82); border-color: rgba(255, 255, 255, .14); }
.section--ink .check-list li::before { border-color: var(--ex); }
.section--ink .check-list strong { color: var(--white); }

/* ---------- Modalités d'intervention ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mode { background: var(--white); padding: 32px 28px; border-radius: 6px; }
.mode h3 { font-size: 1.375rem; font-variation-settings: "wdth" 115; margin-bottom: 12px; }
.mode p { margin: 0; color: var(--ink-2); }
.modes--on-white .mode { background: var(--paper); }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

/* ---------- Références clients ---------- */
.logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.logos li { display: grid; place-items: center; min-height: 104px; padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.logos img { height: var(--h, 40px); width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 1000px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos li { min-height: 88px; } .logos img { height: calc(var(--h, 40px) * .85); } }

/* ---------- Bandeau de contact ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.cta-band h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); max-width: 22ch; }
.cta-band p { margin: 14px 0 0; max-width: 40em; opacity: .85; }
.cta-band .btn-ink:hover { background: var(--white); color: var(--ink); }
body:not([data-universe="atex"]) .cta-band .btn-ink { background: var(--white); color: var(--atlantic-deep); }
body:not([data-universe="atex"]) .cta-band .btn-ink:hover { background: var(--ink); color: var(--white); }
@media (max-width: 760px) { .cta-band .container { grid-template-columns: 1fr; } }

/* ---------- Passerelle vers l'autre univers ---------- */
.crosslink { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; }
.crosslink span { color: var(--steel); }
.crosslink strong { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-variation-settings: "wdth" 115; }
.crosslink:hover strong { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Réglementation ---------- */
.reg-table { width: 100%; border-collapse: collapse; }
.reg-table th, .reg-table td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table th { width: 32%; font-weight: 800; font-variation-settings: "wdth" 110; }
.reg-table td { color: var(--ink-2); }
.reg-table caption { text-align: left; font-weight: 800; font-size: 1.25rem; font-variation-settings: "wdth" 115; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
@media (max-width: 640px) { .reg-table th, .reg-table td { display: block; width: auto; padding: 0; border: 0; } .reg-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); } .reg-table td { margin-top: 6px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-aside dl { margin: 32px 0 0; }
.contact-aside dt { font-weight: 700; margin-top: 22px; }
.contact-aside dd { margin: 4px 0 0; color: var(--ink-2); }
.contact-aside a { text-decoration-color: var(--accent); text-underline-offset: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; background: var(--paper); padding: clamp(24px, 4vw, 48px); border-radius: 6px; }
.form .field--full { grid-column: 1 / -1; }
.form label, .form legend { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
    width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; color: var(--ink);
    background: var(--white); border: 1.5px solid #b9c4cb; border-radius: var(--radius);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--atlantic-soft); }
.form textarea { min-height: 180px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.subject-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.subject-choice label { margin: 0; position: relative; }
.subject-choice input { position: absolute; opacity: 0; }
.subject-choice input + span { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; background: var(--white); border: 1.5px solid #b9c4cb; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.subject-choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--white); }
.subject-choice input:focus-visible + span { outline: 3px solid var(--atlantic); outline-offset: 2px; }
.subject-choice input:checked + span .nav-swatch { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .subject-choice { grid-template-columns: 1fr; } }
.form .help { font-size: 0.875rem; color: var(--steel); margin: 0; }
.form ul { list-style: none; color: #b42318; font-size: 0.875rem; margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 16px 20px; border-radius: var(--radius); background: #e3f4e8; color: #11512a; font-weight: 600; margin-bottom: 24px; border-left: 4px solid #1f8a47; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 0.9375rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.site-footer h2 { font-size: 1rem; color: var(--white); font-variation-settings: "wdth" 110; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand .brand { margin-bottom: 18px; color: var(--white); }
.footer-brand .brand-name small { color: rgba(255, 255, 255, .6); }
.footer-brand address { font-style: normal; margin-top: 16px; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 0.875rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom li { margin: 0; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Utilitaires ---------- */
.mt-s { margin-top: 16px; } .mb-s { margin-bottom: 20px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 64px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Une seule entrée orchestrée : l'arrivée sur l'accueil */
@media (prefers-reduced-motion: no-preference) {
    .home-intro .display, .home-intro .lead, .gate { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .home-intro .lead { animation-delay: .08s; }
    .gate--atex { animation-delay: .16s; }
    .gate--assistance { animation-delay: .24s; }
}
/* Glissement seul : le contenu reste visible même si l'animation ne se joue pas (onglet en arrière-plan, capture). */
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation: none !important; } }
