/* ------------------------------
   Polices (locales)
   ✅ Modif #27 : réduction de la dette typographique
   -> On garde 3 polices locales max (+ Roboto Google pour le corps)
-------------------------------- */

/* Logo / identité */
@font-face {
    font-family: 'KGArchitectural';
    src: url('../fonts/KGArchitecturallyArtistic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Titres */
@font-face {
    font-family: 'tekton';
    src: url('../fonts/tekton.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Signature */
@font-face {
    font-family: 'AlexBrush-Regular';
    src: url('../fonts/AlexBrush-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------
   Variables globales
   ✅ Modif #1 : tokens palette + variables "RGB" pour tints
-------------------------------- */
:root {
    --color-bg: #ffffff;
    --color-text: #333333;

    /* Base “bois / brun” */
    --color-primary: #5C3626;
    --color-secondary: #4A2C20;

    /* Palette imposée (CODES COULEURS) */
    --palette-yellow: #F5CC00;
    --palette-amber: #F5AB00;
    --palette-orange: #F24100;
    --palette-pink: #E80046;
    --palette-magenta: #C702C0;
    --palette-purple: #9210C9;
    --palette-indigo: #3800BA;
    --palette-blue: #1C40B8;
    --palette-sky: #69AEDB;
    --palette-cyan: #21D3D9;
    --palette-teal: #00948F;
    --palette-green: #73A14C;
    --palette-lime: #9BC904;

    /* RGB (pratique pour faire des rgba cohérents) */
    --rgb-yellow: 245, 204, 0;
    --rgb-amber: 245, 171, 0;
    --rgb-orange: 242, 65, 0;
    --rgb-pink: 232, 0, 70;
    --rgb-magenta: 199, 2, 192;
    --rgb-purple: 146, 16, 201;
    --rgb-indigo: 56, 0, 186;
    --rgb-blue: 28, 64, 184;
    --rgb-sky: 105, 174, 219;
    --rgb-cyan: 33, 211, 217;
    --rgb-teal: 0, 148, 143;
    --rgb-green: 115, 161, 76;
    --rgb-lime: 155, 201, 4;

    /* Alias (compat avec classes existantes du hero) */
    --color-green: var(--palette-green);
    --color-yellow-dark: var(--palette-amber);
    --color-magenta: var(--palette-magenta);
    --color-light-blue: var(--palette-sky);
    --color-cyan: var(--palette-cyan);
    --color-orange: var(--palette-orange);

    /* Sémantique */
    --color-success: var(--palette-green);
    --color-warning: var(--palette-amber);
    --color-danger: var(--palette-orange);
    --color-info: var(--palette-cyan);

    /* ✅ Fonts (réduites) */
    --font-title: 'KGArchitectural', 'tekton', system-ui, sans-serif;
    --font-heading: 'tekton', system-ui, sans-serif;
    --font-subheading: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-signature: 'AlexBrush-Regular', cursive;
    --font-body: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;

    --header-height: 90px;
    --wood-strip-height: 12.5px;

    --container-width: 1100px;
    --container-padding: 20px;

    --radius: 18px;

    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);

    /* Accessibilité */
    --focus-ring: 3px solid rgba(var(--rgb-cyan), 0.55);
    --focus-ring-offset: 3px;

    /* Offset ancres header sticky */
    --scroll-offset: calc(var(--header-height) + var(--wood-strip-height) + 16px);

    /* ✅ Design #1 : fond de page légèrement teinté (moins "blanc") */
    --page-tint-warm: rgba(var(--rgb-amber), 0.07);
    --page-tint-cool: rgba(var(--rgb-sky), 0.06);
}

/* ------------------------------
   Reset & Base
-------------------------------- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    /* ✅ Design #1 : page moins "blanche" (léger voile coloré) */
    background-color: var(--color-bg);
    background-image:
        radial-gradient(1100px 700px at 15% 0%, var(--page-tint-warm), transparent 65%),
        radial-gradient(900px 600px at 85% 5%, var(--page-tint-cool), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.94) 100%);
    color: var(--color-text);
    line-height: 1.6;
}

/* ------------------------------
   ✅ Accessibilité
-------------------------------- */

/* Texte uniquement lecteurs d'écran */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Lien d'évitement clavier */
.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-160%);
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--color-text);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-soft);
    z-index: 9999;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

