/* ==========================================================================
   LAURENT AGNESE ÉLECTRICITÉ GÉNÉRALE — MARCILLAT-EN-COMBRAILLE
   Palette bleu/rouge signature · Typo Caveat + Inter + Space Grotesk
   Artisan électricien moderne — confiance, proximité, expertise
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* ===== PALETTE ===== */
    /* Bleu cyan — dérivé du logo (script manuscrit bleu) */
    --blue: #1E9FD9;
    --blue-light: #2FB5E8;
    --blue-lighter: #7DCDF0;
    --blue-soft: #E3F4FB;
    --blue-dark: #0B7DAD;
    --blue-darker: #055A84;

    /* Rouge vif — dérivé du "Électricité Générale" + éclair */
    --red: #E63946;
    --red-light: #F04A56;
    --red-lighter: #F67881;
    --red-soft: #FBE4E6;
    --red-dark: #B01A26;
    --red-darker: #7A0F19;

    /* Neutres — blanc cassé, gris, charbon (modernisation) */
    --ink: #0B1524;
    --ink-90: #1A2436;
    --ink-80: #2A3549;
    --ink-60: #4F5A6E;
    --ink-40: #8892A3;
    --ink-20: #C7CDD6;
    --ink-10: #E5E8ED;

    --paper: #FDFDFD;
    --paper-alt: #F7F9FC;
    --paper-warm: #FAFAFA;

    /* Accents */
    --success: #16A34A;
    --warning: #F59E0B;
    --error: #DC2626;

    /* ===== TYPOGRAPHIE ===== */
    --font-script: 'Caveat', 'Brush Script MT', cursive;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* ===== LAYOUT ===== */
    --max-width: 1280px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    --radius-full: 9999px;

    /* ===== TRANSITIONS ===== */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
    --t-fast: 200ms;
    --t: 400ms;
    --t-slow: 700ms;
    --t-vslow: 1200ms;

    /* ===== OMBRES ===== */
    --shadow-xs: 0 1px 2px rgba(11, 21, 36, 0.04);
    --shadow-sm: 0 2px 4px rgba(11, 21, 36, 0.06);
    --shadow: 0 8px 24px -6px rgba(11, 21, 36, 0.08), 0 2px 6px -2px rgba(11, 21, 36, 0.04);
    --shadow-md: 0 12px 32px -8px rgba(11, 21, 36, 0.12), 0 4px 10px -4px rgba(11, 21, 36, 0.06);
    --shadow-lg: 0 24px 60px -12px rgba(11, 21, 36, 0.18), 0 8px 16px -4px rgba(11, 21, 36, 0.08);
    --shadow-xl: 0 40px 90px -20px rgba(11, 21, 36, 0.25);
    --shadow-blue: 0 12px 40px -10px rgba(30, 159, 217, 0.45);
    --shadow-red: 0 12px 40px -10px rgba(230, 57, 70, 0.45);
    --glow-blue: 0 0 48px rgba(30, 159, 217, 0.35);
    --glow-red: 0 0 48px rgba(230, 57, 70, 0.3);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

@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;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv11';
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

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

.skip-link {
    position: absolute;
    top: -999px; left: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1.25rem;
    z-index: 999;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   BOUTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: all var(--t) var(--ease);
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn svg { transition: transform var(--t) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(230, 57, 70, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-red);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink-20);
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: translateY(-1px);
}

/* Variante du btn-ghost sur le hero sombre */
.hero .btn-ghost {
    background: rgba(253, 253, 253, 0.1);
    color: var(--paper);
    border-color: rgba(253, 253, 253, 0.35);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.hero .btn-ghost:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-large { padding: 1.125rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(253, 253, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--t) var(--ease);
}
.header.scrolled {
    background: rgba(253, 253, 253, 0.95);
    border-bottom-color: var(--ink-10);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.brand-mark {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform var(--t) var(--ease);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}
.brand-text strong {
    font-family: var(--font-script);
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--blue-dark);
    letter-spacing: 0;
}
.brand-text .brand-sep {
    color: var(--red);
}
.brand-text em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-60);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ========== NAVIGATION PREMIUM — Pill + Reveal ========== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    padding: 0.3rem;
    border-radius: var(--radius-full);
    background: rgba(253, 253, 253, 0.5);
    border: 1px solid rgba(11, 21, 36, 0.06);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(253, 253, 253, 0.7);
    isolation: isolate;
}

/* Pill liquide qui suit le hover */
.nav-pill {
    position: absolute;
    top: 50%;
    left: var(--nav-pill-x, 0);
    width: var(--nav-pill-width, 0);
    height: calc(100% - 0.6rem);
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(30, 159, 217, 0.14), rgba(230, 57, 70, 0.10));
    border: 1px solid rgba(30, 159, 217, 0.22);
    border-radius: var(--radius-full);
    box-shadow:
        0 8px 20px -8px rgba(30, 159, 217, 0.35),
        0 0 0 4px rgba(30, 159, 217, 0.04);
    opacity: var(--nav-pill-opacity, 0);
    transition:
        left 520ms cubic-bezier(0.34, 1.3, 0.64, 1),
        width 520ms cubic-bezier(0.34, 1.3, 0.64, 1),
        opacity 320ms var(--ease);
    pointer-events: none;
    z-index: 0;
}

.nav-link {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 86px;
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-80);
    border-radius: var(--radius-full);
    transition:
        color 340ms var(--ease),
        transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1),
        letter-spacing 340ms var(--ease);
    will-change: transform;
}

.nav-label {
    display: block;
    line-height: 1;
    transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tag {
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    white-space: nowrap;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-dark);
    transform: translate(-50%, 6px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 360ms var(--ease),
        transform 440ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover {
    color: var(--ink);
    transform: scale(1.08) translateY(-1px);
    letter-spacing: 0.01em;
}

.nav-link:hover .nav-label {
    transform: translateY(-7px);
}

.nav-link:hover .nav-tag {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    color: var(--red-dark);
}

/* Reveal subtil quand on survole la nav entière (container) */
.main-nav:hover {
    background: rgba(253, 253, 253, 0.78);
    border-color: rgba(30, 159, 217, 0.18);
}

/* Accessibility focus */
.nav-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--blue-dark);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-full);
    transition: all var(--t-fast) var(--ease);
}
.header-phone svg { color: var(--red); }
.header-phone:hover {
    background: var(--blue-soft);
    color: var(--blue-darker);
}

/* Header WhatsApp — petit rond vert à côté du téléphone */
.header-whatsapp {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px -6px rgba(37, 211, 102, 0.6);
    transition: all var(--t) var(--ease);
    position: relative;
}
.header-whatsapp::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    opacity: 0;
    transition: all 400ms var(--ease);
}
.header-whatsapp:hover {
    transform: translateY(-2px) rotate(-6deg);
    box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.75);
}
.header-whatsapp:hover::before { opacity: 1; inset: -6px; }

.burger {
    display: none;
    width: 42px; height: 42px;
    border-radius: var(--radius-full);
    position: relative;
    transition: background var(--t-fast) var(--ease);
}
.burger span {
    position: absolute;
    left: 11px; right: 11px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all var(--t) var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }

body.nav-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ink-10);
    z-index: 101;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transition: width var(--t-fast) linear;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow: hidden;
    color: var(--paper);
    isolation: isolate;
}

/* Image de fond — borne de recharge premium */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1593941707882-a5bba14938c7?auto=format&fit=crop&w=2400&q=85');
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: -2;
    filter: saturate(1.15) contrast(1.08) brightness(0.92);
}

