/* Reset de base léger */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background-color: #0b1120;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea,
select,
button {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: auto;
}

h1, h2, h3,
.section-title,
.page-hero h1 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER / NAVBAR */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1.5rem 2rem;
    pointer-events: none; /* Permet à la nav de flotter sans bloquer les clics, sauf sur elle-même */
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    pointer-events: auto;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.6rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 999px; /* arrondi sur les côtés (pill) */
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    flex: 0 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    outline: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.nav-logo:focus,
.nav-logo:focus-visible,
.nav-logo:hover,
.nav-logo:active {
    outline: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.nav-logo img {
    height: 50px;
    width: auto;
    max-height: 50px;
    display: block;
    object-fit: contain;
    object-position: left center;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.nav-center {
    flex: 1 1 auto;
    justify-content: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    color: #e5e7eb;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
    background-color: rgba(148, 163, 184, 0.2);
    color: #f9fafb;
    transform: translateY(-1px);
}

.nav-right {
    flex: 0 0 auto;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    background: #ab0023;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    /* box-shadow: 0 10px 30px rgba(248, 113, 113, 0.4); */
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.nav-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(171, 0, 35, 0.6);
    background: #c00028;
}

/* Bouton hamburger (caché sur desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin-left: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #e5e7eb;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
    color: #fff;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.main-nav.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.main-nav.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.main-nav.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO AVEC VIDEO PLEIN ÉCRAN */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.2), transparent 50%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.25), transparent 55%),
                linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #f9fafb;
}

.hero-brand {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.2rem); /* même taille que l'ancien h1 */
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
    line-height: 1.2;
}

.hero-content h1 {
    font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2.1rem); /* légèrement plus petit, toujours au-dessus du texte */
    line-height: 1.05;
    color: #94a3b8; /* légèrement plus clair / light que le texte par défaut du hero */
    margin-bottom: 0.7rem;
    font-weight: 500;
}

.hero-content p {
    max-width: 550px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    background: #ab0023;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    /* box-shadow: 0 20px 50px rgba(34, 197, 94, 0.5); */
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px rgba(171, 0, 35, 0.7);
    background: #c00028;
}

@media (max-width: 767px) {
    .hero-cta {
        padding: 0.68rem 0.95rem;
        font-size: 0.86rem;
        line-height: 1.25;
        border-radius: 22px;
        text-align: center;
    }
}

/* Conteneur des sections : même alignement que le hero (max-width + padding) */
.section .container--narrow {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* SECTIONS (architecture commune + Bootstrap grid) */
.section {
    padding: 4rem 0;
    color: #e5e7eb;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 60ch;
}

.section-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text a {
    color: #e11d48;
    text-decoration: underline;
}

.section-text a:hover {
    color: #f43f5e;
}

.section-text .hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    text-decoration: none;
    color: #fff;
    background: #ab0023;
}

.section-text .hero-cta:hover {
    color: #fff;
    background: #c00028;
}

.section--alt.section--white .section-text a.hero-cta,
.section--alt.section--white .section-text .hero-cta {
    color: #ffffff !important;
}

.section--alt.section--white .section-text a.hero-cta:hover,
.section--alt.section--white .section-text .hero-cta:hover {
    color: #ffffff !important;
}

/* Alternance fond blanc / bleu après la présentation */
.section--alt.section--white {
    background-color: #ffffff;
    color: #1e293b;
}

/* Fond légèrement grisé pour les sections devis & FAQ */
section#devis-etapes.section--alt.section--white,
section#faq.section--alt.section--white {
    background-color: #f9fafb;
}

/* Texte de la zone d'intervention en noir */
#zone-intervention .section-text p {
    color: #0f172a;
}

.section--alt.section--white .section-title {
    color: #0f172a;
}

.section--alt.section--white .section-intro {
    color: #475569;
}

.section--alt.section--white .section-text p {
    color: #94a3b8;
}

.section--alt.section--white .section-text a {
    color: #ab0023;
}

.section--alt.section--white .section-text a:hover {
    color: #c00028;
}

