/*css vitry sur seine*/
/* ====== THEME / TOKENS ====== */
.sf-theme {
    --ink: #2A3440;
    --bg: #F7F3EA;
    --primary: #0E6E6E;
    --primary-600: #0B5C5C;
    --accent: #00CFC8;
    --warm: #FFC247;
    --urgent: #FF6B6B;
    --muted: #E9E4DA;
    --surface: #FFFFFF;
    --focus: #1C9CA5;
    --radius-s: 12px;
    --radius-m: 16px;
    --radius-l: 24px;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .10);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, .12);
    --container: 1200px;
}

.sf-body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui;
    line-height: 1.6
}

.sf-font-geist,
.sf-font-geist * {
    font-family: 'Geist', ui-sans-serif, system-ui
}

.sf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px
}

@media (min-width:480px) {
    .sf-container {
        padding: 0 20px
    }
}

@media (min-width:768px) {
    .sf-container {
        padding: 0 24px
    }
}

/* ====== HEADER (FIXE) ====== */
.sf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--muted);
}

.sf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0
}

/* === Ajustement du logo texte sur mobile === */
.sf-brand {
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

/* Sur mobile : texte sur 2 lignes */
@media (max-width: 640px) {
    .sf-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* ou center si tu veux centrer le texte */
        line-height: 1.1;
    }

    .sf-brand::first-line {
        font-size: 1em;
    }
}


.sf-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.sf-logo-svg {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm)
}

/* Nav desktop */
.sf-nav {
    display: none;
    gap: 20px
}

.sf-nav-link {
    color: rgba(42, 52, 64, .8);
    font-size: 14px;
    text-decoration: none;
    position: relative
}

.sf-nav-link:hover {
    color: var(--ink)
}

.sf-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease
}

.sf-nav-link:hover::after {
    transform: scaleX(1)
}

/* Burger */
.sf-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--muted);
    background: #fff;
    cursor: pointer
}

.sf-burger-box {
    position: relative;
    width: 20px;
    height: 14px
}

.sf-burger-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .25s ease
}

.sf-burger-line--top {
    top: 0
}

.sf-burger-line--mid {
    top: 6px
}

.sf-burger-line--bot {
    top: 12px
}

.sf-burger--open .sf-burger-line--top {
    transform: translateY(6px) rotate(45deg)
}

.sf-burger--open .sf-burger-line--mid {
    opacity: 0
}

.sf-burger--open .sf-burger-line--bot {
    transform: translateY(-6px) rotate(-45deg)
}

/* Panel mobile */
.sf-nav-panel {
    display: none;
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--muted);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease
}

.sf-nav-panel--open {
    display: block;
    opacity: 1;
    transform: translateY(0)
}

.sf-nav-panel-link {
    display: block;
    padding: 10px 8px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none
}

.sf-nav-panel-link:hover {
    background: var(--muted)
}

/* Helpers show/hide */
.sf-show-mobile {
    display: inline-flex
}

.sf-hide-mobile {
    display: none
}

/* Desktop breakpoint */
@media (min-width:900px) {
    .sf-burger {
        display: none
    }

    .sf-nav {
        display: flex
    }

    .sf-nav-panel {
        display: none !important
    }

    .sf-hide-mobile {
        display: inline-flex
    }

    .sf-show-mobile {
        display: none
    }
}

/* Call button (styles généraux) */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer
}

.sf-btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.sf-btn--primary:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    transform: translateY(-1px)
}

.sf-call-btn {
    gap: 8px;
    position: relative;
    overflow: hidden
}

.sf-call-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: translateX(-100%)
}

.sf-call-btn:hover::before {
    animation: sfShine .8s ease
}

.sf-phone-ic {
    width: 18px;
    height: 18px
}

@keyframes sfShine {
    0% {
        transform: translateX(-100%)
    }

    100% {
        transform: translateX(100%)
    }
}

/* Compensation du header */
.sf-pad-top-header {
    padding-top: var(--header-h, 62px)
}

/* Actif nav */
.sf-nav-link.is-active {
    color: var(--ink)
}

.sf-nav-link.is-active::after {
    transform: scaleX(1)
}

.sf-nav-panel-link.is-active {
    background: var(--muted)
}

/* === RÈGLES SPÉCIFIQUES AU BOUTON D’APPEL ===
   -> Caché par défaut (mobile)
   -> Visible en desktop (≥900px)                                  */
#contact-us {
    display: none !important;
}

/* mobile par défaut */

@media (min-width:900px) {
    #contact-us {
        display: inline-flex !important;
        /* force visible sur desktop */
    }
}

/* Effet d’arrivée discret */
.sf-section-arrive {
    animation: sfSectionArrive .5s ease
}

