*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/*VARIABLES — MODE CLAIR (défaut)*/
:root {
    --blue: #416FAF;
    --blue-dark: #1a2d4f;
    --blue-mid: #2a4a8a;

    /* Thème clair */
    --bg: #f8fafd;
    --text: #0f1a2e;
    --text-muted: rgba(15, 26, 46, 0.5);
    --card-bg: #ffffff;
    --border: rgba(65, 111, 175, 0.12);
    --surface: rgba(65, 111, 175, 0.05);
}

/*MODE SOMBRE*/
body.dark-mode {
    --bg: #0d0f14;
    --text: #ffffff;
    --text-muted: rgb(255, 255, 255);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --surface: rgba(255, 255, 255, 0.04);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/*ACCESSIBILITÉ — BOUTON HAUT*/
#btn-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(65, 111, 175, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    z-index: 900;
    pointer-events: none;
}

#btn-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#btn-top:hover {
    background: #3460a0;
}

#btn-top svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/*ACCESSIBILITÉ — BOUTON PANNEAU*/
#btn-access {
    position: fixed;
    bottom: 36px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(65, 111, 175, 0.15);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    z-index: 900;
}

#btn-access:hover {
    border-color: var(--blue);
    transform: scale(1.05);
}

#btn-access svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue);
}

/*ACCESSIBILITÉ — PANNEAU*/
#access-panel {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 240px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(65, 111, 175, 0.15);
    z-index: 901;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(12px);
}

#access-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.panel-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(65, 111, 175, 0.6);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.access-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-align: left;
    width: 100%;
}

.access-btn:hover {
    background: rgba(65, 111, 175, 0.08);
    border-color: rgba(65, 111, 175, 0.3);
}

.access-btn.active {
    background: rgba(65, 111, 175, 0.12);
    border-color: var(--blue);
    color: var(--blue);
}

.access-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.reading-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    padding: 8px 14px;
    background: rgba(65, 111, 175, 0.08);
    border-radius: 8px;
}

.reading-indicator.show {
    display: flex;
}

.reading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/*MENU NAVBAR*/
#site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 48px);
    max-width: 1160px;
}

.header-inner {
    background: #0f1a2e;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 15px;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header-logo {
    flex-shrink: 0;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

nav>a,
.dropdown-toggle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav>a:hover,
.dropdown-toggle:hover {
    color: white;
    border-color: var(--blue);
}

nav>a.active,
.dropdown-toggle.active {
    color: white;
    border-color: var(--blue);
}

.dropdown-toggle svg {
    width: 13px;
    height: 13px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    z-index: 100;
}

.dropdown-menu-inner {
    background: #0f1a2ec0;
    border-radius: 13px;
    padding: 8px;
    min-width: 290px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 7px;
    transition: background 0.12s, color 0.12s;
}

.dropdown-menu a:hover {
    background: rgba(65, 111, 175, 0.35);
    color: white;
}

.btn-cta {
    flex-shrink: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: white;
    background: var(--blue);
    border: 1px solid rgba(100, 150, 220, 0.6);
    padding: 8px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 10px rgba(65, 111, 175, 0.45), 0 0 0 1px rgba(100, 150, 220, 0.15);
}

.btn-cta:hover {
    background: #3460a0;
    box-shadow: 0 0 16px rgba(65, 111, 175, 0.65), 0 0 0 1px rgba(100, 150, 220, 0.25);
}

/*BANNIERE HERO*/
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 70% at 100% 0%, rgba(0, 106, 255, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 55% 55% at 0% 100%, rgba(0, 106, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 50% 0%, rgba(65, 111, 175, 0.2) 0%, transparent 50%),
        var(--bg);
    z-index: 0;
    transition: background 0.4s ease;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 48px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.1s;
}

.hero-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--blue);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(72px, 9vw, 130px);
    line-height: 0.92;
    color: var(--text);
    letter-spacing: 1px;
    max-width: 780px;
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-title .highlight {
    color: var(--blue);
}

.hero-desc {
    margin-top: 32px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 460px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.55s;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 1.3s;
}

.scroll-arrow-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(65, 111, 175, 0.6), transparent);
    animation: lineGrow 1.4s ease-in-out infinite;
}

.scroll-arrow-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 1.8s ease-in-out infinite;
}

.scroll-arrow-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

/*ANIMATIONS*/
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

@keyframes lineGrow {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 0;
    }
}

