/*
 * Arc Ingénierie - design tiré directement du prospectus.
 * Marine et vert, photos rondes cerclées de vert, listes à coches, cartes arrondies,
 * arc du logo en coin de page (arc-decor.svg), bas de page marine à filet vert.
 */
:root {
    --navy-900: #22345c;
    --pale-text: #006b32;
    --navy-700: #2e4a7d;
    --green-700: #00843d;
    --green-800: #006b32;
    --leaf: #6cb43c;
    --bordeaux: #9c0c0c;
    --pale-green: #eaf6ee;
    --pale-navy: #eef1f6;
    --ink: #33415f;
    --muted: #4c5a76;
    --line: #e1e6ef;
    --white: #ffffff;
    --radius: 14px;
    --container: min(1200px, calc(100% - 40px));
    --container-wide: min(1240px, calc(100% - 40px));
    --shadow: 0 8px 28px rgba(34, 52, 92, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--white);
    color: var(--ink);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

body:has(.gallery-dialog[open]) {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy-700);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    transform: translateY(-200%);
    border-radius: 6px;
    background: var(--navy-900);
    color: var(--white);
    padding: 10px 14px;
}

.skip-link:focus {
    transform: translateY(0);
}

/* En-tête */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: var(--container-wide);
    margin: 0 auto;
    padding: 16px 0;
}

.brand img {
    width: auto;
    height: 76px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links > a:not(.button) {
    position: relative;
    color: var(--navy-700);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 0;
}

.nav-links > a:not(.button):hover,
.nav-links > a.is-active {
    color: var(--green-700);
}

.nav-links > a.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--green-700);
}

.nav-apps {
    position: relative;
}

.nav-apps-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    background: none;
    color: var(--navy-700);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 0;
}

.nav-apps-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-apps-toggle:hover {
    color: var(--green-700);
}

.nav-apps-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 40;
    min-width: 170px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 6px;
}

.nav-apps.is-open .nav-apps-menu {
    display: block;
}

.nav-apps-menu a {
    display: block;
    border-radius: 8px;
    color: var(--navy-700);
    font-weight: 600;
    padding: 10px 14px;
}

.nav-apps-menu a:hover {
    background: var(--pale-green);
    color: var(--pale-text);
}

.nav-links .nav-cta {
    min-height: 46px;
    padding: 8px 20px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 2px solid var(--navy-700);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy-700);
    font-weight: 700;
    padding: 8px 12px;
}

.nav-toggle-icon {
    position: relative;
    width: 18px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.nav-toggle-icon::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 0;
    left: 0;
    height: 2px;
    background: currentColor;
}

/* Boutons et liens */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 24px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.button.primary {
    background: var(--green-700);
    color: var(--white);
}

.button.primary:hover {
    background: var(--green-800);
}

.button.outline {
    border-color: var(--navy-700);
    background: var(--white);
    color: var(--navy-700);
}

.button.outline:hover {
    background: var(--navy-700);
    color: var(--white);
}

.button.light {
    background: var(--white);
    color: var(--navy-900);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-700);
    font-weight: 700;
}

.text-link::after {
    content: "\2192";
    transition: transform 0.15s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

.icon-circle {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-700);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sections */

.section {
    width: var(--container);
    margin: 0 auto;
    padding: clamp(52px, 7vw, 88px) 0;
}

.section-band.muted {
    background: var(--pale-navy);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--navy-700);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    flex: none;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--green-700);
}

.section-heading {
    max-width: 680px;
    margin-bottom: 36px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading.centered .eyebrow {
    justify-content: center;
}

.section-heading.split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    flex-wrap: wrap;
    max-width: none;
}

/* Accueil */

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -70px;
    width: min(1080px, 150vw);
    aspect-ratio: 1000 / 420;
    background: url("../img/arc/arc-decor.svg") center / contain no-repeat;
}

.page-hero::before {
    right: -150px;
    bottom: -100px;
    width: min(800px, 130vw);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 572fr 612fr;
    align-items: center;
    gap: 40px 56px;
    width: var(--container-wide);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px);
}

.hero-copy {
    max-width: 540px;
    margin: 20px 0 30px;
    font-size: 1.1875rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, clamp(150px, 17.5vw, 233px));
    gap: 14px;
}

.hero-mosaic > img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.hero-mosaic > img:first-child {
    grid-row: span 2;
}

.hero-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    font-size: 0.875rem;
    line-height: 1.25;
    padding: 12px 16px;
}

.hero-badge strong {
    display: block;
    color: var(--navy-700);
    font-size: 1.25rem;
    font-weight: 800;
}