/* Offset ancres */
[id] {
    scroll-margin-top: var(--scroll-offset);
}

/* Focus */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

/* ------------------------------
   Structure container
-------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

/* ------------------------------
   Icônes
   ✅ Modif #26 : cohérence icons
-------------------------------- */
.icon {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 auto;
}

.icon--sm {
    width: 0.95em;
    height: 0.95em;
}

/* ------------------------------
   Bandeaux arc-en-ciel
   ✅ Modif #2 : remplacement image lourde par un gradient vectoriel
-------------------------------- */
.wood-strip {
    height: var(--wood-strip-height);
    width: 100%;

    /* Stripes palette + micro texture (CSS) */
    background-image:
        linear-gradient(
            90deg,
            var(--palette-green) 0%, var(--palette-green) 8%,
            var(--palette-teal) 8%, var(--palette-teal) 16%,
            var(--palette-cyan) 16%, var(--palette-cyan) 24%,
            var(--palette-sky) 24%, var(--palette-sky) 32%,
            var(--palette-blue) 32%, var(--palette-blue) 40%,
            var(--palette-indigo) 40%, var(--palette-indigo) 48%,
            var(--palette-purple) 48%, var(--palette-purple) 56%,
            var(--palette-magenta) 56%, var(--palette-magenta) 64%,
            var(--palette-pink) 64%, var(--palette-pink) 72%,
            var(--palette-orange) 72%, var(--palette-orange) 80%,
            var(--palette-amber) 80%, var(--palette-amber) 90%,
            var(--palette-yellow) 90%, var(--palette-yellow) 100%
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.22) 0 6px,
            rgba(0, 0, 0, 0.08) 6px 7px,
            rgba(255, 255, 255, 0.08) 7px 24px
        ),
        linear-gradient(180deg, rgba(255,255,255,0.18), rgba(0,0,0,0.18));

    background-blend-mode: overlay, overlay, normal;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.wood-strip--header {
    position: sticky;
    top: var(--header-height);
    z-index: 99;
}

.wood-strip--footer {
    margin-top: 3rem;
}

/* ------------------------------
   Header
-------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: #fff;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.logo {
    text-decoration: none;
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-title {
    font-family: var(--font-title);
    font-size: 1.65rem;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: baseline;
}

.logo-person-name {
    font-family: var(--font-signature);
    font-size: 1.15rem;
    color: var(--palette-green);
    font-weight: 400;
    line-height: 1;
}

.logo-person-title {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 400;
}

/* Burger */
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    width: 40px;
    height: 27px; /* évite un rendu plus épais du trait central (alignement pixel) */
    position: relative;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* Nav */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    color: #222;
    font-weight: 400;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.nav-link--prestations { background: rgba(var(--rgb-green), 0.14); }
.nav-link--projets { background: rgba(var(--rgb-sky), 0.14); }
.nav-link--contact { background: rgba(var(--rgb-cyan), 0.14); }

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* ✅ Modif #6 : état actif (scrollspy) + micro-indicateur */
.nav-link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link.is-active {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.nav-link.is-active::after {
    opacity: 0.55;
    transform: scale(1);
}

/* Mobile nav */
@media (max-width: 900px) {
    .nav-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        background: #fff;
        width: min(320px, 90vw);
        height: calc(100vh - var(--header-height));
        box-shadow: -6px 0 30px rgba(0,0,0,0.15);
        transform: translateX(110%);
        transition: transform 0.3s ease;
        padding: 1.5rem 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-link {
        justify-content: space-between;
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }
}

/* ------------------------------
   Sections
   ✅ Modif #3 : séparateurs
   ✅ Modif #4 : alternance papier/blueprint/bois
   ✅ Modif #5 : motifs SVG discrets
-------------------------------- */
.section {
    padding: 4rem 0;
    position: relative;
}

.section > .container {
    position: relative;
}

/* Fond papier par défaut */
.section > .container::before {
    content: "";
    position: absolute;
    inset: -2rem -1.5rem;
    border-radius: 1.75rem;
    z-index: -1;

    /* ✅ Design #2 : motif un poil plus visible (on baisse le "blanc" du voile) */
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.85)),
        url('../images/patterns/paper-grid.svg');
    background-size: cover, 240px 240px;
    background-repeat: no-repeat, repeat;
    background-position: center;

    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) inset;
}

