/*
Theme Name: Aire+
Author: Sandra Atlani
Description: Thème WordPress d'Aire+, contractant général en construction et rénovation. Blocs ACF éditables, palette partagée entre le site et l'éditeur.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: aireplus
*/

/* ─── Variables ───
   Les couleurs de la palette (--color-orange, --color-sante, …) sont générées par
   inc/colors.php et injectées dans le front et dans l'éditeur.
   Ici : seulement les alias sémantiques, les polices et les espacements. */
:root {
    color-scheme: light;
    --color-ink: var(--color-noir);
    --color-muted: var(--color-gris-fonce);
    --color-line: var(--color-gris-clair);
    --color-paper: var(--color-blanc);
    --color-accent: var(--color-orange);
    --color-accent-strong: var(--color-orange-fonce);
    --font-base: "Roboto", Arial, sans-serif;
    --font-heading: "Gilroy", Arial, sans-serif;
    --content-width: 90%;
    --reading-width: 48rem;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
    --space-7: 6rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Texte sélectionné : orange de la marque (retour Aire+) */
::selection {
    background: var(--color-orange);
    color: var(--color-blanc);
}

body {
    margin: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-base);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.5em;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: var(--color-accent);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-accent-strong);
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h2,
.h3 {
    color: var(--color-ink);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
}

h1 {
    margin: 0 0 var(--space-3);
    font-size: clamp(2.25rem, 6vw, 4.25rem);
}

h2,
.h2 {
    margin: 0 0 var(--space-2);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

h3,
.h3 {
    margin: 0 0 var(--space-1);
    font-size: 1.25rem;
}

/* ─── Mise en page ─── */
.container,
.site-header__inner,
.site-topbar__inner,
.site-footer__inner,
.site-main {
    width: min(calc(100% - 3rem), var(--content-width));
    margin-inline: auto;
}

.site-main {
    min-height: 55vh;
    padding-block: var(--space-6);
}

.site-main--narrow {
    max-width: var(--reading-width);
}

/* Pages composées de blocs : les blocs gèrent eux-mêmes leur largeur. */
.site-main--blocks {
    width: 100%;
    padding-block: 0;
}

.entry-header--page {
    width: min(calc(100% - 3rem), var(--content-width));
    margin: var(--space-6) auto var(--space-4);
}

.block {
    position: relative;
}

/* Blocs à image de fond : image (0) < voile (1) < contenu (2) */
.hero,
.band,
.cta-project {
    isolation: isolate;
}

.hero__image,
.hero__video,
.band__image,
.cta-project__image {
    z-index: 0;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before,
.band::before,
.cta-project::before {
    z-index: 1;
}

.hero__inner,
.hero__cards,
.band__text,
.cta-project__inner {
    z-index: 2;
}

.block-placeholder {
    margin: 0;
    padding: var(--space-3);
    border: 2px dashed var(--color-gris);
    color: var(--color-muted);
    text-align: center;
}

/* ─── Boutons ─── */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--color-accent);
    border-radius: 7px;
    background: var(--color-accent);
    color: var(--color-blanc);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.btn:hover {
    border-color: var(--color-noir);
    background: var(--color-blanc);
    color: var(--color-noir);
}

.btn--dark {
    border-color: var(--color-noir);
    background: var(--color-noir);
}

.btn--dark:hover {
    border-color: var(--color-noir);
    background: var(--color-blanc);
    color: var(--color-noir);
}

.btn--small {
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
}

/* ─── En-tête du site : fixe, barre noire de 34 px puis menu (149 px au total) ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 510;
    background: var(--color-paper);
}

.site-topbar {
    background: var(--color-noir);
}

.site-topbar__inner {
    width: 94%;
}

.socials {
    display: flex;
    height: 2.125rem;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
    margin-block: 0;
    padding: 0;
    list-style: none;
}

.socials__link {
    display: block;
    color: var(--color-blanc);
}

.socials__link:hover {
    color: var(--color-accent);
}

.socials .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.site-header__inner {
    width: 92%;
    margin-left: 5%;
    margin-right: 3%;
    min-height: 7.1875rem;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-4);
}

.site-branding {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    padding-top: 1.25rem;
}

.site-branding .custom-logo {
    width: 9.375rem;
    max-width: none;
    height: auto;
    max-height: none;
}

.site-title,
.logo-text {
    color: var(--color-ink);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.site-title span,
.logo-text span {
    color: var(--color-accent);
}

.site-title--light {
    color: var(--color-blanc);
}

.primary-navigation {
    display: flex;
    align-items: stretch;
    gap: var(--space-3);
}

.primary-navigation .menu,
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation .menu {
    flex-wrap: nowrap;
    gap: 1rem;
}

.primary-navigation .menu > li {
    display: flex;
    align-items: stretch;
}

.primary-navigation .menu__link,
.primary-navigation .menu__toggle {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
    border: 0;
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
}

.primary-navigation .menu__link::after,
.primary-navigation .menu__toggle::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    background: transparent;
    transition: background-color 0.2s;
}

.primary-navigation .menu > li:hover > .menu__link,
.primary-navigation .menu > li:hover > .menu__toggle,
.primary-navigation .menu > li.is-open > .menu__link,
.primary-navigation .menu > li.is-open > .menu__toggle,
.primary-navigation .menu > li > .menu__link:focus-visible,
.primary-navigation .menu > li > .menu__toggle:focus-visible,
.primary-navigation .menu > li.is-current > .menu__link {
    color: var(--color-accent);
}

.primary-navigation .menu > li:hover > .menu__link::after,
.primary-navigation .menu > li:hover > .menu__toggle::after,
.primary-navigation .menu > li.is-open > .menu__link::after,
.primary-navigation .menu > li.is-open > .menu__toggle::after,
.primary-navigation .menu > li > .menu__link:focus-visible::after,
.primary-navigation .menu > li > .menu__toggle:focus-visible::after,
.primary-navigation .menu > li.is-current > .menu__link::after {
    background: var(--color-accent);
}
.primary-navigation__cta {
    align-self: center;
}

.primary-navigation .btn {
    color: var(--color-blanc);
}

.primary-navigation .btn:hover {
    color: var(--color-noir);
}

/* Méga-menu : panneau pleine largeur sous l'en-tête, ouvert au clic (fondu 250 ms), voile sombre derrière */
.mega {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 505;
    padding: 20px 8% 40px;
    background: var(--color-blanc);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out, visibility 0s linear 0.25s;
    visibility: hidden;
}

.primary-navigation .menu-item-has-children.is-open > .mega {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.25s ease-in-out, visibility 0s;
    visibility: visible;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 505;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0s linear 0.2s;
    visibility: hidden;
}

.menu-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease-in-out, visibility 0s;
    visibility: visible;
}

.mega__inner {
    display: flex;
    height: 240px;
    justify-content: space-between;
}

.mega__main {
    width: 58%;
    height: 100%;
}

.mega__side {
    width: calc(42% - 30px);
    height: 100%;
}

.mega__list {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega__item {
    border-radius: 7px;
    transition: all 0.2s ease-in-out;
}

.mega__link {
    display: block;
    color: var(--color-ink);
    text-decoration: none;
}

.mega__link:hover {
    color: var(--color-ink);
}

.mega__box {
    box-sizing: border-box;
    height: 100%;
    padding: 35px;
    border-radius: 7px;
    background: var(--color-gris-clair);
}

.mega__cta-title {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 800;
    line-height: 1.1;
}

.mega__box p {
    margin: 0;
}

.mega__box .btn {
    margin-top: 1.5em;
}

/* Panneau « À propos » : deux tuiles photo */
.mega--tuiles .mega__list {
    gap: 30px;
    flex-wrap: nowrap;
}

.mega--tuiles .mega__item {
    flex: 1;
    overflow: hidden;
    border-radius: 0;
}

.mega--tuiles .mega__link {
    position: relative;
    height: 100%;
    overflow: hidden;
    font-size: 1.2em;
}

.mega__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.mega__label {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-blanc);
    font-family: var(--font-heading);
    font-weight: 800;
    text-align: center;
    transition: background-color 0.3s ease-in-out;
}

.mega__label > span {
    flex: 1;
}

.mega--tuiles .mega__link:hover .mega__label {
    background: rgba(0, 0, 0, 0.2);
}

/* Panneau « Secteurs » : deux colonnes, la ligne se colore au survol */
.mega--secteurs .mega__list {
    gap: 40px 20px;
}

.mega--secteurs .mega__item {
    display: flex;
    width: calc(50% - 20px);
    align-items: center;
}

.mega--secteurs .mega__link {
    width: 100%;
    padding: 15px 25px;
}

.mega--secteurs .mega__title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mega__plus {
    width: 14px;
    height: 14px;
    margin-right: 15px;
    color: var(--sector-color, var(--color-accent));
    transition: color 0.2s ease-in-out;
}

.mega--secteurs .mega__item:hover {
    background: var(--sector-color, var(--color-gris-clair));
}

.mega--secteurs .mega__item:hover .mega__link,
.mega--secteurs .mega__item:hover .mega__plus {
    color: var(--color-blanc);
}

.mega__box--logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega__box--logo img {
    width: 220px;
    height: auto;
}

/* Panneau « Votre projet » : 2 × 2, icône orange, fond gris au survol */
.mega--projets .mega__list {
    gap: 10px 30px;
}

.mega--projets .mega__item {
    width: calc(50% - 20px);
}

.mega--projets .mega__item:hover {
    background: var(--color-gris-clair);
}

.mega--projets .mega__link {
    display: flex;
    align-items: flex-start;
    padding: 20px;
}

.mega__icon {
    width: 40px;
    height: 40px;
    flex: none;
    margin-right: 15px;
    color: var(--color-accent);
}