.shortcuts {
    background: var(--pale-navy);
    padding: 32px 0;
}

.shortcuts-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: var(--container);
    margin: 0 auto;
}

.shortcuts a {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.9375rem;
    line-height: 1.3;
    padding: 18px 20px;
    transition: box-shadow 0.15s ease;
}

.shortcuts a:hover {
    box-shadow: var(--shadow);
}

.shortcuts strong {
    display: block;
    color: var(--navy-700);
    font-size: 1.125rem;
    font-weight: 700;
}

.domains {
    background: var(--navy-700);
    color: var(--white);
}

.domains h2,
.domains .eyebrow {
    color: var(--white);
}

.domains .section {
    padding-block: clamp(52px, 6vw, 80px);
}

.domains .section-heading {
    max-width: none;
    margin-bottom: 44px;
}

.domains .eyebrow::before {
    background: var(--leaf);
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 32px 12px;
}

.domain-grid a {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.domain-grid img {
    width: 112px;
    height: 112px;
    margin: 0 auto 12px;
    border: 5px solid var(--green-700);
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.15s ease;
}

.domain-grid a:hover img {
    transform: scale(1.06);
}

.metiers,
.section-band.muted > .section {
    padding-block: clamp(56px, 7vw, 96px);
}

.metiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 64px;
}

.metiers h2 {
    margin-bottom: 24px;
}

.metiers .check-list {
    margin-top: 0;
}

.metiers .text-link {
    margin-top: 20px;
}

.resources {
    display: grid;
    align-content: start;
    gap: 14px;
}

.resources img {
    width: 100%;
    height: 270px;
    border-radius: 18px;
    object-fit: cover;
}

.resources p {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    border-radius: var(--radius);
    background: var(--pale-navy);
    color: var(--navy-700);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 16px 20px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters button {
    min-height: 44px;
    border: 2px solid var(--navy-700);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy-700);
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 8px 18px;
}

.filters button[aria-pressed="true"] {
    background: var(--navy-700);
    color: var(--white);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
}

.project-card[hidden] {
    display: none;
}

.project-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.project-card > div {
    padding: 16px 18px 18px;
}

.project-card span {
    display: inline-block;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--pale-green);
    color: var(--pale-text);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 3px 12px;
}

.project-card h3 {
    font-size: 1.1875rem;
}

.section-action {
    margin-top: 28px;
    text-align: center;
}

.cert-strip {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
    padding-block: clamp(48px, 6vw, 80px);
}

.cert-strip h2 {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.cert-strip > img {
    width: 100%;
    max-width: 440px;
    justify-self: end;
}

.key-figures .section-heading {
    margin-bottom: 32px;
}

.figure-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.figure-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 6px solid var(--green-700);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(34, 52, 92, 0.1);
    padding: 26px 14px 22px;
    text-align: center;
}

.figure-grid strong {
    color: var(--green-700);
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.figure-grid small {
    font-size: 0.5em;
    font-weight: 700;
}

.figure-grid span {
    flex: 1;
    border-top: 3px solid var(--line);
    color: var(--navy-700);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    padding-top: 12px;
}

.figure-grid em {
    border-radius: 999px;
    background: var(--pale-green);
    color: var(--pale-text);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    padding: 3px 12px;
}

.film {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.film h2 {
    margin-bottom: 16px;
}

.film video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: var(--navy-900);
    box-shadow: 0 16px 40px rgba(34, 52, 92, 0.18);
}

.cert-strip {
    border-top: 1px solid var(--line);
}

.gallery-section .filters {
    margin-bottom: 28px;
}

.gallery-card[hidden] {
    display: none;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 22px;
}

.reference-item[hidden] {
    display: none;
}

.reference-item {
    text-align: center;
}

.reference-item img {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 14px;
    border: 4px solid var(--green-700);
    border-radius: 16px;
    object-fit: cover;
}

.reference-item p {
    margin-bottom: 4px;
    color: var(--green-700);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.reference-item h3 {
    margin-bottom: 4px;
    font-size: 1.125rem;
    line-height: 1.3;
}

.reference-item span {
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 600;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.partner-grid li {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(34, 52, 92, 0.08);
    padding: 8px;
}

.partner-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 216 / 152;
    object-fit: contain;
}

.partners-strip .partner-grid li {
    border: 1px solid var(--line);
    box-shadow: none;
}

/* En-tête des pages intérieures */

.page-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    width: var(--container);
    margin: 0 auto;
    padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 5vw, 72px);
}

.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.page-hero p:last-child {
    font-size: 1.125rem;
}

.page-hero img {
    width: 100%;
    height: 340px;
    border-radius: 18px;
    object-fit: cover;
}