/* Overlay atmosphérique bleu → rouge — laisse respirer l'image */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 25% 50%, rgba(5, 12, 26, 0.75) 0%, rgba(11, 21, 36, 0.55) 45%, rgba(11, 21, 36, 0.25) 75%, transparent 100%),
        radial-gradient(ellipse at 85% 30%, rgba(30, 159, 217, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 100%, rgba(230, 57, 70, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, rgba(5, 12, 26, 0.35) 0%, rgba(11, 21, 36, 0.25) 50%, rgba(22, 10, 15, 0.45) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: screen;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(253, 253, 253, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(253, 253, 253, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--paper));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 960px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(253, 253, 253, 0.12);
    border: 1px solid rgba(253, 253, 253, 0.22);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--paper);
    letter-spacing: 0.01em;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    position: relative;
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    animation: pulseDot 2s infinite var(--ease);
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 6vw, 4.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 1.75rem;
    color: var(--paper);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.title-script {
    display: block;
    font-family: var(--font-script);
    font-weight: 700;
    font-size: 0.55em;
    color: var(--blue-lighter);
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0.25rem;
    transform: rotate(-2deg);
    text-shadow: 0 0 30px rgba(30, 159, 217, 0.5);
}

.title-main {
    display: block;
}
.title-main em {
    font-style: normal;
    background: linear-gradient(135deg, var(--blue-lighter) 0%, var(--red-lighter) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    filter: drop-shadow(0 0 30px rgba(240, 74, 86, 0.3));
}

.hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.65;
    color: rgba(253, 253, 253, 0.88);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* ECG Signature animée */
.hero-ecg {
    max-width: 680px;
    margin: 0 auto 3rem;
    opacity: 0.85;
}
.hero-ecg svg {
    width: 100%;
    height: auto;
}
.ecg-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: ecgDraw 3.5s var(--ease) 0.6s forwards, ecgPulse 3s ease-in-out 4s infinite;
}
@keyframes ecgDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes ecgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* Highlights rotatifs */
.hero-highlights {
    max-width: 420px;
    margin: 0 auto;
}
.highlights-track {
    position: relative;
    height: 72px;
    background: rgba(253, 253, 253, 0.08);
    border: 1px solid rgba(253, 253, 253, 0.18);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.highlight-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--t-slow) var(--ease);
}
.highlight-item[data-highlight-active] {
    opacity: 1;
    transform: translateY(0);
}
.highlight-num {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--paper);
    line-height: 1;
    text-shadow: 0 0 24px rgba(30, 159, 217, 0.5);
}
.highlight-lbl {
    font-size: 0.95rem;
    color: rgba(253, 253, 253, 0.9);
    font-weight: 500;
}
.highlights-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.875rem;
}
.highlights-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(253, 253, 253, 0.35);
    padding: 0;
    transition: all var(--t-fast) var(--ease);
}
.highlights-dot[data-active] {
    background: var(--paper);
    width: 24px;
    border-radius: 4px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(253, 253, 253, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: floatY 2s ease-in-out infinite;
    z-index: 2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero-scroll-hint svg {
    color: var(--blue-lighter);
}
@keyframes floatY {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   DÉPANNAGE FOCUS — Section urgence sous le hero
   ========================================================================== */

.depannage-focus {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-90) 100%);
    color: var(--paper);
    overflow: hidden;
    isolation: isolate;
}

.depannage-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.depannage-photo {
    position: absolute;
    inset: 0;
    background-image: url('assets/van-laurent.jpg');
    background-image: image-set(
        url('assets/van-laurent.webp') type('image/webp'),
        url('assets/van-laurent.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center 62%;
    background-repeat: no-repeat;
    filter: contrast(1.08) saturate(1.35);
    opacity: 0.78;
    animation: depannagePhotoZoom 22s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes depannagePhotoZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.depannage-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            var(--ink) 0%,
            rgba(11, 21, 36, 0.9) 25%,
            rgba(11, 21, 36, 0.55) 55%,
            rgba(11, 21, 36, 0.3) 100%
        ),
        linear-gradient(180deg,
            rgba(11, 21, 36, 0.35) 0%,
            transparent 30%,
            transparent 70%,
            rgba(11, 21, 36, 0.6) 100%
        );
}

.depannage-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: depannageGlow 12s ease-in-out infinite;
}
.depannage-glow-1 {
    top: -10%;
    left: -10%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.45), transparent 70%);
}
.depannage-glow-2 {
    bottom: -20%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(30, 159, 217, 0.35), transparent 70%);
    animation-delay: -6s;
}
@keyframes depannageGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
}

.depannage-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(253, 253, 253, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(253, 253, 253, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.depannage-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* === Bloc gauche === */
.depannage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 1.125rem;
    margin-bottom: 1.5rem;
    background: rgba(230, 57, 70, 0.14);
    border: 1px solid rgba(230, 57, 70, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--red-lighter);
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.8);
    animation: badgePulse 1.6s infinite var(--ease);
}
@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.8); }
    70% { box-shadow: 0 0 0 14px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.depannage-title {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--paper);
    margin-bottom: 1.25rem;
}
.depannage-title em {
    display: block;
    font-style: normal;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.08em;
    background: linear-gradient(135deg, var(--red-lighter) 0%, var(--blue-lighter) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 0.35rem;
}

.depannage-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(253, 253, 253, 0.78);
    max-width: 560px;
    margin-bottom: 2rem;
}

/* === ACTIONS — Tel + WhatsApp === */
.depannage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Bouton téléphone massif pulsant */
.btn-depannage {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.75rem 1.125rem 1.125rem;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    box-shadow:
        0 14px 40px -10px rgba(230, 57, 70, 0.55),
        0 0 0 1px rgba(253, 253, 253, 0.1) inset;
    transition: all 400ms var(--ease);
    overflow: visible;
    z-index: 1;
}
.btn-depannage:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 22px 60px -8px rgba(230, 57, 70, 0.75),
        0 0 0 1px rgba(253, 253, 253, 0.2) inset;
}
.btn-depannage:active { transform: translateY(-1px) scale(1); }

.btn-depannage-ring {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    border: 2px solid rgba(230, 57, 70, 0.5);
    animation: ringPulse 2s ease-out infinite;
    pointer-events: none;
}
.btn-depannage-ring-2 {
    animation-delay: 1s;
}
@keyframes ringPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.btn-depannage-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(253, 253, 253, 0.2);
    color: #fff;
    flex-shrink: 0;
}
.btn-depannage-icon svg {
    animation: iconShake 3s ease-in-out infinite;
}
@keyframes iconShake {
    0%, 92%, 100% { transform: rotate(0); }
    93% { transform: rotate(-8deg); }
    95% { transform: rotate(8deg); }
    97% { transform: rotate(-5deg); }
    99% { transform: rotate(3deg); }
}

.btn-depannage-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    gap: 2px;
}
.btn-depannage-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}
.btn-depannage-text strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.btn-depannage-arrow {
    display: grid;
    place-items: center;
    margin-left: 0.25rem;
    transition: transform 400ms var(--ease);
}
.btn-depannage:hover .btn-depannage-arrow { transform: translateX(6px); }

/* Bouton WhatsApp */
.btn-whatsapp {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 1.5rem 1.125rem 1.125rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    box-shadow:
        0 14px 40px -12px rgba(37, 211, 102, 0.45),
        0 0 0 1px rgba(253, 253, 253, 0.1) inset;
    transition: all 400ms var(--ease);
    overflow: hidden;
}
.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(253, 253, 253, 0.2), transparent);
    transition: left 800ms var(--ease);
}
.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 22px 60px -10px rgba(37, 211, 102, 0.65),
        0 0 0 1px rgba(253, 253, 253, 0.2) inset;
}
.btn-whatsapp:hover::before { left: 100%; }
.btn-whatsapp:active { transform: translateY(-1px) scale(1); }

.btn-whatsapp-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(253, 253, 253, 0.22);
    color: #fff;
    flex-shrink: 0;
}

.btn-whatsapp-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    gap: 2px;
}
.btn-whatsapp-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}
.btn-whatsapp-text strong {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* Notes sous les CTA */
.depannage-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: rgba(253, 253, 253, 0.7);
}
.depannage-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
}
.depannage-note svg { color: var(--blue-lighter); }
.depannage-note strong { color: var(--paper); font-weight: 600; }

