/* ==========================================================================
   ATIM-AGCI SARL — feuille de style
   Charte issue de la brochure : rouge ATIM, bleu nuit, gris anthracite.
   ========================================================================== */

:root {
    --red: #E52421;
    --red-dark: #B9191A;
    --red-soft: #FDECEC;
    --navy: #12385C;
    --navy-dark: #0B2640;
    --ink: #24282E;
    --grey: #5B5F66;
    --grey-light: #9AA0A8;
    --line: #E4E6EA;
    --muted: #F4F5F7;
    --white: #FFFFFF;

    --font-head: "Montserrat", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;

    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 40px -22px rgba(18, 56, 92, .35);
    --container: 1200px;
    --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--muted { background: var(--muted); }
.section--navy { background: var(--navy); color: #DCE6F0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.center { text-align: center; margin-top: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.icon { flex-shrink: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em; color: var(--red);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #FF8C8A; }
.lead { font-size: 1.15rem; color: var(--grey); }

/* ---------- Boutons & liens ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--red); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--red);
}
.link-arrow .icon { transition: transform .2s; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; color: var(--navy); font: 600 .9rem var(--font-body); cursor: pointer;
    transition: all .2s;
}
.chip span { font-size: .78rem; background: var(--muted); padding: 1px 8px; border-radius: 99px; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active span { background: rgba(255,255,255,.18); }
.chip--light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.chip--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.tag {
    position: absolute; left: 14px; top: 14px;
    background: var(--red); color: #fff; padding: 5px 12px; border-radius: 99px;
    font: 700 .72rem var(--font-head); letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Topbar & header ---------- */
.topbar { background: var(--navy-dark); color: #C6D3E0; font-size: .86rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__slogan { font-style: italic; font-family: Georgia, serif; }
.topbar__contacts { display: flex; gap: 22px; }
.topbar a { color: #C6D3E0; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(0,0,0,.3); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 54px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 900 1.45rem var(--font-head); color: #55575B; letter-spacing: -.02em; }
.brand__form { font: 500 .66rem var(--font-head); color: var(--grey); text-align: right; letter-spacing: .1em; margin-top: 2px; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__form { color: #9FB3C7; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
    position: relative; display: block; padding: 10px 12px;
    font: 600 .95rem var(--font-head); color: var(--ink);
}
.site-nav ul a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
    background: var(--red); border-radius: 2px; transform: scaleX(0); transition: transform .25s;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--red); }
.site-nav ul a.is-active::after, .site-nav ul a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; }
.nav-toggle__close { display: none; }

/* ---------- Hero accueil (chevron de la brochure) ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--red);
    min-height: min(720px, calc(100vh - 118px));
    display: grid;
}
.hero__panel {
    grid-area: 1 / 1;
    position: relative; z-index: 2;
    background: linear-gradient(100deg, #fff 0%, #fff 60%, #EDEEF0 100%);
    clip-path: polygon(0 0, 58% 0, 68% 50%, 58% 100%, 0 100%);
    display: flex; align-items: center;
    filter: drop-shadow(0 0 30px rgba(0,0,0,.25));
}
.hero__inner { padding: 72px 0; }
.hero__text { max-width: 560px; }
.hero__text h1 span { color: var(--red); display: block; }
.hero__lead { font-size: 1.15rem; color: var(--grey); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__visual { grid-area: 1 / 1; position: relative; z-index: 1; }
.hero__tile {
    position: absolute; margin: 0; overflow: hidden;
    border: 6px solid #fff; border-radius: 40px; box-shadow: var(--shadow);
}
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__tile--1 { right: -4%; top: 6%; width: 46%; height: 52%; transform: rotate(4deg); }
.hero__tile--2 { right: 18%; bottom: -6%; width: 30%; height: 44%; transform: rotate(-5deg); }
.hero__tile--3 { right: -2%; bottom: 4%; width: 22%; height: 30%; transform: rotate(7deg); }

.domains { background: var(--navy); color: #fff; overflow: hidden; padding: 18px 0; }
.domains__track { display: flex; gap: 46px; width: max-content; animation: marquee 40s linear infinite; }
.domains__track span { font: 700 1.05rem var(--font-head); white-space: nowrap; display: inline-flex; align-items: center; gap: 46px; }
.domains__track span::after { content: ""; width: 10px; height: 10px; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.trust { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat__value { font: 900 clamp(2.4rem, 4vw, 3.3rem) var(--font-head); color: var(--ink); margin: 0; line-height: 1; letter-spacing: -.03em; }
.stat__label { color: var(--grey); margin: 8px 0 0; font-size: 1rem; }
.stats--cards .stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px; position: relative; overflow: hidden;
}
.stats--cards .stat::before { content: ""; position: absolute; left: 0; top: 26px; width: 5px; height: 36px; background: var(--red); border-radius: 0 4px 4px 0; }
.stats--cards .stat:nth-child(2) { transform: translateY(28px); }
.stats--cards .stat:nth-child(4) { transform: translateY(28px); }
.stats--band { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats--band .stat { padding: 10px; border-right: 1px solid var(--line); }
.stats--band .stat:last-child { border: 0; }
.stats--band .stat__value { color: var(--red); }

/* ---------- Dirigeants ---------- */
.leaders-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.leaders-teaser__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.leaders-teaser__photos figure, .leader { margin: 0; }
.leaders-teaser__photos img, .leader img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.leaders-teaser__photos figure:nth-child(2) { transform: translateY(40px); }
.leaders-teaser__photos figcaption, .leader figcaption { display: flex; flex-direction: column; margin-top: 12px; }
.leaders-teaser__photos figcaption strong, .leader figcaption strong { font-family: var(--font-head); color: #fff; }
.leaders-teaser__photos figcaption span, .leader figcaption span { color: #FF8C8A; font-size: .92rem; }
blockquote { margin: 0 0 28px; }
blockquote p { font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.45 var(--font-head); color: #fff; }

.leaders { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.leaders__photos { display: grid; gap: 24px; padding: 40px; background: #F0F2F5; }
.leader figcaption strong { color: var(--navy); font-size: 1.1rem; }
.leader figcaption span { color: var(--red); }
.leader img { aspect-ratio: 1/1; object-position: top; }
.leaders__message { padding: clamp(32px, 5vw, 64px); color: #DCE6F0; }
.leaders__message h2 { color: #fff; }
.leaders__sign { font-family: var(--font-head); font-weight: 700; color: #fff; border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; margin-top: 28px; }

/* ---------- Expertise ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.expertise-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.expertise-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.expertise-card h3 { margin: 12px 0 4px; }
.expertise-card p { color: var(--grey); font-size: .98rem; flex: 1; margin: 0 0 14px; }
.expertise-card__icon {
    display: inline-grid; place-items: center; width: 54px; height: 54px;
    border-radius: 16px; background: var(--red-soft); color: var(--red);
}
.expertise-card__count { font: 700 .78rem var(--font-head); color: var(--grey-light); text-transform: uppercase; letter-spacing: .08em; }
.expertise-card--cta { background: var(--red); border-color: var(--red); color: #fff; justify-content: center; }
.expertise-card--cta h3 { color: #fff; }
.expertise-card--cta p { color: #FFE3E2; flex: 0; }
.expertise-card--cta .link-arrow { color: #fff; }
.expertise-card--cta:hover { color: #fff; }

.expertise-list { display: grid; gap: clamp(56px, 8vw, 96px); }
.expertise-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.expertise-row:nth-child(even) .expertise-row__media { order: 2; }
.expertise-row__media { position: relative; margin: 0; }
.expertise-row__media img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.expertise-row__num {
    position: absolute; bottom: -22px; right: 26px;
    font: 900 4.5rem/1 var(--font-head); color: var(--red);
    text-shadow: 4px 4px 0 #fff;
}
.expertise-row__body h2 { margin-top: 16px; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--red); margin-top: 4px; background: var(--red-soft); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }

/* ---------- Réalisations ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card[hidden] { display: none; }
.project-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.project-card__link:hover { color: var(--ink); }
.project-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__placeholder {
    height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.logo-mark--ghost { width: 90px; opacity: .9; }
.project-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-card__client { font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 8px; }
.project-card__body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.project-card__body p:not(.project-card__client) { color: var(--grey); font-size: .96rem; flex: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.empty-state { text-align: center; color: var(--grey); padding: 40px; }

.project-detail { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose p { font-size: 1.1rem; color: #3A3F46; }
.prose p.eyebrow { color: var(--red); font-size: .78rem; }
.prose .eyebrow + h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.project-detail__main > p:first-child { font-size: 1.2rem; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: var(--muted); border-radius: 12px; }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    font: 800 .9rem var(--font-head); color: #fff; background: var(--red);
    border-radius: 8px; padding: 2px 8px; flex-shrink: 0;
}
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--red-soft); color: var(--red-dark); font: 700 .88rem var(--font-head); padding: 6px 14px; border-radius: 99px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 2), 1fr); }
.gallery--1 { --cols: 1; } .gallery--2 { --cols: 2; } .gallery--3 { --cols: 3; }
.gallery__item { border-radius: 14px; overflow: hidden; display: block; aspect-ratio: 4/3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.05); }
.project-detail__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.meta-card { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--muted); display: grid; gap: 18px; }
.meta-card dt { display: flex; align-items: center; gap: 8px; font: 700 .76rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.meta-card dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); }
.aside-cta { padding: 26px; border-radius: var(--radius); background: var(--navy); color: #C6D3E0; }
.aside-cta h3 { color: #fff; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 600 .92rem var(--font-head); margin-top: 18px; opacity: .85; }
.back-link:hover { color: #fff; opacity: 1; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.pager__link { display: flex; flex-direction: column; gap: 6px; max-width: 46%; font: 700 1rem var(--font-head); color: var(--navy); }
.pager__link span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.pager__link--next { text-align: right; margin-left: auto; align-items: flex-end; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 34, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; background: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; background: var(--navy); color: #DCE6F0; padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.page-hero::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34%;
    background: var(--red); clip-path: polygon(40% 0, 100% 0, 100% 100%, 40% 100%, 0 50%);
    opacity: .95;
}
.page-hero__inner { position: relative; z-index: 1; max-width: var(--container); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero__lead { font-size: 1.2rem; max-width: 56ch; color: #DCE6F0; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 64%; }

.about-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.about-intro__media { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about-intro__media img { border-radius: var(--radius-lg); aspect-ratio: 3/4; object-fit: cover; }
.about-intro__media figcaption {
    margin: -34px 20px 0; position: relative; background: var(--red); color: #fff;
    padding: 16px 22px; border-radius: 14px; font: 800 1rem var(--font-head); text-align: center;
}

.pillars { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 22px; }
.pillar { background: #fff; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); }
.pillar__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.pillar--vision { background: var(--navy); color: #DCE6F0; border-color: var(--navy); }
.pillar--vision h3 { color: #fff; }
.pillar--vision .pillar__icon { background: rgba(255,255,255,.1); color: #fff; }
.pillar--value { background: var(--red); color: #FFE7E6; border-color: var(--red); }
.pillar--value h3 { color: #fff; }
.pillar--value .pillar__icon { background: rgba(255,255,255,.16); color: #fff; }

.logo-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; align-items: center; }
.logo-strip__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; aspect-ratio: 1; display: grid; place-items: center; }
.logo-strip__item img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .25s; }
.logo-strip__item:hover img { filter: none; opacity: 1; }

.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; transition: box-shadow .25s, transform .25s; }
.partner-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.partner-card__logo { height: 120px; display: grid; place-items: center; margin-bottom: 16px; }
.partner-card__logo img { max-height: 110px; max-width: 80%; object-fit: contain; }
.partner-card__initials { min-width: 96px; height: 96px; padding: 0 14px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 900 1.4rem var(--font-head); }
.partner-card h3 { font-size: 1rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 .9rem var(--font-head); color: var(--navy); }
.field abbr { color: var(--red); text-decoration: none; }
.field input, .field select, .field textarea {
    font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(18,56,92,.12); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red-dark); font-size: .88rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 600; }
.alert--success { background: #E7F6EC; color: #17663A; }
.alert--error { background: var(--red-soft); color: var(--red-dark); }
.info-card { background: var(--navy); color: #DCE6F0; padding: 32px; border-radius: var(--radius); margin-bottom: 20px; }
.info-card h2 { color: #fff; font-size: 1.4rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: #FF8C8A; margin-top: 3px; }
.contact-list a { color: inherit; }
.contact-list a:hover { color: #fff; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--muted); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #A9BBCD; padding-bottom: 28px; }
.site-footer__cta {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    background: var(--red); color: #FFE7E6; border-radius: var(--radius-lg);
    padding: 40px clamp(28px, 4vw, 56px); transform: translateY(-50%);
    margin-bottom: -20px;
}
.site-footer__cta h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 6px; }
.site-footer__cta p { margin: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.site-footer ul:not(.contact-list) { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #A9BBCD; }
.site-footer a:hover { color: #fff; }
.site-footer .btn--light { color: var(--navy); white-space: nowrap; flex-shrink: 0; }
.site-footer .btn--light:hover { color: var(--navy); background: #FFE7E6; }
.site-footer__slogan { font-style: italic; font-family: Georgia, serif; color: #FF8C8A; margin: 16px 0 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: .9rem; }
.site-footer__bottom p { margin: 0; }
.page-home .site-footer, body .site-footer { margin-top: 90px; }


/* ---------- Fiche d'identité & références ---------- */
.identity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; }
.identity > div { background: var(--muted); border-radius: var(--radius); padding: 22px; }
.identity dt { display: flex; align-items: center; gap: 8px; font: 700 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .07em; color: var(--red); margin-bottom: 8px; }
.identity dd { margin: 0; font-weight: 600; color: var(--navy); }
.ref-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; min-width: min(380px, 100%); color: var(--grey); }
.ref-search input { border: 0; outline: 0; font: inherit; flex: 1; background: transparent; color: var(--ink); }
.ref-search:focus-within { border-color: var(--navy); }
.ref-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.ref-row { display: grid; grid-template-columns: 1.1fr 2.4fr .8fr .6fr; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: start; }
.ref-row[hidden] { display: none; }
.ref-row--head { border-top: 0; background: var(--navy); color: #fff; font: 700 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .07em; }
.ref-row__client { color: var(--navy); font-family: var(--font-head); font-size: .95rem; }
.ref-row__mandat { color: #3A3F46; }
.ref-row__annee { font: 700 .9rem var(--font-head); color: var(--red); white-space: nowrap; }
.ref-tag { display: inline-block; background: var(--red-soft); color: var(--red-dark); font: 700 .74rem var(--font-head); padding: 4px 10px; border-radius: 99px; }
@media (max-width: 1080px) { .identity { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
    .ref-row { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
    .ref-row--head { display: none; }
    .ref-row__annee { order: -1; }
}
@media (max-width: 600px) { .identity { grid-template-columns: 1fr; } }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-strip { grid-template-columns: repeat(5, 1fr); }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .hero__panel { clip-path: polygon(0 0, 70% 0, 82% 50%, 70% 100%, 0 100%); }
    .hero__text { max-width: 480px; }
    .site-nav { gap: 12px; }
    .site-nav ul a { padding: 10px 8px; font-size: .9rem; }
}

@media (max-width: 900px) {
    .topbar__slogan { display: none; }
    .topbar__inner { justify-content: center; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: calc(var(--header-h) + 40px) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        background: #fff; padding: 20px 16px 28px; border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
        transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
    }
    .site-header.is-scrolled .site-nav, body.nav-open .site-nav { inset-block-start: var(--header-h); }
    body.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
    body.nav-open .nav-toggle__open { display: none; }
    body.nav-open .nav-toggle__close { display: block; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .site-nav ul a::after { display: none; }

    .hero { min-height: 0; }
    .hero__panel { clip-path: none; filter: none; grid-area: 2 / 1; }
    .hero__inner { padding: 44px 0 56px; }
    .hero__visual { grid-area: 1 / 1; height: 280px; }
    .hero__tile--1 { left: 4%; right: auto; top: 10%; width: 62%; height: 74%; }
    .hero__tile--2 { right: 4%; bottom: 8%; width: 40%; height: 56%; }
    .hero__tile--3 { display: none; }

    .trust, .leaders-teaser, .leaders, .about-intro, .project-detail, .contact, .expertise-row { grid-template-columns: 1fr; }
    .expertise-row:nth-child(even) .expertise-row__media { order: 0; }
    .about-intro__media, .project-detail__aside { position: static; }
    .about-intro__media img { aspect-ratio: 4/3; }
    .leaders__photos { grid-template-columns: 1fr 1fr; padding: 24px; }
    .pillars { grid-template-columns: 1fr; }
    .stats--band { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stats--band .stat:nth-child(2) { border-right: 0; }
    .page-hero::after { width: 22%; opacity: .9; }
    .chip-nav { max-width: 100%; }
    .site-footer__cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .topbar__contacts a:last-child { display: none; }
    .brand__name { font-size: 1.2rem; }
    .logo-mark { width: 44px; }
    .expertise-grid, .project-grid, .form-grid { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-strip { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head--center { align-items: center; }
    .stats--cards .stat:nth-child(2), .stats--cards .stat:nth-child(4) { transform: none; }
    .leaders-teaser__photos figure:nth-child(2) { transform: none; }
    .gallery--3 { --cols: 2; }
    .stats--cards .stat__value { font-size: 2.1rem; }
    .stats--cards .stat { padding: 22px 18px; }
    .page-hero::after { display: none; }
    .pager { flex-direction: column; }
    .pager__link { max-width: 100%; }
}