/* Blocs partagés */

.check-list {
    display: grid;
    gap: 10px;
    margin-top: 0;
}

.check-list li {
    position: relative;
    border-left: 5px solid var(--green-700);
    border-radius: 10px;
    background: var(--pale-green);
    color: var(--pale-text);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 11px 16px 11px 50px;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.split-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
}

.split-showcase > img {
    width: 100%;
    height: 400px;
    border-radius: 18px;
    object-fit: cover;
}

.split-showcase h2 {
    margin-bottom: 18px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.reference-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--pale-navy);
}

.reference-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.reference-card > div {
    padding: 16px 18px 18px;
}

.reference-card p {
    margin-bottom: 4px;
    color: var(--pale-text);
    font-size: 0.875rem;
    font-weight: 700;
}

.reference-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* À propos, équipe */

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(28px, 6vw, 72px);
}

.value-grid,
.cert-grid,
.services-page-grid,
.team-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.process-grid {
    grid-template-columns: repeat(4, 1fr);
}

.value-card,
.cert-card,
.service-detail,
.team-card,
.process-step {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 22px;
}

.value-card span,
.service-detail span,
.team-card span,
.process-step span {
    display: block;
    margin-bottom: 8px;
    color: var(--green-700);
    font-size: 0.875rem;
    font-weight: 800;
}

.value-card h3,
.process-step h3 {
    margin-bottom: 8px;
}

.value-card p,
.cert-card p,
.service-detail p,
.process-step p {
    color: var(--muted);
}

.service-detail h2,
.cert-card h2,
.team-card h2 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.team-card h2 {
    margin-bottom: 0;
    font-weight: 700;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stats-panel strong,
.resource-panel dt {
    display: block;
    color: var(--green-700);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stats-panel span,
.resource-panel dd {
    margin: 0;
    color: var(--muted);
}

.resource-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 32px;
}

.resource-panel h2 {
    margin-bottom: 12px;
}

.resource-panel dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

/* Expertises */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.expertise-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.expertise-card:target {
    border-color: var(--green-700);
    box-shadow: var(--shadow);
}

.expertise-card img {
    width: 92px;
    height: 92px;
    border: 4px solid var(--green-700);
    border-radius: 50%;
    object-fit: cover;
}

.expertise-card h2 {
    margin-bottom: 6px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.expertise-card p {
    margin-bottom: 12px;
    color: var(--muted);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill-list li {
    border-radius: 999px;
    background: var(--pale-green);
    color: var(--green-800);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 3px 11px;
}

/* Certifications */

.cert-grid {
    margin-top: 0;
}

.cert-card span {
    display: inline-block;
    margin-bottom: 12px;
    border-radius: 6px;
    background: var(--navy-700);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 3px 10px;
}

/* Contact, recrutement */

.contact-grid,
.recruitment-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(28px, 5vw, 56px);
}

.recruitment-grid {
    grid-template-columns: 1.3fr 1fr;
}

.contact-card h2 {
    margin-bottom: 14px;
}

.contact-card a {
    display: block;
    color: var(--navy-700);
    font-weight: 600;
    padding: 2px 0;
}

.contact-card a:hover {
    color: var(--green-700);
}

.contact-card p {
    margin-top: 12px;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 28px);
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--navy-700);
    font-size: 0.9375rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #c6cedc;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-weight: 400;
    padding: 11px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green-700);
    outline: 2px solid var(--pale-green);
}

.contact-form .button {
    justify-self: start;
    border: 0;
}

.check-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.check-list li {
    font-weight: 600;
}

.apply-card {
    align-self: start;
    border-radius: var(--radius);
    background: var(--pale-green);
    padding: 26px;
}

.apply-card h2 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

/* Galerie */

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy-700);
    padding: 0 0 12px;
    text-align: left;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
    object-fit: cover;
}

.gallery-card span,
.gallery-card strong {
    display: block;
    padding: 0 12px;
}

.gallery-card span {
    color: var(--green-700);
    font-size: 0.8125rem;
    font-weight: 700;
}

.gallery-card strong {
    font-size: 0.9375rem;
    line-height: 1.35;
}

.gallery-card:hover {
    border-color: var(--green-700);
}

.gallery-dialog {
    width: min(900px, calc(100% - 32px));
    border: 0;
    border-radius: var(--radius);
    padding: 0;
}

.gallery-dialog::backdrop {
    background: rgba(34, 52, 92, 0.8);
}

.gallery-dialog img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: var(--navy-900);
}

.gallery-dialog div {
    padding: 14px 18px;
}