/*EN-TÊTE DE SECTION (commun)*/
.section-header {
    text-align: center;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 5vw, 64px);
    color: var(--text);
    letter-spacing: 0.5px;
    line-height: 1;
}

.section-title span {
    color: var(--blue);
}

.section-desc {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/*À PROPOS*/
.apropos-section {
    padding: 100px 48px 0;
    max-width: 1160px;
    margin: 0 auto;
}

.apropos-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.apropos-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.apropos-text.visible {
    opacity: 1;
    transform: translateX(0);
}

.apropos-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
}

.apropos-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    flex-shrink: 0;
}

.apropos-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    color: var(--text);
    letter-spacing: 0.5px;
}

.apropos-title span {
    color: var(--blue);
}

.apropos-desc {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 460px;
}

.btn-apropos {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    background: var(--blue);
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-start;
    box-shadow: 0 0 20px rgba(65, 111, 175, 0.35), 0 0 0 1px rgba(100, 150, 220, 0.15);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-apropos:hover {
    background: #3460a0;
    box-shadow: 0 0 28px rgba(65, 111, 175, 0.5), 0 0 0 1px rgba(100, 150, 220, 0.25);
    transform: translateY(-1px);
}

.btn-apropos svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.btn-apropos:hover svg {
    transform: translateX(3px);
}

.apropos-image-wrap {
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.apropos-image-wrap.visible {
    opacity: 1;
    transform: translateX(0);
}

.apropos-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8eef7 0%, #d0ddf0 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(65, 111, 175, 0.4);
    border: 2px dashed rgba(65, 111, 175, 0.2);
    overflow: hidden;
    position: relative;
}

.apropos-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    display: block;
}

.img-deco {
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 80px;
    height: 80px;
    border-left: 3px solid var(--blue);
    border-bottom: 3px solid var(--blue);
    border-radius: 0 0 0 12px;
    opacity: 0.4;
}