/* Cartes services : pleine largeur du conteneur, effet pile au scroll (jeu de cartes) */
.services-cards-stack-wrapper {
    width: 100%;
    margin-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.services-trust {
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.services-trust li::before {
    content: "\2713";
    display: inline-block;
    margin-right: 0.4rem;
    color: #16a34a;
    font-weight: bold;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.services-cards-stack {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    /* Pattern alt-web : min-height = hauteur_carte × nombre de cartes pour que les cartes s’empilent au scroll */
    min-height: calc(580px * 4);
}

/* Carte 1 = base fixe ; 2 et 3 défilent au scroll et viennent se placer dessus */
/* min-height identique sur toutes les cartes pour que la 3e ait assez de "runway" pour s'empiler à fond */
.service-card {
    position: sticky;
    top: 10rem;
    z-index: 1;
    margin-bottom: 0;
    padding: 2.1rem 2.4rem;
    min-height: 580px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
    overflow: hidden;
    contain: layout style paint;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Première carte : fixe (base du jeu) */
.service-card--1 {
    z-index: 1;
}

/* Cartes 2 et 3 : défilent puis se placent au-dessus de la précédente (effet empilée) */
.service-card--2 {
    z-index: 2;
    margin-top: -2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.07);
}

.service-card--3 {
    z-index: 3;
    margin-top: -2rem;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.11), 0 3px 8px rgba(0, 0, 0, 0.08);
}

.service-card--4 {
    z-index: 4;
    margin-top: -2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Un peu plus d'espace sous le bouton sur les 3 premières cartes pendant l’animation */
.service-card--1,
.service-card--2,
.service-card--3,
.service-card--4 {
    padding-bottom: 2.6rem;
}

.service-card-img-wrap {
    position: relative;
    width: calc(100% + 5rem);
    margin: -2.25rem 0 1rem -2.5rem;
    height: 380px;
    flex-shrink: 0;
    overflow: hidden;
}

.service-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Filtre / overlay #0b1120 sur l’image */
.service-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.45);
    pointer-events: none;
    z-index: 1;
}

/* Zone sous la photo : titre, texte et bouton centrés en hauteur */
.service-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.service-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: #fff;
    color: #ab0023;
    border: 2px solid #ab0023;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Plus d'espace sous le bouton pour les 3 premières cartes de services sur l'accueil */
.services-cards-stack .service-card--1 .service-card-cta,
.services-cards-stack .service-card--2 .service-card-cta,
.services-cards-stack .service-card--3 .service-card-cta,
.services-cards-stack .service-card--4 .service-card-cta {
    margin-bottom: 1rem;
}

.service-card-cta:hover {
    background: #ab0023;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(171, 0, 35, 0.4);
}

/* Espace de scroll : calcul pour que la 3e carte s'empile exactement comme les 2 premières.
   Quand la carte 2 est fixée en top: 10rem, la carte 3 est en (10rem + hauteur_carte2 + marge2).
   Pour que la carte 3 atteigne 10rem il faut scroller (hauteur_carte2 + marge2).
   L'espace sous la carte 2 = marge2 + hauteur_carte3. Il faut donc marge2 + hauteur_carte3 >= hauteur_carte2 + marge2
   => hauteur_carte3 >= hauteur_carte2. Avec min-height égal sur toutes les cartes, une marge unique suffit. */
@media (min-width: 769px) {
    /* Pas de marge entre les cartes : l’espace de scroll vient du min-height du stack (pattern alt-web). */
}

@media (max-width: 768px) {
    .services-cards-stack-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* On garde le même principe d’empilement sur mobile/tablette
       mais avec des cartes un peu moins hautes. */
    .services-cards-stack {
        min-height: calc(480px * 4);
    }

    .service-card {
        top: 8rem;
        min-height: 480px;
        padding: 1.6rem 1.45rem;
    }

    .service-card--1,
    .service-card--2,
    .service-card--3,
    .service-card--4 {
        padding-bottom: 2.2rem;
    }

    .service-card--2,
    .service-card--3,
    .service-card--4 {
        margin-top: -1.5rem;
    }

    .service-card-img-wrap {
        width: calc(100% + 3rem);
        margin: -1.75rem 0 0.75rem -1.5rem;
        height: 300px;
    }

    .service-card-title {
        font-size: 1.2rem;
        min-height: 2.8rem;
        margin-bottom: 0;
    }

    .service-card-body {
        justify-content: flex-start;
        gap: 0.2rem;
    }

    .service-card-text {
        margin: 0;
        min-height: 3.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-card-cta {
        margin-top: auto;
    }

    .section--services .services-trust {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        align-items: flex-start;
    }

    .section--services .services-trust li {
        display: block;
        width: 100%;
    }

    /* Icônes vertes visibles sur mobile (évite héritage / rendu ::before) */
    .section--services .services-trust li::before {
        content: "\2713";
        display: inline-block;
        color: #16a34a !important;
        font-weight: 700;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    }
}

.section--alt.section--red {
    background-color: #ab0023;
    color: #ffffff;
}

.section--alt.section--red .section-title {
    color: #ffffff;
}

.section--alt.section--red .section-intro {
    color: rgba(255, 255, 255, 0.9);
}

.section--alt.section--red .section-text p {
    color: rgba(255, 255, 255, 0.9);
}

.section--alt.section--red .section-text a:not(.hero-cta) {
    color: #fecaca;
}

.section--alt.section--red .section-text a:not(.hero-cta):hover {
    color: #ffffff;
}

.engagements-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: inline-block;
}

@media (min-width: 992px) {
    /* Sur desktop, aligne le logo à droite de sa colonne */
    #engagements .engagements-logo {
        display: block;
        margin-left: auto;
        margin-right: 0;
    }
}