.gallery-dialog p {
    margin: 0;
    color: var(--green-700);
    font-size: 0.875rem;
    font-weight: 700;
}

.gallery-dialog h2 {
    font-size: 1.2rem;
}

.gallery-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-900);
    font-size: 1.5rem;
    line-height: 1;
}

/* Réalisations */

.project-category-grid {
    display: grid;
    gap: 36px;
}

.project-category-header {
    display: flex;
    align-items: baseline;
    gap: 6px 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.project-category-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-category-header p {
    margin: 0;
    color: var(--muted);
}

.category-chip {
    border-radius: 6px;
    background: var(--navy-700);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 3px 10px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.project-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.project-table th,
.project-table td {
    border-bottom: 1px solid var(--line);
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
}

.project-table thead th {
    background: var(--pale-navy);
    color: var(--navy-700);
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-table tbody th {
    color: var(--navy-700);
    font-weight: 600;
}

.project-table tbody tr:last-child > * {
    border-bottom: 0;
}

.project-table td:last-child {
    white-space: nowrap;
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    background: var(--pale-green);
    color: var(--green-800);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 2px 10px;
    white-space: nowrap;
}

/* Pied de page */

.site-footer {
    border-top: 6px solid var(--green-700);
    background: var(--navy-900);
    color: var(--white);
    font-size: 1rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 36px 56px;
    width: var(--container);
    margin: 0 auto;
    padding: clamp(44px, 5vw, 64px) 0 0;
}

.footer-contact {
    flex: 1 1 340px;
    min-width: 0;
}

.footer-contact h2 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.2;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a[href^="tel"] {
    white-space: nowrap;
}

.footer-contact .button {
    min-height: 48px;
    margin-top: 14px;
}

.site-footer a:not(.button):hover {
    text-decoration: underline;
}

.footer-brand {
    flex: 0 1 300px;
    min-width: 0;
}

.footer-brand p {
    margin: 12px 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
}

.footer-card {
    border-radius: var(--radius);
    background: var(--white);
    padding: 12px 18px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    width: var(--container);
    margin: 32px auto 0;
    border-top: 1px solid #55648a;
    font-size: 0.9375rem;
    padding-top: 16px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    width: var(--container);
    margin: 0 auto;
    font-size: 0.9375rem;
    padding: 12px 0 24px;
}

/* Tablette */

@media (max-width: 1180px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-shell {
        position: relative;
    }

    .brand img {
        height: 62px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: -20px;
        left: -20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 8px 20px 18px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links > a:not(.button) {
        padding: 12px 0;
    }

    .nav-links > a.is-active::after {
        display: none;
    }

    .nav-apps-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
    }

    .nav-apps-menu {
        position: static;
        box-shadow: none;
        background: var(--pale-navy);
    }

    .nav-links .nav-cta {
        margin-top: 10px;
    }

    .domain-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-grid,
    .gallery-page-grid,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .figure-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reference-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .partner-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

/* Mobile */

@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .page-hero-inner,
    .film,
    .metiers,
    .shortcuts-inner,
    .split-showcase,
    .cert-strip,
    .story-grid,
    .contact-grid,
    .recruitment-grid,
    .resource-panel,
    .references-grid,
    .value-grid,
    .cert-grid,
    .services-page-grid,
    .team-grid,
    .expertise-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero-mosaic {
        grid-template-rows: repeat(2, 150px);
    }

    .page-hero img {
        height: 220px;
    }

    .split-showcase > img {
        max-height: 260px;
        border-radius: 18px;
    }

    .cert-strip > img {
        justify-self: start;
    }

    .gallery-page-grid,
    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-card {
        grid-template-columns: 72px 1fr;
        gap: 16px;
        padding: 18px;
    }

    .expertise-card img {
        width: 72px;
        height: 72px;
    }

    /* Les tableaux deviennent des fiches pour éviter le défilement horizontal. */
    .table-wrap {
        overflow: visible;
        border: 0;
    }

    .project-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .project-table tbody,
    .project-table tr,
    .project-table th,
    .project-table td {
        display: block;
    }

    .project-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 12px 14px;
    }

    .project-table tbody th,
    .project-table td {
        border: 0;
        padding: 3px 0;
    }

    .project-table tbody th {
        margin-bottom: 4px;
        font-size: 1rem;
        font-weight: 700;
    }

    .project-table td {
        display: grid;
        grid-template-columns: 112px 1fr;
        gap: 8px;
    }

    .project-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.8125rem;
    }

    .project-table td .status-pill {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .reference-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 14px;
    }

    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .figure-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .domain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-badge {
        right: 14px;
        max-width: none;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
