/* ==============================================
   WP ADMIN BAR OFFSET (fixed/sticky elements)
   --admin-bar-h vaut 0 par défaut, et la hauteur de la WP toolbar
   quand body.admin-bar est présent (utilisateur connecté).
=============================================== */
:root {
    --admin-bar-h: 0px;
}
.admin-bar {
    --admin-bar-h: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar {
        --admin-bar-h: 46px;
    }
}

/* ==============================================
   LAYOUT UTILITIES
=============================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 860px;
}

.section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.section--grey {
    background: var(--grey-light);
}

/* ==============================================
   TYPOGRAPHY
=============================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
}

.section__eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 0;
}

.section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.section__header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ==============================================
   BUTTONS
=============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

.btn--primary {
    background: var(--green);
    color: var(--white);
    border: 2px solid var(--green);
}
.btn--primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    box-shadow: 0 6px 20px rgba(91,189,46,0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--border);
}
.btn--secondary:hover {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: var(--white);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--charcoal);
    border: 2px solid var(--white);
}
.btn--white:hover {
    background: transparent;
    color: var(--white);
}

.btn--lg {
    padding: 1.1rem 2.25rem;
    font-size: 0.9375rem;
}

/* ==============================================
   HEADER
=============================================== */
.site-header {
    position: fixed;
    top: var(--admin-bar-h);
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header__logo img {
    height: 44px;
    width: auto;
}

/* The mark sits on the text's baseline: an image's baseline is its bottom
   edge, so the bars rise from the line the letters stand on. */
.header__logo {
    gap: 0.625rem;
    align-items: baseline;
}

/* As in the original logo: the bars stand about 1.46 times the capitals. */
.header__logo .header__logo-icon {
    height: 23px;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__list a {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--charcoal-mid);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.nav__list a:hover,
.nav__list .current-menu-item a {
    color: var(--charcoal);
}

.nav__list a:hover::after,
.nav__list .current-menu-item a::after {
    transform: scaleX(1);
}

/* Réseaux sociaux dans le header */
.header__socials {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.header__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--charcoal-mid);
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
}
.header__social:hover,
.header__social:focus-visible {
    color: var(--green-dark);
    background: var(--grey-light);
}
.header__social svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--gutter) 2rem;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open { display: block; }

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

.mobile-nav__list li a {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.mobile-nav__list li a:hover { color: var(--green-dark); }

.mobile-nav__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    list-style: none;
    padding: 0;
}
.mobile-nav__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grey-light);
    color: var(--charcoal-mid);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.mobile-nav__social:hover {
    background: var(--green);
    color: var(--white);
}
.mobile-nav__social svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ==============================================
   HERO
=============================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

/* Slider hero — track flex animé en transform (slide horizontal).
   L'autoplay et la navigation sont pilotés par JS (cf. main.js > [data-slider]). */
.hero__track {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.8s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    touch-action: pan-y;
}
.hero__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero__slide--placeholder {
    background: var(--charcoal);
}

@media (prefers-reduced-motion: reduce) {
    .hero__track { transition: none; }
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.45) 55%,
        rgba(0,0,0,0.2) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-block: clamp(3rem, 8vw, 6rem);
    max-width: 680px;
}

.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 1.25rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__title em {
    font-style: normal;
    color: var(--green-dark);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==============================================
   STATS
=============================================== */
.stats {
    background: var(--charcoal);
    padding-block: 3rem;
}

.stats__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.stats__item {
    flex: 1 1 0;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1.5rem;
}

.stats__divider {
    flex: 0 0 auto;
}

.stats__number {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stats__number span {
    color: var(--green-dark);
}

.stats__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
}

.stats__divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.12);
}

/* ==============================================
   SECTION LOCALISATION (home)
=============================================== */
.location__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.location__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.location__intro {
    color: var(--charcoal-mid);
    line-height: 1.7;
    margin: 0;
}

.location__info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
}
.location__info li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.location__info strong {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-dark);
}
.location__info address,
.location__info span,
.location__info a {
    color: var(--charcoal-mid);
    font-style: normal;
    line-height: 1.5;
    text-decoration: none;
}
.location__info a:hover {
    color: var(--green-dark);
}