.zone-intervention-illustration {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: inline-block;
}

@media (min-width: 992px) {
    #zone-intervention .zone-intervention-illustration {
        display: block;
        margin-left: auto;
        margin-right: 0;
    }
}

/* Image principale de réalisation sur la page réalisations */
.realisation-main-photo {
    margin: 1.5rem 0 1.25rem;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.realisation-main-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

/* Filtre / overlay identique aux images de services */
.realisation-main-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.45);
    pointer-events: none;
}

/* Partenaires : sur desktop, étirer les logos sur toute la largeur */
@media (min-width: 992px) {
    #partenaires .row.g-4 {
        justify-content: space-between !important;
    }
}

.section--alt.section--blue {
    background-color: #0b1120;
    color: #ffffff;
}

.section--alt.section--blue .section-title {
    color: #ffffff;
}

.section--alt.section--blue .section-intro {
    color: #ffffff;
}

.section--alt.section--blue .section-text p {
    color: #94a3b8;
}

.section--alt.section--blue .section-text a:not(.hero-cta) {
    color: #93c5fd;
}

.section--alt.section--blue .section-text a:not(.hero-cta):hover {
    color: #bfdbfe;
}

.section--alt.section--blue .section-text a.hero-cta {
    margin-top: 0.5rem;
    text-decoration: none;
}

/* Cartes d'actualités – style inspiré des news M.O Toiture */
#actualites .row.g-4 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2.5rem;
}

@media (min-width: 768px) {
    #actualites .row.g-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

/* FAQ – accordéon propre et lisible */
.faq-list {
    margin-top: 2.5rem;
}

.faq-accordion .accordion-item {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-button {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #ffffff;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: #0f172a;
    background-color: #f9fafb; /* remplace le bleu #cfe2ff de Bootstrap */
    box-shadow: none;
}

.faq-accordion .accordion-button:focus,
.faq-accordion .accordion-button:focus-visible {
    box-shadow: none;           /* supprime l’anneau bleu Bootstrap */
    border-color: transparent;  /* supprime le trait coloré autour */
}

.faq-accordion .accordion-body {
    font-size: 0.96rem;
    line-height: 1.7;
    color: #0f172a; /* texte de réponse en noir / très foncé */
}

.actualite-card {
    display: flex;
    flex-direction: column;
    cursor: default;
}

.actualite-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: 0.75rem;
}

.actualite-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
    border-radius: 0.75rem;
}

/* Garder la même hauteur d'image en responsive qu'en desktop */
@media (max-width: 767.98px) {
    .actualite-card-image {
        height: 240px;
    }
}