.mega--projets .mega__title {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.mega__desc {
    display: block;
}
.menu-toggle {
    display: none;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--color-line);
    background: var(--color-paper);
    color: var(--color-ink);
    cursor: pointer;
    font-weight: 700;
}
/* ─── Bloc : héros ─── */
.hero {
    display: flex;
    min-height: 40rem;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--color-noir);
    color: var(--color-blanc);
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
}

.hero__inner {
    position: relative;
    padding-bottom: var(--space-4);
}

.hero__title {
    margin: 0;
    color: var(--color-blanc);
    font-size: clamp(2.5rem, 6.25vw, 5.625rem);
    line-height: 1;
}

.hero__subtitle {
    margin: 0.5rem 0 0;
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2.1vw, 1.875rem);
    font-weight: 800;
    line-height: 1.2;
}

.hero__cards {
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.hero__card {
    width: 25vw;
    min-width: 15rem;
    min-height: 10.625rem;
    padding: 1.875rem 2.8rem;
    background: var(--color-noir);
    font-size: 0.8125rem;
}

.hero__card--accent {
    background: var(--color-accent);
}

.hero__card-title {
    margin: 0 0 0.4rem;
    color: var(--color-accent);
    font-size: 0.875rem;
}

.hero__card--accent .hero__card-title {
    color: var(--color-noir);
}

.hero__card-title a {
    color: inherit;
    text-decoration: none;
}

.hero__card-text {
    margin: 0;
}

/* ─── Bloc : en-tête de page ─── */
.page-header {
    padding-block: var(--space-6) var(--space-4);
    background: var(--color-noir);
    color: var(--color-blanc);
}

.page-header__title {
    max-width: 24ch;
    margin: 0;
    color: var(--color-blanc);
}

.page-header__intro {
    max-width: var(--reading-width);
    margin: var(--space-2) 0 0;
    font-size: 1.125rem;
}

/* ─── Bloc : entreprise ─── */
.company {
    padding: 95px 0 0;
}

.company__inner {
    display: grid;
    grid-template-columns: 2.4% 45% 8.95% 42%;
    align-items: stretch;
}

.company__content {
    grid-column: 2;
}

.company__media {
    grid-column: 4;
}

.company__title {
    margin-top: 20px;
}

.company__text {
    padding-top: 45px;
}

.company__text p {
    margin: 0 0 20px;
}

.company__cards {
    display: flex;
    gap: 0 30px;
    padding-top: 45px;
}

.company__card {
    position: relative;
    flex: 1;
    padding-bottom: 40px;
}

.company__card-icon {
    display: block;
    height: 45px;
    margin-bottom: 30px;
}

.company__card-title {
    margin: 24px 0 20px;
    font-size: 24px;
}

.company__card-text {
    margin: 0 0 20px;
    font-size: 0.9375rem;
}

.company__card .btn {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 5px;
}

.company__media {
    position: relative;
}

.company__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Carré orange translucide : le « + » fait un quart de tour au survol */
.company__plus {
    position: absolute;
    bottom: -50px;
    left: -50px;
    z-index: 50;
    box-sizing: content-box;
    width: 33%;
    min-width: 70px;
    height: 50%;
    min-height: 100px;
    padding: 15px;
    background: rgba(252, 77, 16, 0.8);
    color: var(--color-blanc);
    text-align: right;
}

.company__plus svg {
    width: 51px;
    height: 40px;
    transition: transform 0.3s ease-out;
}

.company__plus:hover svg {
    transform: rotate(90deg);
}
/* ─── Bloc : secteurs ─── */
.sectors {
    padding: 95px 0 0;
}

.sectors__title {
    margin-top: 20px;
}

.sectors__text {
    max-width: 60%;
    padding-top: 45px;
    margin-bottom: 20px;
}

.sectors__text p {
    margin: 0 0 22.5px;
}

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

.sectors__layout {
    display: flex;
    align-items: center;
    padding-top: 95px;
}

.sectors__brand {
    display: flex;
    width: 30%;
    align-items: center;
    justify-content: center;
}

.sectors__logo {
    position: relative;
    display: inline-block;
}

.sectors__logo img {
    display: block;
    width: 95px;
    height: auto;
}

.sectors__plus {
    position: absolute;
    top: -35px;
    right: -20px;
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.sectors__list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 70%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sectors__item {
    width: calc(33% - 40px);
    height: 110px;
    transition: all 0.2s ease-in-out;
}

.sectors__link {
    display: flex;
    height: 100%;
    align-items: center;
    color: var(--color-ink);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.sectors__icon {
    height: 50px;
    margin: 0 30px 0 50px;
    flex: none;
}

.sectors__item:hover {
    background: var(--sector-color, var(--color-accent));
}

.sectors__item:hover .sectors__link {
    color: var(--color-blanc);
}
/* ─── Bloc : bandeau ─── */
.band {
    display: flex;
    min-height: 16rem;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-3);
    background: var(--color-noir);
    color: var(--color-blanc);
    text-align: center;
}

.band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.band__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band__text {
    position: relative;
    margin: 0;
    color: var(--color-blanc);
}

/* ─── Bloc : accompagnement ─── */
.services {
    padding-block: var(--space-7);
}

.services__text {
    max-width: var(--reading-width);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-6);
    margin-top: var(--space-5);
}

.services__icon {
    color: var(--color-accent);
}

.services__item-title {
    font-size: 1rem;
}

.services__item-text {
    font-size: 0.9375rem;
}

.services__more {
    color: var(--color-accent);
}

.services__more .icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* ─── Bloc : appel à projet ─── */
.cta-project {
    padding: var(--space-7) 0 var(--space-6);
    background: var(--color-noir);
    color: var(--color-blanc);
}

.cta-project::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cta-project::after {
    content: "";
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(44rem, 80%);
    height: 4px;
    background: var(--color-accent);
    transform: translateX(-50%);
}

.cta-project__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-project__inner {
    position: relative;
}

.cta-project__content {
    max-width: 38rem;
    margin-left: auto;
    margin-right: 10%;
}

.cta-project__title {
    color: var(--color-blanc);
}

/* ─── Bloc : expertises ─── */
.expertise {
    padding: 95px 0 0;
}

.expertise__inner {
    display: grid;
    grid-template-columns: 1.47% 42% 8.95% 45%;
    align-items: stretch;
}

.expertise__media {
    position: relative;
    grid-column: 2;
}

.expertise__content {
    grid-column: 4;
}

.expertise__image {
    display: block;
    width: 100%;
    height: auto;
}

.expertise__title {
    margin-top: 20px;
}

.expertise__text {
    padding-top: 45px;
}

.expertise__text p {
    margin: 0 0 22.5px;
}

.expertise__content .btn {
    margin-bottom: 5px;
}

/* Encart orange translucide : s'élargit au survol, le « + » fait un quart de tour */
.expertise__badge {
    position: absolute;
    top: -40px;
    left: -40px;
    z-index: 50;
    box-sizing: content-box;
    width: 33%;
    min-width: 100px;
    min-height: 100px;
    padding: 25px 25px 80px;
    background: rgba(252, 77, 16, 0.8);
    color: var(--color-blanc);
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.expertise__badge:hover {
    padding-right: 120px;
    color: var(--color-blanc);
}

.expertise__plus {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 51px;
    height: 40px;
    transition: transform 0.3s ease-out;
}

.expertise__badge:hover .expertise__plus {
    transform: rotate(90deg);
}

/* ─── Blocs : dernières réalisations et actualités ─── */
.latest-works {
    margin: 80px 0;
    padding: 40px 0;
    background: var(--color-noir);
    color: var(--color-blanc);
}

.latest-works__title,
.latest-news__title,
.clients__title {
    margin: 20px 0;
    text-align: center;
}

.latest-works__title {
    color: var(--color-blanc);
}

.latest-works__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 70px;
}

.latest-works__grid > .work-card {
    width: calc(33.33% - 30px);
}

.latest-works__more {
    margin: 0 0 20px;
    padding-top: 45px;
    text-align: center;
}

.latest-works__more .btn {
    margin-bottom: 5px;
}

.work-card {
    position: relative;
    overflow: hidden;
    background: var(--color-noir);
    color: var(--color-ink);
}

.work-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.2s ease-in-out;
}

.work-card:hover .work-card__link::after {
    background: rgba(0, 0, 0, 0.5);
}

.work-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.work-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: block;
    box-sizing: content-box;
    width: 50%;
    min-width: 180px;
    min-height: 120px;
    padding: 25px;
    background: var(--color-blanc);
}

.work-card__sector {
    display: block;
    margin-bottom: 15px;
    color: var(--color-ink);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 800;
    text-transform: uppercase;
}

.work-card__icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 15px;
    color: var(--sector-color, var(--color-ink));
}

.work-card__title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1;
}

/* Actualités de l'accueil : cartes blanches à ombre, secteur coloré, lien en bas à droite */
.latest-news {
    padding: 0;
}

.latest-news__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 45px 0 0;
    list-style: none;
}