@keyframes sfSectionArrive {
    from {
        transform: translateY(4px);
        opacity: .96
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

/* Désactiver le scroll-behavior CSS si JS lissé */
html {
    scroll-behavior: auto
}

/* FORCE le masquage du bouton d'appel en mobile (>= spécificité + !important) */
@media (max-width: 899.98px) {

    #contact-us,
    .sf-btn.sf-hide-mobile {
        display: none !important;
    }
}

/* Visible seulement en desktop */
@media (min-width: 900px) {

    #contact-us,
    .sf-btn.sf-hide-mobile {
        display: inline-flex !important;
    }
}



/* ====== HERO v7 ====== */
.sf7-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 40px;
    min-height: clamp(480px, 60vh, 720px)
}

.sf7-bg {
    position: absolute;
    inset: -15% -10% 0 -10%;
    pointer-events: none
}

.sf7-bg::before,
.sf7-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 320px at 8% 0%, rgba(255, 194, 71, .18), transparent 60%),
        radial-gradient(900px 320px at 92% 15%, rgba(0, 207, 200, .18), transparent 60%);
    filter: saturate(105%)
}

.sf7-particles {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.sf7-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 207, 200, .25);
    animation: sf7Drift 12s ease-in-out infinite
}

.sf7-dot--w {
    background: rgba(255, 194, 71, .25)
}

.sf7-dot:nth-child(1) {
    left: 8%;
    top: 18%;
    animation-duration: 14s
}

.sf7-dot:nth-child(2) {
    left: 22%;
    top: 70%;
    animation-duration: 16s
}

.sf7-dot:nth-child(3) {
    left: 78%;
    top: 22%;
    animation-duration: 13s
}

.sf7-dot:nth-child(4) {
    left: 64%;
    top: 68%;
    animation-duration: 17s
}

@keyframes sf7Drift {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-14px)
    }
}

.sf7-grid {
    display: grid;
    gap: 28px;
    align-items: center
}

@media (min-width:980px) {
    .sf7-grid {
        grid-template-columns: 1.05fr 1fr
    }
}

.sf7-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.08;
    font-size: 28px;
    opacity: 0;
    transform: translateY(14px);
    position: relative
}

@media (min-width:560px) {
    .sf7-title {
        font-size: 36px
    }
}

@media (min-width:840px) {
    .sf7-title {
        font-size: 48px
    }
}

.sf7-title strong {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.sf7-sub {
    margin: 14px 0 0;
    font-size: 16px;
    opacity: .95;
    max-width: 70ch;
    opacity: 0;
    transform: translateY(16px)
}

.sf7-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    opacity: 0;
    transform: translateY(18px)
}

.sf7-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s ease, border-color .25s ease
}

.sf7-btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.sf7-btn--primary:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    transform: translateY(-1px)
}

.sf7-btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary)
}

.sf7-btn--outline:hover {
    background: var(--primary);
    color: #fff
}

.sf7-ic {
    width: 18px;
    height: 18px
}

.sf7-media {
    position: relative;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    background: var(--surface);
    min-height: 440px;
    opacity: 0;
    transform: translateY(20px)
}

@media (min-width:600px) {
    .sf7-media {
        min-height: 540px
    }
}

.sf7-picture {
    position: absolute;
    inset: 0
}

.sf7-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.04);
    will-change: transform
}

.sf7-img.ken {
    animation: sf7Ken 18s cubic-bezier(.2, .8, .2, 1) infinite alternate
}

@keyframes sf7Ken {
    0% {
        transform: scale(1.04) translateY(0)
    }

    100% {
        transform: scale(1.12) translateY(-10px)
    }
}

@media (max-width:979.98px) {
    .sf7-media {
        margin: 0 6px
    }
}

.sf7-in {
    animation: sf7Up .7s ease forwards
}

.sf7-in2 {
    animation: sf7Up .7s ease .08s forwards
}

.sf7-in3 {
    animation: sf7Up .7s ease .16s forwards
}

@keyframes sf7Up {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.sf7-focus:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus)
}

/* ====== PREUVES / CHIFFRES ====== */
.sfp-proof {
    position: relative;
    padding: 48px 0;
    margin-top: 0;
    overflow: hidden
}

@media (min-width:992px) {
    .sfp-proof {
        padding: 60px 0
    }
}

.sfp-halo {
    position: absolute;
    inset: -10% -10% 0 -10%;
    pointer-events: none
}

.sfp-halo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 240px at 8% 0%, rgba(255, 194, 71, .16), transparent 60%),
        radial-gradient(720px 240px at 92% 15%, rgba(0, 207, 200, .16), transparent 60%);
    filter: saturate(105%);
    animation: sfpDrift 16s ease-in-out infinite alternate
}