/* === Bloc droit — Liste cas === */
.depannage-cases {
    padding: 2rem;
    background: rgba(253, 253, 253, 0.04);
    border: 1px solid rgba(253, 253, 253, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cases-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(253, 253, 253, 0.08);
}
.cases-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--paper);
    margin-bottom: 0.35rem;
}
.cases-sub {
    font-size: 0.88rem;
    color: rgba(253, 253, 253, 0.6);
    line-height: 1.5;
}

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

.case-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1rem;
    background: rgba(253, 253, 253, 0.03);
    border: 1px solid rgba(253, 253, 253, 0.08);
    border-radius: var(--radius);
    transition: all 350ms var(--ease);
    cursor: default;
    animation: caseSlideIn 600ms var(--ease) backwards;
    animation-delay: calc(var(--i) * 70ms + 200ms);
}
@keyframes caseSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.case-item:hover {
    background: rgba(230, 57, 70, 0.08);
    border-color: rgba(230, 57, 70, 0.35);
    transform: translateX(4px);
}

.case-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.18), rgba(230, 57, 70, 0.08));
    color: var(--red-lighter);
    border: 1px solid rgba(230, 57, 70, 0.25);
    flex-shrink: 0;
    transition: all 350ms var(--ease);
}
.case-item:hover .case-icon {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    transform: scale(1.06);
    border-color: transparent;
}

.case-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.case-body strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--paper);
    letter-spacing: -0.005em;
}
.case-body span {
    font-size: 0.82rem;
    color: rgba(253, 253, 253, 0.6);
    line-height: 1.4;
}

.case-arrow {
    font-size: 1.1rem;
    color: rgba(253, 253, 253, 0.3);
    transition: all 300ms var(--ease);
}
.case-item:hover .case-arrow {
    color: var(--red-lighter);
    transform: translateX(4px);
}

.cases-footer {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    background: rgba(30, 159, 217, 0.08);
    border: 1px dashed rgba(30, 159, 217, 0.3);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: rgba(253, 253, 253, 0.85);
    line-height: 1.55;
}
.cases-footer strong {
    color: var(--blue-lighter);
    font-weight: 700;
}

/* === Responsive dépannage === */
@media (max-width: 1024px) {
    .depannage-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .depannage-photo {
        background-position: center;
        opacity: 0.4;
    }
    .depannage-overlay {
        background:
            linear-gradient(180deg,
                rgba(11, 21, 36, 0.85) 0%,
                rgba(11, 21, 36, 0.75) 40%,
                rgba(11, 21, 36, 0.85) 100%
            );
    }
}

@media (max-width: 640px) {
    .depannage-actions { flex-direction: column; align-items: stretch; }
    .btn-depannage, .btn-whatsapp { width: 100%; justify-content: center; }
    .btn-depannage-text strong { font-size: 1.2rem; }
    .depannage-cases { padding: 1.25rem; }
    .case-item { padding: 0.75rem 0.85rem; }
    .depannage-photo { opacity: 0.32; }
}

@media (prefers-reduced-motion: reduce) {
    .depannage-photo { animation: none; }
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */

.trust-bar {
    background: linear-gradient(180deg, var(--ink-90) 0%, var(--ink) 100%);
    color: var(--paper);
    padding: clamp(1.5rem, 3.5vw, 2.5rem) 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(253, 253, 253, 0.06);
    border-bottom: 1px solid rgba(253, 253, 253, 0.06);
}
.trust-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(30, 159, 217, 0.18), transparent 45%),
        radial-gradient(ellipse at 80% 50%, rgba(230, 57, 70, 0.15), transparent 45%);
    pointer-events: none;
}

.trust-marquee-wrapper {
    position: relative;
    overflow: hidden;
    /* Fade edges pour un marquee pro */
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.trust-marquee {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: trustScroll 55s linear infinite;
    will-change: transform;
}
.trust-marquee:hover {
    animation-play-state: paused;
}
@keyframes trustScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1.5rem 0.85rem 1rem;
    background: rgba(253, 253, 253, 0.035);
    border: 1px solid rgba(253, 253, 253, 0.08);
    border-radius: var(--radius-full);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--paper);
    flex-shrink: 0;
    transition: all 450ms cubic-bezier(0.34, 1.3, 0.64, 1);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    letter-spacing: -0.005em;
    white-space: nowrap;
}
.trust-item:hover {
    transform: scale(1.08) translateY(-2px);
    background: rgba(253, 253, 253, 0.09);
    border-color: rgba(30, 159, 217, 0.4);
    box-shadow:
        0 14px 35px -10px rgba(30, 159, 217, 0.35),
        0 0 0 4px rgba(30, 159, 217, 0.06);
}

/* Point gros animé avant chaque item */
.trust-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow:
        0 0 0 0 rgba(30, 159, 217, 0.7),
        0 0 20px rgba(30, 159, 217, 0.8);
    flex-shrink: 0;
    animation: trustDotPulse 2.4s infinite var(--ease);
}
.trust-item:nth-child(even) .trust-dot {
    background: var(--red);
    box-shadow:
        0 0 0 0 rgba(230, 57, 70, 0.7),
        0 0 20px rgba(230, 57, 70, 0.8);
    animation-delay: -1.2s;
}
@keyframes trustDotPulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(30, 159, 217, 0.8),
            0 0 20px rgba(30, 159, 217, 0.6);
    }
    70% {
        box-shadow:
            0 0 0 10px rgba(30, 159, 217, 0),
            0 0 20px rgba(30, 159, 217, 0.6);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(30, 159, 217, 0),
            0 0 20px rgba(30, 159, 217, 0.6);
    }
}

.trust-icon-wrap {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 159, 217, 0.2), rgba(30, 159, 217, 0.08));
    border: 1px solid rgba(30, 159, 217, 0.3);
    color: var(--blue-lighter);
    flex-shrink: 0;
    transition: all 400ms var(--ease);
}
.trust-icon-wrap.trust-accent {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(230, 57, 70, 0.08));
    border-color: rgba(230, 57, 70, 0.3);
    color: var(--red-lighter);
}

.trust-item:hover .trust-icon-wrap {
    transform: rotate(-8deg) scale(1.12);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--paper);
    border-color: var(--blue);
}
.trust-item:hover .trust-icon-wrap.trust-accent {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-color: var(--red);
}

.trust-label {
    letter-spacing: -0.005em;
}

/* Respecter reduced motion */
@media (prefers-reduced-motion: reduce) {
    .trust-marquee { animation: none; }
    .trust-dot { animation: none; }
}

/* Mobile ajustements */
@media (max-width: 640px) {
    .trust-marquee { gap: 1.5rem; animation-duration: 40s; }
    .trust-item {
        padding: 0.7rem 1.1rem 0.7rem 0.85rem;
        font-size: 0.92rem;
        gap: 0.65rem;
    }
    .trust-icon-wrap { width: 32px; height: 32px; }
    .trust-icon-wrap svg { width: 20px; height: 20px; }
}

/* ==========================================================================
   SECTIONS — BASE
   ========================================================================== */

section {
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 3.5rem;
}
.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform: translateY(-50%);
}
.eyebrow.light {
    color: var(--blue-lighter);
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--ink);
}
/* Texte rouge pour titres et accents — utilise red-dark pour respecter WCAG AA (5.4:1+ sur blanc) */
.section-head h2 em,
.about-lead em,
.about-text em {
    color: var(--red-dark);
}

.section-head h2 em {
    font-style: normal;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.08em;
    color: var(--red-dark);
    letter-spacing: 0;
}