/* ✅ Design #3 : papier plus "chaud" pour À propos */
.section-about > .container::before {
    background-image:
        radial-gradient(600px 280px at 15% 0%, rgba(var(--rgb-amber), 0.18), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74)),
        url('../images/patterns/paper-grid.svg');
    background-size: auto, cover, 240px 240px;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: top left, center, center;
}

/* ✅ Design #3 : papier plus "frais" pour Prestations */
.section-prestations > .container::before {
    background-image:
        radial-gradient(680px 320px at 85% 0%, rgba(var(--rgb-cyan), 0.16), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74)),
        url('../images/patterns/paper-grid.svg');
    background-size: auto, cover, 240px 240px;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: top right, center, center;
}

/* Blueprint : section galerie + avant/après */
.section-projets > .container::before {
    background-image:
        /* ✅ Accent couleur (différent de À propos / Prestations) */
        radial-gradient(720px 340px at 18% 0%, rgba(var(--rgb-indigo), 0.14), transparent 60%),
        /* ✅ Blueprint un peu plus présent */
        linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.66)),
        url('../images/patterns/blueprint-grid.svg');
    background-size: auto, cover, 260px 260px;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: top left, center, center;
}

.section-before-after > .container::before {
    background-image:
        /* ✅ Accent couleur (différent de la galerie) */
        radial-gradient(720px 340px at 85% 0%, rgba(var(--rgb-magenta), 0.12), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.66)),
        url('../images/patterns/blueprint-grid.svg');
    background-size: auto, cover, 260px 260px;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: top right, center, center;
}

/* Bois : section contact */
.section-contact > .container::before {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)),
        url('../images/textures/texture_bois_.jpg');
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.6)),
        image-set(
            url('../images/textures/texture_bois_.webp') type('image/webp'),
            url('../images/textures/texture_bois_.jpg') type('image/jpeg')
        );
    background-size: cover;
    background-position: center;
}

/* ✅ Design #5 : bande matière pleine largeur (textures autorisées) */
.material-band {
    position: relative;
    width: 100%;
    height: clamp(80px, 10vw, 100px);
    overflow: hidden;
    pointer-events: none;
}

.material-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.05);
}

/* Voile "papier" + légère teinte palette pour rester cohérent */
.material-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.70) 35%, rgba(255, 255, 255, 0.70) 65%, rgba(255, 255, 255, 0.88)),
        linear-gradient(90deg, rgba(var(--rgb-cyan), 0.22), rgba(var(--rgb-sky), 0.22), rgba(var(--rgb-lime), 0.22));
    opacity: 0.3;
}

.material-band--rainbow::before {
    background-image: url('../images/textures/-planches-fond-bois-arc-ciel_688350-2942.jpg');
    background-image: image-set(
        url('../images/textures/-planches-fond-bois-arc-ciel_688350-2942.webp') type('image/webp'),
        url('../images/textures/-planches-fond-bois-arc-ciel_688350-2942.jpg') type('image/jpeg')
    );
}

.material-band--wood::before {
    background-image: url('../images/textures/texture_bois_4.jpg');
    filter: saturate(0.92) contrast(1.05);
}