@keyframes sfpDrift {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(14px)
    }
}

.sfp-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 18px
}

.sfp-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-size: 26px
}

@media (min-width:560px) {
    .sfp-title {
        font-size: 34px
    }
}

.sfp-sub {
    margin: 8px auto 0;
    opacity: .9;
    font-size: 16px
}

.sfp-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr
}

@media (min-width:720px) {
    .sfp-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (min-width:1060px) {
    .sfp-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.sfp-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--muted);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px)
}

.sfp-card--in {
    animation: sfpUp .6s ease forwards
}

.sfp-card:nth-child(2).sfp-card--in {
    animation-delay: .06s
}

.sfp-card:nth-child(3).sfp-card--in {
    animation-delay: .12s
}

.sfp-card:nth-child(4).sfp-card--in {
    animation-delay: .18s
}

@keyframes sfpUp {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.sfp-k {
    display: flex;
    align-items: baseline;
    gap: 8px
}

.sfp-k-val {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.01em
}

.sfp-k-unit {
    font-size: 14px;
    opacity: .8
}

.sfp-k-desc {
    margin: 6px 0 0;
    font-size: 14px;
    opacity: .85
}

.sfp-ic {
    width: 22px;
    height: 22px;
    color: var(--primary)
}

.sfp-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.sfp-stars {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle
}

.sfp-star {
    width: 16px;
    height: 16px;
    color: #FFC247
}

.sfp-card:hover {
    transform: translateY(-2px);
    transition: transform .25s ease
}

.sfp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none
}

.sfp-btn:hover {
    background: var(--primary);
    color: #fff
}

.sfp-focus:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus)
}

/* ====== SERVICES ====== */
.s4-font-geist {
    font-family: 'Geist', ui-sans-serif, system-ui;
    font-weight: 900;
}

.s4-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width:480px) {
    .s4-container {
        padding: 0 20px
    }
}

@media (min-width:768px) {
    .s4-container {
        padding: 0 24px
    }
}

.s4-services {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background:
        radial-gradient(1100px 320px at 92% 8%, color-mix(in oklab, var(--bg) 74%, var(--accent) 26%), transparent 65%),
        radial-gradient(900px 280px at 6% 90%, color-mix(in oklab, var(--bg) 76%, var(--warm) 24%), transparent 65%),
        var(--bg);
    color: var(--ink);
}

@media (min-width:992px) {
    .s4-services {
        padding: 88px 0
    }
}

/* Blobs */
.s4-bg {
    position: absolute;
    inset: -14% -10% -8% -10%;
    z-index: 0;
    pointer-events: none
}

.s4-blob {
    position: absolute;
    width: 580px;
    height: 260px;
    border-radius: 999px;
    filter: blur(48px);
    opacity: .22;
    will-change: transform
}

.s4-blob--accent {
    right: 6%;
    top: 6%;
    background: radial-gradient(55% 55% at 50% 50%, var(--accent), transparent 70%);
}

.s4-blob--warm {
    left: 8%;
    bottom: 4%;
    background: radial-gradient(55% 55% at 50% 50%, var(--warm), transparent 70%);
}

/* Header (plus étendu) */
.s4-head {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 28px;
}

.s4-title {
    margin: 0;
    letter-spacing: -.02em;
    line-height: 1.12;
    font-size: 26px;
    color: var(--primary-600);
}

@media (min-width:560px) {
    .s4-title {
        font-size: 26px;
    }
}

@media (min-width:992px) {
    .s4-title {
        font-size: 32px;
    }
}

.s4-sub {
    margin: 14px auto 0;
    font-size: 17px;
    line-height: 1.85;
    opacity: .95;
    max-width: 95ch;
}

/* Grid */
.s4-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr
}