.section-head p {
    font-size: 1.08rem;
    color: var(--ink-60);
    line-height: 1.65;
    max-width: 640px;
}
.section-head.center p { margin-inline: auto; }

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services {
    background: var(--paper);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* ===== MARQUEES DOUBLE DIRECTION ===== */
.services-marquees {
    padding: 2.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.services-row {
    overflow: visible;
    position: relative;
}

.services-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    padding: 0.5rem 0;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.services-track-right {
    animation-name: servicesMarqueeLTR;
}
.services-track-left {
    animation-name: servicesMarqueeRTL;
    animation-duration: 36s;
}

/* Offset de démarrage pour un effet brick (rangées décalées) */
.services-row-bottom .services-track {
    padding-left: 180px;
}

@keyframes servicesMarqueeLTR {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
@keyframes servicesMarqueeRTL {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.services-track:hover {
    animation-play-state: paused;
}

/* Cards en version marquee — largeur fixe */
.service-mini {
    width: 360px;
    flex-shrink: 0;
    padding: 0;
}
.service-mini .service-body { padding: 1.4rem 1.5rem 1.5rem; }
.service-mini .service-body h3 { font-size: 1.22rem; }
.service-mini .service-body p { font-size: 0.93rem; margin-bottom: 1rem; }
.service-mini .service-features li { font-size: 0.85rem; }
.service-mini .service-icon { width: 64px; height: 64px; }
.service-mini .service-icon svg { width: 30px; height: 30px; }
.service-mini .service-photo { height: 190px; }

@media (max-width: 768px) {
    .service-mini { width: 300px; }
    .service-mini .service-photo { height: 170px; }
    .services-track { animation-duration: 20s; }
    .services-track-left { animation-duration: 24s; }
    .services-row-bottom .services-track { padding-left: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .services-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    .services-row-bottom .services-track { padding-left: 0; }
}

.service-card {
    position: relative;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius-lg);
    transition: all var(--t) var(--ease);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: rgba(30, 159, 217, 0.4);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* === BLOC PHOTO TOP — hero visuel par catégorie === */
.service-photo {
    position: relative;
    height: 210px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--ink-90);
}

.service-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg, linear-gradient(135deg, var(--blue-dark), var(--ink-90)));
    background-size: cover;
    background-position: center;
    transition: transform 800ms var(--ease);
    z-index: 0;
}

.service-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(11, 21, 36, 0.25) 0%,
            transparent 28%,
            transparent 55%,
            rgba(11, 21, 36, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover .service-photo::before {
    transform: scale(1.08);
}

/* Numéro → chip glassmorphique en haut à gauche */
.service-num {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    margin: 0;
    padding: 0.32rem 0.7rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(253, 253, 253, 0.95);
    background: rgba(11, 21, 36, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 253, 253, 0.15);
    border-radius: var(--radius-full);
}

/* Icon → stamp 64x64 centré sur la photo, entièrement visible */
.service-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    box-shadow: 0 14px 32px rgba(11, 21, 36, 0.45), 0 0 0 4px rgba(253, 253, 253, 0.95);
    transition: all var(--t) var(--ease);
}
.service-card:hover .service-icon {
    transform: translate(-50%, -50%) rotate(-6deg) scale(1.12);
    box-shadow: 0 18px 36px rgba(30, 159, 217, 0.5), 0 0 0 4px rgba(253, 253, 253, 0.95);
}

/* === BLOC BODY — contenu textuel sous la photo === */
.service-body {
    padding: 1.5rem 1.5rem 1.75rem;
    background: var(--paper);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* === Variantes === */
.service-accent .service-icon {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}
.service-accent:hover .service-icon {
    box-shadow: 0 14px 30px rgba(230, 57, 70, 0.4), 0 0 0 4px var(--paper);
}
.service-accent {
    border-color: rgba(230, 57, 70, 0.2);
}
.service-accent:hover {
    border-color: rgba(230, 57, 70, 0.4);
    box-shadow: var(--shadow-lg), var(--shadow-red);
}
.service-accent .service-body {
    background: linear-gradient(180deg, var(--paper) 0%, var(--red-soft) 100%);
}

.service-feature {
    border-color: rgba(30, 159, 217, 0.25);
}
.service-feature .service-body {
    background: linear-gradient(180deg, var(--paper) 0%, var(--blue-soft) 100%);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.service-card > p {
    color: var(--ink-60);
    line-height: 1.6;
    font-size: 0.97rem;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--ink-10);
}
.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--ink-80);
}
.service-features li::before {
    content: '✓';
    color: var(--blue);
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.5;
}
.service-accent .service-features li::before { color: var(--red); }

.service-urgent {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(230, 57, 70, 0.2);
}

.service-badge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    z-index: 2;
    padding: 0.32rem 0.7rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 16px rgba(11, 21, 36, 0.3);
    border: 1px solid rgba(253, 253, 253, 0.2);
}

.services-cta {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--blue-soft) 0%, var(--paper-alt) 100%);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(30, 159, 217, 0.3);
}
.services-cta p {
    font-size: 1.08rem;
    color: var(--ink-80);
    margin-bottom: 1.125rem;
    font-weight: 500;
}

/* ==========================================================================
   ZONE D'INTERVENTION
   ========================================================================== */

.zone {
    background: linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
}

.zone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.zone-text h2 {
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--ink);
}
.zone-text h2 em {
    font-style: normal;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.1em;
    color: var(--blue);
}
.zone-text p {
    font-size: 1.05rem;
    color: var(--ink-60);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.zone-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.zone-stat {
    text-align: center;
}
.zone-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.zone-stat span {
    font-size: 0.82rem;
    color: var(--ink-60);
    line-height: 1.3;
}

.zone-map {
    position: relative;
}
.zone-map-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-10);
}
.zone-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.9) contrast(1.05);
}
.zone-pin {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
}
.zone-pin-dot {
    width: 20px; height: 20px;
    background: var(--red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(230, 57, 70, 0.2);
}
.zone-pin-pulse {
    position: absolute;
    top: -2px; left: -2px;
    width: 24px; height: 24px;
    border: 2px solid var(--red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: pinPulse 2s var(--ease) infinite;
}
@keyframes pinPulse {
    0% { transform: rotate(-45deg) scale(1); opacity: 1; }
    100% { transform: rotate(-45deg) scale(2.2); opacity: 0; }
}

.communes-head {
    margin-bottom: 1.75rem;
}
.communes-head h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.communes-head p {
    font-size: 1rem;
    color: var(--ink-60);
    line-height: 1.5;
}

/* 3 fiches secteurs — plus lisible que 28 cards */
.sectors-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sector-card {
    padding: 1.5rem 1.75rem;
    background: var(--paper);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius-lg);
    transition: all 400ms var(--ease);
    position: relative;
    overflow: hidden;
}
.sector-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 159, 217, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 400ms var(--ease);
    pointer-events: none;
}
.sector-card:hover {
    border-color: rgba(30, 159, 217, 0.3);
    box-shadow: var(--shadow);
    transform: translateX(3px);
}
.sector-card:hover::before { opacity: 1; }

.sector-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--ink-10);
}

.sector-num {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: 0.1em;
    background: var(--blue-soft);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(30, 159, 217, 0.2);
}
.sector-num-red {
    color: var(--red-dark);
    background: var(--red-soft);
    border-color: rgba(230, 57, 70, 0.2);
}

.sector-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.sector-head strong {
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.sector-head em {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--ink-60);
    font-weight: 500;
}

.sector-icon {
    color: var(--ink-40);
    transition: all 400ms var(--ease);
}
.sector-card:hover .sector-icon {
    color: var(--blue);
    transform: rotate(-8deg) scale(1.1);
}

.sector-communes {
    font-size: 0.98rem;
    line-height: 1.9;
    color: var(--ink-80);
    font-weight: 500;
    letter-spacing: -0.005em;
    word-spacing: 0.05em;
}
.sector-communes .commune-primary {
    font-weight: 700;
    color: var(--blue-dark);
    position: relative;
    padding: 0 0.2rem;
}
.sector-communes .commune-primary::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    border-radius: 2px;
}
.sector-communes .commune-highlight {
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--red);
    padding-bottom: 1px;
}