.actualite-card:hover .actualite-card-image img {
    transform: scale(1.05);
}

.actualite-card-content {
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.actualite-card-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.actualite-card-reading-time {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.actualite-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f9fafb;
    line-height: 1.4;
}

.actualite-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e5e7eb;
}

/* Page détail d'une actualité */
.actualite-detail {
    max-width: 1200px;
    margin: 0 auto 2.5rem auto;
}

.actualite-detail-header {
    margin-bottom: 2rem;
}

.actualite-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.actualite-detail-meta {
    font-size: 0.9rem;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.actualite-detail-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #e5e7eb;
}

.actualite-detail + p {
    margin-top: 1.5rem;
}

/* Demande de devis par étape – indicateur et étapes */
.devis-steps {
    margin-top: 2rem;
}

.devis-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.devis-step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.devis-step-dot--current,
.devis-step-dot.active {
    background: #ab0023;
    box-shadow: 0 0 0 3px rgba(171, 0, 35, 0.25);
}

.devis-step-line {
    flex: 1;
    height: 3px;
    max-width: 80px;
    background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 100%);
    border-radius: 2px;
}

.devis-steps-list {
    margin-bottom: 2rem;
}

.devis-step-item {
    padding: 1.25rem 1rem;
    text-align: center;
}

.devis-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #ab0023;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.devis-step-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.devis-step-text {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

.devis-steps-cta {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.devis-steps-cta-text {
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.95rem;
}

.devis-steps-cta .hero-cta {
    color: #ffffff !important;
}

.devis-steps-cta .hero-cta:hover {
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .devis-steps-indicator {
        margin-bottom: 2rem;
    }
    .devis-step-line {
        max-width: 40px;
    }
}

/* Variante sur fond blanc pour la section Actualités */
section#actualites.section--alt.section--white .section-title {
    color: #0f172a;
}

section#actualites.section--alt.section--white .section-intro {
    color: #475569;
}

section#actualites.section--alt.section--white .actualite-card-title {
    color: #0f172a;
}

section#actualites.section--alt.section--white .actualite-card-excerpt {
    color: #475569;
}

section#actualites.section--alt.section--white .actualite-card-date,
section#actualites.section--alt.section--white .actualite-card-reading-time {
    color: #6b7280;
}

/* Highlights (encarts type +15 ans, Sur mesure, Qualité) */
.section-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-highlight {
    padding: 1rem 1.25rem;
    background: rgba(171, 0, 35, 0.12);
    border: 1px solid rgba(171, 0, 35, 0.3);
    border-radius: 12px;
    text-align: center;
}

.section-highlight-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.25rem;
}

.section-highlight-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section .container--narrow {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* .section-highlights {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    } */

}

/* Page hero (sous-pages sans vidéo) */
.page-hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    color: #f9fafb;
}

.page-hero .container--narrow {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    margin-top: 3rem;
}

.page-hero p {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto;
}

/* Sections des sous-pages */
.page-section {
    margin-bottom: 3rem;
    color: #e5e7eb;
}

.page-section--alt {
    background-color: #0b1120;
}

.page-section--cta {
    text-align: center;
    margin-top: 2.5rem;
}

.page-section--cta .hero-cta {
    margin-top: 1rem;
}

.page-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.page-section-inner h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.page-section-inner p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.realisations-link {
    color: #fda4af;
    font-weight: 600;
    text-decoration: none;
}

.realisations-link:hover {
    color: #fecdd3;
    text-decoration: underline;
}

/* Pages d'authentification Symfony (login / reset) */
.body-auth {
    background-color: #0b1120;
    color: #e5e7eb;
}

.page-auth .page-hero {
    text-align: center;
    padding: 6rem 2rem 2rem 2rem;
}

.page-auth .page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.page-auth .page-hero p {
    max-width: 700px;
    margin: 0.5rem auto 0;
}