@media (min-width:720px) {
    .s4-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (min-width:1060px) {
    .s4-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

/* Cards */
.s4-card {
    background: var(--surface);
    border: 1px solid var(--muted);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-md);
    padding: 18px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    transform: translateZ(0);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
    will-change: transform;
    perspective: 1000px;
}

.s4-card.is-tilting {
    box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}

.s4-card:hover {
    border-color: color-mix(in oklab, var(--primary) 35%, var(--muted) 65%);
}

/* Icônes — vrais cadres et couleurs revues */
.s4-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: color-mix(in oklab, var(--accent) 8%, #fff 92%);
    border: 2px solid var(--accent);
    color: var(--primary-600);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 24px rgba(0, 0, 0, .08);
}

.s4-card:nth-of-type(1) .s4-icon {
    border-color: var(--primary);
    background: color-mix(in oklab, var(--primary) 10%, #fff 90%);
    color: var(--primary);
}

.s4-card:nth-of-type(2) .s4-icon {
    border-color: var(--accent);
    background: color-mix(in oklab, var(--accent) 12%, #fff 88%);
    color: var(--primary-600);
}

.s4-card:nth-of-type(3) .s4-icon {
    border-color: var(--warm);
    background: color-mix(in oklab, var(--warm) 16%, #fff 84%);
    color: #5d4510;
}

.s4-card:nth-of-type(4) .s4-icon {
    border-color: var(--urgent);
    background: color-mix(in oklab, var(--urgent) 12%, #fff 88%);
    color: #8b2b2b;
}

/* Mat Symbols sizing */
.material-symbols-rounded {
    font-variation-settings: 'FILL'0, 'wght'600, 'GRAD'0, 'opsz'32;
    font-size: 30px;
    line-height: 1;
}

/* Typo corps */
.s4-h3 {
    margin: 2px 0 6px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em
}

.s4-desc {
    margin: 0 0 10px;
    font-size: 14.5px;
    line-height: 1.65;
    opacity: .96
}

/* Listes — puces visibles */
.s4-bullets {
    margin: 0 0 12px 0;
    padding-left: 20px;
    font-size: 14.5px;
    line-height: 1.55;
    list-style: disc;
}

.s4-bullets li {
    margin: 6px 0;
}

/* Chip */
.s4-chip {
    align-self: flex-start;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    border: 2px solid var(--primary);
    background: color-mix(in oklab, var(--accent) 12%, white 88%);
    box-shadow: var(--shadow-sm);
}

.s4-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent 70%);
}

/* Focus / A11y */
.s4-card:focus-within {
    outline: 3px solid color-mix(in oklab, var(--focus) 60%, transparent 40%);
    outline-offset: 2px;
}

#services a:focus-visible, #services button:focus-visible {
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus) 55%, transparent 45%);
    border-radius: 10px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .s4-blob, .s4-card {
        transition: none !important;
        transform: none !important;
    }
}

/* ===== SECTION 5 · Devis express ===== */
/* ===== Styles existants (résumé utile) ===== */
.s5-devis {
    padding: 56px 0;
    color: #fff;
    background:
        radial-gradient(900px 420px at 90% 10%, color-mix(in oklab, var(--accent)45%, var(--primary)55%), transparent 70%),
        radial-gradient(840px 380px at 8% 92%, color-mix(in oklab, var(--primary-600)75%, var(--accent)25%), transparent 72%),
        color-mix(in oklab, var(--primary)85%, var(--accent)15%);
}

.s5-head {
    text-align: center;
    margin-bottom: 28px
}

.s5-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.02em;
    font-size: 32px;
    color: #fff
}

.s5-sub {
    margin: 8px auto 0;
    max-width: 720px;
    opacity: .95;
    color: #f4f8f8
}
.s5-upload-zone {
    text-align: center;
    padding: 1rem;
    border: 2px dashed var(--primary);
    border-radius: 8px;
    background: rgba(14, 110, 110, 0.05);
    transition: all 0.3s ease;
  }
  .s5-upload-zone:hover {
    border-color: var(--accent);
    background: rgba(0, 207, 200, 0.1);
  }
  .s5-upload-status {
    margin-top: 1rem;
    font-size: 0.9rem;
  }
  .s5-upload-status.success {
    color: #16a34a;
    font-weight: 600;
  }
  .s5-upload-status.error {
    color: #dc2626;
  }
  .s5-upload-status.loading {
    color: var(--primary);
  }
  .s5-photo-preview {
    margin-top: 1rem;
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

.s5-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--muted);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-md);
    padding: 18px
}

@media(min-width:768px) {
    .s5-card {
        padding: 22px
    }
}

.s5-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr
}

@media(min-width:768px) {
    .s5-grid {
        grid-template-columns: 1fr 1fr
    }
}

.s5-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px
}

.s5-input, .s5-select, .s5-file {
    width: 90%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--muted);
    background: #fff;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s
}

.s5-input::placeholder {
    color: rgba(42, 52, 64, .55)
}

.s5-input:focus, .s5-select:focus, .s5-file:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent)40%, transparent)
}

.s5-select-wrap {
    grid-column: 1/-1
}

.s5-check {
    display: flex;
    align-items: center;
    gap: 10px
}

.s5-check input {
    accent-color: var(--accent)
}

.s5-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.s5-btn-call {
    border: 2px solid var(--urgent);
    color: #fff;
    background: #d93636;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none
}

.s5-btn-call:hover {
    background: #c22e2e; /* au lieu de #ff5252 */
    border-color: #c22e2e;
}