.location__content > .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.location__map-wrap {
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--grey-light);
}
.location__map {
    width: 100%;
    height: 100%;
}
.location__map-fallback {
    padding: 1.5rem;
    background: var(--grey-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.location__map-fallback p { margin: 0 0 1rem; color: var(--charcoal); }
.location__map-fallback a { color: var(--green-dark); text-decoration: underline; }

/* Marker custom Leaflet (DivIcon) — pas de bg gris par défaut */
.act-marker {
    background: transparent !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .location__inner {
        grid-template-columns: 1fr;
    }
    .location__map-wrap {
        aspect-ratio: 16 / 10;
    }
}
@media (max-width: 480px) {
    .location__info {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   PAGE "MENTIONS LÉGALES"
=============================================== */
.legal h2 {
    font-size: 1.375rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p {
    line-height: 1.7;
    color: var(--charcoal-mid);
    margin-bottom: 1rem;
}
.legal ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--charcoal-mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal a {
    color: var(--green-dark);
    text-decoration: underline;
}
.legal a:hover { color: var(--charcoal); }

.legal__list {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0.5rem 1.5rem;
    margin: 0 0 1.5rem;
}
.legal__list > div {
    display: contents;
}
.legal__list dt {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey);
    padding-top: 0.125rem;
}
.legal__list dd {
    margin: 0;
    color: var(--charcoal);
    line-height: 1.5;
}

.legal__updated {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--grey);
    font-style: italic;
}

@media (max-width: 600px) {
    .legal__list {
        grid-template-columns: 1fr;
        gap: 0.125rem;
    }
    .legal__list dt {
        margin-top: 0.75rem;
    }
}

/* ==============================================
   PAGE "CONTACT"
=============================================== */
.contact-section__layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-info-col__title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    margin-bottom: 1rem;
}
.contact-info-col__text {
    color: var(--charcoal-mid);
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-info__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-info__icon svg { width: 20px; height: 20px; display: block; }
.contact-info strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}
.contact-info address,
.contact-info p,
.contact-info a {
    color: var(--charcoal-mid);
    font-style: normal;
    line-height: 1.5;
    text-decoration: none;
    margin: 0;
}
.contact-info a:hover { color: var(--green-dark); }

/* Formulaire */
.contact-form {
    background: var(--grey-light);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: calc(var(--radius) * 2);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
.contact-form__field label {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--charcoal);
}
.contact-form__field label span { color: var(--green-dark); }

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form__field input:focus-visible,
.contact-form__field select:focus-visible,
.contact-form__field textarea:focus-visible {
    outline: none;
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(91, 189, 46, 0.18);
}
.contact-form__field textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-body);
}

.contact-form__notice {
    font-size: 0.8125rem;
    color: var(--grey);
    margin: 0;
    line-height: 1.5;
}

.contact-form .btn { align-self: flex-start; }

.contact-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border-left: 3px solid;
}
.contact-alert--success { background: #f0f9ec; border-color: var(--green-dark); color: var(--charcoal); }
.contact-alert--error   { background: #fdecec; border-color: #c33;        color: #6b1a1a; }
.contact-alert strong   { display: block; margin-bottom: 0.25rem; font-family: var(--font-heading); }
.contact-alert p        { margin: 0; line-height: 1.5; }
.contact-alert ul       { margin: 0.5rem 0 0; padding-left: 1.25rem; }

@media (max-width: 768px) {
    .contact-section__layout    { grid-template-columns: 1fr; }
    .contact-form__row          { grid-template-columns: 1fr; }
}

/* ==============================================
   PAGE "NOTRE SOCIÉTÉ"
=============================================== */

/* Histoire — texte narratif en colonne étroite */
.history-text {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.history-text p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--charcoal-mid);
}

/* Pôles — cartes */
.poles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 3rem;
}
/* One pole left (the real-estate part is gone): centred, at reading width. */
.poles-grid--single {
    grid-template-columns: minmax(0, 46rem);
    justify-content: center;
    text-align: center;
}
.pole-card {
    background: var(--white);
    border-radius: calc(var(--radius) * 2);
    padding: clamp(2rem, 3vw, 2.75rem);
    border: 1px solid var(--border);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.pole-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pole-card__title {
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    margin-bottom: 1rem;
}
.pole-card__desc {
    color: var(--charcoal-mid);
    line-height: 1.7;
}

/* Valeurs — grille 3×3 de cartes avec icône */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    margin-top: 3rem;
}
/* After the base rule: written before it, these lost to it and the three
   columns overflowed phones. */