@media (max-width: 768px) {
    .page-section-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Page Services (inspirée alt-web : blocs, ancres, saut rapide) */
.services-main {
    min-height: 100vh;
    background-color: #0b1120;
}

.services-section .container--narrow {
    max-width: 1200px; /* harmonisé avec le container principal de l'index */
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.services-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #f9fafb;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.services-intro {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #94a3b8;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.services-jump {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.services-jump-link {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.services-jump-link:hover {
    border-color: rgba(171, 0, 35, 0.6);
    color: #f9fafb;
    transform: translateY(-1px);
}

.services-blocks {
    max-width: 1200px;
    margin: 0 auto;
}

.service-block {
    margin-bottom: 3rem;
}

.service-block:last-of-type {
    margin-bottom: 0;
}

.service-line {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: 2px;
    margin: 0 auto 2rem;
    background: linear-gradient(90deg, rgba(171, 0, 35, 0.4), rgba(148, 163, 184, 0.3));
}

.service-block:first-child .service-line {
    margin-top: 0;
}

.service-block-title {
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.service-block-text {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}

.service-block-points {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    font-size: clamp(0.98rem, 1.6vw, 1.05rem);
}

.service-block-points li {
    margin-bottom: 0.4rem;
}

.service-block-points li::marker {
    color: rgba(171, 0, 35, 0.8);
}

.service-block-points strong {
    color: #e5e7eb;
    font-weight: 600;
}

.services-cta {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.services-cta-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Bloc SEO de la page services */
.services-seo {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.services-seo h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.services-seo p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #cbd5f5;
    margin-bottom: 1rem;
}

.services-seo--urgent {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding: 1.4rem 1.2rem 1.1rem;
    border: 1px solid rgba(171, 0, 35, 0.55);
    border-radius: 14px;
    background: rgba(171, 0, 35, 0.08);
    box-shadow: 0 10px 24px rgba(171, 0, 35, 0.14);
}

.services-seo--urgent h2 {
    color: #ffe4e6;
}

.services-seo--urgent p {
    color: #fecdd3;
}

.services-seo--urgent .service-block-points {
    margin-top: 0.8rem;
    color: #fda4af;
}

.services-seo--urgent .service-block-points li::marker {
    color: #fb7185;
}

.services-cta .hero-cta {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .services-section .container--narrow {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .service-block {
        margin-bottom: 2.5rem;
    }
}

.page-section--contact .contact-block {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.page-section--contact .contact-block:last-of-type {
    border-bottom: none;
}

.page-section--contact a {
    color: #e5e7eb;
}

.page-section--contact a:hover {
    color: #f9fafb;
}

/* Formulaire de contact */
.contact-form {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.contact-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.contact-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}

.contact-field input,
.contact-field textarea {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 0.75rem;
    padding: 0.6rem 0.85rem;
    color: #f9fafb;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #6b7280;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #ab0023;
    box-shadow: 0 0 0 1px rgba(171, 0, 35, 0.7);
    background: rgba(15, 23, 42, 0.95);
}

.contact-field textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form-actions {
    margin-top: 1.25rem;
}

.contact-consent {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.contact-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-consent input[type="checkbox"] {
    margin-top: 0.2rem;
}

.contact-consent a {
    color: #e5e7eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form-actions .hero-cta {
    display: inline-flex;
}

@media (max-width: 767px) {
    .contact-form {
        margin-top: 2rem;
        padding-top: 1.75rem;
    }
    .contact-form-row {
        flex-direction: column;
    }
}

/* Page Devis – formulaire multi-étapes */
.page-section--devis .devis-form-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.devis-form-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.devis-form-dot.active {
    background: #ab0023;
    color: #fff;
}

.devis-form-line {
    flex: 1;
    height: 3px;
    max-width: 35px;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 2px;
}

.devis-form-step {
    display: none;
}

.devis-form-step.active {
    display: block;
}

.devis-form-step h2 {
    font-size: 1.35rem;
    color: #f9fafb;
    margin-bottom: 1rem;
    text-align: center;
}

.devis-step-desc {
    color: #94a3b8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    text-align: center;
}

.devis-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Ajuster l'espacement dans l'étape "Détails du projet" (surface / urgence) */
.devis-form-step[data-step="6"] .devis-form-row {
    margin-top: 0.75rem;
    margin-bottom: 1.75rem;
}

.devis-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.devis-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}

.devis-consent {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.devis-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.devis-consent input[type="checkbox"] {
    margin-top: 0.2rem;
}

.devis-consent a {
    color: #e5e7eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.devis-field input,
.devis-field textarea,
.devis-field select {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 0.75rem;
    padding: 0.6rem 0.85rem;
    color: #f9fafb;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.devis-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.4rem; /* plus d'espace pour la flèche native */
}

.devis-field input:focus,
.devis-field textarea:focus,
.devis-field select:focus {
    border-color: #ab0023;
    box-shadow: 0 0 0 1px rgba(171, 0, 35, 0.7);
}

.devis-field textarea {
    resize: vertical;
    min-height: 120px;
}

.devis-services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.devis-service-option {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.devis-service-option:hover {
    border-color: rgba(171, 0, 35, 0.5);
}

.devis-service-option input:checked + .devis-service-label {
    color: #ab0023;
}

.devis-service-option input {
    margin-top: 0.25rem;
    accent-color: #ab0023;
}

.devis-service-label {
    font-weight: 600;
    color: #e5e7eb;
    flex: 1;
    min-width: 0;
}

.devis-service-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    flex: 0 0 100%;
    margin-top: -0.25rem;
}

.devis-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    justify-content: center;
}

.devis-form-actions .service-card-cta {
    display: inline-flex;
}

.devis-recap {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.devis-recap p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.devis-recap p:last-child {
    margin-bottom: 0;
}

.devis-success {
    text-align: center;
    padding: 2rem 0;
    color: #ef4444;
}

.devis-success h2 {
    color: #f9fafb;
    margin-bottom: 1rem;
}

.page-section-inner p.devis-success {
    color: #ef4444;
}

.devis-success p {
    color: #ef4444;
    margin-bottom: 1rem;
}

a.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ef4444;
    font-weight: 700;
    text-decoration: none;
}

a.back-home-link:visited {
    color: #ef4444;
}

a.back-home-link:hover {
    text-decoration: underline;
}

.devis-erreur {
    background: rgba(171, 0, 35, 0.2);
    border: 1px solid rgba(171, 0, 35, 0.5);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .devis-form-row {
        flex-direction: column;
    }
    .page-section--devis .devis-form-indicator {
        max-width: 100%;
    }
    .devis-form-dot {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    .devis-form-line {
        max-width: 20px;
    }
}

/* Vidéo de réalisations sur l'accueil */
.realisations-video-elt {
    display: block;
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    margin: 1.5rem auto 0;
}

/* Titres / paragraphes génériques dans main (fallback) */
main .section .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

main .section .section-text p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Barre en bas à droite, verticale (retour haut, tél, contact) – style navbar */
.floating-actions {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
}

.floating-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #ab0023;
    color: #ffffff;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.floating-action:hover {
    background: #c00028;
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(171, 0, 35, 0.5);
}

.floating-action-icon {
    flex-shrink: 0;
    stroke: currentColor;
}

.floating-action .floating-action-icon {
    color: #ffffff;
}

/* FOOTER */
.site-footer {
    padding: 3rem 1.5rem 2.5rem;
    background-color: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding: 0 0.5rem 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-logo {
    display: block;
    flex: 1;
    flex-basis: 0;
    min-width: 50px;
}

.footer-nav {
    flex: 0 0 auto;
}

.footer-logo img {
    height: 50px;
    max-height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.footer-nav a {
    color: #cbd5e1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-nav a:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.15);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex: 1;
    flex-basis: 0;
    min-width: 50px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: #ab0023;
    color: #fff;
    transform: translateY(-2px);
}

.footer-social-icon {
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.footer-bottom-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 1.5rem;
}

.footer-legal {
    margin: 0;
    text-align: right;
}

.footer-legal a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #e2e8f0;
}

.footer-sep {
    margin: 0 0.35rem;
    color: #64748b;
    user-select: none;
}

.footer-copy {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    width: 100%;
}

.footer-copy-link {
    color: inherit;
    text-decoration: none;
}

.footer-copy-link:hover {
    text-decoration: none;
}

.footer-alt-t {
    color: #ab0023;
}

@media (max-width: 767px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding-bottom: 1.75rem;
        margin-bottom: 1.75rem;
    }
    .footer-logo img {
        height: 38px;
        max-height: 38px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
    .footer-social {
        justify-content: center;
        margin-top: 0.5rem;
    }
    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav a,
    .footer-legal a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.5rem 0.9rem;
    }
    .footer-bottom-main {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        align-items: center;
    }
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-self: center;
    }
    .footer-legal {
        text-align: center;
        width: 100%;
    }
}

/* RESPONSIVE — Tablette : réduction progressive */
@media (max-width: 1024px) {
    .site-header {
        padding: 1.25rem 1.5rem;
    }

    .nav-inner {
        padding: 0.5rem 1.25rem;
        gap: 1.25rem;
    }

    .nav-logo img {
        height: 42px;
        max-height: 42px;
    }

    .footer-logo img {
        height: 42px;
        max-height: 42px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.55rem;
    }

    .nav-center {
        gap: 1rem;
    }

    .nav-button {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.25rem;
    }

    .nav-inner {
        position: relative;
        padding: 0.6rem 1rem;
        overflow: visible;
    }

    .nav-logo img {
        height: 38px;
        max-height: 38px;
    }

    /* Menu en panneau séparé sous la barre : plus de dévoilement "en rond" */
    .nav-center {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        max-height: 0;
        overflow: hidden;
        padding: 0 1rem;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-top: none;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        transition: max-height 0.3s ease-out;
    }

    .main-nav.is-open .nav-center {
        max-height: 20rem;
    }

    .nav-center .nav-link {
        font-size: 1rem;
        font-weight: 500;
        padding: 0.7rem 1rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        opacity: 0;
        transition: opacity 0.2s ease, background-color 0.2s ease;
    }

    .main-nav.is-open .nav-center .nav-link {
        opacity: 1;
    }

    .main-nav.is-open .nav-center .nav-link:nth-child(1) { transition-delay: 0.05s; }
    .main-nav.is-open .nav-center .nav-link:nth-child(2) { transition-delay: 0.1s; }
    .main-nav.is-open .nav-center .nav-link:nth-child(3) { transition-delay: 0.15s; }
    .main-nav.is-open .nav-center .nav-link:nth-child(4) { transition-delay: 0.2s; }

    .nav-center .nav-link:hover,
    .nav-center .nav-link:active {
        background: rgba(148, 163, 184, 0.12);
    }

    .nav-right {
        margin-left: auto;
    }

    .nav-button {
        padding: 0.35rem 0.9rem;
        font-size: 0.8rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .floating-actions {
        bottom: 1rem;
        right: 1rem;
        padding: 0.4rem;
        gap: 0.35rem;
    }

    .floating-action {
        width: 2.5rem;
        height: 2.5rem;
    }

    .floating-action-icon {
        width: 18px;
        height: 18px;
    }
}

/* Très petit mobile : encore plus compact */
@media (max-width: 480px) {
    .section .container--narrow {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header {
        padding: 0.75rem 1rem;
    }

    .nav-inner {
        padding: 0.4rem 0.75rem;
    }

    .nav-logo img {
        height: 34px;
        max-height: 34px;
    }

    .footer-logo img {
        height: 34px;
        max-height: 34px;
    }

    .nav-button {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }

    .nav-toggle {
        width: 2.25rem;
        height: 2.25rem;
    }

    .nav-toggle-bar {
        width: 18px;
    }
}

.page-error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Boutons pages d'erreur : même taille, un style hero-cta (rouge), un style service-card-cta (contour) */
.page-error-btn--primary,
.page-error-btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-error-btn--primary {
    background: #ab0023;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-error-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px rgba(171, 0, 35, 0.7);
    background: #c00028;
    color: #ffffff;
}

.page-error-btn--secondary {
    background: #fff;
    color: #ab0023;
    border: 2px solid #ab0023;
}

.page-error-btn--secondary:hover {
    background: #ab0023;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(171, 0, 35, 0.4);
}
