/* ============================================================
   4810 GUEPES FRELONS & NUISIBLES — Design System
   Mobile-first · dark · brand colors yellow / red / charcoal
   ============================================================ */

:root {
    --c-bg: #0c0d10;
    --c-bg-2: #14161b;
    --c-bg-3: #1c1f26;
    --c-surface: #1a1c22;
    --c-line: #2a2d36;
    --c-line-2: #3a3d47;

    --c-text: #f6f4ee;
    --c-text-soft: #c5c4be;
    --c-text-mute: #8b8d96;

    --c-yellow: #ffcd1c;
    --c-yellow-2: #ffae00;
    --c-yellow-deep: #1b1206;

    --c-red: #ff3b3b;
    --c-red-2: #d92020;

    --c-success: #2ecc71;
    --c-error: #ff6b6b;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
    --shadow: 0 12px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.45);

    --ease: cubic-bezier(.2,.7,.2,1);

    --font-display: 'Anton', 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255,205,28,.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(255,59,59,.10), transparent 60%),
        var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: 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;
}

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--c-yellow); color: #000;
    padding: .75rem 1rem; z-index: 1000;
    font-weight: 700;
}
.skip-link:focus { top: 0; }

.container {
    width: min(1180px, 100% - 2rem);
    margin-inline: auto;
}
.container.narrow {
    width: min(760px, 100% - 2rem);
}

/* ---------- Buttons ---------- */
.btn {
    --b-bg: var(--c-yellow);
    --b-color: #1b1206;
    --b-border: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    gap: .55rem;
    padding: .85rem 1.2rem;
    border-radius: var(--radius-pill);
    background: var(--b-bg);
    color: var(--b-color);
    border: 2px solid var(--b-border);
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
    transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
    box-shadow: 0 6px 18px rgba(255,205,28,.18);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,205,28,.28); }
.btn:active { transform: translateY(0); }

.btn--alarm {
    --b-bg: linear-gradient(180deg, #ff5b3b, #d92020);
    --b-color: #fff;
    box-shadow: 0 8px 24px rgba(217,32,32,.32), inset 0 -2px 0 rgba(0,0,0,.18);
}
.btn--alarm:hover { box-shadow: 0 14px 30px rgba(217,32,32,.42), inset 0 -2px 0 rgba(0,0,0,.18); }

.btn--ghost {
    --b-bg: transparent;
    --b-color: var(--c-text);
    --b-border: var(--c-line-2);
    box-shadow: none;
}
.btn--ghost:hover { --b-bg: rgba(255,255,255,.04); }

.btn--ghost-yellow {
    --b-bg: transparent;
    --b-color: var(--c-yellow);
    --b-border: var(--c-yellow);
    box-shadow: none;
}
.btn--ghost-yellow:hover { --b-bg: rgba(255,205,28,.08); }

.btn--sm { padding: .55rem .9rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn--danger { color: var(--c-error); border-color: rgba(255,107,107,.4); }

/* ---------- Site header ---------- */
/* The wrap is a plain flow element (no positioning) so .mobile-nav
   (a fixed sibling of .site-header inside it) escapes any containing block.
   Only .site-header itself is fixed at the top. */
.site-header-wrap { position: static; }
/* Only the public layout has a fixed navbar — push its content down */
.page-public { padding-top: var(--nav-h); }

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 90;
    background: rgba(12,13,16,.85);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--c-line);
}
.site-header__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0;
}

.brand {
    display: inline-flex; align-items: center; gap: .65rem;
    color: var(--c-text);
}
.brand__mountain {
    color: var(--c-yellow);
    width: 44px; height: 22px;
    display: inline-flex;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__num {
    font-family: var(--font-display);
    font-size: 1.6rem; letter-spacing: .02em;
}
.brand__sub {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--c-text-mute);
    margin-top: .15rem;
}
/* Image logo (logo_4810gfn.png) — replaces the SVG+text brand */
.brand__logo {
    display: block;
    height: 80px;
    width: auto;
    border-radius: 8px;
}
.brand--footer .brand__logo { height: 120px; }
.brand--admin  .brand__logo { height: 84px; }
.brand--login  .brand__logo { height: 160px; margin: 0 auto; }

.nav-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius-pill);
    background: transparent; color: var(--c-text);
    align-items: center; justify-content: center;
}
.nav-toggle__bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.nav-toggle__bars span {
    display: block; position: absolute; left: 0; right: 0; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.site-header-wrap[data-nav-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header-wrap[data-nav-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header-wrap[data-nav-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Desktop inline nav (inside the sticky header) */
.primary-nav {
    display: none;
}
.primary-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: row; align-items: center; gap: .5rem;
}
.primary-nav a {
    display: inline-block; padding: .55rem .9rem;
    border-radius: var(--radius);
    font-weight: 600; color: var(--c-text);
    transition: background .2s, color .2s;
}
.primary-nav a:hover { background: rgba(255,255,255,.06); color: var(--c-yellow); }
.primary-nav__cta { margin: 0 0 0 .5rem; }
.primary-nav__cta a { display: inline-flex; padding: .55rem .9rem; }

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .primary-nav { display: block; }
    .mobile-nav { display: none !important; }
}

/* Mobile slide-in nav (escapes the header backdrop-filter containing block) */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 100;          /* above sticky header (90) and urgence btn (95) */
    background: rgba(0,0,0,0);
    visibility: hidden;
    transition: background .35s var(--ease), visibility 0s linear .35s;
    pointer-events: none;
}
.site-header-wrap[data-nav-open="true"] .mobile-nav {
    background: rgba(0,0,0,.55);
    visibility: visible;
    transition: background .35s var(--ease), visibility 0s linear 0s;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-nav__panel {
    position: absolute;
    top: var(--nav-h); right: 0; bottom: 0;
    width: min(86%, 360px);
    background: var(--c-bg-2);
    border-left: 1px solid var(--c-line);
    box-shadow: -20px 0 50px rgba(0,0,0,.5);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    padding: 1.25rem 1rem 2rem;
}
.site-header-wrap[data-nav-open="true"] .mobile-nav__panel {
    transform: translateX(0);
}
.mobile-nav__panel ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: .25rem;
}
.mobile-nav__panel a {
    display: block; padding: 1rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600; color: var(--c-text);
    transition: background .2s, color .2s, transform .15s;
}
.mobile-nav__panel a:hover,
.mobile-nav__panel a:focus-visible {
    background: var(--c-bg-3); color: var(--c-yellow);
}
.mobile-nav__panel a:active { transform: scale(.98); }

.mobile-nav__cta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-line); }
.mobile-nav__cta a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: linear-gradient(180deg, #ff5b3b, #d92020);
    color: #fff;
}