.s5-msg {
    margin-top: 10px;
    font-size: 14px
}

.s5-msg--ok {
    color: var(--primary-600)
}

.s5-msg--err {
    color: var(--urgent)
}

@media(max-width:479.98px) {
    .s5-actions .sf-btn, .s5-actions .s5-btn-call {
        width: 100%;
        justify-content: center
    }
}

/* ===== Autocomplete (adresse BAN) ===== */
.s5-hint {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px
}

.s5-ac-wrap {
    position: relative
}

.s5-ac-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 6px;
    z-index: 20;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--muted);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    list-style: none;
    padding: 6px;
    max-height: 320px;
    overflow: auto
}

.s5-ac-list[hidden] {
    display: none
}

.s5-ac-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer
}

.s5-ac-item strong {
    font-weight: 800
}

.s5-ac-item small {
    opacity: .8
}

.s5-ac-item .s5-chip {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 2px 8px
}

.s5-ac-item[data-active="true"], .s5-ac-item:hover {
    background: color-mix(in oklab, var(--accent) 13%, white 87%)
}


/* ===== SECTION 6 · Zone d’intervention ===== */
.z6-zones {
    position: relative;
    padding: 56px 0;
    background:
        radial-gradient(1000px 340px at 12% 10%, color-mix(in oklab, var(--accent) 18%, var(--bg) 82%), transparent 64%),
        radial-gradient(1000px 340px at 88% 90%, color-mix(in oklab, var(--warm) 22%, var(--bg) 78%), transparent 64%),
        var(--bg);
    color: var(--ink);
}

.z6-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 18px;
}

.z6-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.02em;
    font-size: 32px;
}

.z6-sub {
    margin: 8px auto 0;
    opacity: .9;
}

/* SEO block */
.z6-seo {
    max-width: 860px;
    margin: 10px auto 22px;
}

.z6-seo p {
    margin: 0 0 12px;
    line-height: 1.75;
}

/* Layout */
.z6-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media(min-width:960px) {
    .z6-grid {
        grid-template-columns: 1.1fr .9fr;
    }
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--muted);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-sm);
}

/* Map */
.z6-map {
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.z6-svg {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.z6-legend {
    font-size: 13px;
    opacity: .8;
    margin-top: 8px;
}

/* List */
.z6-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.z6-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.z6-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--muted);
    background: #fff;
    color: var(--ink);
}

.z6-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus);
    border-color: var(--primary);
}

.z6-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.z6-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    background: #fff;
}

.z6-chip--near {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.z6-note {
    margin-top: 12px;
    font-size: 14px;
    opacity: .9;
}

.z6-link {
    color: var(--urgent);
    font-weight: 700;
    text-decoration: none;
}

.z6-link:hover {
    text-decoration: underline;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .z6-zones {
        background: var(--bg);
    }
}

/* ===== SECTION 6 – styles (sobre, responsive, sans animation) ===== */
.z6-zones {
    padding: 56px 0;
    background:
        radial-gradient(900px 320px at 12% 0%, color-mix(in oklab, var(--accent) 14%, var(--bg) 86%), transparent 62%),
        radial-gradient(900px 320px at 88% 100%, color-mix(in oklab, var(--primary) 10%, var(--bg) 90%), transparent 62%),
        var(--bg);
    color: var(--ink);
}

.z6-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 18px
}

.z6-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.02em;
    font-size: 32px
}

.z6-sub {
    margin: 8px auto 0;
    opacity: .9
}

.z6-seo {
    max-width: 860px;
    margin: 10px auto 22px
}

.z6-seo p {
    margin: 0 0 12px;
    line-height: 1.75
}

.z6-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr
}

@media(min-width:960px) {
    .z6-grid {
        grid-template-columns: 1fr 1fr
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--muted);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-sm);
}

/* Bloc info */
.z6-info {
    padding: 16px
}

.z6-h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800
}

.z6-points {
    margin: 8px 0 10px 18px;
    padding: 0
}

.z6-points li {
    margin: 4px 0
}

.z6-callout {
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-m);
    background: color-mix(in oklab, var(--accent) 8%, #fff 92%);
}

.z6-phone {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none
}

.z6-phone:hover {
    text-decoration: underline
}

/* Liste */
.z6-list {
    padding: 16px
}

.z6-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px
}

.z6-filter-label {
    font-weight: 700
}

.z6-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--muted);
    background: #fff;
    color: var(--ink);
}

.z6-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus);
    border-color: var(--primary)
}

.z6-columns {
    column-gap: 24px
}

.z6-cities {
    margin: 0;
    padding: 0;
    list-style: none
}