/* Séparateurs de section */
.section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26px;
    pointer-events: none;

    background:
        linear-gradient(to right, transparent, rgba(var(--rgb-blue), 0.22), transparent) 50% 8px / 100% 1px no-repeat,
        repeating-linear-gradient(to right, rgba(var(--rgb-blue), 0.26) 0 6px, transparent 6px 18px) 50% 14px / 100% 1px no-repeat;

    opacity: 0.95;
}

.section:last-of-type::after,
.section-contact::after {
    display: none;
}

/* Titres */
h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2.55rem;
    margin: 0 0 1rem;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* ✅ Modif #10 : trait "dessiné" sous les titres (respect reduced motion via JS + media query) */
.draw-underline {
    position: relative;
    padding-bottom: 0.25rem;
}

.draw-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1rem;
    height: 7px;
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(0);

    /* Trait multicolore subtil (palette) */
    background: linear-gradient(
        90deg,
        rgba(var(--rgb-cyan), 0.85),
        rgba(var(--rgb-sky), 0.85),
        rgba(var(--rgb-lime), 0.85)
    );

    opacity: 0.55;
}

.draw-underline.is-inview::after {
    animation: drawLine 1.05s ease forwards;
}

@keyframes drawLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.section-intro {
    font-family: var(--font-subheading);
    max-width: 750px;
    margin: 0 auto 2.5rem;
    font-size: 1.12rem;
    color: #444;
}

/* ------------------------------
   Hero
   ✅ Modif #7 : mobile texte sous l'image
   ✅ Modif #8 : scroll cue
-------------------------------- */
.hero {
    padding: 2.5rem 0 4rem;
    position: relative;
    /* ✅ Design #4 : léger fond matière derrière le hero */
    overflow: hidden;
    isolation: isolate;
}

/* ✅ Design #4 : fond propre (sans blur) */
.hero::before {
    content: "";
    position: absolute;
    inset: -70px -40px -80px -40px;
    pointer-events: none;
    z-index: 0;

    /* ✅ Plus de fond flou : on garde juste un léger voile matière */
    background-image:
        radial-gradient(700px 320px at 22% 0%, rgba(var(--rgb-amber), 0.12), transparent 60%),
        radial-gradient(900px 380px at 78% 10%, rgba(var(--rgb-sky), 0.10), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 1));
    background-repeat: no-repeat;
    background-size: auto, auto, cover;
    background-position: top left, top right, center;
    opacity: 1;
}

.hero-images {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image--top { margin-bottom: 0.5rem; }
.hero-image--bottom { opacity: 0.92; }

.hero-text-block {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1rem, 5vw, 3rem);
    left: clamp(1rem, 4vw, 3rem);

    padding: clamp(1rem, 2.2vw, 1.5rem);
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-soft);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;

    z-index: 2;
}

.hero-text-block::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.55)),
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.02) 0,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 7px
        );
    opacity: 0.35;
    pointer-events: none;
}

.hero-text-block > * { position: relative; z-index: 1; }

@media (min-width: 900px) {
    .hero-text-block {
        left: auto;
        width: min(600px, 48vw);
    }
}

/* ✅ Modif #7 : mobile => le bloc passe sous les images */
@media (max-width: 900px) {
    .hero {
        padding-bottom: 3rem;
    }

    .hero-text-block {
        position: static;
        margin: 1rem auto 0;
        width: min(980px, 100%);

        /* léger gain perf mobile */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.hero-quote {
    font-family: var(--font-subheading);
    font-size: clamp(1.15rem, 2.05vw, 1.55rem);
    margin: 0;
    color: var(--color-primary);
    text-align: left;
    line-height: 1.45;
}

.hero-highlight { font-weight: 700; }

.hero-highlight--intimes,
.hero-highlight--cocon { color: var(--color-green); }

.hero-highlight--convivial { color: var(--color-yellow-dark); }

.hero-highlight--humble { color: var(--color-magenta); }

.hero-highlight--chaleureux { color: var(--color-light-blue); }

.hero-author {
    margin: 0;
    font-family: var(--font-signature);
    font-size: 1.15rem;
    color: var(--color-secondary);
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

/* Scroll cue */
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 3;

    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;

    border-radius: 999px;
    text-decoration: none;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 400;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-soft);
}

.hero-scroll-cue .icon {
    color: var(--palette-blue);
}

.hero-scroll-cue:hover {
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 900px) {
    .hero-scroll-cue {
        position: static;
        transform: none;
        margin: 1rem auto 0;
    }

    .hero-scroll-cue:hover {
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-scroll-cue .icon {
        animation: cueBounce 1.6s infinite;
    }

    @keyframes cueBounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(3px); }
    }
}