/* ---------- Hero (full screen below navbar) ---------- */
:root {
    --nav-h: 82px;          /* sticky .site-header: no padding + 80px logo + 1px border */
}

.hero {
    position: relative;
    width: 100%;
    /* Show the whole hero image (1672x941 ≈ 16:9), fully visible under the navbar — no crop */
    aspect-ratio: 1672 / 941;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    perspective: 1400px;
    transform-style: preserve-3d;
    background: var(--c-bg);
}
/* On small screens a 16:9 banner is too short for the hero text, so fill the
   viewport instead (the image is then framed via object-position on mobile). */
@media (max-width: 820px) {
    .hero {
        aspect-ratio: auto;
        min-height: calc(100dvh - var(--nav-h));
        padding: 2rem 0 3rem;
    }
    /* No background photo on mobile — keep the dark hero background only. */
    .hero__photo { display: none; }
}
.hero__photo {
    position: absolute; inset: 0; z-index: -2;
    pointer-events: none;
}
.hero__photo picture { display: block; width: 100%; height: 100%; }
/* Full-bleed photo: covers the entire hero area, keeps proportions, no stretch */
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;   /* full-bleed; a purpose-made image dictates the framing */
}

/* Light overlay: darker on the left where the text sits, fading to nearly clear
   on the right so a purpose-made photo (clear left, subject on the right) stays
   visible. The bg colour matches the page so the left edge melts into it. */
.hero__photo-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(12,13,16,.88) 0%, rgba(12,13,16,.6) 35%, rgba(12,13,16,.25) 65%, rgba(12,13,16,.05) 100%),
        linear-gradient(180deg, rgba(12,13,16,.4) 0%, rgba(12,13,16,0) 25%, rgba(12,13,16,.65) 100%);
}

.hero__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__scroll {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: var(--c-text);
    animation: scroll-hint 2.2s ease-in-out infinite;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    background: rgba(0,0,0,.35);
    z-index: 3;
}
.hero__scroll:hover { border-color: var(--c-yellow); color: var(--c-yellow); }
@keyframes scroll-hint {
    0%,100% { transform: translate(-50%, 0); }
    50%     { transform: translate(-50%, 6px); }
}

@media (min-width: 900px) {
    .hero__copy { max-width: 760px; }
}

