/* ==========================================================================
   MENO CLEAN SERVICES — Feuille de style principale
   Palette : bleu / blanc / vert — confiance, propreté, écologie
   Police display : Bricolage Grotesque — Police texte : Inter — Mono : JetBrains Mono
   ========================================================================== */

/* ---------- 0. POLICES (hébergées localement, F03) ----------
   Fichiers variables, sous-ensemble « latin » (couvre le français : é, à, ç, œ, €, « »).
   Source : paquets npm @fontsource-variable/* 5.3.0 — licence SIL OFL 1.1 (assets/fonts/OFL-*.txt).
   Les noms de familles restent ceux de --font-display / --font-body / --font-mono.
   Préchargement de Bricolage Grotesque et Inter : templates/base.html.twig. */
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/bricolage-grotesque-latin-opsz-normal-k0HXNf5.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal-Gz7AlRl.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url("../fonts/jetbrains-mono-latin-wght-normal-qI6BF9f.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. TOKENS ---------- */
:root {
    /* Couleurs de marque */
    --ink: #0A2A3B;
    /* texte principal, très foncé bleu-nuit */
    --navy: #0C3A57;
    /* bleu profond — fonds sombres, header */
    --navy-2: #082D45;
    --blue: #1668B0;
    /* bleu primaire — actions, liens */
    --blue-2: #030c62;
    --blue-light: #030c62;
    /* bleu vif — accents, dégradés */
    --green: #9e8827;
    /* vert frais — secondaire, écologie */
    --green-2: #9e8827;
    --green-light: #9e8827;
    /* vert clair — accents, badges */
    --mint: #E8F8F1;
    /* fond teinté vert très clair */
    --white: #FFFFFF;
    --fog: #F6FAFB;
    /* fond de page */
    --mist: #EAF3F6;
    /* fond de section alterné */
    --line: #D8E5E9;
    /* bordures discrètes */
    --line-2: #C4D6DC;
    --gray: #55707C;
    /* texte secondaire */
    --gray-light: #8AA2AB;

    /* Typographie */
    --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "Courier New", monospace;

    /* Rythme / rayon / ombre */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 26px;
    --shadow-sm: 0 2px 10px rgba(10, 42, 59, 0.06);
    --shadow-md: 0 10px 30px rgba(10, 42, 59, 0.10);
    --shadow-lg: 0 24px 60px rgba(10, 42, 59, 0.16);
    --container: 1240px;
    --header-h: 84px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul[class],
ol[class] {
    list-style: none;
    margin: 0;
    padding: 0;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

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

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--fog);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-weight: 600;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    z-index: 999;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* Section rhythm */
.section {
    padding: 108px 0;
    position: relative;
}

.section--tight {
    padding: 72px 0;
}

.section--alt {
    background: var(--mist);
}

.section--navy {
    background: var(--navy);
    color: rgba(255, 255, 255, .92);
}

.section--navy h2,
.section--navy h3 {
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-2);
    background: var(--mint);
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(39, 158, 118, .18);
}

.section--navy .eyebrow {
    background: rgba(255, 255, 255, .08);
    color: var(--green-light);
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

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

.section-head h2 {
    font-size: clamp(28px, 3.6vw, 42px);
}

.section-head p {
    color: var(--gray);
    font-size: 17px;
    margin-top: 14px;
}

.section--navy .section-head p {
    color: rgba(255, 255, 255, .72);
}

/* ---------- 3. BOUTONS ---------- */
.btn {
    --btn-bg: var(--blue);
    --btn-fg: var(--white);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    box-shadow: 0 6px 18px rgba(15, 84, 147, .28);
}

.btn::before {
    /* effet "coup de raclette" au survol */
    content: "";
    position: absolute;
    inset: 0;
    left: -120%;
    width: 60%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-18deg);
    transition: left .55s var(--ease);
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 84, 147, .36);
}

.btn:hover::before {
    left: 130%;
}

.btn span,
.btn svg {
    position: relative;
    z-index: 2;
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
}

.btn--ghost:hover {
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    box-shadow: inset 0 0 0 1.5px var(--line-2);
}

.btn--outline:hover {
    box-shadow: inset 0 0 0 1.5px var(--blue);
    color: var(--blue);
}