.z6-cities li {
    break-inside: avoid;
    padding: 8px 0;
    border-bottom: 1px solid var(--muted);
}

@media(min-width:720px) {
    .z6-columns {
        columns: 2
    }
}

@media(min-width:1120px) {
    .z6-columns {
        columns: 3
    }
}

.z6-note {
    margin-top: 12px;
    font-size: 14px;
    opacity: .9
}

/* ===== SECTION 7 · Avis & Certifications ===== */
.s7-avis {
    padding: 72px 0;
    color: #fff;
    background: linear-gradient(180deg,
            color-mix(in oklab, var(--primary) 75%, var(--accent) 25%) 0%,
            color-mix(in oklab, var(--primary-600) 80%, var(--accent) 10%) 100%);
}

.s7-head {
    text-align: center;
    margin-bottom: 36px;
}

.s7-title {
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}

.s7-sub {
    margin-top: 8px;
    opacity: 0.95;
    color: #f2f9f9;
}

/* Logos */
.s7-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
}

.s7-logo img {
    height: 50px;
    width: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    /* blanc sur fond coloré */
    transition: opacity 0.2s ease;
}

.s7-logo img:hover {
    opacity: 1;
}

/* Avis */
.s7-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .s7-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.s7-avis-card {
    padding: 22px 24px;
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-md);
    border: none;
}

.s7-text {
    font-style: italic;
    margin: 0 0 12px;
}

.s7-author {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--primary-600);
}

.s7-ville {
    font-weight: 600;
    color: var(--primary);
}

.s7-note {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
    color: #fff;
    opacity: 0.9;
}

/* ===== SECTION 8 · FAQ ===== */
.s8-faq {
    padding: 72px 0;
    background: linear-gradient(180deg,
            color-mix(in oklab, var(--warm) 10%, var(--bg) 90%) 0%,
            color-mix(in oklab, var(--accent) 10%, var(--bg) 90%) 100%);
    color: var(--ink);
}

.s8-head {
    text-align: center;
    margin-bottom: 36px;
}

.s8-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
}

.s8-sub {
    opacity: 0.85;
    margin-top: 8px;
}

.s8-accordions {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Accordéons */
.s8-accordions details {
    background: var(--surface);
    border: 1px solid var(--muted);
    border-radius: var(--radius-m);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.s8-accordions details[open] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus);
}

.s8-accordions summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
}

.s8-accordions summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.s8-accordions details[open] summary::after {
    transform: rotate(45deg);
}

.s8-accordions p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