@media (max-width: 600px) {
    .hero__photo-overlay {
        /* Stronger overlay on mobile so the title remains readable everywhere */
        background:
            linear-gradient(180deg, rgba(8,9,12,.55) 0%, rgba(8,9,12,.4) 35%, rgba(8,9,12,.85) 100%);
    }
    .hero__photo img { object-position: center; }
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    text-transform: uppercase; letter-spacing: .14em;
    font-size: .78rem; font-weight: 700;
    color: var(--c-yellow);
    padding: .35rem .8rem;
    border: 1px solid rgba(255,205,28,.35);
    border-radius: var(--radius-pill);
    background: rgba(255,205,28,.07);
}
.eyebrow__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--c-yellow);
    box-shadow: 0 0 0 0 rgba(255,205,28,.6);
    animation: ping 1.6s ease-out infinite;
}
.eyebrow--light { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.eyebrow--light .eyebrow__dot { background: var(--c-yellow); }
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(255,205,28,.65); }
    80%, 100% { box-shadow: 0 0 0 12px rgba(255,205,28,0); }
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.0;
    margin: 1rem 0 .9rem;
    /* Tighter clamp avoids title overflow on phones */
    font-size: clamp(2rem, 7.5vw, 4.4rem);
    letter-spacing: .01em;
    word-break: keep-all;
    hyphens: none;
}
.hero__title em {
    font-style: normal;
    background: linear-gradient(180deg, var(--c-yellow), var(--c-yellow-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-line1, .hero__title-line2 { display: block; }

.hero__lead {
    color: var(--c-text-soft);
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    max-width: 52ch;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 1.5rem; }

.hero__trust {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .75rem; padding: 0; list-style: none; margin: 1.5rem 0 0;
}
.hero__trust li {
    background: var(--c-bg-2);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: .85rem .9rem;
}
.hero__trust strong {
    display: block; font-family: var(--font-display);
    color: var(--c-yellow); font-size: 1.4rem; line-height: 1;
}
.hero__trust span { font-size: .82rem; color: var(--c-text-mute); }

@media (min-width: 900px) {
    .hero { padding: 7rem 0 6rem; }
    .hero__copy { max-width: 760px; }
    .hero__trust { gap: 1rem; }
}

/* ============================================================
   3D FLYING WASPS
   Real depth via CSS perspective + translateZ; wings flutter
   independently. Each wasp has its own orbit so they look natural.
   ============================================================ */
.wasps3d {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    transform-style: preserve-3d;
}
.wasp3d {
    position: absolute;
    top: 0; left: 0;
    transform-style: preserve-3d;
    will-change: transform;
    filter: drop-shadow(0 18px 14px rgba(0,0,0,.45));
}
.wasp3d__sprite {
    /* Inner element only handles flip / banking — outer handles flight */
    transform-style: preserve-3d;
    will-change: transform;
}
.svg-wasp3d { display: block; }
/* Wing flutter — fast, but blurred-out so it reads as natural motion, not strobe */
.wasp3d__wing {
    transform-origin: 60px 56px;
    animation: wasp3d-wing 90ms linear infinite;
    will-change: transform;
}
.wasp3d__wing--front { animation-duration: 80ms; }
.wasp3d__wing--back  { animation-duration: 120ms; opacity: .8; }
@keyframes wasp3d-wing {
    0%, 100% { transform: scaleY(1)   skewY(0deg); }
    50%      { transform: scaleY(.35) skewY(-4deg); }
}
.wasp3d__ground {
    animation: wasp3d-ground 8s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
@keyframes wasp3d-ground {
    0%,100% { transform: scaleX(1)   translateY(0);     opacity: .35; }
    50%     { transform: scaleX(.55) translateY(-2px);  opacity: .55; }
}

/* Each wasp has its own orbit. translateZ pushes it forwards/backwards so the
   perspective camera produces a real scale difference — that's the 3D feel. */
/* Wasps fly freely across the hero, each with its own orbit & depth. */
.wasp3d--1 {
    top: 14%; right: 12%; left: auto;
    animation: wasp3d-orbit-1 22s ease-in-out infinite;
}
.wasp3d--1 .wasp3d__sprite { animation: wasp3d-bank-1 6s ease-in-out infinite; }

.wasp3d--2 {
    top: 28%; right: 32%; left: auto;
    animation: wasp3d-orbit-2 18s ease-in-out infinite;
    animation-delay: -4s;
}
.wasp3d--2 .wasp3d__sprite { animation: wasp3d-bank-2 5s ease-in-out infinite; }

.wasp3d--3 {
    top: 56%; right: 6%; left: auto;
    animation: wasp3d-orbit-3 26s ease-in-out infinite;
    animation-delay: -9s;
}
.wasp3d--3 .wasp3d__sprite { animation: wasp3d-bank-3 7s ease-in-out infinite; }

.wasp3d--4 {
    top: 68%; right: 38%; left: auto;
    animation: wasp3d-orbit-4 20s ease-in-out infinite;
    animation-delay: -12s;
}
.wasp3d--4 .wasp3d__sprite { animation: wasp3d-bank-4 4.5s ease-in-out infinite; }

/* Flight paths in 3D — translateZ varies so the camera makes them grow/shrink */
@keyframes wasp3d-orbit-1 {
    0%   { transform: translate3d(0,    0,  -120px) rotateZ(-10deg); }
    25%  { transform: translate3d(60px, -30px, 80px) rotateZ(12deg); }
    50%  { transform: translate3d(120px, 20px, -60px) rotateZ(-6deg); }
    75%  { transform: translate3d(40px,  60px, 100px) rotateZ(8deg); }
    100% { transform: translate3d(0,    0,  -120px) rotateZ(-10deg); }
}
@keyframes wasp3d-orbit-2 {
    0%   { transform: translate3d(0,    0,    60px) rotateZ(15deg); }
    33%  { transform: translate3d(-70px, 40px, -140px) rotateZ(-20deg); }
    66%  { transform: translate3d(-30px, -50px, 50px) rotateZ(10deg); }
    100% { transform: translate3d(0,    0,    60px) rotateZ(15deg); }
}
@keyframes wasp3d-orbit-3 {
    0%   { transform: translate3d(0,    0,   200px) rotateZ(0deg); }
    20%  { transform: translate3d(80px, -50px,  20px) rotateZ(15deg); }
    50%  { transform: translate3d(140px, 30px, -180px) rotateZ(-12deg); }
    80%  { transform: translate3d(50px,  70px,  40px) rotateZ(6deg); }
    100% { transform: translate3d(0,    0,   200px) rotateZ(0deg); }
}
@keyframes wasp3d-orbit-4 {
    0%   { transform: translate3d(0,    0,   -40px) rotateZ(-15deg); }
    40%  { transform: translate3d(-50px, -60px, 120px) rotateZ(18deg); }
    80%  { transform: translate3d(-100px, 30px, -100px) rotateZ(-8deg); }
    100% { transform: translate3d(0,    0,   -40px) rotateZ(-15deg); }
}

/* Banking — rotateY makes the wasp turn its body during the flight (real 3D!) */
@keyframes wasp3d-bank-1 {
    0%,100% { transform: rotateX(20deg) rotateY(-15deg); }
    50%     { transform: rotateX(15deg) rotateY(30deg); }
}
@keyframes wasp3d-bank-2 {
    0%,100% { transform: rotateX(15deg) rotateY(40deg); }
    50%     { transform: rotateX(25deg) rotateY(-20deg); }
}
@keyframes wasp3d-bank-3 {
    0%,100% { transform: rotateX(25deg) rotateY(-25deg); }
    50%     { transform: rotateX(10deg) rotateY(20deg); }
}
@keyframes wasp3d-bank-4 {
    0%,100% { transform: rotateX(10deg) rotateY(20deg); }
    50%     { transform: rotateX(30deg) rotateY(-30deg); }
}

/* Mobile: keep only 2 wasps, smaller, so they don't crowd the framed photo */
@media (max-width: 720px) {
    .wasp3d--2, .wasp3d--4 { display: none; }
    .wasp3d--1 .svg-wasp3d { width: 60px; height: 60px; }
    .wasp3d--3 .svg-wasp3d { width: 70px; height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__photo img { animation: none !important; transform: none !important; }
    .wasp3d, .wasp3d__sprite, .wasp3d__wing, .wasp3d__ground { animation: none !important; }
    .wasp3d__wing { opacity: .5; }
}

/* ---------- Alert band ---------- */
.alert-band {
    background: linear-gradient(90deg, #ff5b3b, #d92020);
    color: #fff;
    padding: .9rem 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.alert-band::before {
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(0,0,0,.08) 0 12px, transparent 12px 24px);
    opacity: .35; pointer-events: none;
}
.alert-band__row {
    display: flex; flex-wrap: wrap; align-items: center; gap: .85rem;
}
.alert-band__icon {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.2); border-radius: 50%;
    animation: shake 1.6s ease-in-out infinite;
}
@keyframes shake {
    0%,100% { transform: rotate(0); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
}
.alert-band p { margin: 0; flex: 1; min-width: 260px; }
.alert-band .btn { background: #fff; color: #d92020; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; position: relative; }
.section--services { background: var(--c-bg-2); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section--zone {
    background:
        radial-gradient(700px 300px at 80% 50%, rgba(255,205,28,.08), transparent 70%),
        linear-gradient(180deg, var(--c-bg), var(--c-bg-2));
}
.section--about { background: var(--c-bg-2); }
.section--contact { background: var(--c-bg); }
.section--legal { padding-top: 5rem; }

.section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}
.section__head h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1; margin: 1rem 0 .6rem;
}
.section__head h2 em {
    font-style: normal;
    background: linear-gradient(180deg, var(--c-yellow), var(--c-yellow-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__head p { color: var(--c-text-soft); margin: 0; }

/* ---------- Services grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2,1fr); gap: 1.25rem; } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3,1fr); gap: 1.5rem; } }

.service-card {
    position: relative;
    background: linear-gradient(180deg, var(--c-bg-3), var(--c-bg-2));
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem 1.5rem;
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
    overflow: hidden;
}
.service-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 60% at 100% 0%, rgba(255,205,28,.10), transparent 60%);
    opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(255,205,28,.35); box-shadow: var(--shadow); }
.service-card:hover::after { opacity: 1; }

.service-card__icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,205,28,.10), rgba(255,205,28,0));
    border: 1px solid rgba(255,205,28,.22);
    color: var(--c-yellow);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    transition: transform .35s var(--ease), border-color .35s, color .35s;
}
.service-card__icon svg { width: 32px; height: 32px; }
.service-card:hover .service-card__icon { border-color: var(--c-yellow); transform: scale(1.04); }

.service-card h3 {
    font-family: var(--font-display);
    font-weight: 400; font-size: 1.5rem; line-height: 1.05;
    margin: 0 0 .5rem;
    letter-spacing: .01em;
}
.service-card p { margin: 0; color: var(--c-text-soft); }

.service-card__badge {
    display: inline-block; margin-top: .8rem;
    background: rgba(255,205,28,.12); color: var(--c-yellow);
    border: 1px solid rgba(255,205,28,.3);
    padding: .25rem .6rem;
    border-radius: var(--radius-pill);
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}

.service-card__cta { display: inline-flex; margin-top: 1rem; }

/* ---------- Gallery (real intervention photos) ---------- */
.section--gallery { background: var(--c-bg); }

/* Default mobile: stacked */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Tablet: 2-col, big spans 2 rows */
@media (min-width: 640px) {
    .gallery--terrain {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        gap: 1.25rem;
    }
    .gallery--terrain .gallery__item--big {
        grid-column: 1 / -1;
    }
}

/* Desktop: 1 big on top spanning 4 cols, then 4 small below */
@media (min-width: 1000px) {
    .gallery--terrain {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: minmax(280px, auto) minmax(220px, auto);
        gap: 1.25rem;
    }
    .gallery--terrain .gallery__item--big {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

.gallery__item {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    background: var(--c-bg-2);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    aspect-ratio: 4 / 3;
}
.gallery__item--big { aspect-ratio: 16 / 9; }
@media (min-width: 1000px) {
    .gallery__item, .gallery__item--big { aspect-ratio: auto; height: 100%; }
}

.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease), filter .5s;
}
.gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery__item:hover img { transform: scale(1.06); }

.gallery__item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.1rem 1.2rem 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(8,9,12,.55) 35%, rgba(8,9,12,.95) 100%);
    color: #fff;
    display: flex; flex-direction: column; gap: .15rem;
}
.gallery__item figcaption strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: .01em;
    line-height: 1.1;
}
.gallery__item figcaption span {
    font-size: .82rem;
    color: var(--c-text-soft);
    letter-spacing: .01em;
}
.gallery__item--big figcaption strong { font-size: 1.4rem; }

/* Featured terrain image (terrain-5): feather the edges so it melts into the
   page's dark gradient background instead of sitting in a bordered card.
   The mask fades each side toward transparent, letting the real background
   show through — adapts automatically to the page gradient. */
.gallery--terrain .gallery__item--big {
    border: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.gallery--terrain .gallery__item--big:hover {
    transform: none;
    box-shadow: none;
}
.gallery--terrain .gallery__item--big img {
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
    mask-image:
        linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
}
.gallery--terrain .gallery__item--big:hover img { transform: none; }

/* ---------- Zone ---------- */
.zone__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .zone__inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.zone__copy h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1;
    margin: 1rem 0;
}
.zone__copy h2 em {
    font-style: normal;
    background: linear-gradient(180deg, var(--c-yellow), var(--c-yellow-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zone__list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.zone__list li {
    padding: .65rem .9rem .65rem 2.2rem;
    background: var(--c-bg-2); border: 1px solid var(--c-line);
    border-radius: var(--radius);
    position: relative;
}
.zone__list li::before {
    content: "▲"; color: var(--c-yellow); position: absolute; left: .9rem; top: 50%;
    transform: translateY(-50%); font-size: .7rem;
}

.zone__map { display: flex; justify-content: center; }
.zone__svg { width: min(360px, 90%); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.4)); }
.zone-pin { animation: pin-pulse 2.4s ease-in-out infinite; transform-origin: 160px 160px; }
@keyframes pin-pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ---------- About ---------- */
.about-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .about-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .about-grid { grid-template-columns: repeat(4,1fr); } }

.about-card {
    background: var(--c-bg-3);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform .25s var(--ease), border-color .25s;
}
.about-card:hover { transform: translateY(-3px); border-color: rgba(255,205,28,.4); }
.about-card__num {
    position: absolute; top: -8px; right: 0;
    font-family: var(--font-display); font-size: 6rem; line-height: 1;
    color: rgba(255,205,28,.08);
    pointer-events: none;
}
.about-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 .5rem; }
.about-card p { color: var(--c-text-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact__grid {
    display: grid; gap: 2rem;
}
@media (min-width: 900px) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; } }

.contact__info h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1;
    margin: 1rem 0 .6rem;
}
.contact__info p { color: var(--c-text-soft); }

.contact__cards {
    list-style: none; padding: 0; margin: 1.5rem 0 0;
    display: grid; gap: .65rem;
}
.contact__cards li {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem; background: var(--c-bg-2);
    border: 1px solid var(--c-line); border-radius: var(--radius);
}
.contact__cards-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,205,28,.12); color: var(--c-yellow);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact__cards small { display: block; color: var(--c-text-mute); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.contact__cards a:hover strong { color: var(--c-yellow); }

/* ---------- Form ---------- */
.contact__form-wrap {
    background: linear-gradient(180deg, var(--c-bg-3), var(--c-bg-2));
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    box-shadow: var(--shadow);
}
@media (min-width: 700px) { .contact__form-wrap { padding: 2rem; } }

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 700px) {
    .contact-form__grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
    .field--wide { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--c-text); }
/* Red asterisk on required-field labels (Symfony adds the .required class) */
.field label.required::after {
    content: " *";
    color: var(--c-error);
    font-weight: 800;
    margin-left: 2px;
}
.contact-form__legend {
    margin: 0 0 .25rem;
    font-size: .82rem;
    color: var(--c-text-mute);
}
.contact-form__legend strong { color: var(--c-error); font-weight: 800; }
.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--c-bg);
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius);
    color: var(--c-text);
    padding: .8rem 1rem;
    font: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--c-yellow);
    box-shadow: 0 0 0 3px rgba(255,205,28,.2);
    background: var(--c-bg-2);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--c-text-mute); }