/*STATISTIQUES*/
.stats-section {
    padding: 60px 48px 100px;
    max-width: 1160px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(65, 111, 175, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.stat-card {
    background: var(--card-bg);
    padding: 52px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    transition: background 0.3s;
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--blue);
    border-radius: 2px 2px 0 0;
    transition: width 0.3s;
}

.stat-card:hover::before {
    width: 60px;
}

.stat-card:hover {
    background: rgba(65, 111, 175, 0.04);
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 76px;
    line-height: 1;
    color: var(--text);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-number .suffix {
    color: var(--blue);
    font-size: 56px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    max-width: 150px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.stat-card.visible .stat-number,
.stat-card.visible .stat-label {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:nth-child(2) .stat-number {
    transition-delay: 0.15s;
}

.stat-card:nth-child(2) .stat-label {
    transition-delay: 0.30s;
}

.stat-card:nth-child(3) .stat-number {
    transition-delay: 0.30s;
}

.stat-card:nth-child(3) .stat-label {
    transition-delay: 0.45s;
}

/*NOS SERVICES*/
.services-section {
    padding: 100px 48px;
    max-width: 1160px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(65, 111, 175, 0.12);
    border-color: rgba(65, 111, 175, 0.25);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #dde6f5 0%, #c8d8ee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.service-card:hover .card-image::after {
    opacity: 1;
}

.card-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    align-items: center;
    text-align: center;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: var(--text);
    line-height: 1.1;
    transition: color 0.2s;
}

.service-card:hover .card-title {
    color: var(--blue);
}

.card-desc {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
}

.service-card:nth-child(1) {
    transition-delay: 0.05s;
}

.service-card:nth-child(2) {
    transition-delay: 0.15s;
}

.service-card:nth-child(3) {
    transition-delay: 0.25s;
}

.service-card:nth-child(4) {
    transition-delay: 0.10s;
}

.service-card:nth-child(5) {
    transition-delay: 0.20s;
}

.service-card:nth-child(6) {
    transition-delay: 0.30s;
}

/*Card mise en avant via ancre menu*/
.service-card.highlighted {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 2px var(--blue), 0 0 28px rgba(65, 111, 175, 0.5) !important;
    transform: translateY(-4px);
    animation: highlightPulse 2.5s ease forwards;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 2px var(--blue), 0 0 36px rgba(65, 111, 175, 0.65);
    }

    60% {
        box-shadow: 0 0 0 2px var(--blue), 0 0 24px rgba(65, 111, 175, 0.4);
    }

    100% {
        box-shadow: 0 16px 48px rgba(65, 111, 175, 0.12);
        border-color: rgba(65, 111, 175, 0.08);
    }
}

/*NOS CHANTIERS*/
.chantiers-section {
    padding: 100px 48px;
    max-width: 1160px;
    margin: 0 auto;
}

.chantiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.chantier-card {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #dde6f5 0%, #c8d8ee 100%);
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

.chantier-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.chantier-card:hover {
    box-shadow: 0 16px 40px rgba(65, 111, 175, 0.18);
}

.chantier-card:nth-child(1) {
    transition-delay: 0.05s;
}

.chantier-card:nth-child(2) {
    transition-delay: 0.15s;
}

.chantier-card:nth-child(3) {
    transition-delay: 0.25s;
}

.chantier-card:nth-child(4) {
    transition-delay: 0.35s;
}

.chantier-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(65, 111, 175, 0.4);
    border: 2px dashed rgba(65, 111, 175, 0.2);
    border-radius: 14px;
}

.chantier-placeholder svg {
    width: 36px;
    height: 36px;
}

.chantier-placeholder span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.chantier-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 20, 50, 0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.chantier-card:hover .chantier-overlay {
    opacity: 1;
}

.chantier-overlay-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: white;
}

.carte-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(65, 111, 175, 0.1);
    box-shadow: 0 8px 32px rgba(65, 111, 175, 0.08);
    height: 480px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.carte-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.legend {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 1.8;
}

.legend-title {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin-bottom: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.legend-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.popup-title {
    font-weight: 600;
    font-size: 13px;
    color: #111;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}

.popup-sub {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
    font-family: 'Montserrat', sans-serif;
}

.popup-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    margin-top: 5px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

/*CONTACT CTA*/
.cta-section {
    padding: 100px 48px;
    max-width: 1160px;
    margin: 0 auto;
}

.cta-inner {
    background:
        radial-gradient(ellipse 70% 90% at 100% 50%, rgba(12, 28, 70, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 0% 50%, rgba(8, 20, 58, 0.12) 0%, transparent 60%),
        var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cta-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--blue);
    border-radius: 0 0 4px 4px;
}

.cta-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 20px;
}

.cta-label::before,
.cta-label::after {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

.cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 5vw, 70px);
    color: var(--text);
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 20px;
}

.cta-title span {
    color: var(--blue);
}

.cta-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-mail {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 10px;
    border: 1.5px solid rgba(65, 111, 175, 0.3);
    background: var(--card-bg);
    box-shadow: 0 0 24px rgba(65, 111, 175, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.cta-mail:hover {
    box-shadow: 0 0 36px rgba(65, 111, 175, 0.25), 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: var(--blue);
}

.cta-mail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/*FOOTER*/
footer {
    background: #0f1a2e;
    color: white;
    padding: 64px 48px 0;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-desc {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.4);
    max-width: 280px;
    margin-top: 16px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--blue);
    transition: width 0.2s;
    border-radius: 1px;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::before {
    width: 12px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/*RESPONSIVE — BURGER*/
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(13, 15, 20, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-top: 8px;
    padding: 10px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a,
.mobile-accordion-toggle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.15s, color 0.12s;
    background: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav a:hover,
.mobile-accordion-toggle:hover {
    border-color: var(--blue);
    color: white;
}

.mobile-accordion-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.mobile-accordion-toggle.open svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 14px;
}

.mobile-submenu.open {
    display: flex;
}

.mobile-submenu a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    border: none !important;
}

.mobile-cta {
    margin-top: 6px;
    background: var(--blue) !important;
    color: white !important;
    border: 1px solid var(--blue) !important;
    text-align: center;
    font-weight: 600 !important;
    justify-content: center !important;
}

/*BREAKPOINTS*/
@media (max-width: 860px) {

    nav,
    .btn-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-inner {
        padding: 0 20px;
    }

    .chantiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chantiers-section {
        padding: 60px 24px;
    }

    .carte-wrap {
        height: 360px;
    }

    footer {
        padding: 56px 24px 0;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 24px;
        padding-top: 110px;
    }

    .hero-title {
        font-size: clamp(56px, 14vw, 90px);
    }

    .cta-section {
        padding: 60px 24px;
    }

    .cta-inner {
        padding: 56px 28px;
    }

    .cta-mail {
        font-size: 15px;
        padding: 14px 24px;
    }
}

@media (max-width: 900px) {
    .apropos-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .apropos-image-wrap {
        order: -1;
    }

    .apropos-section,
    .stats-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 36px 24px;
    }
}

@media (max-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-section {
        padding: 60px 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .chantiers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 16px;
    }
}