.communes-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.94rem;
    color: var(--ink-80);
    padding: 1.1rem 1.35rem;
    background: linear-gradient(135deg, var(--blue-soft), var(--paper-alt));
    border-radius: var(--radius);
    border-left: 3px solid var(--blue);
    line-height: 1.55;
}
.communes-note svg {
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}
.communes-note strong {
    color: var(--ink);
    font-weight: 700;
}
.communes-note a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(230, 57, 70, 0.3);
    transition: border-color var(--t-fast) var(--ease);
}
.communes-note a:hover { border-bottom-color: var(--red); }

@media (max-width: 640px) {
    .sector-card { padding: 1.25rem; }
    .sector-head {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }
    .sector-icon { display: none; }
    .sector-communes { font-size: 0.92rem; line-height: 1.85; }
}

/* ==========================================================================
   AVIS — MARQUEE
   ========================================================================== */

.avis {
    background: var(--paper);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

.avis-score {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--paper-alt);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.avis-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 1.25rem;
    line-height: 1;
}
.avis-stars.small { font-size: 0.88rem; gap: 1px; }
.star {
    color: var(--ink-20);
    position: relative;
    display: inline-block;
}
.star.full { color: #F59E0B; }
.star.half {
    color: var(--ink-20);
    background: linear-gradient(90deg, #F59E0B 50%, transparent 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.avis-score-text {
    font-size: 0.95rem;
    color: var(--ink-80);
}
.avis-score-text strong {
    color: var(--ink);
    font-weight: 700;
    font-family: var(--font-display);
}

.marquee-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0 0.5rem;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.marquee-wrapper::-webkit-scrollbar { display: none; }
.marquee-wrapper.is-grabbing { cursor: grabbing; }

.marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    will-change: scroll-position;
}

.avis-card {
    width: 360px;
    flex-shrink: 0;
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--t) var(--ease);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.avis-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 159, 217, 0.3);
}

.avis-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}
.avis-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-xs);
}
.avis-author {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.avis-author strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}
.avis-author span {
    font-size: 0.78rem;
    color: var(--ink-60);
    margin-top: 2px;
}

.avis-card p {
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--ink-80);
    flex: 1;
}

.avis-source {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-60);
    padding: 0.35rem 0.75rem;
    background: var(--paper-alt);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius-full);
    align-self: flex-start;
}
.avis-source svg { color: #4285F4; }

.avis-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ==========================================================================
   À PROPOS
   ========================================================================== */

.about {
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(30, 159, 217, 0.08), transparent 70%);
    pointer-events: none;
}
.about::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.07), transparent 70%);
    pointer-events: none;
}

.about-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}
.about-text h2 em {
    font-style: normal;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.1em;
    color: var(--blue);
}

.about-lead {
    font-size: 1.2rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.about-text > p {
    color: var(--ink-60);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.about-text > p strong {
    color: var(--ink);
    font-weight: 600;
}

.about-values {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
.value {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius);
    transition: all var(--t) var(--ease);
}
.value:hover {
    transform: translateX(4px);
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
}
.value svg {
    color: var(--blue);
    margin-top: 2px;
}
.value:nth-child(2) svg { color: var(--red); }
.value div { display: flex; flex-direction: column; gap: 3px; }
.value strong {
    font-size: 0.98rem;
    color: var(--ink);
    font-weight: 700;
}
.value span {
    font-size: 0.88rem;
    color: var(--ink-60);
    line-height: 1.5;
}

.about-card {
    background: var(--ink);
    color: var(--paper);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 110px;
    overflow: hidden;
    isolation: isolate;
}
.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(30, 159, 217, 0.2), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(230, 57, 70, 0.15), transparent 50%);
    z-index: -1;
}

.about-card-head { margin-bottom: 1.5rem; }
.about-card .eyebrow {
    color: var(--blue-lighter);
    padding-left: 0;
    margin-bottom: 0.75rem;
}
.about-card .eyebrow::before { display: none; }
.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--paper);
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(30, 159, 217, 0.18), rgba(230, 57, 70, 0.12));
    border: 1px solid rgba(30, 159, 217, 0.32);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(11, 21, 36, 0.25);
}
.about-highlight-num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--blue-lighter);
    letter-spacing: -0.04em;
    text-shadow: 0 2px 12px rgba(30, 159, 217, 0.35);
}
.about-highlight-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.about-highlight-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--paper);
    line-height: 1.2;
}
.about-highlight-text span {
    font-size: 0.78rem;
    color: rgba(253, 253, 253, 0.7);
    line-height: 1.35;
}

.about-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem 1.25rem;
    padding-block: 1.25rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(253, 253, 253, 0.1);
    border-bottom: 1px solid rgba(253, 253, 253, 0.1);
}
.about-details dt {
    font-size: 0.82rem;
    color: rgba(253, 253, 253, 0.6);
    font-weight: 500;
}
.about-details dd {
    font-size: 0.88rem;
    color: var(--paper);
    font-weight: 500;
    text-align: right;
}

/* ==========================================================================
   GALERIE
   ========================================================================== */

.gallery {
    background: var(--paper);
}

/* ==========================================================================
   FEATURED — Avant/Après tableau (impact maximum, premier élément)
   ========================================================================== */
.chantier-featured {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--ink-90);
    aspect-ratio: 16 / 9;
    max-height: 540px;
    box-shadow: 0 12px 36px rgba(11, 21, 36, 0.18);
    isolation: isolate;
}
.chantier-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 21, 36, 0.85) 60%, rgba(11, 21, 36, 0.95) 100%);
    color: var(--paper);
    pointer-events: none;
}
.chantier-featured-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue-lighter);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}
.chantier-featured-overlay h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--paper);
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
    max-width: 720px;
}
.chantier-featured-overlay p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(253, 253, 253, 0.78);
    max-width: 720px;
}
@media (max-width: 640px) {
    .chantier-featured { aspect-ratio: 4/5; max-height: none; }
    .chantier-featured-overlay { padding: 2rem 1.25rem 1.25rem; }
    .chantier-featured-overlay p { display: none; }
}

/* ==========================================================================
   RUBAN CHANTIERS — Section sombre full-width, scroll CSS infini
   Inspiré du composant image-auto-slider (translateX -50% 20s linear)
   ========================================================================== */
.chantiers-section {
    position: relative;
    width: 100%;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
    margin: 2rem 0 2.5rem;
}
.chantiers-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(30, 159, 217, 0.12), transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(230, 57, 70, 0.08), transparent 55%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-90) 50%, var(--ink) 100%);
    z-index: 0;
}
.chantiers-section .chantiers-section-head {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--paper);
    margin-bottom: 2rem;
}
.chantiers-section .chantiers-section-head .eyebrow {
    color: var(--blue-lighter);
}
.chantiers-section .chantiers-section-head h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--paper);
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}
.chantiers-section .chantiers-section-head p {
    font-size: 0.95rem;
    color: rgba(253, 253, 253, 0.7);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Conteneur du ruban avec mask edges */
.chantiers-ribbon-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

/* Le ruban lui-même : flex horizontal, animation CSS pure 20s linear */
.chantiers-ribbon {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: chantiersScroll 30s linear infinite;
    will-change: transform;
}
.chantiers-ribbon-wrapper:hover .chantiers-ribbon {
    animation-play-state: paused;
}

@keyframes chantiersScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Tile = photo carrée cliquable */
.chantier-tile {
    flex-shrink: 0;
    width: clamp(192px, 24vw, 320px);
    height: clamp(192px, 24vw, 320px);
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    padding: 0;
    border: none;
    background: var(--ink-90);
    transition: transform 300ms var(--ease), filter 300ms var(--ease);
}
.chantier-tile picture { display: block; width: 100%; height: 100%; }
.chantier-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.chantier-tile:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}
.chantier-tile:focus-visible {
    outline: 3px solid var(--blue-lighter);
    outline-offset: 4px;
}

/* Bottom gradient overlay (comme le composant React) */
.chantiers-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 96px;
    background: linear-gradient(to top, var(--ink), transparent);
    z-index: 3;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .chantiers-ribbon { animation: none; }
}

