/*
  Multiservice‑Travaux – styles.css (réécrit proprement)
  - Design aéré, moderne, angles carrés
  - Couleurs : #1BA1E2 (accent), blanc cassé, anthracite, bleu foncé
  - Typo : Montserrat (titres) / Poppins (texte)
  - Responsive first
*/

/* ------------------------------
   Variables & reset
-------------------------------*/
:root {
    --accent: #1BA1E2;
    --blue-dark: #0a2740;
    --text: #1f2329;
    /* anthracite */
    --muted: #67707c;
    --offwhite: #F5F7FA;
    /* blanc cassé doux */
    --white: #FFFFFF;
    --border: #E6E9EE;

    --maxw: 1160px;
    --pad-inline: clamp(1rem, 3vw, 2.5rem);
    /* marges à gauche/droite PLUS GRANDES */

    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
    --space-7: 6rem;
    /* gros espace entre sections */

    --radius: 0;
    /* style carré */
    --overlay: linear-gradient(180deg, rgba(8, 18, 28, .55), rgba(8, 18, 28, .35));
    --shadow: 0 1px 0 rgba(10, 39, 64, .06);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

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

body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}

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

/* Accessibilité */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: #fff;
    color: var(--blue-dark);
    padding: .5rem 1rem;
    border: 1px solid var(--accent)
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px
}

/* ------------------------------
   Typo
-------------------------------*/
.brand-name,
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', system-ui, Arial, sans-serif;
    color: var(--blue-dark);
    margin: 0 0 .5em
}

h1 {
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem)
}

h2 {
    font-weight: 700;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem)
}

h3 {
    font-weight: 600;
    font-size: clamp(1.15rem, 1.9vw, 1.35rem)
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--muted)
}

.small {
    font-size: .94rem;
    color: var(--muted)
}

.nowrap {
    white-space: nowrap
}

.accent {
    color: var(--accent)
}

.center {
    text-align: center
}

/* ------------------------------
   Layout
-------------------------------*/
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: var(--pad-inline)
}

.section-head {
    margin-bottom: var(--space-4)
}

main>section {
    padding-block: var(--space-7)
}

/* GROS ESPACE */

.grid-2,
.grid-3 {
    display: grid;
    gap: var(--space-5)
}

.grid-2 {
    grid-template-columns: 1fr
}

.grid-3 {
    grid-template-columns: 1fr
}

@media(min-width:640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:900px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr)
    }
}

/* carte */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 2.2vw, 2rem);
    box-shadow: var(--shadow)
}

/* listes */
.list-check {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 0
}

.list-check li {
    position: relative;
    padding-left: 1.6rem;
    margin: .7rem 0
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .4rem;
    width: .8rem;
    height: .8rem;
    border: 2px solid var(--accent)
}

.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    padding: 0;
    margin: var(--space-2) 0 0
}

.pill-list li {
    border: 1px solid var(--border);
    padding: .55rem .8rem;
    background: var(--offwhite);
    color: var(--blue-dark)
}

/* ------------------------------
   Boutons & liens
-------------------------------*/
.btn {
    display: inline-block;
    line-height: 1;
    padding: 1rem 1.25rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: var(--radius);
    transition: background .2s, color .2s, border-color .2s
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #1589bf;
    border-color: #1589bf;
    color: #fff
}

.btn-secondary {
    background: var(--blue-dark);
    color: #fff;
    border-color: var(--blue-dark)
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: #163e63;
    border-color: #163e63
}

.btn-link {
    background: transparent;
    border-color: transparent;
    color: var(--blue-dark);
    padding: .2rem 0
}

.btn-link:hover,
.btn-link:focus-visible {
    color: var(--accent)
}

.cta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin-top: var(--space-2)
}