.field--check {
    flex-direction: row !important; align-items: flex-start; gap: .65rem;
    background: var(--c-bg-2); border: 1px solid var(--c-line); border-radius: var(--radius);
    padding: .9rem 1rem;
}
.field--check input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--c-yellow); margin-top: .15rem; }
.field--check label { font-weight: 500; font-size: .92rem; color: var(--c-text-soft); }

.field ul { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.field ul li { color: var(--c-error); font-size: .85rem; }

/* Client-side validation (contact_controller.js) */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: var(--c-error);
    box-shadow: 0 0 0 3px rgba(255,107,107,.15);
}
.field--check.is-invalid { border-color: var(--c-error); flex-wrap: wrap; }
.field__error-js { margin: .15rem 0 0; color: var(--c-error); font-size: .85rem; }
.field--check .field__error-js { flex-basis: 100%; }

/* Live character counter (message field) */
.char-counter { align-self: flex-end; font-size: .8rem; color: var(--c-text-mute); margin-top: .2rem; }
.char-counter.is-short { color: var(--c-error); }

/* Cloaked email (rendered as a click-to-copy button — no mailto in the HTML) */
.cloak-email {
    background: none; border: 0; padding: 0; margin: 0;
    font: inherit; color: inherit; cursor: pointer;
    text-align: left; text-decoration: underline; text-underline-offset: 2px;
}
.cloak-email:hover { color: var(--c-yellow); }

