/* ==========================================================================
   Challenge Ingénieurs Conseils — feuille de style
   Couleurs tirées du logo : orange, jaune, gris.
   ========================================================================== */

:root {
    --orange: #e07a26;
    --orange-dark: #b85e14;
    --yellow: #f6dc1a;
    --ink: #14181f;
    --ink-2: #1d232d;
    --text: #333a45;
    --muted: #6b7380;
    --line: #e4e1da;
    --tint: #f7f5f0;
    --white: #fff;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 18px 40px -22px rgba(20, 24, 31, .35);
    --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
    --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

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

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Boutons & liens ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .95em 1.5em; border: 1.5px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap;
    transition: transform .2s, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { padding: .7em 1.2em; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 12px 24px -12px rgba(224, 122, 38, .9); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost-dark { border-color: rgba(20, 24, 31, .4); color: var(--ink); }
.btn--ghost-dark:hover { background: rgba(20, 24, 31, .08); }

.link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--orange-dark); }
.link .ico { transition: transform .2s; }
.link:hover .ico { transform: translateX(4px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.eyebrow--light { color: var(--yellow); }

/* ---------- Barre supérieure & en-tête ---------- */

.topbar { background: var(--ink); color: #c9ced6; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 9px; }
.topbar__right { display: flex; gap: 22px; }
.topbar a:hover { color: var(--yellow); }
.topbar .ico { color: var(--orange); margin-right: 2px; }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(20, 24, 31, .6); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 62px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--display); font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand__text small { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { position: relative; padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--ink); border-radius: 8px; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav > a:not(.btn):hover::after, .nav > a.is-active::after { transform: scaleX(1); }
.nav > a.is-active { color: var(--orange-dark); }
.nav .btn { margin-left: 10px; }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 10px; }
.burger span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Héros (accueil) ---------- */

.hero { position: relative; color: #fff; background: var(--ink); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; animation: zoom 18s ease-in-out infinite alternate; }
.hero__bg img.is-active { opacity: 1; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 24, 31, .96) 0%, rgba(20, 24, 31, .82) 42%, rgba(20, 24, 31, .35) 100%), linear-gradient(0deg, rgba(20, 24, 31, .9) 0%, transparent 38%); }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 40px; padding-block: clamp(70px, 11vw, 140px) clamp(50px, 6vw, 80px); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.3rem); max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--orange), var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__content p { max-width: 56ch; margin: 1.4rem 0 2rem; font-size: 1.1rem; color: #d5d9df; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); font-size: .9rem; color: #d5d9df; }
.hero__card strong { font-family: var(--display); font-size: 1.05rem; line-height: 1.3; color: #fff; }
.hero__card-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero__card a { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; font-weight: 700; color: var(--yellow); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.stats__item { padding: 28px 24px 34px 0; }
.stats__item + .stats__item { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stats dt { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1; color: #fff; }
.stats dt span { font-variant-numeric: tabular-nums; }
.stats dd { margin: 10px 0 0; font-size: .9rem; color: #b8bec8; max-width: 22ch; }

/* ---------- Bandeau des pages intérieures ---------- */

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(60px, 9vw, 110px); color: #d5d9df; background: var(--ink); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 24, 31, .95) 10%, rgba(20, 24, 31, .6) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.page-hero p { max-width: 62ch; margin: 1.1rem 0 0; font-size: 1.08rem; }
.crumbs { display: flex; gap: 10px; margin-bottom: 1.2rem; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.crumbs a { color: #b8bec8; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #6b7380; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #c9ced6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--yellow); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin: 1rem 0 0; font-size: 1.05rem; color: var(--muted); }
.section--dark .section-head p { color: #b8bec8; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.section-row .section-head { margin-bottom: 0; }

/* ---------- Bloc texte + image ---------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 84px); align-items: center; }
.split__text h2 { margin-bottom: 1.2rem; }
.split__text > p { color: var(--muted); }
.section--dark .split__text > p { color: #b8bec8; }
.section--dark .split__text strong { color: #fff; }
.split__text strong { color: var(--ink); }

.split__media { position: relative; padding: 0 56px 56px 0; }
.split__img { border-radius: var(--radius); object-fit: cover; }
.split__img--main { width: 100%; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.split__img--sub { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid #fff; box-shadow: var(--shadow); }
.split__seal { position: absolute; left: -14px; bottom: 26px; max-width: 230px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--ink); color: #c9ced6; font-size: .8rem; line-height: 1.4; box-shadow: var(--shadow); }
.split__seal strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--yellow); }

.checks { display: grid; gap: 12px; margin: 1.5rem 0 1.8rem; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { margin-top: .2em; padding: 3px; width: 1.4em; height: 1.4em; border-radius: 50%; background: rgba(224, 122, 38, .14); color: var(--orange-dark); }

/* ---------- Cartes prestations ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--orange), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 14px; background: var(--ink); color: var(--yellow); font-size: 1.35rem; }
.card h3 { margin-bottom: .6rem; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Domaines (accueil) ---------- */

.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.domain { position: relative; display: flex; align-items: flex-end; min-height: 420px; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; }
.domain img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.domain::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 24, 31, .95) 18%, rgba(20, 24, 31, .25) 70%); transition: background-color .3s; }
.domain:hover img { transform: scale(1.07); }
.domain__num { position: absolute; top: 18px; left: 20px; font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--yellow); }
.domain__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; }
.domain__body strong { font-family: var(--display); font-size: 1.2rem; line-height: 1.25; }
.domain__body span { font-size: .88rem; color: #c9ced6; }
.domain__body em { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; font-style: normal; font-size: .86rem; font-weight: 700; color: var(--yellow); }
.domain:hover em .ico { transform: translateX(4px); }
.domain em .ico { transition: transform .2s; }

/* ---------- Réalisations ---------- */

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.project { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project[hidden] { display: none; }
.project__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e9e6df; aspect-ratio: 16 / 10.5; overflow: hidden; cursor: zoom-in; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project__media img { transform: scale(1.06); }
.project--plan .project__media { background: #fff; }
.project--plan .project__media img { object-fit: contain; padding: 16px; }
.project__badge, .project__count { position: absolute; top: 14px; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.project__badge { left: 14px; background: var(--yellow); color: var(--ink); }
.project__count { right: 14px; background: rgba(20, 24, 31, .78); color: #fff; }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.project__meta { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); }
.project h3 { margin-bottom: .6rem; line-height: 1.3; }
.project__text { font-size: .93rem; color: var(--muted); }
.project__client { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--text); }
.project__client span { margin-right: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.projects--featured .project--large { grid-column: span 2; grid-row: span 2; }
.projects--featured .project--large .project__media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.projects--featured .project--large .project__body { flex: none; }
.projects--featured .project--large h3 { font-size: 1.5rem; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; color: var(--text); transition: background-color .2s, color .2s, border-color .2s; }
.chip span { padding: 1px 8px; border-radius: 999px; background: var(--tint); font-size: .75rem; font-weight: 700; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { background: var(--orange); color: #fff; }

/* ---------- Méthode ---------- */

.method { display: grid; gap: 14px; counter-reset: none; }
.method li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.method li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.method__n { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--orange); }
.method strong { display: block; font-family: var(--display); color: var(--ink); }
.method div span { font-size: .88rem; color: var(--muted); }
.method em { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-style: normal; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.method--dark li { background: var(--ink-2); border-color: rgba(255, 255, 255, .1); }
.method--dark strong { color: #fff; }
.method--dark div span { color: #b8bec8; }
.method--dark em { background: var(--yellow); color: var(--ink); }

/* ---------- Clients (défilement) ---------- */

.section--clients { padding-bottom: clamp(48px, 6vw, 72px); }
.marquee { overflow: hidden; margin-bottom: 36px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 14px; padding-right: 14px; }
.marquee li { padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint); font-weight: 700; font-size: .92rem; color: var(--ink); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Le bureau ---------- */

.values { display: grid; gap: 14px; margin-top: 1.8rem; }
.values div { padding: 16px 20px; border-left: 4px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--tint); }
.values strong { display: block; font-family: var(--display); }
.values span { font-size: .92rem; color: var(--muted); }

.fiche { padding: 32px; border-radius: var(--radius); background: var(--ink); color: #c9ced6; box-shadow: var(--shadow); }
.fiche h3 { margin-bottom: 18px; color: #fff; font-size: 1.3rem; }
.fiche dl { margin: 0; }
.fiche dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.fiche dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); padding-top: 3px; }
.fiche dd { margin: 0; color: #fff; font-size: .95rem; overflow-wrap: anywhere; }

.agrements { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.agrements__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.agrement { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.agrement__ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 11px; background: rgba(224, 122, 38, .13); color: var(--orange-dark); font-size: 1.15rem; }
.agrement strong { display: block; font-family: var(--display); font-size: .98rem; line-height: 1.3; color: var(--ink); }
.agrement span { font-size: .86rem; color: var(--muted); }
.attestation { margin: 0; }
.attestation button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); }
.attestation img { width: 100%; transition: transform .5s; }
.attestation button:hover img { transform: scale(1.03); }
.attestation figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted); text-align: center; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team__item { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.team__item:first-child { background: var(--orange); border-color: var(--orange); }
.team__item strong { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--orange); }
.team__item span { display: block; margin-top: 10px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.team__item:first-child strong, .team__item:first-child span { color: #fff; }

.means { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.means__col { padding: 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: var(--ink-2); }
.means__col h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--orange); }
.means__col ul { display: grid; gap: 12px; }
.means__col li { display: flex; gap: 10px; font-size: .93rem; }
.means__col .ico { margin-top: .25em; color: var(--yellow); }

.org { display: grid; justify-items: center; gap: 22px; }
.org__node { padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; line-height: 1.35; text-align: center; color: var(--ink); }
.org__node small { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); }
.org__node--top { background: var(--ink); color: #fff; font-family: var(--display); font-size: 1.05rem; padding: 18px 32px; }
.org__node--top small { color: var(--yellow); letter-spacing: .14em; text-transform: uppercase; }
.org__node--dept { background: var(--orange); color: #fff; }
.org__node--light { background: var(--tint); border: 1px solid var(--line); }
.org__node--outline { border: 2px dashed var(--orange); }
.org__side { position: relative; }
.org__branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; padding-top: 22px; border-top: 2px solid var(--line); }
.org__branch { display: grid; gap: 16px; align-content: start; }
.org__leaves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.org__leaves > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Expertises ---------- */

.expertises { display: grid; gap: 28px; }
.expertise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.expertise__media { position: relative; min-height: 320px; }
.expertise__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.expertise__media span { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--yellow); font-family: var(--display); font-weight: 700; color: var(--ink); }
.expertise__body { padding: clamp(26px, 4vw, 46px); }
.expertise__body h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.expertise__body > p { color: var(--muted); }
.expertise__body .checks { margin-bottom: 0; }
.expertise--reverse .expertise__media { order: 2; }

/* ---------- Références ---------- */

.ref-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: .92rem; color: var(--muted); transition: background-color .2s, color .2s; }
.tab span { padding: 1px 8px; border-radius: 999px; background: #fff; font-size: .75rem; }
.tab.is-active { background: var(--ink); color: #fff; }
.tab.is-active span { background: var(--orange); color: #fff; }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 300px; max-width: 440px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); transition: border-color .2s; }
.search:focus-within { border-color: var(--orange); }
.search input { flex: 1; min-width: 0; padding: 13px 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.ref-title { margin-bottom: 20px; font-size: 1.4rem; }
.ref-empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { padding: 15px 18px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: var(--tint); }
.table td:first-child { font-family: var(--display); font-weight: 700; color: var(--orange); }
.table td:last-child { font-weight: 600; color: var(--ink); min-width: 220px; }
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.table tr[hidden] { display: none; }
.year { display: inline-block; padding: 3px 11px; border-radius: 999px; background: rgba(224, 122, 38, .13); font-weight: 700; font-size: .82rem; color: var(--orange-dark); white-space: nowrap; }
mark { padding: 0 2px; border-radius: 3px; background: var(--yellow); color: var(--ink); }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__info h2 { margin-bottom: 1.8rem; }
.contact__list { display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; }
.contact__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--ink); color: var(--yellow); font-size: 1.2rem; }
.contact__list strong { display: block; margin-bottom: 2px; font-family: var(--display); color: var(--ink); }
.contact__list a:hover { color: var(--orange-dark); text-decoration: underline; }
.contact__list div { overflow-wrap: anywhere; }
.contact__zones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact__zones span { padding: 7px 16px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--ink); }

.form-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 22px; font-size: 1.35rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.field label b { color: var(--orange-dark); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--tint); font: inherit; color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(224, 122, 38, .15); }
.field [aria-invalid="true"] { border-color: #c0392b; background: #fdf3f2; }
.field__error { font-size: .84rem; font-weight: 600; color: #b03024; }
.form-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin-bottom: 22px; padding: 16px 18px; border-radius: var(--radius-sm); font-size: .95rem; }
.alert strong { display: block; }
.alert--ok { background: #e9f7ee; border: 1px solid #b6e0c4; color: #1d6b3a; }
.alert--error { background: #fdf0ee; border: 1px solid #f1c3bd; color: #a12c20; }

/* ---------- Appel à l'action & pied de page ---------- */

.cta { background: linear-gradient(100deg, var(--orange) 0%, #f0a927 60%, var(--yellow) 100%); color: var(--ink); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 64px); }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta p { margin: .6rem 0 0; max-width: 56ch; font-weight: 500; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer { background: var(--ink); color: #aeb5bf; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr 1.5fr; gap: 40px; padding-block: 64px 44px; }
.footer h3 { margin-bottom: 18px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__about p { margin: 16px 0 0; color: #fff; font-weight: 600; }
.footer__about .footer__muted { font-weight: 400; color: #aeb5bf; }
.brand--footer img { padding: 5px; border-radius: 10px; background: #fff; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: var(--yellow); }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact .ico { margin-top: .3em; color: var(--orange); }
.footer__contact span { overflow-wrap: anywhere; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }

/* ---------- Visionneuse ---------- */

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 20px; background: rgba(12, 14, 18, .94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 8px; background: #fff; }
.lightbox figcaption { color: #d5d9df; font-size: .92rem; text-align: center; }
.lightbox button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.9rem; line-height: 1; transition: background-color .2s; }
.lightbox button:hover { background: var(--orange); }
.lightbox button[hidden] { display: grid; visibility: hidden; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }

/* ---------- Apparition au défilement ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Adaptation aux écrans ---------- */

@media (max-width: 1080px) {
    .domains { grid-template-columns: repeat(2, 1fr); }
    .domain { min-height: 320px; }
    .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .projects--featured .project--large { grid-row: auto; }
    .projects--featured .project--large .project__media { aspect-ratio: 16 / 8; min-height: 0; flex: none; }
    .agrements { grid-template-columns: 1fr; }
    .attestation { max-width: 320px; margin-inline: auto; }
    .team { grid-template-columns: repeat(3, 1fr); }
    .means { grid-template-columns: 1fr 1fr; }
    .means__col:first-child { grid-column: 1 / -1; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .hero__in { grid-template-columns: 1fr; }
    .hero__card { max-width: 420px; }
}

@media (max-width: 920px) {
    .topbar__in > span:first-child { display: none; }
    .topbar__in { justify-content: center; }
    .burger { display: block; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(20, 24, 31, .5); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
    .nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .nav > a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav > a:not(.btn)::after { display: none; }
    .nav .btn { margin: 14px 0 0; }
    .split, .contact, .expertise { grid-template-columns: 1fr; }
    .split--reverse .split__text { order: -1; }
    .expertise--reverse .expertise__media { order: 0; }
    .expertise__media { min-height: 240px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats__item:nth-child(3) { padding-left: 0; border-left: 0; }
    .stats__item:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .16); }
    .org__branches { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 32px, var(--container)); }
    .topbar__right { gap: 14px; flex-wrap: wrap; justify-content: center; }
    .brand img { width: 50px; }
    .cards, .projects, .domains, .agrements__list, .means, .form-row, .footer__grid, .org__leaves { grid-template-columns: 1fr; }
    .projects--featured .project--large { grid-column: auto; }
    .team { grid-template-columns: repeat(2, 1fr); }
    .split__media { padding: 0 28px 44px 0; }
    .split__seal { left: 10px; bottom: 10px; max-width: 190px; }
    .fiche { padding: 24px 20px; }
    .fiche dl > div { grid-template-columns: 1fr; gap: 2px; }
    .method li { grid-template-columns: auto 1fr; }
    .method em { grid-column: 2; justify-self: start; }
    .tabs { width: 100%; }
    .tab { flex: 1; justify-content: center; padding-inline: 10px; }
    .search { max-width: none; }
    .cta__actions, .cta__actions .btn, .hero__actions .btn { width: 100%; }
    .lightbox { grid-template-columns: 1fr; padding: 12px; }
    .lightbox__nav { position: absolute; bottom: 16px; }
    .lightbox__nav--prev { left: 16px; }
    .lightbox__nav--next { right: 16px; }
    .lightbox img { max-height: calc(100vh - 190px); }

    /* Tableaux des références présentés en fiches */
    .table-wrap { border: 0; border-radius: 0; overflow: visible; }
    .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .table, .table tbody, .table tr, .table td { display: block; }
    .table tr { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
    .table td { padding: 4px 0; border: 0; }
    .table td:last-child { min-width: 0; }
    .table td:not(:first-child):not(:nth-child(2))::before { content: attr(data-label) " : "; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .marquee { overflow-x: auto; }
}