/* ------------------------------
   Header / Navigation
-------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid var(--border)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0
}

.brand .brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-dark)
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 38px;
    padding: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    border-radius: var(--radius)
}

.nav-toggle .bar {
    display: block;
    height: 2px;
    background: var(--blue-dark)
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    display: none
}

#menuToggle[aria-expanded="true"]+.nav-list {
    display: block
}

.nav-list li {
    border-top: 1px solid var(--border)
}

.nav-list li:first-child {
    border-top: none
}

.nav-list a {
    display: block;
    padding: .9rem 1rem;
    color: var(--text)
}

.nav-list a:hover {
    color: var(--accent)
}

.nav-list .nav-cta a {
    background: var(--accent);
    color: #fff;
    margin: .5rem;
    border: 1px solid var(--accent);
    text-align: center
}

.nav-list .nav-cta a:hover {
    background: #1589bf;
    border-color: #1589bf
}

@media(min-width:900px) {
    .nav-toggle {
        display: none
    }

    .nav-list {
        position: static;
        display: flex;
        align-items: center;
        gap: 1rem;
        border: none;
        background: transparent;
        min-width: unset
    }

    .nav-list li {
        border: 0
    }

    .nav-list a {
        padding: .25rem 0;
        border-bottom: 2px solid transparent
    }

    .nav-list a:hover {
        color: var(--accent);
        border-color: var(--accent)
    }

    .nav-list a.active {
        color: var(--accent);
        border-color: var(--accent)
    }

    .nav-list .nav-cta a {
        margin-left: .5rem;
        padding: .7rem 1rem
    }
}

/* ------------------------------
   Hero
-------------------------------*/
.hero {
    position: relative;
    min-height: clamp(540px, 75vh, 820px);
    margin: 0 0 var(--space-6)
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.75)
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay)
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-block: clamp(2.5rem, 7vw, 7rem)
}

.hero-content .container {
    width: 100%
}

.hero h1 {
    color: #fff;
    max-width: 26ch
}

.hero .lead {
    color: #e9eef3;
    max-width: 42ch
}

.hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: var(--space-3)
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: var(--space-3) 0 0;
    list-style: none;
    color: #fff
}

.hero .btn-link {
    color: #e9eef3
}

.hero .btn-link:hover {
    color: #fff
}

/* ------------------------------
   Sections spécifiques
-------------------------------*/
/* Réalisations */
.realisations .gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-5)
}

@media(min-width:720px) {
    .realisations .gallery {
        grid-template-columns: repeat(3, 1fr)
    }
}

.gallery-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--offwhite)
}

.gallery-item img {
    aspect-ratio: 4/3;
    width: 100%;
    filter: brightness(.86)
}

.gallery-item figcaption {
    padding: .9rem;
    color: var(--text)
}

.realisations .center {
    margin-top: var(--space-5)
}

/* Services snippet (bloc gris clair) */
.services-snippet {
    background: var(--offwhite)
}

.services-snippet .container {
    padding-inline: clamp(1.5rem, 4vw, 3rem)
}

/* PLUS D'AIR À GAUCHE/DROITE */

/* Proof */
.proof {
    background: var(--offwhite)
}

.proof-inner {
    display: grid;
    gap: var(--space-3)
}

/* Parallax */
.parallax {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
    margin: var(--space-7) 0
}

.parallax-media {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.parallax-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.78)
}

.parallax-overlay {
    position: relative;
    z-index: 1;
    text-align: left;
    color: #fff;
    padding: var(--space-6) 0
}

.parallax-overlay h2 {
    color: #fff
}

/* FAQ */
.faq details {
    border: 1px solid var(--border);
    background: var(--white);
    padding: 1rem;
    margin: .9rem 0
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--blue-dark)
}

/* ------------------------------
   Formulaires
-------------------------------*/
.form {
    display: block
}

.form .grid-2 {
    align-items: start
}

.form-field {
    display: grid;
    gap: .55rem;
    margin: 1.1rem 0
}

label {
    font-weight: 600;
    color: var(--blue-dark)
}

input,
textarea {
    font: inherit;
    padding: 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: border-color .2s, background .2s
}

input:focus,
textarea:focus {
    border-color: var(--accent)
}

input.is-invalid,
textarea.is-invalid {
    border-color: #d64545;
    background: #fff6f6
}

input.is-valid,
textarea.is-valid {
    border-color: #2aa865;
    background: #f3fbf6
}

.msg {
    color: var(--muted)
}

.form-consent {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin: 1rem 0
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem
}

.form-status {
    min-height: 1.25rem;
    color: var(--blue-dark)
}

.hp {
    position: absolute !important;
    left: -9999px !important
}

/* ------------------------------
   Footer
-------------------------------*/
.site-footer {
    background: var(--offwhite);
    border-top: 1px solid var(--border);
    margin-top: var(--space-7)
}

.footer-grid {
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6) 0
}

@media(min-width:800px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .45rem
}

.footer-links a {
    color: var(--text)
}

.footer-links a:hover {
    color: var(--accent)
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border)
}

/* ==============================
   Correctifs demandés (navbar + bannière)
   ============================== */
/* 1) Logo non souligné, uniquement la nav avec soulignement bleu */
.brand .brand-name {
    text-decoration: none;
    border: none;
}