/* ------------------------------
   Buttons
-------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-body);
}

.btn-secondary {
    background: rgba(var(--rgb-cyan), 0.25);
    color: #0d5e61;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(92, 54, 38, 0.35);
    color: var(--color-primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

/* ------------------------------
   À propos (modif #11)
-------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/patterns/paper-grid.svg');
    background-size: 240px 240px;
    opacity: 0.45;
    pointer-events: none;
}

.about-card > * {
    position: relative;
    z-index: 1;
}

.about-profile {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 520px) {
    .about-profile {
        flex-direction: column;
        align-items: flex-start;
    }
}

.about-portrait {
    width: 120px;
    height: 120px;
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(var(--rgb-green), 0.10);
    border: 1px solid rgba(var(--rgb-green), 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
	flex: 0 0 120px;
	aspect-ratio: 1 / 1;
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-name {
    margin: 0;
    font-family: var(--font-signature);
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.about-title {
    margin: 0.1rem 0 0.6rem;
    color: #555;
}

.about-paragraph {
    margin: 0;
    color: #333;
}

.about-cta {
    margin-top: 1.1rem;
}

.about-pillars {
    display: grid;
    gap: 0.9rem;
}

.pillar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.pillar::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
    background-image: url('../images/patterns/paper-grid.svg');
    background-size: 240px 240px;
}

.pillar > * { position: relative; z-index: 1; }

.pillar h3 {
    margin: 0 0 0.25rem;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-primary);
    font-size: 1.35rem;
}

.pillar p {
    margin: 0;
    color: #444;
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.pillar--convivial .pillar-icon {
    background: rgba(var(--rgb-amber), 0.18);
    border: 1px solid rgba(var(--rgb-amber), 0.30);
    color: rgba(var(--rgb-amber), 0.95);
}

.pillar--humble .pillar-icon {
    background: rgba(var(--rgb-magenta), 0.14);
    border: 1px solid rgba(var(--rgb-magenta), 0.28);
    color: rgba(var(--rgb-magenta), 0.95);
}

.pillar--chaleureux .pillar-icon {
    background: rgba(var(--rgb-sky), 0.16);
    border: 1px solid rgba(var(--rgb-sky), 0.30);
    color: rgba(var(--rgb-sky), 0.95);
}

/* ------------------------------
   Prestations
   ✅ Modif #5 : motif discret sur la carte
   ✅ Modif #12 : identité par onglet/panel (couleur + icône + barre)
-------------------------------- */
.prestations-widget {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.prestations-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/patterns/paper-grid.svg');
    background-size: 240px 240px;
    opacity: 0.35;
    pointer-events: none;
}

.prestations-widget > * {
    position: relative;
    z-index: 1;
}

.prestations-tabs-wrap {
    position: relative;
    max-width: 980px;
    margin: 0 auto 2rem;
}

.prestations-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    padding: 0.25rem 0.25rem 0.6rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.prestations-tabs::-webkit-scrollbar { display: none; }

.prestations-tabs-wrap::before,
.prestations-tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.prestations-tabs-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg), rgba(255, 255, 255, 0));
}

.prestations-tabs-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg), rgba(255, 255, 255, 0));
}

.prestations-tabs-wrap.show-left-fade::before { opacity: 1; }
.prestations-tabs-wrap.show-right-fade::after { opacity: 1; }