/* ===== FOOTER CLASSIC (fond coloré + lisible) ===== */
/* ===== Footer "élevé" : sobre, lisible, moderne ===== */
.footer-elevate {
    --ink-900: color-mix(in oklab, var(--ink) 92%, black 8%);
    --ink-700: color-mix(in oklab, var(--ink) 70%, black 30%);
    --on-dark: #fff;
    --on-dark-muted: color-mix(in oklab, #fff 78%, transparent 22%);
    --edge: color-mix(in oklab, #000 10%, transparent 90%);

    color: var(--on-dark);
    background:
        radial-gradient(1200px 500px at 80% -150px, color-mix(in oklab, var(--primary) 22%, black 78%), transparent 60%),
        linear-gradient(180deg, var(--ink-900) 0%, color-mix(in oklab, var(--ink) 88%, black 12%) 100%);
    padding: 56px 0 28px;
    font-size: 15.5px;
    line-height: 1.6;
}

.footer-elevate .footer-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-elevate .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .footer-elevate .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-elevate .brand {
    font-size: clamp(18px, 1.5vw + 12px, 22px);
    font-weight: 800;
    letter-spacing: .2px;
    margin: 0 0 10px;
}

.footer-elevate .title {
    font-size: 16px;
    font-weight: 700;
    color: color-mix(in oklab, var(--accent) 82%, var(--on-dark) 18%);
    margin: 0 0 10px;
}

.footer-elevate .contact p {
    margin: 0 0 8px;
}

.footer-elevate .list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-elevate .list li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin: 0 0 8px;
}

.footer-elevate .links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.footer-elevate .muted {
    color: var(--on-dark-muted);
}

.footer-elevate .link {
    color: var(--on-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
    font-weight: 600;
}

.footer-elevate .link.subtle {
    font-weight: 500;
    opacity: .9;
}

.footer-elevate .link:hover {
    border-color: color-mix(in oklab, var(--accent) 60%, transparent 40%);
    color: var(--on-dark);
}

.footer-elevate .link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-elevate .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: color-mix(in oklab, var(--accent) 75%, #fff 25%);
    flex: 0 0 22px;
    translate: 0 1px;
}

.footer-elevate .footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid color-mix(in oklab, #fff 12%, transparent 88%);
    display: flex;
    gap: 12px;
    row-gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: var(--on-dark-muted);
    font-size: 14.5px;
}

.footer-elevate .badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-elevate .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid color-mix(in oklab, #fff 14%, transparent 86%);
    border-radius: var(--radius-s);
    background: linear-gradient(180deg, color-mix(in oklab, #fff 5%, transparent 95%), transparent);
    box-shadow: var(--shadow-sm);
    color: #fff;
    backdrop-filter: saturate(120%) blur(2px);
}

.footer-elevate .badge svg {
    color: var(--accent);
}

/* micro-améliorations pour les SVG stroke */
.footer-elevate svg {
    shape-rendering: geometricPrecision;
    vector-effect: non-scaling-stroke;
}

/* Wrapper reCAPTCHA */
.s5-captcha-wrapper {
    margin: 16px 0;
    display: flex;
    justify-content: center;
  }
  
  /* Messages de validation */
  .s5-msg {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity .3s ease;
  }
  
  .s5-msg--ok {
    background: color-mix(in oklab, var(--primary) 15%, white 85%);
    color: var(--primary-600);
    border: 1px solid var(--primary);
    opacity: 1;
  }
  
  .s5-msg--err {
    background: color-mix(in oklab, var(--urgent) 15%, white 85%);
    color: var(--urgent);
    border: 1px solid var(--urgent);
    opacity: 1;
  }
  
  /* iFrame cachée */
  #hidden_iframe {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
  }
/* ===== Bouton "Haut" flottant (FIXE partout) ===== */
/* === Bouton retour en haut === */
#btn-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    /* ta couleur vert-bleu */
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 22px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

#btn-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#btn-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

#btn-top svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ===== Section CGU ===== */
.cgu-section {
    max-width: 900px;
    margin: clamp(26px, 8vw, 0px) auto;
    padding: 0 20px;
    color: var(--ink);
    line-height: 1.8;
    font-size: 15px;
}

/* En-tête */
.cgu-header {
    text-align: center;
    margin-bottom: 28px;
}

.cgu-section h1 {
    font-size: clamp(26px, 4vw, 32px);
    margin: 0 0 8px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.cgu-meta {
    font-size: 13px;
    color: rgba(42, 52, 64, .7);
    margin: 0;
}

/* Blocs */
.cgu-block+.cgu-block {
    margin-top: 22px;
}

.cgu-section h2 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 700;
}

.cgu-section p {
    margin: 0 0 12px;
}

.cgu-section ul {
    margin: 6px 0 14px 18px;
    padding: 0;
    list-style: disc;
}

.cgu-section li {
    margin-bottom: 8px;
}

/* Liens */
.cgu-section a {
    color: var(--primary);
    text-decoration: underline;
}

.cgu-section a:hover {
    text-decoration: none;
}

/* Apparition / on désactive la disparition par défaut */
.cgu-section {
    opacity: 1;              /* toujours visible */
    transform: none;         /* pas de décalage */
}

/* Si jamais .is-in est ajoutée, ça ne casse rien */
.cgu-section.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .45s ease, transform .45s ease;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .cgu-section {
        opacity: 1 !important;
        transform: none !important;
    }

    .cgu-section.is-in {
        transition: none !important;
    }
}

/* Responsive léger */
@media (max-width: 600px) {
    .cgu-section {
        padding: 0 14px;
    }
}

/* ===== Section Politique de confidentialité ===== */
.privacy-section {
    max-width: 900px;
    margin: clamp(26px, 8vw, 0px) auto;
    padding: 0 20px;
    color: var(--ink);
    line-height: 1.8;
    font-size: 15px;

    /* apparition douce */
    opacity: 0;
    transform: translateY(14px);
}

.privacy-section.is-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .45s ease, transform .45s ease;
}

/* En-tête */
.privacy-header {
    text-align: center;
    margin-bottom: 28px;
}

.privacy-section h1 {
    font-size: clamp(26px, 4vw, 32px);
    margin: 0 0 8px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.privacy-meta {
    font-size: 13px;
    color: rgba(42, 52, 64, .7);
    margin: 0;
}

/* Blocs */
.privacy-block+.privacy-block {
    margin-top: 22px;
}

.privacy-section h2 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 700;
}

.privacy-section p {
    margin: 0 0 12px;
}

.privacy-section ul {
    margin: 6px 0 14px 18px;
    padding: 0;
    list-style: disc;
}

.privacy-section li {
    margin-bottom: 8px;
}

/* Liens */
.privacy-section a {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-section a:hover {
    text-decoration: none;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .privacy-section {
        opacity: 1 !important;
        transform: none !important;
    }

    .privacy-section.is-in {
        transition: none !important;
    }
}

/* Responsive léger */
@media (max-width: 600px) {
    .privacy-section {
        padding: 0 14px;
    }
}

/* ===== Section Mentions légales ===== */
.legal-section {
    max-width: 900px;
    margin: clamp(26px, 8vw, 0px) auto;
    padding: 0 20px;
    color: var(--ink);
    line-height: 1.8;
    font-size: 15px;

    /* apparition douce */
    opacity: 0;
    transform: translateY(14px);
}

.legal-section.is-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .45s ease, transform .45s ease;
}

/* En-tête */
.legal-header {
    text-align: center;
    margin-bottom: 28px;
}

.legal-section h1 {
    font-size: clamp(26px, 4vw, 32px);
    margin: 0 0 8px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.legal-meta {
    font-size: 13px;
    color: rgba(42, 52, 64, .7);
    margin: 0;
}

/* Blocs */
.legal-block+.legal-block {
    margin-top: 22px;
}

.legal-section h2 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 700;
}

.legal-section p {
    margin: 0 0 12px;
}

.legal-section ul {
    margin: 6px 0 14px 18px;
    padding: 0;
    list-style: disc;
}

.legal-section li {
    margin-bottom: 8px;
}

/* Liens */
.legal-section a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-section a:hover {
    text-decoration: none;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .legal-section {
        opacity: 1 !important;
        transform: none !important;
    }

    .legal-section.is-in {
        transition: none !important;
    }
}

/* Responsive léger */
@media (max-width: 600px) {
    .legal-section {
        padding: 0 14px;
    }
}

/* =========================
   PAGE 404 – Styles complets
   (n’affecte que #e404 et ses enfants)
   ========================= */

.e404 {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 420px at 92% 8%, color-mix(in oklab, var(--bg) 74%, var(--accent) 26%), transparent 66%),
    radial-gradient(840px 380px at 6% 92%, color-mix(in oklab, var(--bg) 76%, var(--warm) 24%), transparent 68%),
    var(--bg);
  color: var(--ink);
  overflow: hidden;
}
@media (min-width: 992px) {
  .e404 { padding: 96px 0 120px; }
}