@media(min-width:900px) {
    .site-header .nav-list a {
        border-bottom: 2px solid transparent;
        text-decoration: none;
    }

    .site-header .nav-list a:hover {
        border-bottom-color: var(--accent);
        color: var(--accent);
    }

    .site-header .nav-list a.active {
        border-bottom-color: var(--accent);
        color: var(--accent);
    }
}

/* 2) Bannière : réorganisation du texte/titre/boutons */
.hero-content .container {
    width: 100%;
    display: grid;
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

@media(min-width:900px) {
    .hero-content .container {
        grid-template-columns: 1.2fr 1fr;
        align-items: end;
    }

    .hero h1 {
        grid-column: 1;
    }

    .hero .lead,
    .hero .hero-actions,
    .hero .trust-badges {
        grid-column: 2;
    }
}

.hero h1 {
    color: #fff;
    max-width: 22ch;
}

.hero .lead {
    color: #e9eef3;
    max-width: 46ch;
}

.hero .hero-actions {
    gap: 1rem;
    margin-top: var(--space-3);
}


/* ==============================
   Réorganisation verticale du hero
   ============================== */
.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-block: clamp(3rem, 7vw, 7rem);
}

.hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1.5rem;
    max-width: 780px;
    text-align: left;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero .lead {
    color: #e9eef3;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* ========== Correctif forcé : hero en COLONNE (titre > texte > CTA > badges) ========== */
.hero-content .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1.25rem;
    max-width: 780px;
    text-align: left
}

@media(min-width:900px) {
    .hero-content .container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important
    }

    .hero h1,
    .hero .lead,
    .hero .hero-actions,
    .hero .trust-badges {
        grid-column: auto !important
    }
}

.hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .5rem
}

/* ===== HERO: forçage colonne stricte (titre > texte > CTA > badges) ===== */
.hero-content .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 1.25rem !important;
    max-width: 820px !important;
    text-align: left
}

.hero-content .container>* {
    max-width: 100%
}

/* Annule toute mise en colonnes précédente */
@media(min-width:900px) {
    .hero-content .container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important
    }

    .hero h1,
    .hero .lead,
    .hero .hero-actions,
    .hero .trust-badges {
        grid-column: auto !important
    }
}

/* Espacements verticaux confortables */
.hero h1 {
    margin: 0 0 .75rem 0 !important
}

.hero .lead {
    margin: 0 0 1rem 0 !important
}

.hero .hero-actions {
    margin: 0 0 1rem 0 !important;
    gap: 1rem
}

/* ==============================
   HERO v2 — colonne verticale propre (Titre > Texte > CTA > Badges)
   ============================== */
.hero {
    position: relative;
    min-height: clamp(520px, 70vh, 760px);
    margin: 0 0 var(--space-6)
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.72)
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 28, .55), rgba(8, 18, 28, .35))
}

.hero-content {
    position: relative;
    display: flex;
    align-items: flex-end
}

/* Colonne stricte et aérée */
.hero-content .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 1.25rem !important;
    max-width: 860px !important;
    padding-block: clamp(3rem, 7vw, 6rem)
}

.hero h1 {
    color: #fff;
    letter-spacing: -.01em;
    font-weight: 800;
    line-height: 1.15;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    margin: 0
}

.hero .lead {
    color: #eaf0f4;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
    margin: .25rem 0 1rem
}

.hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 .25rem
}

.trust-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0;
    color: #fff
}

/* === HERO STYLE — inspiré du screen repassage === */
.hero {
    position: relative;
    min-height: clamp(520px, 75vh, 820px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 18, 28, 0.55), rgba(8, 18, 28, 0.35));
}

/* Contenu */
.hero-content {
    position: relative;
    width: 100%;
    padding: clamp(3rem, 6vw, 6rem) var(--pad-inline);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: var(--maxw);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem 0;
    max-width: 30ch;
}

.hero .lead {
    font-size: 1.1rem;
    color: #f1f3f5;
    max-width: 55ch;
    margin: 0 0 2rem 0;
}

.hero .hero-actions {
    display: flex;
    gap: 1rem;
}

.hero .btn-primary {
    background-color: var(--accent);
    color: #fff;
    border: none;
}

.hero .btn-primary:hover {
    background-color: #1589bf;
}

.hero .btn-link {
    color: #fff;
    text-decoration: underline;
}

.hero .trust-badges {
    display: none;
    /* on masque les badges pour ce style épuré */
}