@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}
.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 1.75rem;
    transition: border-color var(--transition), transform var(--transition);
}
.value-card:hover {
    border-color: var(--green-dark);
    transform: translateY(-2px);
}
.value-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-dark);
    margin-bottom: 1rem;
}
.value-card__icon svg {
    width: 22px;
    height: 22px;
}
.value-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
.value-card__desc {
    color: var(--charcoal-mid);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Timeline — frise verticale */
.timeline {
    list-style: none;
    padding: 0;
    margin: 3rem auto 0;
    max-width: 720px;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 116px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline__event {
    position: relative;
    padding-left: 156px;
    padding-bottom: 2.25rem;
}
.timeline__event:last-child { padding-bottom: 0; }
.timeline__event::before {
    content: "";
    position: absolute;
    left: 109px;
    top: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--green);
}
.timeline__year {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 100px;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--green-dark);
    overflow-wrap: break-word;
}
.timeline__title {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}
.timeline__desc {
    color: var(--charcoal-mid);
    font-size: 0.9375rem;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .poles-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .timeline::before { left: 14px; }
    .timeline__event { padding-left: 48px; }
    .timeline__event::before { left: 7px; }
    .timeline__year {
        position: static;
        display: block;
        width: auto;
        text-align: left;
        margin-bottom: 0.25rem;
    }
}

/* ==============================================
   RÉFÉRENCES (bandeau de logos clients)
=============================================== */
.references__marquee {
    --refs-gap: clamp(3rem, 6vw, 5rem);
    margin-top: 3rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Two identical runs side by side: moving by half the track loops seamlessly. */
.references__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: act-refs-scroll var(--refs-duration, 40s) linear infinite;
}

.references__track > .references__logo {
    margin-right: var(--refs-gap);
}

.references__marquee:hover .references__track,
.references__marquee:focus-within .references__track {
    animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
    .references__track {
        animation: none;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 2rem;
    }
    .references__track > [aria-hidden="true"] {
        display: none;
    }
    .references__marquee {
        -webkit-mask-image: none;
                mask-image: none;
    }
}

.references__logo:has(.references__logo-text) {
    max-width: none;
}

.references__logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--charcoal);
}

.references__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    max-width: 220px;
    flex-shrink: 0;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity var(--transition), filter var(--transition);
    text-decoration: none;
}

.references__logo:hover,
.references__logo:focus-visible {
    opacity: 1;
    filter: grayscale(0);
}

.references__logo-img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.references__empty {
    text-align: center;
    color: var(--grey);
    margin-top: 2rem;
    font-style: italic;
}

/* ==============================================
   PROJET CARDS
=============================================== */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

.projet-card {
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.projet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.projet-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.projet-card__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.projet-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projet-card:hover .projet-card__img {
    transform: scale(1.04);
}

.projet-card__img--placeholder {
    background: linear-gradient(135deg, var(--grey-light) 0%, var(--border) 100%);
}

.projet-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--green);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 2px;
}

.projet-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.projet-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.3;
}

.projet-card__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--grey);
    font-family: var(--font-heading);
    font-weight: 600;
}

.projet-card__meta span + span::before {
    content: '·';
    margin-right: 0.75rem;
}

.projet-card__excerpt {
    font-size: 0.875rem;
    color: var(--grey);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projet-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    transition: gap var(--transition);
}

.projet-card:hover .projet-card__cta {
    gap: 0.7rem;
}

/* ==============================================
   FILTERS
=============================================== */
.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    border: 1.5px solid var(--border);
    color: var(--grey);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

.filter-btn--active,
.filter-btn--active:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

.projet-card.is-hidden {
    display: none;
}

/* ==============================================
   PAGE HERO
=============================================== */
.page-hero {
    background: var(--charcoal);
    padding-top: calc(72px + clamp(2rem, 5vw, 4rem));
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-hero--sm {
    padding-top: calc(72px + clamp(1.25rem, 3vw, 2.5rem));
    padding-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.page-hero__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--white);
    margin-bottom: 0;
}

.page-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    max-width: 580px;
    line-height: 1.7;
}

/* ==============================================
   SINGLE PROJET
=============================================== */
.projet-hero {
    position: relative;
    height: 55vh;
    min-height: 360px;
    overflow: hidden;
}