/* Blobs décoratifs */
.e404-bg { position: absolute; inset: -14% -10% -8% -10%; pointer-events: none; z-index: 0; }
.e404-blob { position: absolute; width: 680px; height: 300px; border-radius: 999px; filter: blur(52px); opacity: .22; }
.e404-blob--accent { right: 8%; top: 6%; background: radial-gradient(55% 55% at 50% 50%, var(--accent), transparent 70%); }
.e404-blob--warm   { left:  8%; bottom: 6%; background: radial-gradient(55% 55% at 50% 50%, var(--warm),   transparent 70%); }

/* En-tête 404 */
.e404-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 24px;
}
.e404-code {
  margin: 0 0 6px;
  font-size: 90px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--primary-600);
  text-shadow: 0 12px 28px rgba(0,0,0,.10);
}
@media (min-width: 560px) { .e404-code { font-size: 116px; } }

.e404-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 28px;
  color: var(--primary-600);
}
@media (min-width: 560px) { .e404-title { font-size: 34px; } }

.e404-sub {
  margin: 10px auto 0;
  max-width: 85ch;
  line-height: 1.75;
  opacity: .95;
}

/* Boutons d’action (accueil / appeler)
   - .sf-btn et .sf-btn--primary existent déjà dans ton site
   - on ajoute juste le style pour le bouton outline spécifique 404 */
.e404-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.e404-btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  background: color-mix(in oklab, var(--accent) 10%, #fff 90%);
  box-shadow: var(--shadow-sm);
  transition: background .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.e404-btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.e404-btn-outline:active { transform: translateY(0); }

/* Liens utiles (4 “boutons” alignés sur PC) */
.e404-tips {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  text-align: center;
}
.e404-list {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
  grid-template-columns: 1fr; /* mobile */
}
@media (min-width: 600px) {
  .e404-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .e404-list { grid-template-columns: repeat(4, 1fr); gap: 18px; } /* 4 alignés sur PC */
}

.e404-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid var(--muted);
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
  transition: background .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.e404-link:hover {
  background: color-mix(in oklab, var(--accent) 12%, #fff 88%);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--muted) 65%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}
.e404-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,.09);
}

/* Focus visibles (a11y) */
.e404 a:focus-visible,
.e404 button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus) 55%, transparent 45%);
  border-radius: 12px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .e404-blob { filter: blur(40px); }
  .e404-link,
  .e404-btn-outline { transition: none !important; }
}