.btn--green {
    --btn-bg: var(--green);
    box-shadow: 0 6px 18px rgba(31, 133, 99, .28);
    background: linear-gradient(160deg, #1e7aca, #030c62);
    color: white;
}

.btn--green:hover {
    box-shadow: 0 10px 26px rgba(31, 133, 99, .36);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 13.5px;
    background: linear-gradient(160deg, #1e7aca, #030c62);
}

.btn--block {
    width: 65%;
    border-radius: 50px;
    padding: 8px 15px;
    background: linear-gradient(160deg, #1e7aca, #030c62);
    color: white;
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--blue);
    font-size: 14.5px;
    border-radius: 20px;
    padding: 8px;
    background: linear-gradient(160deg, #1e7aca, #030c62);
    color: white;
    width: 65%;
    box-shadow: 0.5px 0.5px 5px 0.5px #1e7aca;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    position: relative;
}

.link-arrow::before {
    /* effet "coup de raclette" au survol */
    content: "";
    position: absolute;
    inset: 0;
    left: -120%;
    width: 60%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-18deg);
    transition: left .55s var(--ease);
    z-index: 1;
    border-radius: inherit
}

.link-arrow:hover {
    transform: translateY(-4px);
    ;
}

.link-arrow:hover::before {
    left: 130%;
}

.link-arrow svg {
    transition: transform .2s var(--ease);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: var(--header-h);
    z-index: 500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* Fond flouté porté par un pseudo-élément, et non par le header lui-même :
   un backdrop-filter sur le header ferait de lui le repère des éléments
   position: fixed qu'il contient, et le menu mobile (.nav-mobile) serait
   alors limité à la hauteur du header au lieu de l'écran. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(246, 250, 251, 0.7);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: background .3s var(--ease);
}

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

.site-header.is-scrolled::before {
    background: white;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header .container,
.brand,
.header-actions,
.nav-desktop {
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--navy);
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.brand-name b {
    color: var(--green-2);
    font-weight: 700;
}

.brand-name {
    white-space: nowrap;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-desktop a {
    padding: 10px 10px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--navy);
    transition: background .2s var(--ease), color .2s var(--ease);
    white-space: nowrap;
}

.nav-desktop a:hover {
    background: var(--mist);
    color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    white-space: nowrap;
}

.header-phone svg {
    color: var(--green);
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--mist);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
    position: relative;
    transition: background .2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--navy);
    transition: transform .3s var(--ease), top .3s var(--ease);
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-mobile {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    /* drawer width — adjust to taste */
    background: var(--white);
    z-index: 490;
    padding: 28px 24px 40px;
    height: auto;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    /* starts off-screen to the right */
    opacity: 1;
    /* remove fade, rely purely on slide */
    /* Fermé : caché aussi au clavier et aux lecteurs d'écran (visibility),
       après la fin de la glissière */
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    border-bottom-left-radius: 20px;
}

.nav-mobile.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
}

/* Au-delà du point de rupture du menu burger, le menu mobile n'existe pas */
@media (min-width: 921px) {
    .nav-mobile {
        display: none;
    }
}

.nav-mobile a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    flex-shrink: 0;
    width: 100%;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}

.nav-mobile a:hover {
    background-color: var(--mist);
}

.nav-mobile .btn {
    margin-top: 24px;
    /* .nav-mobile a imposait le texte bleu nuit sur le fond bleu du bouton : illisible */
    color: var(--btn-fg);
    justify-content: center;
    border-bottom: none;
}

.nav-mobile .btn:hover {
    background-color: transparent;
}

/* ---------- 5. HERO ---------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 64px;
    background:
        radial-gradient(1100px 480px at 82% -10%, rgba(79, 166, 232, .20), transparent 60%),
        radial-gradient(900px 420px at -10% 20%, rgba(39, 158, 118, .14), transparent 55%),
        var(--fog);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(34px, 4.6vw, 58px);
    color: var(--navy);
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--blue) 10%, var(--green) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    margin-top: 22px;
    font-size: 18px;
    color: var(--gray);
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-badges {
    display: flex;
    gap: 26px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge svg {
    color: var(--green);
    flex-shrink: 0;
}

.hero-badge span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
}

/* --- Comparateur avant / après (signature visuelle) --- */
.compare {
    --compare-pos: 50%;
    position: relative;
    aspect-ratio: 4/5;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    user-select: none;
    /* Glisser horizontal = comparateur ; glisser vertical = défilement de la page (mobile) */
    touch-action: pan-y;
    background: var(--navy);
}

.compare-pane {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.compare-pane svg {
    width: 100%;
    height: 100%;
}

.compare-pane--after {
    clip-path: inset(0 0 0 var(--compare-pos));
}

.compare-pane--before img {
    filter: brightness(0.5) saturate(0.85);
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-pos);
    width: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.compare-divider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 3px;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(10, 42, 59, .15);
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: var(--compare-pos);
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    color: var(--blue);
}

