/* ============================================
   MULTIFILMS — Styles principaux
   Palette : Bleu marine chaleureux / Crème / Bleu vif
   ============================================ */

:root {
    --dark: #1a2332;          /* Bleu marine profond */
    --dark-alt: #243447;      /* Bleu marine plus clair */
    --blue: #0077ff;
    --blue-hover: #0060d0;
    --blue-text: #0062d6;   /* bleu assez foncé pour du texte sur fond clair (AA) */
    --blue-light: rgba(0, 119, 255, 0.08);
    --amber: #f2a324;         /* Soleil du logo (accent chaud) */
    --amber-hover: #d98a14;
    --amber-soft: rgba(242, 163, 36, 0.12);
    --warm-bg: #f8f6f2;       /* Fond crème chaud */
    --warm-border: #e8e4dc;   /* Bordure crème */
    --white: #ffffff;
    --gray-100: #f8f6f2;      /* aligné sur le crème chaud */
    --gray-200: #e8e4dc;      /* aligné sur la bordure crème */
    --gray-400: #8b949e;
    --gray-600: #5a6372;      /* texte secondaire plus doux */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
    --shadow-lg: 0 12px 48px rgba(26, 35, 50, 0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- TYPOGRAPHY ---- */

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-text);
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 16px;
}

.section-desc {
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* ---- BUTTONS ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---- NAVBAR ---- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.01em;
    text-transform: none;
}

.nav-logo .wm { display: inline-flex; }
.nav-logo .wm-1 { font-weight: 500; }
.nav-logo .wm-2 { font-weight: 800; color: #3d9bff; }
.nav-logo .wm-3 { font-weight: 500; }
.mf-films { color: #0062d6; }

.logo-mark {
    height: 42px;
    width: 42px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
}
.nav-cta:hover {
    background: var(--blue-hover) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(26, 35, 50, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- HERO ---- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: var(--dark);
    background-image:
        linear-gradient(135deg, rgba(26, 35, 50, 0.62) 0%, rgba(26, 35, 50, 0.42) 48%, rgba(13, 19, 33, 0.72) 100%),
        url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 78% 22%, rgba(242, 163, 36, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 60%, rgba(0, 119, 255, 0.10) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #9ec8ff;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(6px); }
    60% { transform: rotate(45deg) translateY(3px); }
}

/* ---- BANDEAU DE PREUVES (hero) ---- */
.trust-band {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50px;
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.trust-chip svg { width: 20px; height: 20px; flex-shrink: 0; color: #4ade80; }
.trust-chip b { font-weight: 700; font-size: 1.02rem; }
.trust-chip span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }

@media (max-width: 640px) {
    .trust-chip { padding: 8px 14px; }
    .trust-chip span { display: none; }
}

/* ---- PROFILS (hub de routage) ---- */

.profils {
    padding: 100px 0;
    text-align: center;
    background: var(--warm-bg);
}

.profils-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

/* Centre une éventuelle carte orpheline sur la dernière rangée (grand écran) */
@media (min-width: 1025px) {
    .profils-grid > .profil-card:last-child:nth-child(3n + 1) {
        grid-column: 2;
    }
}

.profil-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 180px;
    background: var(--white);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius);
    padding: 32px 28px 60px;
    text-decoration: none;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.profil-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.profil-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 20px;
}

.profil-icon svg {
    width: 30px;
    height: 30px;
}

.profil-card h3 {
    margin-bottom: 8px;
}

.profil-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.profil-arrow {
    position: absolute;
    right: 24px;
    bottom: 22px;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--blue);
    transition: var(--transition);
}

.profil-card:hover .profil-arrow {
    transform: translateX(5px);
}

/* ---- ICÔNES SECTEURS : pastille pleine, couleur par secteur ---- */
.profils-grid .profil-card:nth-child(1) { --sector: #0062d6; } /* Collectivités : bleu */
.profils-grid .profil-card:nth-child(2) { --sector: #b85000; } /* Écoles : orange */
.profils-grid .profil-card:nth-child(3) { --sector: #0b7268; } /* Santé : turquoise */
.profils-grid .profil-card:nth-child(4) { --sector: #bf2620; } /* Entreprises : rouge */
.profils-grid .profil-card:nth-child(5) { --sector: #91660b; } /* Hôtels : doré */
.profils-grid .profil-card:nth-child(6) { --sector: #7c3aed; } /* Commerces : violet */
.profils-grid .profil-card:nth-child(7) { --sector: #475569; } /* Industrie : ardoise */

.profils-grid .profil-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: var(--sector);
    color: #fff;
    box-shadow: 0 5px 14px -6px var(--sector);
}
.profils-grid .profil-icon svg { width: 31px; height: 31px; }
.profils-grid .profil-icon svg path,
.profils-grid .profil-icon svg rect { stroke-width: 2.1; }
.profils-grid .profil-arrow { color: var(--sector); }
.profils-grid .profil-card:hover { border-color: var(--sector); }

/* ---- STATS ---- */

.stats {
    background: var(--dark);
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--blue);
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--amber);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ---- SERVICES ---- */

.services {
    padding: 100px 0;
    text-align: center;
    background: var(--warm-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius);
    padding: 40px 28px 32px;
    text-align: left;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--blue);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

/* Films « soleil / chaleur / déco » : accent chaud ambre */
.service-card.warm .service-icon {
    background: var(--amber-soft);
    color: var(--amber);
}
.service-card.warm::after { background: var(--amber); }

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--blue-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--blue-hover);
}

.service-points {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.service-points li {
    position: relative;
    padding-left: 22px;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.45;
}

.service-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
    font-weight: 700;
}

/* ---- COMMENT ÇA MARCHE (processus) ---- */

.process {
    padding: 100px 0;
    background: var(--white);
    color: var(--dark);
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.process-step {
    position: relative;
    text-align: left;
    padding: 32px 26px;
    background: var(--warm-bg);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--amber);
}

.process-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--amber);
    color: var(--white);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(242, 163, 36, 0.28);
}

.process-step h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.process-step p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---- POURQUOI NOUS / GARANTIES ---- */

.garanties {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
}

.garanties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 56px;
    margin-top: 56px;
    text-align: left;
}

/* Grille de features ouverte (pas de cartes) : séparateur fin + icône ronde */
.garantie-card {
    text-align: left;
    padding: 26px 0 0;
    background: none;
    border: none;
    border-top: 1px solid var(--warm-border);
    border-radius: 0;
    transition: var(--transition);
}

.garantie-card:hover h3 {
    color: var(--blue);
}

.garantie-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Colonne du milieu en accent chaud (alternance bleu / ambre) */
.garantie-card:nth-child(3n + 2) .garantie-icon {
    background: var(--amber-soft);
    color: var(--amber);
}

.garantie-icon svg { width: 28px; height: 28px; }

.garantie-card h3 { margin-bottom: 8px; font-size: 1.1rem; }

.garantie-card p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---- FAQ ---- */

.faq {
    padding: 100px 0;
    background: var(--warm-bg);
    text-align: center;
}

.faq-list {
    max-width: 780px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--warm-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--dark);
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    line-height: 1;
    color: var(--blue);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
    padding: 0 24px 22px;
    margin: 0;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ---- FORMULAIRE : mesures de vitres ---- */

.vitres-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.vitre-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 0.7fr auto;
    gap: 8px;
    align-items: center;
}

.vitre-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--dark);
}