.actu-card {
    width: calc(33.33% - 20px);
    min-height: 300px;
    background: var(--color-blanc);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.actu-card__link,
.actu-card__link:hover {
    display: block;
    color: var(--color-ink);
    text-decoration: none;
}

.actu-card__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.actu-card__label {
    display: block;
    padding: 25px;
}

.actu-card__pole {
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.actu-card__plus {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 15px;
    color: var(--sector-color, var(--color-ink));
}

.actu-card__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 800;
}

.actu-card__more {
    display: block;
    margin-bottom: 20px;
    padding-right: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-align: right;
}

.actu-card__arrow {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    vertical-align: -2px;
}

.latest-news__more {
    margin: var(--space-5) 0 0;
    text-align: center;
}

.news-card__media {
    display: block;
    margin-bottom: var(--space-2);
}

.news-card__image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.news-card__category {
    margin: 0;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card__title {
    margin: 0.4rem 0 var(--space-1);
    font-size: 1rem;
}

.news-card__title a {
    color: var(--color-ink);
    text-decoration: none;
}

.news-card__more {
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}

/* ─── Bloc : logos clients (défilement continu, pause au survol) ─── */
.clients {
    padding: 95px 0 0;
}

.clients__marquee {
    margin-top: 20px;
    padding: 50px 0 30px;
    overflow: hidden;
}

.clients__track {
    display: flex;
    width: max-content;
    animation: clients-scroll var(--clients-duration, 240s) linear infinite;
}

.clients__marquee:hover .clients__track {
    animation-play-state: paused;
}

.clients__list {
    display: flex;
    flex: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clients__item {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 90px;
}

.clients__logo {
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 55px;
}

@keyframes clients-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients__marquee {
        overflow-x: auto;
    }

    .clients__track {
        animation: none;
    }
}
/* ─── Bloc : contact ─── */
.contact {
    padding: 0;
    background: transparent;
}

.contact .contact__inner {
    display: flex;
    width: 80%;
    margin: 0 10%;
    background: transparent;
}

.contact__form {
    box-sizing: content-box;
    width: calc(59.1% - 50px);
    padding: 0 50px 0 0;
}

.contact .contact__form-title {
    margin: 20px 0;
    font-size: 24px;
    line-height: 1;
}

.contact .footer-contact__side {
    align-self: flex-start;
    height: 550px;
}

/* Formulaire : Contact Form 7 (formulaire choisi dans le bloc Contact) */
.cf7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem var(--space-2);
}

.cf7-grid p {
    margin: 0;
}

.form__field label,
.form__choices legend {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
}

.form__field input[type="text"],
.form__field input[type="email"],
.form__field input[type="tel"],
.form__field textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--color-gris);
    border-radius: 0;
}

.form__field--full {
    grid-column: 1 / -1;
}

.form__choices {
    margin: 0;
    padding: 0;
    border: 0;
}

.form__choices .wpcf7-list-item {
    display: inline-block;
    margin: 0 var(--space-3) 0 0;
}

.wpcf7-not-valid-tip {
    color: var(--color-chr);
    font-size: 0.8125rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: var(--space-2) 0 0;
    padding: 0.75rem var(--space-2);
    border: 0;
    border-left: 4px solid var(--color-gris);
    background: var(--color-gris-clair);
}

.wpcf7 form.sent .wpcf7-response-output {
    border-left-color: var(--color-sante);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-left-color: var(--color-chr);
}
/* ─── Pages intérieures : héros réduit, encart et boutons ─── */
.hero--moitie {
    min-height: 70vh;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-3) 0 0;
}

.hero__subtitle--long {
    max-width: 38rem;
}

.hero__panel {
    position: absolute;
    bottom: -3rem;
    z-index: 3;
    right: max(1rem, calc((100vw - var(--content-width)) / 2));
    width: min(32rem, calc(100% - 2rem));
    padding: var(--space-3) var(--space-4);
    background: var(--color-accent);
    color: var(--color-blanc);
}

.hero__panel-title {
    margin: 0 0 var(--space-1);
    color: var(--color-blanc);
    font-size: 1.25rem;
}

.hero__panel-text {
    margin: 0 0 var(--space-1);
}

.hero__panel-link {
    margin: 0;
}

.hero__panel-link a {
    color: var(--color-blanc);
}

.btn--light {
    border-color: var(--color-blanc);
    background: var(--color-blanc);
    color: var(--color-noir);
}

.btn--light:hover {
    border-color: var(--color-noir);
    background: var(--color-noir);
    color: var(--color-blanc);
}

.page-header--clair {
    padding-block: var(--space-6) var(--space-3);
    background: transparent;
    color: var(--color-ink);
}

.page-header--clair .page-header__title {
    max-width: none;
    color: var(--color-ink);
    font-size: clamp(2.25rem, 6vw, 3.75rem);
}

/* ─── Bloc : titre et texte ─── */
.text {
    padding-block: var(--space-6);
}

.text__title {
    font-size: clamp(2rem, 5vw, 3.75rem);
}

.text__content {
    max-width: 50rem;
}

.text--centre .text__inner {
    text-align: center;
}

.text--centre .text__content {
    margin-inline: auto;
}

/* ─── Bloc : cartes ─── */
.cards {
    padding-block: var(--space-6);
}

.cards__title {
    margin-bottom: var(--space-2);
    font-size: clamp(2rem, 5vw, 3.75rem);
    text-align: center;
}

.cards__intro {
    max-width: 50rem;
    margin: 0 auto var(--space-4);
    text-align: center;
}

.cards__grid {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-4);
    grid-template-columns: repeat(3, 1fr);
}

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

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