/* --- Alignement horizontal bouton + numéro --- */
.hero .hero-actions {
    display: flex;
    align-items: center;
    /* aligne le texte verticalement au centre du bouton */
    gap: 1rem;
}

/* Optionnel : pour que le lien du numéro ait la même hauteur visuelle */
.hero .btn-link {
    line-height: 1;
    padding: 0.85rem 0;
    /* ajusté pour centrer parfaitement avec le bouton */
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* === Parallax (services.html) =================================== */
/* On utilise la classe <body class="services"> pour ne viser que la page services */
.services .parallax {
    position: relative;
    min-height: clamp(360px, 55vh, 520px);
    background: url("./assets/image-services.jpg") center / cover no-repeat fixed;
    /* parallax */
    overflow: hidden;
}

/* On n'a plus besoin de l'img interne sur cette page */
.services .parallax .parallax-media {
    display: none;
}

/* Overlay sombre léger pour la lisibilité */
.services .parallax::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 28, .42);
}

/* Contenu lisible + blanc */
.services .parallax-overlay {
    position: relative;
    z-index: 1;
    color: #fff;
}

.services .parallax-overlay h2 {
    color: #fff;
}

.services .parallax-overlay .lead {
    color: #fff;
}

/* Optionnel : CTA mieux visible sur image */
.services .parallax-overlay .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.services .parallax-overlay .btn-primary:hover {
    background: #1589bf;
    border-color: #1589bf;
}

/* === Navbar : petite marge à gauche du brand en mobile ========= */
@media (max-width: 720px) {
    .brand .brand-name {
        display: inline-block;
        padding-left: .6rem;
        /* petite marge pour éviter d’être collé au bord */
    }
}

/* === Boutons centrés spécifiques (services + contact) === */
.btn-center-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    /* espace léger entre les boutons */
    text-align: center;
    margin-top: var(--space-4);
}

.btn-center-block .btn {
    margin: 0;
}

/* Sur mobile : boutons empilés si trop étroit */
@media (max-width: 600px) {
    .btn-center-block {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn-center-block .btn {
        width: 100%;
        max-width: 260px;
        /* optionnel : largeur harmonieuse */
    }
}



/* Icône burger : traits visibles et centrés */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* espace entre les barres */
    width: 44px;
    height: 40px;
    margin-right: .75rem;
    /* décolle du bord droit */
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--blue-dark);
}

/* S’assure que le dropdown se positionne par rapport au conteneur nav */
.main-nav {
    position: relative;
}

/* Menu déroulant mobile : décollé du bord droit et plus lisible */
.nav-list {
    right: .75rem;
    /* espace avec le bord droit de l’écran */
    border-radius: .5rem;
    /* optionnel : arrondir si tu veux */
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}


/* ------------------------------
   Header / Navigation — VERSION STABLE
-------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
}

.brand .brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-dark);
    text-decoration: none;
    border: 0;
}

/* Bouton burger — HORS desktop */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 40px;
    padding: 8px;
    margin-right: .75rem;
    /* décollé du bord droit */
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    border-radius: var(--radius);
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--blue-dark);
}

.main-nav {
    position: relative;
}

/* Menu (mobile par défaut) */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    right: .75rem;
    top: calc(100% + .5rem);
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: .5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    display: none;
}

#menuToggle[aria-expanded="true"]+.nav-list {
    display: block;
}

.nav-list li {
    border-top: 1px solid var(--border);
}

.nav-list li:first-child {
    border-top: 0;
}

.nav-list a {
    display: block;
    padding: .9rem 1rem;
    color: var(--text);
    text-decoration: none;
}

.nav-list a:hover {
    color: var(--accent);
}

.nav-list .nav-cta a {
    background: var(--accent);
    color: #fff;
    margin: .5rem;
    border: 1px solid var(--accent);
    text-align: center;
}

/* ====== DESKTOP (>=900px): burger caché, menu inline ====== */
@media (min-width: 900px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-list {
        display: flex !important;
        align-items: center;
        gap: 1rem;
        position: static !important;
        right: auto !important;
        top: auto !important;
        min-width: unset !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .nav-list li {
        border: 0;
    }

    .nav-list a {
        padding: .25rem 0;
        border-bottom: 2px solid transparent;
    }

    .nav-list a:hover {
        color: var(--accent);
        border-color: var(--accent);
    }

    .nav-list a.active {
        color: var(--accent);
        border-color: var(--accent);
    }

    .nav-list .nav-cta a {
        margin-left: .5rem;
        padding: .7rem 1rem;
    }
}