.vitre-row input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-light);
}

.v-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.v-remove:hover { color: #e63946; }

.btn-add-vitre {
    align-self: flex-start;
    background: var(--blue-light);
    color: var(--blue);
    border: 1px dashed var(--blue);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-vitre:hover { background: rgba(0, 119, 255, 0.14); }

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    color: var(--blue);
    border: 1px dashed var(--blue);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-upload:hover { background: rgba(0, 119, 255, 0.14); }

.field-hint {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-600);
    margin-top: -2px;
    margin-bottom: 10px;
}

@media (max-width: 560px) {
    .vitre-row { grid-template-columns: 1fr 1fr 1fr auto; }
    .vitre-row .v-piece { grid-column: 1 / -1; }
}

/* ---- REALISATIONS ---- */

.realisations {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-alt), var(--dark));
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    position: relative;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 19, 33, 0.78) 0%, rgba(13, 19, 33, 0.18) 48%, transparent 78%);
}

.gallery-placeholder span,
.gallery-placeholder small {
    position: relative;
    z-index: 1;
}

.gallery-placeholder span {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.gallery-placeholder small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.gallery-item:hover .gallery-placeholder {
    transform: none;
}

/* ---- RÉNOVATION AVANT / APRÈS ---- */

.renovation {
    padding: 100px 0;
    background: var(--warm-bg);
    text-align: center;
}

.renov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1080px;
    margin: 40px auto 0;
}

.renov-pair {
    margin: 0;
}

.renov-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.renov-shot {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
}

.renov-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.renov-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(26, 35, 50, 0.72);
    color: var(--white);
}

.renov-badge-apres {
    background: var(--blue);
}

.renov-pair figcaption {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ---- SECTEURS DÉTAILLÉS ---- */

.secteur-detail {
    padding: 90px 0;
    background: var(--white);
}

.secteur-detail.reverse {
    background: var(--warm-bg);
}

.secteur-detail-grid {
    display: flex;
    align-items: center;
    gap: 64px;
}

.secteur-detail.reverse .secteur-detail-grid {
    flex-direction: row-reverse;
}

.secteur-detail-content {
    flex: 1;
    min-width: 0;
}

.secteur-detail-content .section-tag {
    text-align: left;
}

.secteur-detail-content h2 {
    margin: 0 0 20px;
}

.secteur-detail-content > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 8px;
}