/* ==========================================================================
   MODALE détail chantier
   ========================================================================== */
.chantier-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    animation: modalFadeIn 250ms var(--ease);
}
.chantier-modal[hidden] { display: none; }

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chantier-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 21, 36, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.chantier-modal-content {
    position: relative;
    width: min(900px, 100%);
    max-height: calc(100vh - 3rem);
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11, 21, 36, 0.4);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    animation: modalSlideUp 350ms var(--ease);
}
@media (max-width: 740px) {
    .chantier-modal-content {
        grid-template-columns: 1fr;
        max-height: calc(100dvh - 1.5rem);
        overflow-y: auto;
    }
}

.chantier-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: rgba(253, 253, 253, 0.95);
    border: 1px solid var(--ink-10);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    box-shadow: 0 4px 12px rgba(11, 21, 36, 0.2);
}
.chantier-modal-close:hover {
    background: var(--paper);
    transform: scale(1.08);
    color: var(--red-dark);
}
.chantier-modal-close:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Photos slider dans la modale */
.chantier-modal-photos {
    position: relative;
    background: var(--ink-90);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
@media (max-width: 740px) {
    .chantier-modal-photos { aspect-ratio: 4/3; }
}
.chantier-modal-photos picture,
.chantier-modal-photos img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chantier-modal-photos picture {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 350ms var(--ease);
}
.chantier-modal-photos picture[data-active] { opacity: 1; }
.chantier-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: rgba(253, 253, 253, 0.92);
    border: none;
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(11, 21, 36, 0.25);
    transition: transform var(--t-fast) var(--ease);
}
.chantier-modal-nav:hover { transform: translateY(-50%) scale(1.1); }
.chantier-modal-nav-prev { left: 0.85rem; }
.chantier-modal-nav-next { right: 0.85rem; }
.chantier-modal-photos-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: rgba(11, 21, 36, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}
.chantier-modal-photos-dots .dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    background: rgba(253, 253, 253, 0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.chantier-modal-photos-dots .dot.active {
    background: var(--paper);
    width: 22px;
    border-radius: 4px;
}

.chantier-modal-body {
    padding: 2rem 1.85rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.chantier-modal-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.chantier-modal-body h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 0.85rem;
}
.chantier-modal-body p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--ink-80);
    margin-bottom: 1.25rem;
}

/* Désactive scroll du body quand modale ouverte */
body.chantier-modal-open { overflow: hidden; }

/* === BEFORE/AFTER SLIDER === */
.chantier-ba {
    position: absolute;
    inset: 0;
    user-select: none;
    -webkit-user-select: none;
    cursor: ew-resize;
    --ba-position: 50%;
}
.chantier-ba-img {
    position: absolute;
    inset: 0;
    display: block;
}
.chantier-ba-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.chantier-ba-after { z-index: 1; }
.chantier-ba-clip {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: var(--ba-position);
    overflow: hidden;
    will-change: width;
}
.chantier-ba-clip .chantier-ba-img {
    width: 100vw;
    max-width: 1400px;
}
.chantier-featured .chantier-ba-clip .chantier-ba-img {
    width: 100%;
    height: 100%;
}
/* La photo dans le clip occupe la largeur complète de la carte, pas du clip */
.chantier-ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.chantier-featured .chantier-ba-clip {
    height: 100%;
}

.chantier-ba-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 5;
    opacity: 0;
    cursor: ew-resize;
}
.chantier-ba-handle {
    position: absolute;
    top: 50%;
    left: var(--ba-position);
    transform: translate(-50%, -50%);
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(11, 21, 36, 0.25), 0 0 0 4px rgba(30, 159, 217, 0.4);
    pointer-events: none;
    transition: transform 200ms var(--ease);
}
.chantier-ba-handle::before,
.chantier-ba-handle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: var(--blue);
    box-shadow: 0 0 12px rgba(30, 159, 217, 0.5);
}
.chantier-ba-handle::before { top: -100vh; height: 100vh; }
.chantier-ba-handle::after { top: 100%; height: 100vh; }
.chantier-ba-slider:hover ~ .chantier-ba-handle,
.chantier-ba-slider:active ~ .chantier-ba-handle { transform: translate(-50%, -50%) scale(1.1); }

.chantier-ba-label {
    position: absolute;
    top: 1rem;
    z-index: 3;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}
.chantier-ba-label-before {
    left: 1rem;
    background: rgba(230, 57, 70, 0.9);
    color: #fff;
    border: 1px solid rgba(253, 253, 253, 0.2);
}
.chantier-ba-label-after {
    right: 1rem;
    background: rgba(22, 163, 74, 0.9);
    color: #fff;
    border: 1px solid rgba(253, 253, 253, 0.2);
}

/* === Tech list (utilisée dans la modale) === */
.chantier-tech {
    list-style: none;
    padding: 0.95rem 0 0;
    margin: 0;
    border-top: 1px dashed var(--ink-10);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.chantier-tech li {
    font-size: 0.86rem;
    color: var(--ink-80);
    padding-left: 1.35rem;
    position: relative;
    line-height: 1.5;
}
.chantier-tech li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

/* === CTA fin de galerie === */
.gallery-cta {
    text-align: center;
    padding: 1.85rem 2rem;
    background: linear-gradient(135deg, var(--blue-soft) 0%, var(--paper-alt) 100%);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(30, 159, 217, 0.3);
}
.gallery-cta p {
    font-size: 1.05rem;
    color: var(--ink-80);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
    background: var(--paper-alt);
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--paper);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--t) var(--ease);
}
.faq-item:hover {
    border-color: rgba(30, 159, 217, 0.3);
    box-shadow: var(--shadow-sm);
}
.faq-item[open] {
    border-color: var(--blue);
    box-shadow: var(--shadow);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    transition: all var(--t-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-dark); }
.faq-item summary svg {
    color: var(--blue);
    flex-shrink: 0;
    transition: transform var(--t) var(--ease);
}
.faq-item[open] summary svg { transform: rotate(180deg); }

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--ink-60);
    line-height: 1.65;
    font-size: 0.96rem;
}
.faq-item p a {
    color: var(--red);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

/* ==========================================================================
   DEVIS CTA
   ========================================================================== */

.devis {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}
.devis::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(30, 159, 217, 0.18), transparent 45%),
        radial-gradient(ellipse at bottom right, rgba(230, 57, 70, 0.15), transparent 45%);
    pointer-events: none;
}

.devis-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.devis-text h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--paper);
    margin-bottom: 1.25rem;
}
.devis-text h2 em {
    font-style: normal;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.1em;
    color: var(--red-lighter);
}
.devis-text > p {
    color: rgba(253, 253, 253, 0.75);
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.devis-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === CONTACTS DEVIS — Icônes équilibrées & attractives === */
.devis-contact {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: rgba(253, 253, 253, 0.04);
    border: 1px solid rgba(253, 253, 253, 0.1);
    border-radius: var(--radius);
    color: var(--paper);
    transition: all 450ms var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.devis-contact:not(.static)::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 35%, rgba(253, 253, 253, 0.05) 100%);
    opacity: 0;
    transition: opacity 450ms var(--ease);
    pointer-events: none;
}
.devis-contact:not(.static):hover::before { opacity: 1; }
.devis-contact:not(.static):hover {
    transform: translateY(-2px);
    border-color: rgba(253, 253, 253, 0.22);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
}

/* === Icône : 48×48 harmonisée pour toutes === */
.devis-contact-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    line-height: 0;
    box-shadow:
        0 8px 20px -8px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(253, 253, 253, 0.22);
    transition: all 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Forçage du centrage parfait — élimine les décalages baseline inline */
.devis-contact-icon > svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Compensation perceptuelle pour les icônes asymétriques (pin, téléphone) */
.devis-contact:nth-child(1) .devis-contact-icon > svg { transform: translateY(0.5px); }
.devis-contact.static .devis-contact-icon > svg { transform: translateY(-0.5px); }