/* Thèmes */
.prestations-tab--conseils { --tab-rgb: var(--rgb-cyan); }
.prestations-tab--esquisses { --tab-rgb: var(--rgb-amber); }
.prestations-tab--3d { --tab-rgb: var(--rgb-purple); }
.prestations-tab--plans { --tab-rgb: var(--rgb-blue); }

.prestations-tab {
    font-family: var(--font-heading);
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f6f6f6;
    cursor: pointer;
    font-weight: 400;
    color: #333;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    scroll-snap-align: start;

    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.prestations-tab .icon {
    color: rgba(var(--tab-rgb), 0.95);
}

.prestations-tab:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.prestations-tab.is-active {
    background: rgba(var(--tab-rgb), 0.16);
    border-color: rgba(var(--tab-rgb), 0.50);
}

.prestations-panel { display: block; }
.prestations-panel[hidden] { display: none; }
.prestations-panel.is-active { display: block; }

/* Panels : barre verticale couleur */
.prestations-panel {
    --panel-rgb: var(--rgb-cyan);

    position: relative;
    padding-left: 1.15rem;
    border-left: 7px solid rgba(var(--panel-rgb), 0.85);
}

.prestations-panel--conseils { --panel-rgb: var(--rgb-cyan); }
.prestations-panel--esquisses { --panel-rgb: var(--rgb-amber); }
.prestations-panel--3d { --panel-rgb: var(--rgb-purple); }
.prestations-panel--plans { --panel-rgb: var(--rgb-blue); }

.prestations-intro {
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.prestations-bullets {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.5rem;
}

.prestations-bullets li { line-height: 1.45; }

.prestations-example {
    margin: 0.9rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(var(--panel-rgb), 0.08);
    border: 1px solid rgba(var(--panel-rgb), 0.18);
}

/* ------------------------------
   Avant / Après (modif #16)
-------------------------------- */
.before-after {
    background: #fff;
    background-image: radial-gradient(680px 320px at 90% 0%, rgba(var(--rgb-pink), 0.12), transparent 60%);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
    overflow: hidden;
    position: relative;
}

.before-after::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/patterns/blueprint-grid.svg');
    background-size: 260px 260px;
    opacity: 0.30;
    pointer-events: none;
}

.before-after > * { position: relative; z-index: 1; }

/*
  ✅ Empêche les sélections / surlignages bleus pendant le drag
  (mobile + desktop)
*/
.before-after,
.before-after * {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.before-after {
    -webkit-touch-callout: none;
}

.before-after-media img,
.before-after-media svg {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Les éléments décoratifs ne doivent pas capter les événements (ni être sélectionnables) */
.before-after-media img,
.before-after-label,
.before-after-handle,
.before-after-knob {
    pointer-events: none;
}

/* Supprime l'outline par défaut au clic (on garde :focus-visible global) */
.before-after-range:focus:not(:focus-visible) {
    outline: none;
}

.before-after-media {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(var(--rgb-blue), 0.06);
    border: 1px solid rgba(var(--rgb-blue), 0.12);
    cursor: ew-resize;
    touch-action: pan-y;
}

.before-after-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after-after {
    position: absolute;
    inset: 0;
    overflow: hidden;

    /* Fallback (si clip-path indisponible) */
    width: var(--ba, 50%);
}

/*
  ✅ Comparaison sans "déplacement" d'image
  On garde l'image APRÈS en plein format et on la "découpe" via clip-path.
  Cela évite l'effet de compression/étirement de l'image quand on bouge le curseur.
*/
@supports (clip-path: inset(0 0 0 0)) {
    .before-after-after {
        width: 100%;
        clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0);
        -webkit-clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0);
    }
}

.before-after-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--ba, 50%) - 1px);
    width: 2px;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.before-after-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;

    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    color: rgba(var(--rgb-blue), 0.95);
}

.before-after-knob .icon {
    width: 16px;
    height: 16px;
}

.before-after-label {
    position: absolute;
    top: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.10);
}