.secteur-detail-content .apropos-list {
    margin: 24px 0 32px;
}

.secteur-detail-visual {
    flex: 1;
    min-width: 0;
}

.secteur-placeholder {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    padding: 22px 24px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow);
}

.secteur-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 23, 38, 0.66) 0%, rgba(16, 23, 38, 0.12) 42%, transparent 72%);
}

.secteur-placeholder span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* ---- A PROPOS ---- */

.apropos {
    padding: 100px 0;
    background: var(--warm-bg);
}

.apropos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.apropos-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--dark-alt), var(--dark));
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.apropos-content h2 {
    margin-bottom: 20px;
}

.apropos-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.apropos-list {
    list-style: none;
    margin: 24px 0 32px;
}

.apropos-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 500;
}

.apropos-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--blue);
    border-radius: 50%;
    opacity: 0.2;
}

.apropos-list li::after {
    content: '✓';
    position: absolute;
    left: 3px;
    top: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---- COULEUR PAR SECTEUR : sections de détail (intitulé, puces, bouton) ---- */
#secteur-collectivite { --sector: #0062d6; } /* bleu */
#secteur-ecole        { --sector: #b85000; } /* orange */
#secteur-sante        { --sector: #0b7268; } /* turquoise */
#secteur-entreprise   { --sector: #bf2620; } /* rouge */
#secteur-hotel        { --sector: #91660b; } /* doré */
#secteur-commerce     { --sector: #7c3aed; } /* violet */
#secteur-industrie    { --sector: #475569; } /* ardoise */

.secteur-detail .section-tag { color: var(--sector); }
.secteur-detail .apropos-list li::before { background: var(--sector); }
.secteur-detail .apropos-list li::after { color: var(--sector); }
.secteur-detail .btn-primary { background: var(--sector); }
.secteur-detail .btn-primary:hover {
    background: var(--sector);
    filter: brightness(0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ---- RESEAU (carte Leaflet) ---- */

.reseau {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
}

#map {
    height: 480px;
    width: 100%;
    margin-top: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--warm-border);
    box-shadow: var(--shadow);
    z-index: 1;
}

/* Popup */
.leaflet-popup-content { font-family: 'Inter', sans-serif; text-align: center; margin: 14px 16px; }
.popup-region {
    display: block;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 12px;
    max-width: 200px;
}
.popup-devis {
    display: inline-block;
    background: var(--blue);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.popup-devis:hover { background: var(--blue-hover); }

/* ---- CONTACT ---- */

.contact {
    padding: 100px 0;
    background: var(--warm-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-weight: 500;
}

.contact-detail svg {
    color: var(--blue);
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--warm-border);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-light);
}

.form-group textarea {
    resize: vertical;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    cursor: pointer;
}

.form-consent input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.form-consent a {
    color: var(--blue-text);
    text-decoration: underline;
}

.form-error {
    margin: -8px 0 16px;
    padding: 12px 16px;
    background: rgba(191, 38, 32, 0.08);
    border: 1px solid rgba(191, 38, 32, 0.35);
    border-radius: var(--radius-sm);
    color: #a02018;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.btn:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

/* ---- FOOTER ---- */

.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--blue);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---- BOUTON DEVIS FLOTTANT (mobile) ---- */

.cta-flottant {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    display: none;
    align-items: center;
    padding: 14px 24px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 60, 130, 0.35);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ---- ANIMATIONS ---- */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
    .profils-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .garanties-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .renov-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    /* Voile en haut de l'écran : logo et menu lisibles sur le ciel clair du hero */
    .navbar:not(.scrolled) {
        background: linear-gradient(to bottom, rgba(26, 35, 50, 0.65), rgba(26, 35, 50, 0));
        padding-bottom: 26px;
    }

    /* Le hero ne passe plus sous la barre de navigation */
    .hero {
        min-height: auto;
        padding: 120px 0 110px;
    }

    .cta-flottant { display: inline-flex; }
    .cta-flottant.visible {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 35, 50, 0.98);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
    }

    .nav-menu.active { display: flex; }

    .nav-menu a {
        padding: 12px 16px;
        width: 100%;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profils-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .garanties-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .apropos-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .secteur-detail-grid,
    .secteur-detail.reverse .secteur-detail-grid {
        flex-direction: column;
        gap: 32px;
    }

    .hero-buttons { flex-direction: column; align-items: center; }

    .contact-form { padding: 24px; }

    #map { height: 380px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2rem; }
}

/* ---- ACCESSIBILITÉ : animations réduites ---- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; transition: none; }
    .scroll-arrow { animation: none; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ---- BOUTON E-MAIL (anti-scraping) ---- */
.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.email-btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
.email-btn--sm { padding: 8px 16px; font-size: 0.82rem; }

/* Adresse e-mail révélée au clic du bouton */
.email-revealed { color: var(--blue); font-weight: 700; text-decoration: underline; word-break: break-all; }
.footer .email-revealed { color: #6cb0ff; }