.compare-tag {
    position: absolute;
    top: 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(10, 42, 59, .55);
    color: #fff;
    backdrop-filter: blur(6px);
}

.compare-tag--before {
    left: 18px;
}

.compare-tag--after {
    right: 18px;
}

.compare-caption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
}

.compare-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
}

/* ---------- 6. BANDE DE CONFIANCE ---------- */
.trustbar {
    background: var(--navy);
    padding: 30px 0;
}

.trustbar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 44px;
    justify-content: center;
}

.trustbar li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 500;
}

.trustbar svg {
    color: var(--green-light);
    flex-shrink: 0;
}

/* ---------- 7. À PROPOS ---------- */
.about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 8px;
}

.about-stat b {
    display: block;
    font-family: var(--font-mono);
    font-size: 30px;
    color: var(--blue);
}

.about-stat span {
    font-size: 13px;
    color: var(--gray);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 34px;
}

.about-value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-value .icn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--mint);
    color: var(--green-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-value h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.about-value p {
    font-size: 14.5px;
    color: var(--gray);
}

/* ---------- 8. SERVICES ---------- */
.services-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.chip {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--white);
    border: 1px solid var(--line-2);
    color: var(--navy);
    transition: all .2s var(--ease);
}

.chip:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.chip.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    padding: 28px 24px 26px;
    display: flex;
    flex-direction: column;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

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

.service-icn {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--mist), var(--mint));
    color: var(--blue);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14.5px;
    color: var(--gray);
    flex-grow: 1;
}

.service-card .link-arrow {
    margin-top: 20px;
}

.services-more {
    text-align: center;
    margin-top: 40px;
}

/* ---------- 9. POURQUOI NOUS / STATS ---------- */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 72px;
}

.stat-card {
    text-align: center;
    padding: 34px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
}

.stat-num {
    font-family: var(--font-mono);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    color: var(--green-light);
    display: block;
}

.stat-label {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .68);
    margin-top: 8px;
}

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

.engagement-card {
    padding: 26px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    text-align: center;
}

.engagement-card .icn {
    width: 48px;
    height: 48px;
    margin-inline: auto;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(143, 224, 190, .14);
    color: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.engagement-card h4 {
    color: #fff;
    font-size: 14.5px;
    margin-bottom: 6px;
}

.engagement-card p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .62);
}

/* ---------- 10. GALERIE ---------- */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    cursor: grab;
}

.gallery-item .compare-pane svg {
    width: 100%;
    height: 100%;
}

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

.gallery-item .compare-tag {
    font-size: 10px;
    padding: 5px 10px;
}

.gallery-item .compare-handle {
    width: 38px;
    height: 38px;
}

.gallery-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
    z-index: 3;
    pointer-events: none;
}

/* ---------- 11. TÉMOIGNAGES ---------- */
.testimonials {
    position: relative;
    max-width: 780px;
    margin-inline: auto;
}

.t-track {
    overflow: hidden;
}

.t-slides {
    display: flex;
    transform: translateX(var(--carousel-offset, 0));
    transition: transform .5s var(--ease);
}

.t-slide {
    flex: 0 0 100%;
    padding: 6px;
}

.t-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.t-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: var(--green);
    margin-bottom: 20px;
}

.t-quote {
    font-size: 19px;
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.5;
}

.t-person {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.t-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
}

.t-person div {
    text-align: left;
}

.t-person b {
    display: block;
    font-size: 14.5px;
    color: var(--navy);
}

.t-person span {
    font-size: 12.5px;
    color: var(--gray);
}

.t-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 30px;
}

.t-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    transition: all .2s var(--ease);
}

.t-arrow:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.t-dots {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-2);
    transition: all .25s var(--ease);
}

.t-dot.is-active {
    background: var(--blue);
    width: 22px;
    border-radius: 5px;
}

/* ---------- 12. DEVIS / FORMULAIRES ---------- */
.quote-wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.quote-side {
    background: var(--navy);
    color: #fff;
    padding: 52px 44px;
    position: relative;
    overflow: hidden;
}

.quote-side::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 158, 118, .35), transparent 70%);
}

.quote-side h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 18px;
}

.quote-side p {
    color: rgba(255, 255, 255, .72);
    font-size: 14.5px;
    margin-bottom: 30px;
}