.projet-hero__img-wrap {
    position: absolute;
    inset: 0;
}

.projet-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projet-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%);
}

.projet-hero__content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 2.5rem;
    padding-top: calc(72px + 1rem);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--white); }

.projet-hero__badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--green);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.875rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.projet-hero__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--white);
}

/* Layout single */
.projet-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
}

.projet-single__section-title {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--charcoal-mid);
}

.entry-content p { margin-bottom: 1.25rem; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }

/* Galerie projet */
.projet-gallery {
    margin-bottom: 3rem;
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
}

.projet-gallery__main {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--grey-light);
    overflow: hidden;
}

.projet-gallery__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    touch-action: pan-y;
}

.projet-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.projet-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .projet-gallery__track { transition: none; }
}

.projet-gallery__thumbs {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.projet-gallery__thumbs::-webkit-scrollbar { display: none; }

.projet-gallery__thumb {
    flex-shrink: 0;
    width: 88px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0.55;
    transition: opacity var(--transition);
    border: 2px solid transparent;
    padding: 0;
}

.projet-gallery__thumb:hover,
.projet-gallery__thumb--active {
    opacity: 1;
    border-color: var(--green-dark);
}

.projet-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fiche projet sidebar */
.projet-fiche {
    background: var(--grey-light);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem;
    position: sticky;
    top: calc(72px + 1.5rem + var(--admin-bar-h));
}

.projet-fiche__title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--green);
}

.projet-fiche__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.projet-fiche__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.projet-fiche__item dt {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey);
    flex-shrink: 0;
}

.projet-fiche__item dd {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--charcoal);
    text-align: right;
}

/* ==============================================
   FOOTER
=============================================== */
.site-footer {
    background: var(--charcoal);
    padding-top: clamp(3rem, 6vw, 5rem);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {
    max-width: 320px;
}

.footer__logo img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer__tagline {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0;
}

/* Réseaux sociaux */
.footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}
.footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    text-decoration: none;
}
.footer__social:hover,
.footer__social:focus-visible {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}
.footer__social svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer__nav-title {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--green);
    display: inline-block;
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__nav-list a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition), padding-left var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__nav-list a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer__address {
    font-style: normal;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.footer__tel,
.footer__email {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.375rem;
    transition: color var(--transition);
    text-decoration: none;
    font-weight: 600;
}

.footer__tel:hover,
.footer__email:hover {
    color: var(--green);
}

.footer__hours {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__bottom {
    padding-block: 1.25rem;
}

.footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
}

.footer__copyright,
.footer__agency {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
}

.footer__agency a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color var(--transition);
}
.footer__agency a:hover {
    color: var(--green-dark);
}

@media (max-width: 600px) {
    .footer__bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ==============================================
   PAGINATION
=============================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    color: var(--charcoal-mid);
    transition: all var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
    background: var(--grey-light);
}

.pagination .page-numbers.current {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

/* ==============================================
   MISC
=============================================== */
.no-content {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--grey);
    font-size: 1.0625rem;
}

.post-item {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-item h2 a { color: var(--charcoal); }
.post-item h2 a:hover { color: var(--green-dark); }
.post-item__meta { font-size: 0.875rem; color: var(--grey); margin-block: 0.5rem; }

/* ==============================================
   ANIMATIONS
=============================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* ==============================================
   RESPONSIVE
=============================================== */
@media (max-width: 1024px) {
    .projets-grid,
    .projets-grid--archive,
    .projets-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .projet-single__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .projet-fiche {
        position: static;
    }

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

    .footer__brand {
        grid-column: span 2;
        max-width: 100%;
    }

    .stats__divider { display: none; }
}

@media (max-width: 768px) {
    .header__nav,
    .header__socials {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .projets-grid,
    .projets-grid--archive,
    .projets-grid--3 {
        grid-template-columns: 1fr;
    }

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

    .footer__brand {
        grid-column: span 1;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats__item {
        min-width: 45%;
    }

    .references__marquee {
        --refs-gap: 2rem;
    }

    .references__logo {
        height: 56px;
    }

    .filters {
        gap: 0.375rem;
    }
}

/* Contact: the submit button waits for the anti-bot check. */
.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* -------------------------------------------------------
   BACK TO TOP
------------------------------------------------------- */
.to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--green-dark); }
.to-top:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .to-top { transition: none; }
}