.cards__box {
    display: block;
    height: 100%;
    padding: var(--space-4);
    background: var(--color-gris-clair);
    color: var(--color-ink);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.cards__item:hover .cards__box {
    background: var(--color-accent);
    color: var(--color-blanc);
}

.cards__item:hover .cards__item-title,
.cards__item:hover .cards__subtitle {
    color: var(--color-blanc);
}

.cards__icon {
    display: block;
    width: auto;
    height: 4rem;
    max-width: 6rem;
    margin-bottom: var(--space-2);
}

.cards__item-title {
    margin: 0 0 var(--space-1);
    font-size: 1.25rem;
}

.cards__subtitle {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.cards__text {
    margin: 0;
}

.cards--etapes .cards__box {
    padding-bottom: var(--space-5);
}

.cards--etapes .cards__item-title {
    margin-bottom: var(--space-1);
    font-size: 1.125rem;
}

/* Variante « alternée » (page Secteurs) : texte et photo en alternance, marges hautes du site en ligne */
.cards--alterne {
    padding: 0;
}

.cards__row {
    display: grid;
    grid-template-columns: 2.4% 45% 8.95% 42%;
    padding-top: 95px;
}

.cards__row:nth-of-type(1) {
    padding-top: 200px;
}

.cards__row:nth-of-type(even) {
    padding-top: 150px;
}

.cards__row .cards__content {
    grid-column: 2;
    grid-row: 1;
}

.cards__row .cards__media {
    grid-column: 4;
    grid-row: 1;
}

.cards__row--reverse {
    grid-template-columns: 1.47% 42% 8.95% 45%;
}

.cards__row--reverse .cards__media {
    grid-column: 2;
}

.cards__row--reverse .cards__content {
    grid-column: 4;
}

.cards__label {
    display: block;
    margin: 0 0 15px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.cards__label-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 15px;
    color: var(--sector-color, var(--color-accent));
}

.cards__row-title {
    margin: 20px 0;
    font-size: 60px;
    line-height: 1;
}

.cards__content .cards__text {
    padding-top: 45px;
    margin: 0 0 22.5px;
}

.cards__content .btn {
    margin-bottom: 5px;
}

.cards__image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 62rem) {
    .cards__row,
    .cards__row--reverse {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .cards__row .cards__content,
    .cards__row .cards__media,
    .cards__row--reverse .cards__content,
    .cards__row--reverse .cards__media {
        grid-column: auto;
        grid-row: auto;
    }

    .cards__row:nth-of-type(1),
    .cards__row:nth-of-type(even) {
        padding-top: 60px;
    }
}
/* ─── Bloc : textes et visuels à onglets (pages secteur) ─── */
.tabs {
    padding: 45px 0 0;
}

.tabs__inner {
    display: grid;
    grid-template-columns: 2.4% 45% 8.95% 42%;
}

.tabs__text {
    grid-column: 2;
}

.tabs__media {
    position: relative;
    grid-column: 4;
}

.tabs__title {
    margin: 20px 0;
    font-size: 60px;
    line-height: 1;
}

.tabs__content {
    padding-top: 45px;
}

.tabs__content p {
    margin: 0 0 20px;
}

/* Pagination des textes (créée par le JavaScript : sans lui, tous les textes sont visibles) */
.tabs__pager {
    position: relative;
    height: 25px;
    margin: 35px 0 10px;
}

.tabs__pager-dots {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.tabs__pager-dots li {
    display: inline-block;
    height: 12px;
    margin: 0 4px;
    vertical-align: top;
}

.tabs__pager-dot,
.tabs__pager-arrow {
    padding: 0;
    cursor: pointer;
}

.tabs__pager-dot {
    width: 14px;
    height: 14px;
    border: 1px solid #999;
    border-radius: 15px;
    background: var(--color-blanc);
    text-indent: -999px;
    overflow: hidden;
}

.tabs__pager-dot.is-active {
    border-color: var(--color-ink);
    background: var(--color-ink);
}

.tabs__pager-arrow {
    position: absolute;
    top: 0;
    border: 0;
    background: none;
    color: var(--color-ink);
    font-size: 1.5em;
    line-height: 20px;
}

.tabs__pager-arrow--prev {
    left: 0;
}

.tabs__pager-arrow--next {
    right: 15px;
}

/* Sélecteur de types : icône + libellé, fond orange au survol et sur l'actif */
.tabs__list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 45px 0 0;
    list-style: none;
}

.tabs__tab-item {
    width: 30%;
    margin: 15px 0 20px;
    transition: all 0.3s ease-in-out;
}

.tabs__tab {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 21px 15px;
    border: 0;
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.tabs__tab:hover,
.tabs__tab.is-active {
    background: var(--color-accent);
    color: var(--color-blanc);
}

.tabs__icon {
    display: block;
    height: 60px;
    margin: 0 auto 10px;
}

.tabs__label {
    display: block;
}

.tabs__image {
    display: block;
    width: 100%;
    height: auto;
}

.tabs__slide {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.tabs__slide[hidden] {
    display: none;
}

/* Encart orange translucide ancré en bas à gauche de la photo */
.tabs__panel {
    position: absolute;
    bottom: -40px;
    left: -40px;
    z-index: 50;
    box-sizing: content-box;
    width: 60%;
    padding: 25px 25px 80px;
    background: rgba(252, 77, 16, 0.8);
    color: var(--color-blanc);
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 800;
    transition: all 0.3s ease-in-out;
}

.tabs__panel:hover {
    padding-right: 120px;
}

.tabs__panel-text {
    margin: 0 0 22.5px;
}

.tabs__panel .btn {
    margin-bottom: 5px;
}

.tabs__panel-plus {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 51px;
    height: 40px;
    transition: transform 0.3s ease-out;
}

.tabs__panel:hover .tabs__panel-plus {
    transform: rotate(90deg);
}

@media (max-width: 62rem) {
    .tabs__inner {
        grid-template-columns: 1fr;
    }

    .tabs__text,
    .tabs__media {
        grid-column: auto;
    }

    .tabs__tab-item {
        width: 50%;
    }

    .tabs__panel,
    .tabs__panel:hover {
        position: static;
        box-sizing: border-box;
        width: 100%;
        padding: 25px;
    }

    .tabs__panel-plus {
        position: static;
        display: block;
        margin-top: 15px;
    }
}
/* ─── Bloc : FAQ ─── */
.faq__item {
    padding-block: var(--space-4);
}

.faq__item:nth-child(odd) {
    background: var(--color-gris-clair);
}

.faq__inner {
    width: min(calc(100% - 3rem), 56rem);
    margin-inline: auto;
}

.faq__question {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.faq__answer h3 {
    margin-top: var(--space-3);
    font-size: 1.125rem;
}

.faq__answer ul {
    padding-left: 1.25rem;
}

/* ─── Bloc : listes de compétences (deux panneaux : orange / gris, qui s'échangent au survol) ─── */
.lists {
    padding: 95px 0 0;
}

.lists .lists__inner {
    width: 85%;
}

.lists__title {
    margin: 20px 0;
    font-size: 60px;
    line-height: 1;
}

.lists__grid {
    display: flex;
    gap: 60px;
}

.lists__group {
    flex: 1;
    padding: 30px;
    background: var(--color-gris-clair);
    color: var(--color-ink);
    transition: all 0.3s ease-in-out;
}

.lists__group--accent,
.lists__group:hover {
    background: var(--color-accent);
    color: var(--color-blanc);
}

.lists__grid:has(.lists__group:not(.lists__group--accent):hover) .lists__group--accent {
    background: var(--color-gris-clair);
    color: var(--color-ink);
}

.lists__group--accent .lists__group-title,
.lists__group:hover .lists__group-title {
    color: var(--color-blanc);
}

.lists__grid:has(.lists__group:not(.lists__group--accent):hover) .lists__group--accent .lists__group-title {
    color: var(--color-ink);
}

.lists .lists__icon {
    display: block;
    height: auto;
    margin: 0 0 30px;
}

.lists .lists__group-title {
    margin: 24px 0 20px;
}

.lists__words {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lists__words li {
    padding: 12px 20px;
    border-radius: 5px;
    background: var(--color-blanc);
    color: var(--color-ink);
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 800;
}

@media (max-width: 62rem) {
    .lists__grid {
        flex-direction: column;
        gap: 30px;
    }
}
/* ─── Bloc : appel à projet (variantes) ─── */
.cta-project--fond-noir::before,
.cta-project--fond-orange::before,
.cta-project--fond-sante::before,
.cta-project--fond-chr::before,
.cta-project--fond-industrie::before,
.cta-project--fond-retail::before,
.cta-project--fond-veterinaire::before,
.cta-project--fond-tertiaire::before {
    display: none;
}

.cta-project--fond-orange {
    background: var(--color-accent);
}

.cta-project--encadre {
    padding-block: var(--space-5);
    background: transparent;
    color: var(--color-ink);
}

.cta-project--encadre::before,
.cta-project--encadre::after {
    display: none;
}

.cta-project--encadre .cta-project__content {
    max-width: 64rem;
    margin: 0 auto;
    padding: var(--space-5) var(--space-4);
    background: var(--cta-color, var(--color-noir));
    color: var(--color-blanc);
    text-align: center;
}

.cta-project--fond-orange.cta-project--encadre .cta-project__content {
    background: var(--color-accent);
}

.cta-project--encadre .cta-project__title {
    color: var(--color-blanc);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}
/* ─── Bandeau d'article, de liste et de réalisation ─── */
.hero__kicker {
    margin: 0 0 var(--space-1);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero--banner .hero__inner {
    padding-bottom: var(--space-5);
}

.hero--banner p.hero__title {
    font-size: clamp(1.75rem, 3.6vw, 3.25rem);
    max-width: 48rem;
}

/* ─── Filtres (actualités, réalisations) ─── */
.filter {
    padding: 45px 0 0;
}

.filter__title {
    margin: 20px 0;
    font-size: 24px;
    line-height: 1;
}

.filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter__item a {
    display: block;
    padding: 10px 20px 7px;
    border: 0;
    color: #333;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 27px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.filter__item a:hover,
.filter__item.is-current a {
    background: var(--sector-color, var(--color-noir));
    color: var(--color-blanc);
}

.filter__item.is-current a {
    background: var(--color-noir);
}

/* ─── Actualités : à la une et grille (cartes blanches à ombre, comme à l'accueil) ─── */
.featured {
    padding: 50px 0 10px;
}

.featured__link {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    background: var(--color-blanc);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.3);
    color: var(--color-ink);
    text-decoration: none;
}

.featured__media {
    flex: 0 0 46.53%;
}

.featured__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.featured__body {
    display: block;
    flex: 1;
    padding: 30px 45px;
}

.featured__pole,
.news-item__pole {
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.news-item__icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 15px;
    color: var(--sector-color, var(--color-ink));
}

.featured__title {
    display: block;
    margin-bottom: 45px;
    font-family: var(--font-heading);
    font-size: 37.5px;
    font-weight: 800;
    line-height: 45px;
}

.featured__text {
    display: block;
    margin-bottom: 20px;
}

.featured__more,
.news-item__more {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
}

.news-list {
    padding: 0;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 45px 0 0;
    list-style: none;
}

.news-item {
    width: calc(33.33% - 20px);
    min-height: 300px;
    background: var(--color-blanc);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.news-item__link,
.news-item__link:hover {
    display: block;
    color: var(--color-ink);
    text-decoration: none;
}

.news-item__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.news-item__body {
    display: block;
    padding: 25px;
}

.news-item__title {
    margin: 0;
    font-size: 1.2em;
    line-height: inherit;
}

.news-item__more {
    margin-bottom: 20px;
    padding-right: 20px;
    text-align: right;
}

.news-item__arrow {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    vertical-align: -2px;
}

@media (max-width: 62rem) {
    .news-item {
        width: 100%;
    }

    .featured__link {
        flex-direction: column;
    }

    .featured__media {
        flex: none;
    }
}
/* ─── Réalisations : grille de cartes ─── */
.works-list {
    margin: 80px 0;
    padding: 45px 0 0;
}

.works-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.works-grid > .work-card {
    width: calc(33.33% - 30px);
}

@media (max-width: 62rem) {
    .works-grid > .work-card {
        width: 100%;
    }
}

/* ─── Article ─── */
.article__inner {
    width: min(calc(100% - 3rem), 56rem);
    margin: var(--space-6) auto;
}

.article__title {
    max-width: none;
    margin-bottom: var(--space-3);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.article__content > * {
    max-width: none;
}

.article__content h2 {
    margin-top: var(--space-5);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.article__content a {
    color: var(--color-accent);
}

.article__content img,
.article__content .wp-block-image img {
    width: 100%;
}

.article__content .wp-block-embed {
    margin-block: var(--space-4);
}

.article__content .wp-block-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* ─── Fiche réalisation ─── */
.work__intro {
    display: grid;
    grid-template-columns: 2.4% 45% 8.95% 37%;
    align-items: start;
    padding: 95px 0 0;
}

.work__text > * {
    max-width: none;
}

.work__photo-image,
.gallery__image {
    display: block;
    width: 100%;
    height: auto;
}

.work__video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.work__quote {
    padding-block: var(--space-3);
}

.work__quote-inner {
    max-width: 64rem;
    margin-inline: auto;
}

.work__quote-inner blockquote {
    margin: 0;
    padding-left: var(--space-3);
    border-left: 3px solid var(--color-accent);
}

.work__gallery {
    padding-block: var(--space-4) var(--space-6);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery__link {
    display: block;
    cursor: zoom-in;
}

.gallery__image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: opacity 0.2s;
}

.gallery__link:hover .gallery__image {
    opacity: 0.85;
}

/* Visionneuse de photos */
.lightbox {
    width: min(96vw, 80rem);
    max-width: 96vw;
    max-height: 96vh;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    margin: 0 auto;
}

.lightbox__button {
    position: absolute;
    top: 50%;
    padding: 0.5rem 0.9rem;
    border: 0;
    background: var(--color-blanc);
    color: var(--color-noir);
    cursor: pointer;
    font-size: 1.5rem;
    transform: translateY(-50%);
}

.lightbox__button--prev {
    left: 0.5rem;
}

.lightbox__button--next {
    right: 0.5rem;
}

.lightbox__button--close {
    top: -2.25rem;
    right: 0;
    transform: none;
}
/* ─── Appel à projet « bandeau » : carte blanche sur une photo (rendu du site en ligne) ─── */
.cta-project--bandeau {
    padding: 9rem 0 var(--space-5);
    background: transparent;
    color: var(--color-ink);
}

.cta-project--bandeau::before {
    display: none;
}

.cta-project--bandeau .cta-project__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: max(40vh, 20rem);
    object-fit: cover;
}

.cta-project--bandeau .cta-project__content {
    position: relative;
    max-width: none;
    width: min(100% - 3rem, 64rem);
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    background: var(--color-blanc);
}

.cta-project--bandeau .cta-project__title {
    margin-bottom: var(--space-2);
    color: var(--color-ink);
    font-size: clamp(2rem, 5vw, 3.75rem);
}

.cta-project--bandeau .cta-project__text {
    max-width: 38rem;
}

.cta-project--bandeau.cta-project--fond-orange {
    background: transparent;
}

@media (max-width: 48rem) {
    .cta-project--bandeau .cta-project__content {
        padding: var(--space-3);
    }
}
/* ─── Champ piège anti-spam des formulaires (invisible) ─── */
.cf7-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__field--check label {
    font-family: var(--font-base);
    font-weight: 300;
}

/* ─── Formulaires en fenêtre ─── */
.popup {
    width: min(94vw, 42rem);
    max-height: 92vh;
    padding: var(--space-4);
    border: 0;
    background: var(--color-blanc);
    color: var(--color-ink);
    overflow: auto;
}

.popup::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.popup__title {
    margin: 0 0 var(--space-3);
    padding-right: 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.popup__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    padding: 0.25rem 0.6rem;
    border: 0;
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
}

.popup__close:hover {
    color: var(--color-accent);
}
/* ─── Calage sur le site en ligne (valeurs relevées à 1440 px) ─── */
.company__title,
.sectors__title,
.services__title,
.expertise__title,
.latest-works__title,
.latest-news__title,
.clients__title,
.cards__title,
.cards__row-title,
.text__title,
.lists__title,
.tabs__title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 4.2vw, 3.75rem);
    line-height: 1;
}

.company__card-title,
.services__item-title,
.cards__item-title,
.lists__group-title {
    font-size: 1.5rem;
    line-height: 1;
}

.sectors__link {
    font-size: 1.5rem;
    line-height: 1;
}

.work-card__title {
    font-size: 1.125rem;
}

/* Héros de l'accueil : écran entier (en-tête compris), cartes de 14 rem qui débordent de 90 px */
.hero--plein {
    min-height: calc(100vh - 3.6875rem);
}

.hero--plein .hero__inner {
    padding-bottom: 7.25rem;
}

.hero__card {
    min-height: 14.375rem;
    font-size: 0.9375rem;
}

/* Héros de l'accueil : titre en fondu après 2,5 s (1 s, easeOutCirc), cartes qui s'étirent au survol */
@keyframes hero-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero--plein .hero__subtitle {
    margin: 20px 0 0;
    line-height: 1;
}

.hero--plein .hero__title,
.hero--plein .hero__subtitle {
    animation: hero-fade-in 1s cubic-bezier(0.075, 0.82, 0.165, 1) 2.5s both;
}

.hero__cards {
    align-items: flex-end;
}

.hero__card {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hero__card-icon {
    display: block;
    width: auto;
    height: 40px;
    margin-bottom: 21px;
}

.hero__card-plus {
    position: absolute;
    top: 20px;
    right: 15px;
    width: auto;
    height: 30px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.hero__card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

@media (hover: hover) {
    .hero__card:hover,
    .hero__card:focus-within {
        padding-top: 5rem;
    }

    .hero__card:hover .hero__card-plus,
    .hero__card:focus-within .hero__card-plus {
        opacity: 1;
    }
}

/* Cartes du héros : titre blanc en Roboto gras 1,2 em (comme en ligne), icône de 40 px puis marges de 15 px */
.hero__card-title,
.hero__card--accent .hero__card-title {
    margin: 15px 0;
    color: var(--color-blanc);
    font-family: var(--font-base);
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.25;
}

.hero__card .hero__card-text {
    margin: 0;
}
@media (prefers-reduced-motion: reduce) {
    .hero--plein .hero__title,
    .hero--plein .hero__subtitle {
        animation: none;
    }

    .hero__card,
    .hero__card-plus {
        transition: none;
    }
}/* ─── Pied de page : fond noir, la carte de contact le chevauche de 270 px ─── */
.site-footer {
    margin-top: -270px;
    padding: 40px 4%;
    background: var(--color-noir);
    color: var(--color-blanc);
}

.site-footer--plain {
    margin-top: 0;
}

.site-footer__pre {
    height: 250px;
    border-bottom: 1px solid var(--color-blanc);
}

.site-footer--plain .site-footer__pre {
    height: 25px;
}

.site-footer .site-footer__inner {
    width: auto;
    margin: 0;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-accent);
}

.site-footer .site-title--light {
    color: var(--color-blanc);
}

.site-footer .custom-logo {
    width: 120px;
    height: auto;
    max-height: none;
}

.site-footer .widget-title {
    color: var(--color-blanc);
}

.footer-columns {
    display: flex;
    align-items: flex-start;
    padding: 50px 0;
    border-bottom: 1px solid var(--color-blanc);
}

.footer-column--brand {
    align-self: center;
    width: 25%;
}

.footer-column:not(.footer-column--brand) {
    width: calc(18.75% - 22.5px);
    margin-left: 30px;
}

.footer-column--brand + .footer-column {
    margin-left: 0;
}

.footer-column__title {
    margin: 0 0 20px;
    color: var(--color-blanc);
    font-family: var(--font-base);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 22.5px;
}

.footer-column__text {
    margin-top: var(--space-2);
}

.footer-column p {
    margin: 0;
}

.footer-column .footer-menu {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column .footer-menu li {
    margin-bottom: 7px;
}

.footer-column .footer-menu a {
    font-size: 0.9em;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    padding: 50px 0 20px;
}

.footer-socials {
    flex: 1;
    margin: 0;
}

.footer-socials__link {
    display: inline-block;
}

.footer-socials .icon {
    width: 1.3em;
    height: 1.3em;
}

.site-credit {
    flex: 2;
    margin: 0;
    font-size: 0.8em;
    text-align: center;
}

.site-credit img {
    display: inline-block;
}

.footer-legal {
    flex: 1;
}

.footer-menu--legal {
    display: flex;
    justify-content: flex-end;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu--legal a {
    font-family: var(--font-heading);
    font-weight: 800;
}
/* ─── Contenu courant : articles, archives, recherche ─── */
.entry-header,
.archive-header {
    margin-bottom: var(--space-5);
}

.entry-meta,
.entry-footer,
.archive-description {
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.featured-image {
    width: 100%;
    margin-top: var(--space-4);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.entry-content > * {
    max-width: var(--reading-width);
}

.entry-content > .alignwide {
    max-width: var(--content-width);
}

.entry-content > .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
}

:where(.entry-content) :where(p, ul, ol, blockquote) {
    margin-block: 0 var(--space-3);
}

.entry-content figure {
    margin-block: var(--space-4);
}

.entry-content blockquote {
    padding-left: var(--space-3);
    border-left: 3px solid var(--color-accent);
    color: var(--color-muted);
}

/* Pages composées de blocs : surcharge des largeurs de lecture ci-dessus.
   Les blocs ACF sont pleine largeur ; les blocs WordPress natifs restent centrés. */
.entry-content--blocks > .block {
    max-width: none;
}

.entry-content--blocks > :not(.block) {
    width: min(calc(100% - 3rem), var(--reading-width));
    margin-inline: auto;
}

.entry-content--blocks > .alignwide {
    width: min(calc(100% - 3rem), var(--content-width));
    max-width: none;
}

.entry-content--blocks > .alignfull {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: var(--space-4);
}

.post-card {
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-line);
}

.post-card__image {
    width: 100%;
    margin-bottom: var(--space-2);
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.post-card__title {
    margin: 0 0 var(--space-1);
    font-size: 1.35rem;
}

.post-card__title a {
    color: var(--color-ink);
    text-decoration: none;
}

.post-card__meta {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.nav-links,
.post-navigation,
.comment-navigation {
    margin-top: var(--space-5);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-block: var(--space-3);
}

.search-field {
    min-height: 2.75rem;
    min-width: min(18rem, 100%);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-gris);
}

.search-submit,
.comment-form input[type="submit"] {
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: var(--color-blanc);
    cursor: pointer;
}

.skip-link,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    z-index: 100;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    clip: auto;
    background: var(--color-paper);
}

/* ─── Menu mobile : burger sous 62 rem (le menu et son bouton ne tiennent plus sur une ligne) ─── */
@media (max-width: 62rem) {
    .site-header__inner {
        min-height: 4.5rem;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2);
        padding-block: 0.75rem;
    }

    .site-branding .custom-logo {
        width: 7.5rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-navigation {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .primary-navigation .menu {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding-block: var(--space-2);
    }

    .primary-navigation .menu > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--color-line);
    }

    .primary-navigation .menu__link,
    .primary-navigation .menu__toggle {
        width: 100%;
        padding: 0.9rem 0.25rem;
    }

    .primary-navigation .menu__link::after,
    .primary-navigation .menu__toggle::after {
        display: none;
    }

    /* Panneaux : listes simples, toujours dépliées (pas de voile, pas de photos) */
    .mega,
    .primary-navigation .menu-item-has-children.is-open > .mega {
        position: static;
        padding: 0 0 var(--space-2) var(--space-2);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .menu-overlay {
        display: none;
    }

    .mega__inner {
        display: block;
        height: auto;
    }

    .mega__main {
        width: 100%;
        height: auto;
    }

    .mega__list,
    .mega--tuiles .mega__list {
        display: block;
        height: auto;
    }

    .mega .mega__item,
    .mega--secteurs .mega__item,
    .mega--projets .mega__item {
        display: block;
        width: 100%;
    }

    .mega .mega__link,
    .mega--secteurs .mega__link,
    .mega--projets .mega__link {
        padding: 0.4rem 0;
    }

    .mega--tuiles .mega__link {
        font-size: 1em;
    }

    .mega__label {
        position: static;
        display: block;
        background: transparent;
        color: var(--color-ink);
        text-align: left;
    }

    .mega--tuiles .mega__link:hover .mega__label {
        background: transparent;
    }

    .mega__photo,
    .mega__icon,
    .mega__desc,
    .mega__plus,
    .mega__side {
        display: none;
    }
}@media (max-width: 48rem) {
    .container,
    .site-header__inner,
    .site-topbar__inner,
    .site-footer__inner,
    .site-main,
    .entry-header--page,
    .entry-content--blocks > :not(.block):not(.alignwide):not(.alignfull),
    .entry-content--blocks > .alignwide {
        width: min(calc(100% - 2rem), var(--content-width));
    }


    .site-main {
        padding-block: var(--space-5);
    }

    .site-main--blocks {
        padding-block: 0;
    }

    .hero {
        min-height: 30rem;
    }

    .hero__card {
        width: 100%;
        min-height: 0;
        padding: var(--space-3);
    }

    .hero__cards,
    .cards__grid,
    .cards--cols-2 .cards__grid,
    .cards--cols-4 .cards__grid,
    .cards__row,
    .tabs__inner,
    .lists__grid,
    .news-grid,
    .works-grid,
    .work__intro,
    .gallery,
    .featured__link,
    .company__inner,
    .company__cards,
    .sectors__layout,
    .services__grid,
    .expertise__inner,
    .latest-works__grid,
    .latest-news__grid,
    .contact__inner,
    .form,
    .footer-columns {
        grid-template-columns: 1fr;
    }

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

    .company,
    .services,
    .expertise {
        padding-block: var(--space-5);
    }

    .company__plus {
        bottom: -30px;
        left: 0;
    }

    .company__content,
    .company__media {
        grid-column: auto;
    }

    .sectors__layout {
        flex-direction: column;
        gap: var(--space-4);
    }

    .sectors__brand,
    .sectors__list {
        width: 100%;
    }

    .sectors__item {
        width: calc(50% - 8px);
    }

    .sectors__icon {
        margin: 0 15px 0 20px;
    }

    .sectors__text {
        max-width: none;
    }

    .expertise__badge {
        top: 0;
        left: 0;
    }

    .cta-project__content {
        margin-right: auto;
    }

    .cards__row--reverse .cards__media {
        order: 0;
    }

    .featured__link {
        flex-direction: column-reverse;
    }

    .hero__panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
    }

    .tabs__panel {
        position: static;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .clients__logo {
        transition: none;
    }

    /* La vidéo de fond est masquée : l'image d'attente reste visible. */
    .hero__video {
        display: none;
    }
}

/* Contact Form 7 insère un saut de ligne entre l'étiquette et le champ : inutile ici. */
.form__field br {
    display: none;
}

.form__field textarea {
    display: block;
    min-height: 7rem;
}

/* ─── Accueil : bandeau, accompagnement, appel à projet (cotes relevées sur le site en ligne à 1440 px) ─── */
.band {
    display: block;
    min-height: 0;
    margin: 80px 0;
    padding: 100px 5%;
}

.band::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 80%);
}

.band .band__text {
    margin: 20px 0;
    font-size: 3.2em;
    line-height: 1;
}

.services {
    padding: 0;
}

.services__title {
    margin: 0 0 20px;
}

.services .services__text {
    width: 50%;
    max-width: none;
    padding-top: 45px;
    margin: 0 0 20px;
}

.services__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 45px;
    margin-top: 0;
}

.services__item {
    width: calc(50% - 25px);
    transition: all 0.2s ease-in-out;
}

.services__link {
    position: relative;
    display: block;
    min-height: 160px;
    padding: 50px 70px;
    color: var(--color-ink);
    text-decoration: none;
}

.services .services__icon {
    display: block;
    height: 75px;
    margin: 0;
    color: var(--color-accent);
}

.services .services__item-title {
    margin: 24px 0 20px;
    font-size: 24px;
    line-height: 1;
}

.services__item-text {
    display: block;
}

.services .services__arrow {
    position: absolute;
    right: 50px;
    bottom: -2px;
    width: 23px;
    height: 75px;
    color: var(--color-accent);
}

.services__item:hover {
    background: var(--color-accent);
}

.services__item:hover * {
    color: var(--color-blanc);
    transition: all 0.2s ease-in-out;
}

/* Appel à projet « bandeau » : photo fixe (parallaxe), carte blanche filet orange */
.cta-project--bandeau {
    margin: 80px 0 50px;
    padding: 160px 0 0;
}

.cta-project--bandeau::after {
    display: none;
}

.cta-project__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background-color: #f3f2f4;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.cta-project--bandeau .cta-project__inner {
    width: auto;
    margin: 0;
}

.cta-project--bandeau .cta-project__content {
    width: auto;
    max-width: none;
    margin: 0 14%;
    padding: 60px 120px;
    overflow: hidden;
    border-bottom: 10px solid var(--color-accent);
}

.cta-project--bandeau .cta-project__title {
    margin: 0 0 20px;
    font-size: 60px;
    line-height: 68px;
}

.cta-project--bandeau .cta-project__text {
    width: 70%;
    max-width: none;
    margin: 40px 0;
}

.cta-project__action {
    margin: 0;
    padding-bottom: 19px;
}

.cta-project__action .btn {
    margin-bottom: 5px;
}

@media (max-width: 62rem) {
    .cta-project__bg {
        background-attachment: scroll;
    }

    .cta-project--bandeau .cta-project__content {
        margin: 0 5%;
        padding: 20px 25px;
    }

    .cta-project--bandeau .cta-project__text {
        width: 100%;
    }

    .services .services__text {
        width: 100%;
    }

    .services__item {
        width: 100%;
    }

    .services__link {
        padding: 25px 45px 25px 35px;
    }

    .services .services__arrow {
        right: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-project__bg {
        background-attachment: scroll;
    }

    .services__item,
    .services__item:hover * {
        transition: none;
    }
}

@media (max-width: 62rem) {
    .expertise__inner {
        grid-template-columns: 1fr;
    }

    .expertise__media,
    .expertise__content {
        grid-column: auto;
    }

    .expertise__badge {
        left: 0;
    }

    .latest-works__grid > .work-card,
    .actu-card {
        width: 100%;
    }
}

/* ─── Carte de contact au-dessus du pied de page (toutes les pages sauf Contact) ─── */
.footer-contact {
    position: relative;
    margin: 80px 0 50px;
    padding: 50px 0 0;
}

.footer-contact__zone {
    position: relative;
    z-index: 5;
    margin: 0 10%;
    padding: 40px 60px;
    overflow: hidden;
    background: var(--color-blanc);
    border-bottom: 10px solid var(--color-accent);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.footer-contact__sections {
    display: flex;
    width: 90%;
    margin: 0 5%;
}

.footer-contact__side {
    position: relative;
    width: 40%;
    background: var(--color-accent);
    color: var(--color-blanc);
}

.footer-contact__side a {
    color: inherit;
}

.footer-contact__info {
    padding: 45px;
}

.footer-contact__info p {
    margin: 0 0 35px;
}

.footer-contact__info p:last-child {
    margin-bottom: 0;
}

.footer-contact__rdv {
    position: absolute;
    bottom: 0;
    left: 0;
    box-sizing: content-box;
    width: calc(100% - 90px);
    padding: 45px 45px 10px;
    background: var(--color-orange-fonce);
    transition: all 0.3s ease-in-out;
}

.footer-contact__rdv p {
    margin: 0;
}

.footer-contact__rdv .btn {
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.footer-contact__rdv:hover,
.footer-contact__rdv:focus-within {
    padding-bottom: calc(100% - 80px);
}

.footer-contact__rdv:hover .btn,
.footer-contact__rdv:focus-within .btn {
    opacity: 1;
}

.footer-contact .footer-contact__arrow,
.contact .footer-contact__arrow {
    position: absolute;
    right: 45px;
    bottom: 35px;
    width: 23px;
    height: 23px;
    transition: transform 0.3s ease-out;
}

.footer-contact__rdv:hover .footer-contact__arrow,
.footer-contact__rdv:focus-within .footer-contact__arrow {
    transform: rotate(180deg);
}

.footer-contact__form {
    box-sizing: content-box;
    width: calc(60% - 60px);
    padding: 0 30px;
}

.footer-contact__title {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.footer-contact__form > p {
    margin: 0 0 20px;
}

.footer-contact .cf7-grid {
    grid-template-columns: 47% 47%;
    gap: 0 5%;
}

.footer-contact .form__field {
    margin: 0 0 10px;
}

.footer-contact .form__field label {
    display: none;
}

/* Champs de formulaire du site en ligne : fond gris, sans bordure, angles de 7 px */
.form__field input[type="text"],
.form__field input[type="email"],
.form__field input[type="tel"],
.form__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    border: 0;
    border-radius: 7px;
    background: var(--color-gris-clair);
    color: #000;
    font-family: var(--font-base);
    line-height: 16px;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.form__field textarea {
    height: 160px;
}

@media (max-width: 62rem) {
    .footer-contact__zone {
        margin: 0 5%;
        padding: 20px 25px;
    }

    .footer-contact__sections {
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    .footer-contact__side,
    .footer-contact__form {
        width: 100%;
        padding-inline: 0;
    }

    .footer-contact__rdv {
        position: static;
        width: auto;
    }

    .footer-contact__rdv .btn {
        opacity: 1;
    }

    .footer-contact .cf7-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-column--brand,
    .footer-column:not(.footer-column--brand) {
        width: 100%;
        margin-left: 0;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-menu--legal {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-contact__rdv,
    .footer-contact__rdv .btn,
    .footer-contact__arrow {
        transition: none;
    }
}

.primary-navigation .menu__link:focus-visible,
.primary-navigation .menu__toggle:focus-visible {
    outline-offset: -3px;
}

.footer-contact__side a.btn {
    color: var(--color-noir);
}

.footer-contact__side a.btn:hover,
.footer-contact__side a.btn:focus-visible {
    color: var(--color-blanc);
}


/* Cartes d'icônes sur les pages : mêmes cartes que l'accueil, 2 à 4 colonnes, sans lien = simple bloc */
a.services__link {
    margin-bottom: 2.5px;
}

.services--padded {
    padding-top: 95px;
}

.services--padded .services__title {
    margin-top: 20px;
}

.services--cols-3 .services__item {
    width: calc(33.33% - 20px);
}

.services--cols-4 .services__item {
    width: calc(25% - 22.5px);
}

div.services__link .services__item-text {
    margin-bottom: 20px;
}

@media (max-width: 62rem) {
    .services--cols-3 .services__item,
    .services--cols-4 .services__item {
        width: 100%;
    }
}

/* Sur les pages intérieures, les actualités suivent l'appel à projet : 95 px de marge haute (à l'accueil elles suivent le bandeau noir) */
.cta-project + .latest-news {
    padding-top: 95px;
}

/* ─── Bandeau des pages intérieures (hero « réduite ») : cotes du site en ligne à 1440 px ─── */
.hero--moitie {
    z-index: 2;
    height: 70vh;
    min-height: 0;
    overflow-x: clip;
}

.hero--moitie::before {
    background: rgba(0, 0, 0, 0.3);
}

@keyframes banner-zoom {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

@keyframes infrotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero--moitie .hero__image {
    animation: banner-zoom 5s ease-out both;
}

.hero--moitie .hero__inner {
    width: 85%;
    margin: 0 0 0 5%;
    padding-bottom: 115px;
}

.hero--moitie .hero__subtitle {
    max-width: 49.2%;
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 22.5px;
}

/* Panneau « Vous avez un projet ? » : dépasse du bandeau, glisse au survol, « + » en rotation continue */
.hero--moitie .hero__panel {
    right: -350px;
    bottom: -50px;
    z-index: 600;
    display: flex;
    gap: 50px;
    box-sizing: content-box;
    width: 390px;
    height: 135px;
    padding: 30px 40px 30px 30px;
    transition: right 0.3s cubic-bezier(0.6, 0.04, 0.98, 0.335);
}

.hero--moitie .hero__panel:hover,
.hero--moitie .hero__panel:focus-within {
    right: 0;
    transition: right 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.hero__panel-icon {
    flex: none;
    width: 40px;
    height: 40px;
    animation: infrotation 4s linear infinite;
}

.hero__panel-body {
    width: 300px;
}

.hero--moitie .hero__panel-title {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1;
}

.hero--moitie .hero__panel-text {
    margin: 0;
    font-size: 0.9em;
}

@media (max-width: 62rem) {
    .hero--moitie {
        height: auto;
        min-height: 50vh;
    }

    .hero--moitie .hero__inner {
        width: min(calc(100% - 2rem), var(--content-width));
        margin: 0 auto;
        padding-bottom: var(--space-4);
    }

    .hero--moitie .hero__subtitle {
        max-width: none;
    }

    .hero--moitie .hero__panel {
        right: auto;
        bottom: auto;
        width: auto;
        height: auto;
        transition: none;
    }

    .hero__panel-body {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero--moitie .hero__image,
    .hero__panel-icon {
        animation: none;
    }
}

/* Expertises, image à droite (pages intérieures) : mêmes colonnes que « Notre entreprise », encart avec titre de 21,6 px */
.expertise--right .expertise__inner {
    grid-template-columns: 2.4% 45% 8.95% 42%;
}

.expertise--right .expertise__content {
    grid-column: 2;
    grid-row: 1;
}

.expertise--right .expertise__media {
    grid-column: 4;
    grid-row: 1;
}

.expertise--right .expertise__badge {
    padding: 46.6px 25px 100px;
    font-size: 21.6px;
    line-height: 21.6px;
}

@media (max-width: 62rem) {
    .expertise--right .expertise__content,
    .expertise--right .expertise__media {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Dernières réalisations sur fond blanc (pages intérieures) */
.latest-works--light {
    padding: 95px 0 0;
    background: transparent;
    color: var(--color-ink);
}

.latest-works--light .latest-works__title {
    color: var(--color-ink);
}

/* Sur les pages intérieures, « Accompagnement » suit un bloc sans marge basse : 80 px au-dessus */
.expertise + .services:not(.services--padded) {
    margin-top: 80px;
}

/* Bandeau des pages secteur / projet : titre long, boutons, cartes sous le bandeau (40 px d'écart, 230 px de haut) */
.hero--moitie .hero__title--long {
    font-size: 67.5px;
}

.hero--moitie .hero__buttons {
    margin-top: 20px;
}

.hero--moitie.hero--cards {
    margin-bottom: 270px;
}

.hero--moitie .hero__cards {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 40px;
}

@media (max-width: 62rem) {
    .hero--moitie.hero--cards {
        margin-bottom: 0;
    }

    .hero--moitie .hero__cards {
        position: relative;
        top: auto;
        margin-top: 0;
    }
}

/* Étapes « Vous avez un projet ? » : cases grises, barre noire qui se déploie au survol */
.steps {
    padding-top: 95px;
}

.steps__title {
    margin: 20px 0;
    font-size: 60px;
    line-height: 1;
}

.steps .steps__intro {
    margin: 0 0 20px;
}

.steps__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 45px 0 0;
    list-style: none;
}

.steps__item {
    position: relative;
    width: calc(25% - 16px);
}

.steps__box {
    position: relative;
    display: block;
    height: 100%;
    box-sizing: border-box;
    padding: 35px 25px 68px;
    overflow: hidden;
    background: var(--color-gris-clair);
    color: var(--color-ink);
    line-height: 27px;
    text-decoration: none;
}

.steps .steps__icon {
    display: block;
    height: 80px;
}

.steps__name {
    position: relative;
    z-index: 10;
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    transition: color 0.5s ease-in-out;
}

.steps__sub {
    position: relative;
    z-index: 10;
    display: block;
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 21.6px;
    transition: color 0.5s ease-in-out;
}

.steps__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    box-sizing: content-box;
    width: calc(100% - 20px);
    height: 20px;
    padding: 10px;
    background: var(--color-noir);
    color: var(--color-blanc);
    text-align: right;
    transition: all 0.5s ease-in-out;
}

.steps .steps__arrow {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 18px;
    height: 18px;
}

.steps__box:hover .steps__bar,
.steps__box:focus-visible .steps__bar,
.steps__item:hover .steps__bar {
    padding-bottom: 100%;
}

.steps__box:hover .steps__name,
.steps__box:hover .steps__sub,
.steps__box:hover .steps__icon,
.steps__item:hover .steps__name,
.steps__item:hover .steps__sub,
.steps__item:hover .steps__icon {
    position: relative;
    z-index: 10;
    color: var(--color-gris-clair);
}

@media (max-width: 62rem) {
    .steps__list {
        flex-direction: column;
    }

    .steps__item {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .steps__bar,
    .steps__name,
    .steps__sub {
        transition: none;
    }
}

/* Bande colorée « Votre projet clé en main avec Aire+ … » (appel à projet encadré) */
.cta-project--encadre {
    margin: 80px 0;
    padding: 0;
}

.cta-project--encadre .cta-project__content {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 40px 70px;
    text-align: left;
}

.cta-project--encadre .cta-project__title {
    margin: 37.5px 0 20px;
    font-size: 37.5px;
    line-height: 1;
}

.cta-project--encadre .btn {
    margin-bottom: 5px;
}

/* Appel secondaire (« Des solutions adaptées ») : titre h3 avec 60 px de marge haute et interligne serré */
.cta-project--bandeau.cta-project--secondary .cta-project__title {
    margin-top: 60px;
    line-height: 60px;
}

/* Encadré noir « Vous avez un projet ? » : 85 % de large, texte à 40 % */
.cta-project--fond-noir.cta-project--encadre .cta-project__inner {
    width: 85%;
}

.cta-project--encadre .cta-project__text {
    width: 40%;
    margin: 40px 0;
}

.cta-project--encadre .cta-project__action {
    margin: 0 0 20px;
    padding: 0;
}

/* Textes à onglets : 95 px au-dessus, 45 px quand les cartes du bandeau les précèdent */
.tabs {
    padding-top: 95px;
}

.hero--cards + .tabs {
    padding-top: 45px;
}

/* ─── Pages de texte (mentions légales, confidentialité) : titre de 60 px et texte sur 80 % de large ─── */
.page-header--clair {
    padding: 111px 0 0;
}

.page-header--clair .page-header__inner {
    width: 80%;
}

.page-header--clair .page-header__title {
    margin: 0 0 80px;
    font-size: 60px;
    line-height: 1;
}

.entry-content--blocks > :not(.block):not(.alignwide):not(.alignfull) {
    width: 80%;
    max-width: none;
    margin-inline: 10%;
}

.entry-content--blocks > .wp-block-heading {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 1;
}

.entry-content--blocks > p,
.entry-content--blocks > ul,
.entry-content--blocks > ol {
    margin-bottom: 20px;
}

/* FAQ : sections grises / blanches en alternance, texte sur 80 % de large (comme en ligne) */
.faq__item {
    padding: 30px 0;
}

.faq__inner {
    width: 80%;
    max-width: none;
    margin: 0 auto;
}

.faq .faq__question {
    margin: 20px 0;
    font-size: 37.5px;
    line-height: 37.5px;
}

.faq__answer p,
.faq__answer ul {
    margin: 0 0 20px;
}

.faq__answer ul {
    padding: 0;
    list-style: none;
}

.faq__answer li {
    margin-bottom: 0;
}

.faq__answer li:has(> strong:first-child) {
    margin-bottom: 22.5px;
}

.faq__answer strong {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
}

/* ─── Page Contact : formulaire à gauche, encadré orange à droite (550 px) ─── */
.page-contact .page-header--clair {
    padding-top: 71px;
}

.page-contact .page-header--clair .page-header__title {
    margin-bottom: 20px;
}

@media (max-width: 62rem) {
    .contact .contact__inner {
        flex-direction: column;
        width: 90%;
        margin: 0 5%;
    }

    .contact__form,
    .contact .footer-contact__side {
        width: 100%;
        padding-right: 0;
    }

    .contact .footer-contact__side {
        height: auto;
    }
}

.contact .cf7-grid {
    grid-template-columns: 47% 47%;
    gap: 17px 6%;
    justify-content: space-between;
}

/* ─── Bandeau d'article / de liste : titre de 57 px sur toute la largeur, bas à 113 px ─── */
.hero--banner .hero__inner {
    padding-bottom: 113px;
}

.hero--banner .hero__kicker {
    margin: 0 0 20px;
}

.hero--banner p.hero__title {
    max-width: none;
    font-size: 57px;
    line-height: 1;
}

/* ─── Article : texte sur 70 % de large, titres de 37,5 px ─── */
.article__inner {
    width: 70%;
    margin: 135px auto 0;
}

.article__title {
    margin: 0 0 20px;
    font-size: 60px;
    line-height: 1;
}

.article__content h2 {
    margin: 45px 0 20px;
    font-size: 37.5px;
    line-height: 1;
}

@media (max-width: 62rem) {
    .article__inner {
        width: 90%;
        margin-top: 60px;
    }
}

/* ─── Fiche réalisation : texte (45 %) et photo carrée (37 %), galerie de 3 colonnes, témoignage replié ─── */
.work__text {
    grid-column: 2;
}

.work__photo {
    grid-column: 4;
}

.work__photo-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.work__text p {
    margin: 0 0 20px;
}

.work__more {
    margin: 0;
}

.work__more .btn {
    margin-bottom: 5px;
}

.work__quote {
    padding: 45px 0 0;
}

.work__extended:not([hidden]) {
    animation: work-reveal 0.3s ease-out both;
}

@keyframes work-reveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.work__gallery {
    padding: 45px 0 0;
}

.cta-project--encadre[class*="cta-project--fond-"]:not(.cta-project--fond-noir):not(.cta-project--fond-image):not(.cta-project--photo) .cta-project__text {
    width: 35%;
}

@media (max-width: 62rem) {
    .work__intro {
        grid-template-columns: 1fr;
    }

    .work__text,
    .work__photo {
        grid-column: auto;
    }

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

/* Fiche réalisation : le titre est un h1 de 90 px, bas du bloc à 137 px du bas du bandeau */
.hero--banner .hero__inner:has(h1.hero__title) {
    padding-bottom: 137px;
}

/* ─── Correctifs de relecture : mobile, clavier, bouton pause de la vidéo ─── */
.steps__box:focus-visible .steps__name,
.steps__box:focus-visible .steps__sub,
.steps__box:focus-visible .steps__icon {
    position: relative;
    z-index: 10;
    color: var(--color-gris-clair);
}

.hero__video-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-blanc);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.hero__video-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: 12px;
    height: 14px;
    margin: auto;
    border-right: 4px solid var(--color-blanc);
    border-left: 4px solid var(--color-blanc);
}

.hero__video-toggle.is-paused::before {
    width: 0;
    height: 0;
    margin-left: 15px;
    border: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid var(--color-blanc);
}

@media (max-width: 62rem) {
    .cta-project--encadre .cta-project__text,
    .cta-project--encadre[class*="cta-project--fond-"]:not(.cta-project--fond-noir):not(.cta-project--fond-image):not(.cta-project--photo) .cta-project__text {
        width: auto;
    }

    .cta-project--encadre .cta-project__content {
        padding: 30px 25px;
    }

    .hero--moitie .hero__title--long {
        font-size: clamp(1.75rem, 6vw, 67.5px);
    }

    .hero--banner p.hero__title {
        font-size: clamp(1.75rem, 6vw, 57px);
    }

    .page-header--clair .page-header__title,
    .article__title,
    .steps__title,
    .tabs__title,
    .lists__title,
    .cards__row-title,
    .cta-project--bandeau .cta-project__title {
        font-size: clamp(2rem, 8vw, 60px);
        line-height: 1.1;
    }

    .cta-project--encadre .cta-project__title,
    .faq .faq__question,
    .article__content h2,
    .featured__title {
        font-size: clamp(1.5rem, 6vw, 37.5px);
        line-height: 1.15;
    }

    .cta-project--bandeau.cta-project--secondary .cta-project__title {
        margin-top: 30px;
    }
}

/* Logos clients : bouton de pause (clavier, tactile) ; le focus et le survol suspendent aussi le défilement */
.clients__marquee {
    position: relative;
}

.clients__pause {
    position: absolute;
    top: 8px;
    right: 5%;
    z-index: 2;
    padding: 4px 10px;
    border: 1px solid #999;
    border-radius: 7px;
    background: var(--color-blanc);
    color: var(--color-ink);
    cursor: pointer;
    font-size: 0.8125rem;
}

.clients__marquee.is-paused .clients__track,
.clients__marquee:focus-within .clients__track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .work__extended:not([hidden]) {
        animation: none;
    }
}

/* Secteurs de l'accueil sur mobile : une colonne, pas de débordement */
@media (max-width: 62rem) {
    .sectors__item {
        width: 100%;
        height: 90px;
    }

    .sectors__link {
        font-size: 20px;
    }

    .sectors .sectors__icon {
        height: 40px;
        margin: 0 15px;
    }

    .sectors__plus {
        right: 0;
    }
}

/* Page « Votre projet » : accroche en gras des offres, intro en paragraphes, bloc franchises sur fond noir */
.cards__lead {
    margin: 0 0 22.5px;
    padding-top: 45px;
    font-weight: 700;
}

.cards__content .cards__lead + .cards__text,
.cards__content .cards__text + .cards__text {
    padding-top: 0;
}

.expertise--dark {
    padding-bottom: 95px;
    background: var(--color-noir);
    color: var(--color-blanc);
}

.expertise--dark .expertise__title {
    color: var(--color-blanc);
}


/* Liste « Objet de la demande » des formulaires de contact : même aspect que les champs texte ; grise tant qu'aucun choix n'est fait, comme les « placeholder » */
.form__field ::placeholder {
    color: #757575;
    opacity: 1;
}

.form__field select {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 0 20px 0 16px; /* hauteur fixée comme les champs texte ; le navigateur centre le texte, sans le tronquer */
    border: 0;
    border-radius: 7px;
    background-color: var(--color-gris-clair);
    color: #757575;
    font-family: var(--font-base);
    line-height: 16px;
}

.form__field select:has(option:not(:first-child):checked) {
    color: #000;
}

.form__field select option {
    color: #000;
}


/* Encadré noir avec photo à droite (pages « Votre projet » et « Notre approche ») */
.cta-project--photo .cta-project__inner {
    display: grid;
    grid-template-columns: 59% 41%;
    align-items: stretch;
}

.cta-project--photo .cta-project__text {
    width: 75%;
}

.cta-project--encadre .cta-project__text + .cta-project__text {
    margin-top: -25px;
}

.cta-project__photo {
    position: relative;
    overflow: hidden;
}

.cta-project__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 62rem) {
    .cta-project--photo .cta-project__inner {
        grid-template-columns: 1fr;
    }

    .cta-project--photo .cta-project__text {
        width: auto;
    }

    .cta-project__photo {
        min-height: 220px;
    }
}


/* Encart orange avec « + » seul : même carré que « Notre entreprise » de l'accueil (.company__plus), « + » en haut à droite, sur le coin bas gauche de la photo */
.expertise .expertise__badge.expertise__badge--plus,
.expertise .expertise__badge.expertise__badge--plus:hover {
    top: auto;
    bottom: -50px;
    left: -50px;
    box-sizing: content-box;
    width: 33%;
    min-width: 70px;
    height: 50%;
    min-height: 100px;
    padding: 15px;
    text-align: right;
}

.expertise__badge--plus .expertise__plus {
    position: static;
    right: auto;
    bottom: auto;
}

@media (max-width: 62rem) {
    .expertise .expertise__badge.expertise__badge--plus,
    .expertise .expertise__badge.expertise__badge--plus:hover {
        bottom: -30px;
        left: 0;
    }
}


/* Cartes du hero des pages intérieures (secteurs…) : bloc ancré par le bas, comme sur le site en ligne. Au survol l'aplat grandit vers le haut
   (marge haute +3,125 rem et hauteur minimale +3,125 rem) et le texte ne bouge pas. */
.hero--moitie .hero__cards {
    top: auto;
    bottom: -270px;
    margin-top: 0;
}

@media (hover: hover) {
    .hero--moitie .hero__card:hover,
    .hero--moitie .hero__card:focus-within {
        min-height: calc(14.375rem + 3.125rem);
    }
}

@media (max-width: 62rem) {
    .hero--moitie .hero__cards {
        bottom: auto;
    }
}