.quote-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.quote-point {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
}

.quote-point svg {
    color: var(--green-light);
    flex-shrink: 0;
}

.quote-form {
    padding: 52px 44px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

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

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.field label .req {
    color: var(--green-2);
}

.field input,
.field select,
.field textarea {
    padding: 13px 15px;
    border-radius: 10px;
    border: 1.5px solid var(--line-2);
    background: var(--fog);
    font-size: 14.5px;
    color: var(--ink);
    transition: border-color .2s var(--ease), background .2s var(--ease);
    width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    background: #fff;
    outline: none;
}

.field textarea {
    resize: vertical;
    min-height: 96px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #D8555A;
    background: #FDF1F1;
}

.field-error {
    font-size: 12.5px;
    color: #C24448;
    min-height: 14px;
}

.field-hint {
    font-size: 12px;
    color: var(--gray-light);
}

.form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    color: var(--gray);
    margin: 6px 0 22px;
}

.form-consent input {
    margin-top: 3px;
}

.form-status {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-status.is-success {
    display: block;
    background: var(--mint);
    color: var(--green-2);
}

.form-status.is-error {
    display: block;
    background: #FDF1F1;
    color: #C24448;
}

/* ---------- 13. CONTACT ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px;
    margin-bottom: 18px;
}

.contact-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row .icn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--mist);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-row h4 {
    font-size: 14.5px;
    margin-bottom: 4px;
}

.contact-row p,
.contact-row a {
    font-size: 14px;
    color: var(--gray);
}

.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mist);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s var(--ease);
}

.social-btn:hover {
    background: var(--blue);
    color: #fff;
}

.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    height: 55%;
    min-height: 380px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 380px;
}

/* ---------- 14. FAQ ---------- */
.faq-list {
    max-width: 820px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--navy);
}

.faq-q svg {
    flex-shrink: 0;
    transition: transform .25s var(--ease);
    color: var(--blue);
}

.faq-item.is-open .faq-q svg {
    transform: rotate(45deg);
}

/* AVANT — nécessitait que le JS mesure et écrive une hauteur
.faq-a{ max-height:0; overflow:hidden; transition: max-height .3s var(--ease); }
*/

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--ease);
}

.faq-item.is-open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a>* {
    min-height: 0;
    overflow: hidden;
}

.faq-a-inner {
    padding: 0 24px;
    /* plus de padding-bottom : il créait le plancher */
    color: var(--gray);
    font-size: 14.5px;
}

/* L'espacement bas devient du CONTENU, donc il se laisse rogner */
.faq-a-inner::after {
    content: "";
    display: block;
    height: 22px;
}

/* ---------- 15. CTA BAND ---------- */
.cta-band {
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--navy), var(--blue-2) 55%, var(--green-2));
    padding: 64px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    max-width: 520px;
}

.cta-band p {
    color: rgba(255, 255, 255, .78);
    margin-top: 10px;
}

.cta-band .btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- 16. FOOTER ---------- */
.site-footer {
    background: var(--navy-2);
    color: rgba(255, 255, 255, .72);
    padding-top: 76px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.footer-brand .brand {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    max-width: 300px;
    color: rgba(255, 255, 255, .6);
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 18px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, .66);
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--green-light);
}