/* Anneau glow thématique au hover */
.devis-contact-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px solid currentColor;
    opacity: 0;
    transition: all 400ms var(--ease);
    pointer-events: none;
}
.devis-contact:not(.static):hover .devis-contact-icon {
    transform: scale(1.08) rotate(-5deg);
}
.devis-contact:not(.static):hover .devis-contact-icon::after {
    opacity: 0.35;
    inset: -7px;
}

/* Variantes par type */
/* 1. Téléphone — rouge urgence */
.devis-contact:nth-child(1) .devis-contact-icon {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}
.devis-contact:nth-child(1):hover {
    border-color: rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.08);
}
.devis-contact:nth-child(1):hover .devis-contact-icon::after {
    color: var(--red-lighter);
}

/* 2. WhatsApp — vert officiel */
.devis-contact-whatsapp .devis-contact-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}
.devis-contact-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.45) !important;
    background: rgba(37, 211, 102, 0.08) !important;
}
.devis-contact-whatsapp:hover .devis-contact-icon::after {
    color: #25D366;
}

/* 3. Email — bleu marque */
.devis-contact:not(.static):not(.devis-contact-whatsapp):not(:nth-child(1)) .devis-contact-icon {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.devis-contact:not(.static):not(.devis-contact-whatsapp):not(:nth-child(1)):hover {
    border-color: rgba(30, 159, 217, 0.45);
    background: rgba(30, 159, 217, 0.08);
}
.devis-contact:not(.static):not(.devis-contact-whatsapp):not(:nth-child(1)):hover .devis-contact-icon::after {
    color: var(--blue-lighter);
}

/* 4. Siège — gris sombre (statique, pas d'hover) */
.devis-contact.static {
    cursor: default;
    opacity: 0.92;
}
.devis-contact.static .devis-contact-icon {
    background: linear-gradient(135deg, var(--ink-60) 0%, var(--ink-80) 100%);
    box-shadow:
        0 6px 16px -6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(253, 253, 253, 0.15);
}

/* Chevron flèche droite — indique cliquable */
.devis-contact:not(.static)::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    transition: all 400ms var(--ease);
    align-self: center;
}
.devis-contact:not(.static):hover::after {
    opacity: 0.9;
    transform: translateX(4px);
}

/* Texte contact — hiérarchie claire */
.devis-contact > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}
.devis-contact > div span {
    font-size: 0.68rem;
    color: rgba(253, 253, 253, 0.5);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}
.devis-contact > div strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--paper);
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .devis-contact { padding: 0.95rem 1rem; gap: 0.85rem; }
    .devis-contact-icon { width: 44px; height: 44px; border-radius: 12px; }
    .devis-contact > div strong { font-size: 0.92rem; }
    .devis-contact:not(.static)::after { width: 16px; height: 16px; }
}

/* FORMULAIRE */
.devis-form {
    background: var(--paper);
    color: var(--ink);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.devis-form h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}
.form-row.single { grid-template-columns: 1fr; }

.devis-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-80);
    letter-spacing: 0.01em;
}
.devis-form label.block { grid-column: 1 / -1; }

.devis-form input,
.devis-form select,
.devis-form textarea {
    padding: 0.75rem 0.95rem;
    border: 1.5px solid var(--ink-10);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 400;
    background: var(--paper-alt);
    transition: all var(--t-fast) var(--ease);
    font-family: inherit;
    color: var(--ink);
    width: 100%;
}
.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-color: var(--blue);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(30, 159, 217, 0.18);
}
.devis-form input:focus:not(:focus-visible),
.devis-form select:focus:not(:focus-visible),
.devis-form textarea:focus:not(:focus-visible) {
    outline: none;
}
.devis-form textarea { resize: vertical; min-height: 96px; font-family: inherit; }
.devis-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234F5A6E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 2.5rem;
}

.form-consent {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 0.625rem !important;
    align-items: start;
    font-size: 0.83rem !important;
    font-weight: 400 !important;
    color: var(--ink-60) !important;
    line-height: 1.45;
    cursor: pointer;
}
.form-consent input[type="checkbox"] {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--red);
    cursor: pointer;
}

.form-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-60);
    margin-top: 0.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--ink-90);
    color: rgba(253, 253, 253, 0.75);
    position: relative;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 3rem 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand-inner .brand-mark {
    width: 40px; height: 40px;
}
.footer-brand-inner .brand-text strong {
    color: var(--blue-lighter);
}
.footer-brand-inner .brand-text .brand-sep {
    color: var(--red-lighter);
}
.footer-brand-inner .brand-text em {
    color: rgba(253, 253, 253, 0.55);
}

.footer-brand > p {
    margin-top: 1rem;
    font-size: 0.93rem;
    line-height: 1.6;
    color: rgba(253, 253, 253, 0.65);
    max-width: 340px;
}

.footer-col h4 {
    color: var(--paper);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-col li,
.footer-col a {
    font-size: 0.88rem;
    color: rgba(253, 253, 253, 0.7);
    line-height: 1.5;
    transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--blue-lighter); }

/* CTA Google Business — fiche / itinéraire / avis */
.footer-gmb-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.7rem 0.95rem;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(66, 133, 244, 0.05));
    border: 1px solid rgba(66, 133, 244, 0.4);
    border-radius: var(--radius);
    color: rgba(253, 253, 253, 0.9) !important;
    text-decoration: none;
    transition: all var(--t-fast) var(--ease);
    line-height: 1.2;
}
.footer-gmb-link svg {
    color: #4285F4;
    flex-shrink: 0;
}
.footer-gmb-link strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--paper);
}
.footer-gmb-link em {
    display: block;
    font-size: 0.74rem;
    font-style: normal;
    color: rgba(253, 253, 253, 0.55);
    margin-top: 0.1rem;
}
.footer-gmb-link:hover {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.22), rgba(66, 133, 244, 0.08));
    border-color: rgba(66, 133, 244, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(66, 133, 244, 0.18);
}

/* === BLOC AGENCE AXYOS === */
.footer-agency {
    padding: 0 0 2.5rem;
    border-top: 1px solid rgba(253, 253, 253, 0.06);
    padding-top: 2.5rem;
    margin-top: 1rem;
}

.agency-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: center;
    padding: 1.85rem 2rem;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(30, 159, 217, 0.12), transparent 55%),
        radial-gradient(ellipse at 20% 100%, rgba(230, 57, 70, 0.08), transparent 55%),
        linear-gradient(135deg, rgba(253, 253, 253, 0.04), rgba(253, 253, 253, 0.015));
    border: 1px solid rgba(253, 253, 253, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(253, 253, 253, 0.06);
}

.agency-intro {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.agency-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(253, 253, 253, 0.6);
    line-height: 1;
}
.agency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
    box-shadow: 0 0 12px rgba(30, 159, 217, 0.6);
}

.agency-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.agency-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    fill: var(--paper);
    filter:
        drop-shadow(0 0 12px rgba(30, 159, 217, 0.35))
        drop-shadow(0 0 18px rgba(230, 57, 70, 0.2));
    transition: filter 500ms var(--ease);
    overflow: visible;
    animation: agencyLogoGlow 4s ease-in-out infinite;
}

/* Rotation continue du groupe de blades */
.agency-logo-spin {
    transform-origin: 100px 115px;
    transform-box: fill-box;
    animation: agencyLogoSpin 14s linear infinite;
}

@keyframes agencyLogoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes agencyLogoGlow {
    0%, 100% {
        filter:
            drop-shadow(0 0 12px rgba(30, 159, 217, 0.35))
            drop-shadow(0 0 18px rgba(230, 57, 70, 0.2));
    }
    50% {
        filter:
            drop-shadow(0 0 20px rgba(30, 159, 217, 0.55))
            drop-shadow(0 0 28px rgba(230, 57, 70, 0.4));
    }
}

.agency-card:hover .agency-logo-spin {
    animation-duration: 6s;
}
.agency-card:hover .agency-logo {
    filter:
        drop-shadow(0 0 24px rgba(30, 159, 217, 0.7))
        drop-shadow(0 0 36px rgba(230, 57, 70, 0.5));
}