/*
  Par défaut ici : gauche = APRÈS, droite = AVANT
  (si vous souhaitez inverser, il suffit d'échanger ces positions)
*/
.before-after-label--after  { left: 0.75rem; right: auto; }
.before-after-label--before { right: 0.75rem; left: auto; }

.before-after-range {
    width: 100%;
    margin-top: 1rem;
}



/* ------------------------------
   Avant / Après : carrousel (modif #16b)
-------------------------------- */
.before-after-carousel {
    position: relative;
    margin-top: 1.25rem;
}

.ba-carousel-track {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    padding: 0.25rem;

    scroll-snap-type: x mandatory;
    scroll-padding: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

.ba-carousel-track::-webkit-scrollbar {
    display: none;
}

.ba-carousel-track:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--rgb-blue), 0.18);
    border-radius: 1rem;
}

.ba-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.ba-slide-head {
    margin: 0 0 0.85rem;
}

.ba-slide-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.92rem;
    color: rgba(0,0,0,0.62);
}

.ba-slide-title {
    margin: 0;
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    letter-spacing: 0.2px;
}

.ba-slide-desc {
    margin: 0.45rem 0 0;
    max-width: 70ch;
    line-height: 1.55;
    color: rgba(0,0,0,0.72);
}

.ba-carousel-control {
    /* On réutilise le look des .carousel-control,
       mais on garde une classe dédiée pour le JS */
}

/* Dots */
.ba-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

.ba-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.22);
    background: rgba(0,0,0,0.15);
    padding: 0;
    cursor: pointer;
}

.ba-carousel-dot.is-active {
    background: rgba(var(--rgb-blue), 0.55);
    border-color: rgba(var(--rgb-blue), 0.88);
    transform: scale(1.15);
}

.ba-carousel-dot:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--rgb-blue), 0.22);
}
/* ------------------------------
   Galerie
-------------------------------- */
.projects-carousel {
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
    --slides-per-view: 1;
}

@media (min-width: 720px) { .projects-carousel { --slides-per-view: 2; } }
@media (min-width: 1020px) { .projects-carousel { --slides-per-view: 3; } }

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.project-slide {
    flex: 0 0 calc(100% / var(--slides-per-view));
    width: calc(100% / var(--slides-per-view));
    padding: 0.5rem;
    cursor: pointer;

    border: none;
    background: transparent;
    text-align: left;
}

.project-slide figure {
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-slide figure:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-slide img {
    width: 100%;
    display: block;
    transform: scale(1.02);
    transition: transform 0.35s ease;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-slide figure:hover img { transform: scale(1.08); }

.project-slide figcaption {
    padding: 0.9rem 1rem 1rem;
    background-image: radial-gradient(680px 320px at 10% 0%, rgba(var(--rgb-teal), 0.12), transparent 60%);
    background-repeat: no-repeat;
    font-weight: 700;
    color: #222;
    font-family: var(--font-subheading);
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.85);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 10;
}

.carousel-control.prev { left: 0.5rem; }
.carousel-control.next { right: 0.5rem; }

.carousel-control:hover {
    transform: translateY(-50%) scale(1.06);
}

/* ------------------------------
   Modal projets + Lightbox
   ✅ Modif #22 : navigation + compteur + clavier
-------------------------------- */
.project-modal {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 1000;
}

.project-modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.modal-dialog {
    position: relative;
    max-width: 920px;
    width: min(920px, 92vw);
    margin: 7vh auto;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
    padding: 1.25rem 1.25rem 1.6rem;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.06);
    cursor: pointer;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#modal-title {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-primary);
    margin: 0.75rem 0 0.25rem;
}

.project-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.project-modal-gallery img {
    width: 100%;
    height: auto;
    border-radius: 0.9rem;
    cursor: zoom-in;
    box-shadow: var(--shadow-soft);
}

/* Lightbox */
.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1100;
}

.image-lightbox.active { display: block; }

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
}

.lightbox-img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 1rem;
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.14);
    color: #fff;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
}