.footer-bottom {
    padding: 26px 0 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------- 17. PAGES LÉGALES ---------- */
.legal-page {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 90px;
}

.legal-page .container {
    max-width: 860px;
}

.legal-page h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.legal-page .updated {
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 44px;
    font-family: var(--font-mono);
}

.legal-page h2 {
    font-size: 21px;
    margin-top: 40px;
    margin-bottom: 14px;
}

.legal-page p,
.legal-page li {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-page a {
    color: var(--blue);
    text-decoration: underline;
}

.legal-placeholder {
    background: var(--mint);
    color: var(--green-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.92em;
}

/* ---------- 18. UTILITAIRES / ANIMATIONS ---------- */
.reveal {
    opacity: 1;
    transform: none;
}

/* "Armé" par le contrôleur Stimulus, uniquement si le JS a démarré. */
.reveal.is-armed {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-armed.is-visible {
    opacity: 1;
    transform: none;
}

body.has-nav-open {
    overflow: hidden;
}

.wipe-divider {
    display: block;
    width: 100%;
    height: 64px;
    margin-top: -1px;
}

.wipe-divider path {
    fill: var(--mist);
}

.wipe-divider--to-navy path {
    fill: var(--navy);
}

.wipe-divider--to-fog path {
    fill: var(--fog);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    /* Masqué : ni cliquable, ni atteignable au clavier */
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all .25s var(--ease);
    z-index: 400;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1080px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

@media (max-width: 920px) {

    .nav-desktop,
    .header-phone {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

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

    .about-visual {
        order: 2;
    }

    .quote-wrap {
        grid-template-columns: 1fr;
    }

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

    .cta-band {
        padding: 44px 28px;
    }

    .btn--sm {
        display: none;
    }

    .link-arrow::before {
        display: none;
    }

    .link-arrow {
        overflow: hidden;
    }

}

@media (max-width: 680px) {
    .section {
        padding: 76px 0;
    }

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

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

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

    .stats-band {
        grid-template-columns: 1fr 1fr;
    }

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

    .quote-form,
    .quote-side {
        padding: 34px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
    }

    .cta-band {
        text-align: center;
        justify-content: center;
    }

    .cta-band .btns {
        justify-content: center;
        width: 100%;
    }

    .compare {
        width: 100%;
        height: 400px;
        --compare-pos: 50%;
    }

    .map-frame {
        height: 450px;
    }
}

.logo-wrapper {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 82px;
    background: #ffffff;
    border-radius: 50%;
    /* circle badge — use 12px-16px for rounded square instead */
    padding: 0px;
}

.logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.compare-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Pas de glisser-déposer natif de l'image (aperçu fantôme) : le geste revient au comparateur */
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Décalage du défilement pour compenser le header fixe */
main [id],
section[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Section ou <main> qui reçoit le focus après un lien interne (section_link_controller) :
   point de départ pour la touche Tab, sans contour autour de toute la section */
main[tabindex="-1"]:focus,
section[tabindex="-1"]:focus {
    outline: none;
}

/* ---------- FORMULAIRES SYMFONY ---------- */

/* Astérisque des champs obligatoires (Symfony ajoute la classe "required") */
.field label.required::after {
    content: " *";
    color: var(--green-2);
}

/* Messages d'erreur : Symfony les rend dans une <ul> */
.field ul,
.form-consent ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.field li,
.form-consent li {
    font-size: 12.5px;
    color: #C24448;
}

/* Champ piège à robots : hors de l'écran, jamais display:none */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* En galerie, le comparateur suit le format des vignettes */
.gallery-item.compare {
    height: auto;
    aspect-ratio: 4/3;
}

/* ---------- 20. ÉCRAN DE CHARGEMENT ---------- */

/* Par défaut : ABSENT. Sans JavaScript, il n'existe pas. */
.loading-screen {
    display: none;
}

/* Affiché uniquement si le JavaScript a démarré. */
.js .loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    opacity: 1;
    visibility: visible;
    transition: opacity .5s var(--ease), visibility .5s var(--ease);

    /* Filet de sécurité CSS : même si le contrôleur ne tourne jamais,
     l'écran disparaît au bout de 6 secondes. */
    animation: loader-secours 0s linear 6s forwards;
}

.js .loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen__logo {
    width: 200px;
    max-width: 50vw;
    height: auto;
    animation: loader-pulse 1.2s var(--ease) infinite;
}

.loading-screen__text {
    margin-top: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-2);
}

@keyframes loader-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: .85;
    }
}

@keyframes loader-secours {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Mouvement réduit : pas d'écran de chargement du tout. */
@media (prefers-reduced-motion: reduce) {
    .js .loading-screen {
        display: none;
    }
}

/* ---------- UTILITAIRES D'ICÔNES ---------- */
.icon-flip-x {
    transform: scaleX(-1);
}

.icon-up {
    transform: rotate(-90deg);
}

.svg-sprite {
    display: none;
}
/* ---------- FORMULAIRE DE CONTACT ---------- */
.contact-form {
    padding: 0;
}

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
    margin-bottom: 22px;
}

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

@media (max-width: 680px) {
    .contact-form-card {
        padding: 34px 24px;
    }
}

/* ---------- EN-TÊTE SUR PETITS ÉCRANS ---------- */
/* Le logo, le nom et le bouton burger doivent tenir sur une ligne sans s'écraser */
@media (max-width: 680px) {
    .logo-wrapper {
        width: 96px;
        height: 60px;
    }

    .brand-name {
        font-size: 16px;
    }
}

/* Très petits écrans : le logo contient déjà le nom de l'entreprise ;
   le lien garde son nom accessible (aria-label) */
@media (max-width: 420px) {
    .brand-name {
        display: none;
    }
}