.field--submit { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.field--submit small { color: var(--c-text-mute); }

/* File drop */
.file-drop {
    display: block;
    border: 2px dashed var(--c-line-2);
    border-radius: var(--radius-lg);
    padding: 1.2rem; cursor: pointer;
    background: rgba(255,255,255,.02);
    transition: border-color .2s, background .2s;
    position: relative;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--c-yellow); background: rgba(255,205,28,.05); }
.file-drop input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-drop__inner {
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    text-align: center; color: var(--c-text-soft);
}
.file-drop__inner svg { color: var(--c-yellow); }
.file-drop__list { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: .3rem; }
.file-drop__list span {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    padding: .25rem .65rem; font-size: .8rem;
}

/* ALTCHA widget */
.altcha {
    background: var(--c-bg-2);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: .9rem 1rem;
}
.altcha__row {
    display: flex; align-items: center; gap: .85rem;
}
.altcha__checkbox {
    position: relative; width: 28px; height: 28px;
    cursor: pointer; flex-shrink: 0;
}
.altcha__checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.altcha__box {
    display: block; width: 28px; height: 28px;
    border-radius: 8px;
    border: 2px solid var(--c-line-2);
    background: var(--c-bg);
    position: relative;
    transition: border-color .2s, background .2s;
}
.altcha[data-state="loading"] .altcha__box::before,
.altcha[data-state="verifying"] .altcha__box::before {
    content: ""; position: absolute; inset: 4px;
    border: 2px solid var(--c-yellow); border-top-color: transparent;
    border-radius: 50%; animation: spin .8s linear infinite;
}
.altcha[data-state="verified"] .altcha__box {
    border-color: var(--c-success); background: rgba(46,204,113,.12);
}
.altcha[data-state="verified"] .altcha__box::after {
    content: ""; position: absolute; left: 8px; top: 3px;
    width: 8px; height: 14px;
    border: solid var(--c-success); border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.altcha[data-state="error"] .altcha__box { border-color: var(--c-error); background: rgba(255,107,107,.12); }

.altcha__text { flex: 1; min-width: 0; }
.altcha__text strong { display: block; font-size: .95rem; }
.altcha__text small { display: block; color: var(--c-text-mute); font-size: .8rem; margin-top: .15rem; }
.altcha__logo { color: var(--c-text-mute); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Alerts */
.alert {
    padding: .9rem 1.1rem; border-radius: var(--radius);
    margin-bottom: 1rem; font-weight: 500;
}
.alert--success {
    display: flex; align-items: center; gap: .7rem;
    background: rgba(46,204,113,.14); color: #cfffe4;
    border: 1px solid rgba(46,204,113,.5);
    padding: 1.1rem 1.25rem; font-size: 1.02rem;
}
.alert--success::before {
    content: "✓";
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #2ecc71; color: #06281a; font-weight: 900; font-size: 15px;
}
.alert--error   { background: rgba(255,107,107,.12); color: #ffd1d1; border: 1px solid rgba(255,107,107,.4); }

/* Flash toasts — fixed, always visible (used by the public layout) */
.flash-toasts {
    position: fixed;
    top: calc(var(--nav-h, 72px) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: min(560px, calc(100vw - 2rem));
    display: flex; flex-direction: column; gap: .6rem;
    pointer-events: none;
}
.flash-toast {
    pointer-events: auto;
    display: flex; align-items: center; gap: .7rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0,0,0,.4);
    font-weight: 500;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.flash-toast.is-leaving { opacity: 0; transform: translateY(-10px); }
.flash-toast--success { background: #14241b; color: #d6ffe8; border: 1px solid rgba(46,204,113,.55); }
.flash-toast--error   { background: #241616; color: #ffd6d6; border: 1px solid rgba(255,107,107,.55); }
.flash-toast__icon {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    font-weight: 900; font-size: 15px;
}
.flash-toast--success .flash-toast__icon { background: #2ecc71; color: #06281a; }
.flash-toast--error   .flash-toast__icon { background: #ff6b6b; color: #2b0000; }
.flash-toast__msg { flex: 1; }
.flash-toast__close {
    flex: 0 0 auto;
    background: none; border: 0; color: inherit;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
    opacity: .7; padding: 0 .2rem;
}
.flash-toast__close:hover { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
    background: #08090c;
    border-top: 1px solid var(--c-line);
    color: var(--c-text-soft);
    margin-top: 4rem;
}
.site-footer__grid {
    display: grid; gap: 1.5rem;
    padding: 3rem 0 2rem;
}
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (max-width: 699px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }
.brand--footer { color: #fff; margin-bottom: 1rem; }
.site-footer h3 {
    font-family: var(--font-display); font-weight: 400;
    color: #fff; margin: 0 0 .8rem; font-size: 1.15rem;
    text-transform: uppercase; letter-spacing: .08em;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer__list a:hover { color: var(--c-yellow); }
.site-footer__tagline { margin: 0; }

/* Social block */
.social {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-top: 1rem;
}
.social__link {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .9rem;
    background: var(--c-bg-2);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    color: var(--c-text-soft);
    font-weight: 600; font-size: .85rem;
    transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.social__link:hover {
    border-color: var(--c-yellow);
    color: var(--c-yellow);
    transform: translateY(-2px);
}
.social__link svg { flex-shrink: 0; }

/* Logo partenaire GDS (texte sombre → posé sur une pastille claire) */
.footer-partner { margin-top: 1.5rem; }
.footer-partner__label {
    display: block; margin-bottom: .5rem;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    color: var(--c-text-mute);
}
.footer-partner__logo {
    display: inline-flex; align-items: center;
    background: #fff; border-radius: var(--radius-sm);
    padding: .55rem .8rem;
    transition: transform .2s var(--ease), box-shadow .25s;
}
.footer-partner__logo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.footer-partner__logo img { display: block; width: auto; height: 44px; }

.site-footer__bar {
    border-top: 1px solid #181a20;
    padding: 1rem 0;
    font-size: .85rem; color: var(--c-text-mute);
}
.site-footer__bar .container { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.site-footer__admin:hover { color: var(--c-yellow); }

/* ---------- Sticky URGENCE button ---------- */
.urgence-btn {
    position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 95;
    display: inline-flex; align-items: center; gap: .65rem;
    background: linear-gradient(180deg,#ff5b3b,#d92020);
    color: #fff;
    padding: .85rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 18px 40px rgba(217,32,32,.5), inset 0 -3px 0 rgba(0,0,0,.25);
    font-weight: 800;
    transition: transform .15s var(--ease), box-shadow .25s var(--ease);
}
.urgence-btn::before {
    content: ""; position: absolute; inset: -3px;
    border-radius: inherit; background: inherit;
    z-index: -1; opacity: .3; filter: blur(14px);
}
.urgence-btn:hover { transform: translateY(-2px); }
.urgence-btn__icon { width: 22px; height: 22px; flex-shrink: 0; }
.urgence-btn__label { display: flex; flex-direction: column; line-height: 1.1; }
.urgence-btn__label strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.urgence-btn__label span { font-size: .95rem; }
.urgence-btn__pulse {
    position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255,59,59,.6);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(255,59,59,.6); }
    100% { box-shadow: 0 0 0 24px rgba(255,59,59,0); }
}

/* Hide phone number on small screens; show only on >=420 */
@media (max-width: 419px) {
    .urgence-btn__label span { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Admin (back office)
   ============================================================ */
.page-admin { background: #0a0b0e; }
.admin-header {
    background: #08090c;
    border-bottom: 1px solid var(--c-line);
    padding: .9rem 0;
    position: sticky; top: 0; z-index: 50;
}
.admin-header__row { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.brand--admin { color: var(--c-text); }
.admin-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-nav a { color: var(--c-text-soft); font-weight: 600; }
.admin-nav a:hover { color: var(--c-yellow); }
.admin-nav__user {
    background: var(--c-bg-2); border: 1px solid var(--c-line);
    padding: .35rem .65rem; border-radius: var(--radius-pill);
    font-size: .85rem;
}
.admin-main { padding: 2rem 0 4rem; }

.admin-page-head {
    display: flex; flex-direction: column; gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
    .admin-page-head { flex-direction: row; align-items: center; justify-content: space-between; }
}
.admin-page-head h1 {
    font-family: var(--font-display); font-weight: 400;
    font-size: 2rem; margin: 0;
}
.admin-page-head p { margin: .2rem 0 0; color: var(--c-text-mute); }

.admin-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-filters input, .admin-filters select {
    background: var(--c-bg-2); border: 1px solid var(--c-line);
    border-radius: var(--radius); color: var(--c-text);
    padding: .55rem .85rem; min-width: 200px;
}
.admin-filters input:focus, .admin-filters select:focus {
    outline: none; border-color: var(--c-yellow);
    box-shadow: 0 0 0 3px rgba(255,205,28,.2);
}

.admin-stats {
    display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; margin-bottom: 1.5rem;
}
@media (min-width: 700px) { .admin-stats { grid-template-columns: repeat(4,1fr); gap: .75rem; } }
.admin-stat {
    display: flex; flex-direction: column;
    padding: 1rem; background: var(--c-bg-2);
    border: 1px solid var(--c-line); border-radius: var(--radius);
    transition: transform .2s, border-color .2s;
}
.admin-stat:hover { transform: translateY(-2px); border-color: var(--c-line-2); }
.admin-stat.is-active { border-color: var(--c-yellow); }
.admin-stat__num { font-family: var(--font-display); font-size: 2rem; color: var(--c-yellow); line-height: 1; }
.admin-stat__label { color: var(--c-text-soft); text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; margin-top: .3rem; }
.admin-stat--nouveau { border-left: 3px solid var(--c-yellow); }
.admin-stat--en_cours { border-left: 3px solid #4ea7ff; }
.admin-stat--traite { border-left: 3px solid var(--c-success); }
.admin-stat--rejete { border-left: 3px solid var(--c-error); }
.admin-stat--planifie { border-left: 3px solid #a78bfa; }

.admin-empty {
    text-align: center; padding: 4rem 1rem;
    background: var(--c-bg-2); border: 1px dashed var(--c-line-2);
    border-radius: var(--radius-lg);
    color: var(--c-text-mute);
}

/* Liste de cartes (mobile-first : une carte par demande) — nom distinct de
   .admin-card (sections du détail) pour éviter toute collision de styles. */
.req-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.req-card {
    background: var(--c-bg-2);
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-line-2);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
}
.req-card--nouveau  { border-left-color: var(--c-yellow); }
.req-card--en_cours { border-left-color: #4ea7ff; }
.req-card--traite   { border-left-color: var(--c-success); }
.req-card--rejete   { border-left-color: var(--c-error); }
.req-card--planifie { border-left-color: #a78bfa; }
.req-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.req-card__name { display: block; font-weight: 700; font-size: 1.05rem; }
.req-card__date { display: block; color: var(--c-text-mute); font-size: .82rem; margin-top: .15rem; }
.req-card__meta { margin: .9rem 0 0; display: grid; gap: .45rem; }
.req-card__meta > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.req-card__meta dt { color: var(--c-text-mute); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.req-card__meta dd { margin: 0; text-align: right; }
.req-card__actions { display: flex; gap: .5rem; margin-top: 1rem; }
.req-card__btn {
    flex: 1; text-align: center; padding: .6rem .75rem;
    border-radius: var(--radius); border: 1px solid var(--c-line-2);
    background: var(--c-bg-3); color: var(--c-text); font-weight: 600; font-size: .9rem;
    transition: border-color .15s, color .15s;
}
.req-card__btn:hover { border-color: var(--c-yellow); color: var(--c-yellow); }
.req-card__btn--primary { background: rgba(255,205,28,.12); border-color: rgba(255,205,28,.3); color: var(--c-yellow); }

.admin-table-wrap {
    display: none;
    overflow-x: auto;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-bg-2);
}
/* À partir du desktop : on masque les cartes et on affiche le tableau */
@media (min-width: 880px) {
    .req-cards { display: none; }
    .admin-table-wrap { display: block; }
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); }
.admin-table th { background: #07080a; color: var(--c-text-mute); text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.03); }
.admin-table small { color: var(--c-text-mute); }

.pill {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: var(--radius-pill);
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    background: var(--c-bg-3); color: var(--c-text-soft); border: 1px solid var(--c-line);
}
.pill--type { background: rgba(255,205,28,.12); color: var(--c-yellow); border-color: rgba(255,205,28,.3); }
.pill--status.pill--nouveau { background: rgba(255,205,28,.12); color: var(--c-yellow); border-color: rgba(255,205,28,.3); }
.pill--status.pill--en_cours { background: rgba(78,167,255,.12); color: #93c5fd; border-color: rgba(78,167,255,.3); }
.pill--status.pill--traite { background: rgba(46,204,113,.12); color: #6ee7a7; border-color: rgba(46,204,113,.3); }
.pill--status.pill--rejete { background: rgba(255,107,107,.12); color: #ffb3b3; border-color: rgba(255,107,107,.3); }
.pill--status.pill--planifie { background: rgba(167,139,250,.14); color: #c4b5fd; border-color: rgba(167,139,250,.35); }

/* Admin detail */
.admin-back { margin: -.5rem 0 1rem; }
.admin-back a { color: var(--c-text-mute); }
.admin-back a:hover { color: var(--c-yellow); }
.admin-detail {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) { .admin-detail { grid-template-columns: 1fr 1fr; } }
.admin-card {
    background: var(--c-bg-2); border: 1px solid var(--c-line);
    border-radius: var(--radius-lg); padding: 1.5rem;
}
.admin-card h2 {
    font-family: var(--font-display); font-weight: 400;
    margin: 0 0 1rem; font-size: 1.4rem;
}
.admin-card h3 {
    font-family: var(--font-display); font-weight: 400;
    margin: 1.5rem 0 .75rem; font-size: 1.1rem;
}
.admin-dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; }
.admin-dl dt { color: var(--c-text-mute); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.admin-dl dd { margin: 0; }

.admin-message {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1rem;
    white-space: pre-wrap;
}

.admin-attachments { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.admin-attachment {
    display: flex; align-items: center; gap: .8rem;
    padding: .75rem 1rem; background: var(--c-bg);
    border: 1px solid var(--c-line); border-radius: var(--radius);
    transition: border-color .2s, transform .2s;
}
.admin-attachment:hover { border-color: var(--c-yellow); transform: translateX(2px); }
.admin-attachment__icon { font-size: 1.5rem; }
.admin-attachment small { display: block; color: var(--c-text-mute); margin-top: .15rem; }

.admin-update { margin-top: 1rem; }
.admin-update .field { margin-bottom: 1rem; }
.admin-update .field label { color: var(--c-text-mute); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.admin-update--danger { border-top: 1px solid var(--c-line); padding-top: 1.25rem; }

/* Wide card spans the 2-column detail grid */
.admin-card--wide { grid-column: 1 / -1; }
.admin-muted { color: var(--c-text-mute); margin: 0; }

/* Édition manuelle de la date d'intervention */
.admin-schedule { margin: 0 0 .5rem; }
.admin-schedule .field { margin-bottom: .85rem; max-width: 320px; }
.admin-schedule__actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }

/* Boutons "Ajouter à l'agenda" */
.cal-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.confirm-card .cal-buttons { justify-content: center; }
.cal-title { margin: 1.25rem 0 0; font-size: .9rem; color: var(--c-text-mute); text-align: center; }
.admin-confirmed {
    background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.4);
    color: #b6ffd5; border-radius: var(--radius); padding: .85rem 1rem; margin: 0 0 1rem;
}

/* Attachment gallery */
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.admin-thumb {
    margin: 0; background: var(--c-bg); border: 1px solid var(--c-line);
    border-radius: var(--radius); overflow: hidden;
}
.admin-thumb img { display: block; width: 100%; height: 140px; object-fit: cover; background: #000; transition: transform .3s var(--ease); }
.admin-thumb a:hover img { transform: scale(1.04); }
.admin-thumb figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .65rem; }
.admin-thumb__name { font-size: .78rem; color: var(--c-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-thumb__dl { font-size: .78rem; color: var(--c-yellow); white-space: nowrap; }
.admin-attachment--file { margin-top: .5rem; }

/* Proposed slots list */
.proposal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.proposal {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    padding: .7rem 1rem; background: var(--c-bg);
    border: 1px solid var(--c-line); border-radius: var(--radius);
}
.proposal--accepted { border-color: rgba(46,204,113,.5); }
.proposal--declined { opacity: .55; }
.proposal__date { font-weight: 600; }
.proposal__status {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    padding: .2rem .55rem; border-radius: var(--radius-pill);
    background: var(--c-bg-3); color: var(--c-text-soft); border: 1px solid var(--c-line);
}
.proposal__status--accepted { background: rgba(46,204,113,.14); color: #6ee7a7; border-color: rgba(46,204,113,.35); }
.proposal__status--declined { background: rgba(255,107,107,.12); color: #ffb3b3; border-color: rgba(255,107,107,.3); }
.proposal__when { color: var(--c-text-mute); }

/* Reply form */
.admin-reply .field { margin-bottom: 1.1rem; }
.admin-reply .field > label { color: var(--c-text-mute); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.slots-list { display: grid; gap: .5rem; margin: .5rem 0 .6rem; }
.slot-row { display: flex; gap: .5rem; align-items: center; }
.slot-row input { flex: 1 1 auto; width: auto; min-width: 0; }

/* ============================================================
   Public confirmation screens (intervention slots)
   ============================================================ */
.confirm-screen { padding: 3rem 0; min-height: 60vh; display: flex; align-items: center; }
.confirm-card {
    max-width: 560px; margin: 0 auto; text-align: center;
    background: var(--c-bg-2); border: 1px solid var(--c-line);
    border-radius: var(--radius-lg); padding: 2.5rem 1.75rem;
}
.confirm-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: .5rem 0 1rem; }
.confirm-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--c-bg-3); color: var(--c-text-soft);
    font-size: 28px; font-weight: 900; margin-bottom: .5rem;
}
.confirm-icon--ok { background: #2ecc71; color: #06281a; }
.confirm-slot {
    font-family: var(--font-display); font-weight: 400;
    font-size: 1.6rem; color: var(--c-yellow);
    background: var(--c-bg); border: 1px solid var(--c-line);
    border-radius: var(--radius); padding: .85rem 1rem; margin: 1.25rem 0;
}
.confirm-recap { list-style: none; padding: 0; margin: 1.25rem 0; text-align: left; display: grid; gap: .5rem; }
.confirm-recap li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--c-line); padding-bottom: .5rem; }
.confirm-recap span { color: var(--c-text-mute); }
.confirm-form { margin: 1.5rem 0; }
.confirm-others { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.confirm-others ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.confirm-others a {
    display: inline-block; padding: .5rem .9rem; border-radius: var(--radius-pill);
    background: var(--c-bg); border: 1px solid var(--c-line-2); color: var(--c-text);
}
.confirm-others a:hover { border-color: var(--c-yellow); color: var(--c-yellow); }
.confirm-help { color: var(--c-text-mute); font-size: .9rem; margin-top: 1.5rem; }
.confirm-slot--sm { font-size: 1.4rem; margin: .75rem 0; }

/* Modale de confirmation de rendez-vous */
.modal[hidden] { display: none; }
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
}
.modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.72);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.modal__dialog {
    position: relative; z-index: 1;
    width: 100%; max-width: 440px;
    max-height: calc(100vh - 2.5rem);
    max-height: calc(100dvh - 2.5rem);
    overflow-y: auto;
    background: var(--c-bg-2);
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    animation: modal-in .2s ease;
}
.modal__dialog--wide { max-width: 580px; text-align: left; }
@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.modal__dialog h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 .75rem; }
.modal__note { color: var(--c-text-mute); font-size: .88rem; margin: .25rem 0 0; }
.modal__actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.modal__actions .btn { width: 100%; }
@media (min-width: 480px) {
    .modal__actions { flex-direction: row-reverse; }
    .modal__actions .btn { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .modal__dialog { animation: none; } }

/* Modale de sortie de site (lien externe) */
.outbound-modal__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin: 0 auto .9rem;
    border-radius: 50%;
    background: rgba(255,205,28,.12); color: var(--c-yellow);
    border: 1px solid rgba(255,205,28,.28);
}
.outbound-modal__dest {
    display: flex; flex-direction: column; gap: .15rem;
    margin: .5rem 0 0; word-break: break-word;
}
.outbound-modal__dest strong { font-size: 1.05rem; line-height: 1.3; }
.outbound-modal__url { color: var(--c-text-mute); font-size: .85rem; }

/* Modale de consentement aux cookies */
.cookie-modal h2 { display: flex; align-items: center; gap: .5rem; }
.cookie-table-wrap { overflow-x: auto; margin: 1.1rem 0; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.cookie-table th, .cookie-table td {
    text-align: left; padding: .55rem .65rem;
    border-bottom: 1px solid var(--c-line); vertical-align: top;
}
.cookie-table thead th {
    color: var(--c-text-mute); text-transform: uppercase;
    font-size: .68rem; letter-spacing: .06em; white-space: nowrap;
}
.cookie-table tbody td:first-child { font-weight: 600; }
.cookie-table tbody td:last-child { white-space: nowrap; color: var(--c-text-soft); }
.cookie-note { color: var(--c-text-mute); font-size: .85rem; margin: 0; }

/* ---------- FAQ (home) ---------- */
.section--faq .faq { display: grid; gap: .6rem; margin-top: 1.5rem; }
.faq__item { background: var(--c-bg-2); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.faq__item[open] { border-color: var(--c-line-2); }
.faq__q {
    cursor: pointer; list-style: none;
    padding: 1rem 1.2rem; font-weight: 600; color: var(--c-text);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--c-yellow); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__a { padding: 0 1.2rem 1.1rem; color: var(--c-text-soft); }
.faq__a p { margin: 0; }

/* ---------- Local zone pages ---------- */
.section__head--left { text-align: left; align-items: flex-start; }
.breadcrumb { font-size: .85rem; color: var(--c-text-mute); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb a { color: var(--c-text-mute); }
.breadcrumb a:hover { color: var(--c-yellow); }
.zone-page__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2.5rem; }
.zone-page__grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .zone-page__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.zone-page__col h2, .zone-page__nearby h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 1rem; }
.zone-page__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.zone-page__list li { padding-left: 1.4rem; position: relative; color: var(--c-text-soft); }
.zone-page__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--c-yellow); font-weight: 800; }
.zone-page__list strong { color: var(--c-text); }
.zone-page__phone { margin-top: 1rem; }
.zone-page__nearby { margin-top: 2.5rem; }
.zone-page__towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.zone-page__towns a {
    display: inline-block; padding: .45rem .9rem; border-radius: var(--radius-pill);
    background: var(--c-bg-2); border: 1px solid var(--c-line-2); color: var(--c-text-soft); font-size: .9rem;
}
.zone-page__towns a:hover { border-color: var(--c-yellow); color: var(--c-yellow); }

/* ---------- Footer: zones mesh ---------- */
.site-footer__areas { padding: 1.5rem 0 .25rem; border-top: 1px solid var(--c-line); }
.site-footer__areas h3 { font-size: .85rem; color: var(--c-text-mute); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .75rem; }
.site-footer__areas ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.site-footer__areas a { color: var(--c-text-soft); font-size: .85rem; }
.site-footer__areas a:hover { color: var(--c-yellow); }

/* Login screen */
.page-login { background:
    radial-gradient(800px 600px at 50% -10%, rgba(255,205,28,.15), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(255,59,59,.12), transparent 60%),
    #0a0b0e;
    min-height: 100vh;
}
.login-screen {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
}
.login-card {
    width: min(420px, 100%);
    background: var(--c-bg-2);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-lg);
}
.brand--login { margin-bottom: 1.5rem; }
.login-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; margin: 0 0 1.2rem; }
.login-form .field { margin-bottom: 1rem; }
.login-form input {
    width: 100%;
    background: var(--c-bg); border: 1px solid var(--c-line-2);
    border-radius: var(--radius); padding: .8rem 1rem; color: var(--c-text);
    font: inherit;
}
.login-form input:focus {
    outline: none; border-color: var(--c-yellow);
    box-shadow: 0 0 0 3px rgba(255,205,28,.2);
}
.login-form button { width: 100%; margin-top: .5rem; }
.login-card__return { text-align: center; margin: 1rem 0 0; }
.login-card__return a { color: var(--c-text-mute); }
.login-card__return a:hover { color: var(--c-yellow); }

/* Legal */
.legal-body h2 {
    font-family: var(--font-display); font-weight: 400;
    margin: 2rem 0 .5rem; font-size: 1.4rem;
}
.legal-body p { color: var(--c-text-soft); }
.legal-body a { color: var(--c-yellow); }
.legal-body h3 { font-weight: 700; font-size: 1.02rem; margin: 1.25rem 0 .4rem; color: var(--c-text); }
.legal-body ul { color: var(--c-text-soft); margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal-contact { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
/* Highlight for legal fields left to fill in (RCS, TVA, hébergeur…) */
.legal-todo {
    background: rgba(255,205,28,.15);
    color: var(--c-yellow);
    border-radius: 4px;
    padding: 0 .3rem;
    font-style: italic;
    font-size: .92em;
}

/* Selection */
::selection { background: var(--c-yellow); color: var(--c-yellow-deep); }