@media (prefers-reduced-motion: reduce) {
    .agency-logo-spin { animation: none; }
    .agency-logo { animation: none; }
}
.agency-brand > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
    min-width: 0;
}
.agency-brand strong {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--paper);
}
.agency-brand em {
    font-style: normal;
    font-size: 0.82rem;
    color: rgba(253, 253, 253, 0.55);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.agency-tagline {
    font-size: 0.93rem;
    color: rgba(253, 253, 253, 0.72);
    line-height: 1.55;
    max-width: 520px;
    margin: 0;
}

.agency-actions {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    align-items: flex-end;
    text-align: right;
}

.agency-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    box-shadow:
        0 14px 36px -10px rgba(30, 159, 217, 0.5),
        inset 0 1px 0 rgba(253, 253, 253, 0.15);
    transition: all 450ms var(--ease);
    overflow: hidden;
}
.agency-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(253, 253, 253, 0.2), transparent);
    transition: left 800ms var(--ease);
}
.agency-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 22px 48px -8px rgba(30, 159, 217, 0.7),
        inset 0 1px 0 rgba(253, 253, 253, 0.25);
}
.agency-cta:hover::before { left: 100%; }
.agency-cta svg { transition: transform 400ms var(--ease); }
.agency-cta:hover svg { transform: translateX(4px); }

.agency-cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.2;
}
.agency-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.05em;
}
.agency-cta-text strong {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.005em;
}

.agency-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-end;
}
.agency-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: rgba(253, 253, 253, 0.6);
    transition: color var(--t-fast) var(--ease);
}
.agency-contact:not(.static):hover {
    color: var(--blue-lighter);
}
.agency-contact.static {
    cursor: default;
}
.agency-contact svg {
    opacity: 0.7;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .agency-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1.25rem;
    }
    .agency-actions { align-items: stretch; text-align: left; }
    .agency-cta { justify-content: center; }
    .agency-contacts { align-items: flex-start; }
}

.footer-base {
    border-top: 1px solid rgba(253, 253, 253, 0.08);
    padding: 1.5rem 0;
}
.footer-base-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(253, 253, 253, 0.55);
}
.footer-legal a {
    color: rgba(253, 253, 253, 0.75);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}
.footer-legal a:hover { color: var(--blue-lighter); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */

.reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .zone-grid, .about-grid, .devis-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-card { position: relative; top: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .burger { display: block; }
    .header-phone span { display: none; }
    .header-phone {
        background: var(--blue-soft);
        padding: 0.6rem;
        border-radius: 50%;
    }
    .header-cta { display: none; }

    body.nav-open .main-nav {
        display: flex;
        position: fixed;
        top: 70px; left: 0; right: 0;
        bottom: 0;
        background: var(--paper);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 2rem var(--gutter);
        z-index: 99;
    }
    body.nav-open .main-nav a {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
    }

    .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
    .hero-cta { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
    .hero-cta .btn { justify-content: center; }

    .services-grid { grid-template-columns: 1fr; }
    .zone-stats { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }

    .devis-form { padding: 1.5rem; }
    .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
    .brand-text em { display: none; }
    .section-head p { font-size: 1rem; }
    .communes-list { grid-template-columns: 1fr; }
    .avis-card { width: 300px; }
}

/* ==========================================================================
   ACCESSIBILITY — FOCUS
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--red);
    color: #fff;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON — omniprésent bas droite
   ========================================================================== */

.float-whatsapp {
    position: fixed;
    bottom: clamp(1.25rem, 3vw, 2rem);
    right: clamp(1.25rem, 3vw, 2rem);
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-decoration: none;
    box-shadow:
        0 14px 32px -8px rgba(37, 211, 102, 0.6),
        0 4px 12px -4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(253, 253, 253, 0.25);
    transition: all 400ms var(--ease);
    animation: floatIn 800ms var(--ease) 1.5s both;
}
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.6);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Anneau pulsant pour attirer l'œil */
.float-whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.7;
    animation: floatPulse 2.2s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes floatPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

.float-whatsapp-icon {
    display: grid;
    place-items: center;
    transition: transform 400ms var(--ease);
}

.float-whatsapp:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow:
        0 22px 50px -10px rgba(37, 211, 102, 0.8),
        0 6px 16px -4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(253, 253, 253, 0.35);
}
.float-whatsapp:hover .float-whatsapp-icon {
    transform: rotate(-12deg) scale(1.1);
}

/* Tooltip qui apparaît au hover */
.float-whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    white-space: nowrap;
    font-family: var(--font-sans);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: all 350ms var(--ease);
}
.float-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--ink);
}
.float-whatsapp-tooltip strong {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--paper);
}
.float-whatsapp-tooltip span {
    font-size: 0.78rem;
    color: rgba(253, 253, 253, 0.7);
    font-weight: 400;
    letter-spacing: 0.005em;
}

.float-whatsapp:hover .float-whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Mobile : tooltip caché, bouton plus discret mais bien visible */
@media (max-width: 768px) {
    .float-whatsapp {
        width: 56px;
        height: 56px;
        bottom: 1.15rem;
        right: 1.15rem;
    }
    .float-whatsapp-tooltip { display: none; }
}

/* Cacher le header-whatsapp sur petit mobile (floating suffit) */
@media (max-width: 520px) {
    .header-whatsapp { display: none; }
}

/* Respecter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .float-whatsapp,
    .float-whatsapp-pulse {
        animation: none !important;
    }
}

/* ==========================================================================
   LEGAL — Mentions légales + RGPD (accordéons compacts, pliés par défaut)
   ========================================================================== */

.legal {
    background: var(--paper-alt);
    padding: 1.75rem 0;
    border-top: 1px solid var(--ink-10);
}

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 900px;
}

.legal-details {
    background: var(--paper);
    border: 1px solid var(--ink-10);
    border-radius: var(--radius);
    transition: border-color var(--t-fast) var(--ease);
    scroll-margin-top: 110px;
    overflow: hidden;
}
.legal-details[open] {
    border-color: rgba(30, 159, 217, 0.35);
    box-shadow: 0 6px 18px rgba(11, 21, 36, 0.06);
}

.legal-details summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--t-fast) var(--ease);
}
.legal-details summary::-webkit-details-marker { display: none; }
.legal-details summary::marker { display: none; }
.legal-details summary:hover { background: var(--paper-alt); }
.legal-details summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.legal-summary-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.legal-summary-hint {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--ink-60);
    font-style: italic;
}
.legal-details[open] .legal-summary-hint { display: none; }

.legal-chevron {
    color: var(--ink-60);
    transition: transform 250ms var(--ease);
    flex-shrink: 0;
}
.legal-details[open] .legal-chevron { transform: rotate(180deg); color: var(--blue); }

.legal-content {
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid var(--ink-10);
    animation: legalSlide 250ms var(--ease);
}
@keyframes legalSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-content h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.1rem 0 0.4rem;
    letter-spacing: -0.01em;
}
.legal-content h3:first-child { margin-top: 0; }

.legal-content p,
.legal-content dd,
.legal-content li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ink-80);
}

.legal-content p { margin-bottom: 0.6rem; }

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0.85rem;
}
.legal-content ul li {
    padding: 0.2rem 0 0.2rem 1rem;
    position: relative;
}
.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
}

.legal-content dl {
    display: grid;
    gap: 0.5rem 1rem;
}
.legal-content dt {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-60);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.65rem;
}
.legal-content dt:first-child { margin-top: 0; }
.legal-content dd { margin: 0; }

.legal-content a {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--t-fast) var(--ease);
}
.legal-content a:hover { color: var(--blue); }

.legal-update {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--ink-10);
    font-size: 0.74rem;
    color: var(--ink-60);
    font-style: italic;
}

@media (max-width: 640px) {
    .legal-summary-hint { display: none; }
}