/* ------------------------------
   Contact
   ✅ Modif #24 : form premium
   ✅ Modif #5 : motif discret sur les cartes
-------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

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

.contact-card,
.contact-form-widget {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.contact-card::before,
.contact-form-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/patterns/paper-grid.svg');
    background-size: 240px 240px;
    opacity: 0.35;
    pointer-events: none;
}

.contact-card > *,
.contact-form-widget > * {
    position: relative;
    z-index: 1;
}

.contact-city {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.55rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.6rem;
}

.contact-details li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.6rem;
    align-items: start;
}

.contact-details .icon {
    color: rgba(var(--rgb-teal), 0.95);
    margin-top: 0.12rem;
}

.contact-map-placeholder {
    margin-top: 1rem;
    border-radius: 1.2rem;
    overflow: hidden;

    background-image: url('../images/textures/texture_bois_2.jpg');
    background-image: image-set(
        url('../images/textures/texture_bois_2.webp') type('image/webp'),
        url('../images/textures/texture_bois_2.jpg') type('image/jpeg')
    );

    background-size: cover;
    background-position: center;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.88;
}

.contact-map-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    padding: 1rem;
}

.contact-form { display: grid; gap: 1rem; }

.form-row label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.field-help {
    margin: -0.4rem 0 0;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.62);
}

/* Champs premium */
.field {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.6rem;
    align-items: center;

    padding: 0.25rem 0.25rem 0.25rem 0.55rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.72);
}

.field--textarea {
    align-items: start;
}

.field-icon {
    color: rgba(var(--rgb-teal), 0.95);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.65rem 0.6rem;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    outline: none;
}

.field textarea { resize: vertical; }

.field:focus-within {
    border-color: rgba(var(--rgb-cyan), 0.55);
    box-shadow: 0 0 0 4px rgba(var(--rgb-cyan), 0.18);
}

.form-success,
.form-error {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-family: var(--font-body);
}

.form-success {
    background: rgba(var(--rgb-green), 0.12);
    border: 1px solid rgba(var(--rgb-green), 0.35);
}

.form-error {
    background: rgba(var(--rgb-orange), 0.10);
    border: 1px solid rgba(var(--rgb-orange), 0.30);
}

.form-disclaimer {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.form-note {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* ------------------------------
   Footer
-------------------------------- */
.site-footer {
    background: #fff;
    padding: 3rem 0 1rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.6rem;
    margin: 0 0 0.6rem;
    color: var(--color-primary);
}

.footer-block h3 {
    margin: 0 0 0.65rem;
    color: #222;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.35rem;
}

.footer-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.footer-block a {
    color: #333;
    text-decoration: none;
}

.footer-block a:hover { text-decoration: underline; }

.footer-contact-lines {
    display: grid;
    gap: 0.55rem;
}

.footer-contact-line {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-contact-line .icon {
    color: rgba(var(--rgb-teal), 0.95);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 2rem;
    padding-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* ------------------------------
   CTA sticky mobile (modif #25)
-------------------------------- */
.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;

    display: none;
    gap: 0.75rem;
    padding: 0.75rem;

    background: rgba(255,255,255,0.92);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -18px 40px rgba(0,0,0,0.14);

    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

.mobile-cta-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    padding: 0.85rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;

    box-shadow: var(--shadow-soft);
}

.mobile-cta-btn--call {
    background: rgba(var(--rgb-green), 0.18);
    color: #1d4d1f;
    border: 1px solid rgba(var(--rgb-green), 0.35);
}

.mobile-cta-btn--message {
    background: rgba(var(--rgb-cyan), 0.22);
    color: #0d5e61;
    border: 1px solid rgba(var(--rgb-cyan), 0.40);
}

@media (max-width: 900px) {
    .mobile-cta {
        display: flex;
    }

    body {
        padding-bottom: 86px;
    }
}

/* ------------------------------
   Reduced motion
-------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto; }

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

    .carousel-track { transition: none !important; }

    .draw-underline::after {
        transform: scaleX(1);
        animation: none !important;
    }
}
