/* ============================================
   COMABAT — Site Vitrine
   Compagnie Martiniquaise de Bâtiment
   Design System & Styles Principaux
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --blue-dark: #21398D;
    --blue: #017ABF;
    --blue-light: #3a9ed5;
    --blue-pale: #e8f4fc;
    --white: #FFFFFF;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #111111;
    --accent: #f0a500;
    --success: #28a745;
    --danger: #dc3545;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    --header-height: 80px;
    --container-max: 1200px;
    --container-wide: 1400px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--blue-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

/* --- Utility Classes --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

.section-lg {
    padding: 120px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--white); }
.text-blue { color: var(--blue); }
.text-blue-dark { color: var(--blue-dark); }

.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }
.bg-blue-dark { background: var(--blue-dark); }
.bg-blue { background: var(--blue); }
.bg-blue-pale { background: var(--blue-pale); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--blue-dark);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn-outline-dark:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--blue-dark);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.header-logo img {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .header-logo img {
    height: 45px;
}

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

.nav-link {
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--gray-800);
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-cta {
    margin-left: 8px;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .burger-menu span {
    background: var(--gray-800);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(33, 57, 141, 0.85) 0%,
        rgba(1, 122, 191, 0.7) 50%,
        rgba(33, 57, 141, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero h1 span {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.hero-scroll i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   ABOUT / QUI SOMMES-NOUS
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(33,57,141,0.3), transparent);
}

.about-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--blue);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.about-badge .badge-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge .badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content .about-tag {
    display: inline-block;
    background: var(--blue-pale);
    color: var(--blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--gray-700);
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-group-info {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--gray-50);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-group-info p {
    margin: 0;
    font-style: italic;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.value-item i {
    font-size: 1.4rem;
    color: var(--blue);
    width: 24px;
    text-align: center;
}

.value-item span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* ============================================
   MÉTIERS / ACTIVITÉS
   ============================================ */
.metiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.metier-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

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

.metier-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.metier-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.metier-card:hover .metier-card-image img {
    transform: scale(1.08);
}

.metier-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(33,57,141,0.6), transparent);
}

.metier-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.metier-card-body {
    padding: 28px;
}

.metier-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--blue-dark);
}

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

.metier-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metier-link i {
    transition: var(--transition);
}

.metier-card:hover .metier-link i {
    transform: translateX(4px);
}

/* ============================================
   CHIFFRES CLÉS
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(255,255,255,0.2);
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number .suffix {
    font-size: 0.5em;
    vertical-align: super;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

/* ============================================
   RÉALISATIONS / GALERIE
   ============================================ */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

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

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(33,57,141,0.9), rgba(33,57,141,0.3) 70%, transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-slow);
}

.project-card:hover .project-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-card-overlay .project-category {
    display: inline-block;
    background: var(--blue);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-card-overlay h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.project-card-overlay .project-location {
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Project card always visible info */
.project-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
}

.project-card-info h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.project-card-info .project-meta {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
}

.project-placeholder i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.project-placeholder p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info-card {
    background: var(--blue-dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.contact-info-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
}

.contact-item-text h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

.contact-item-text a:hover {
    color: var(--white);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--blue);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--gray-600);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

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

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

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

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(1, 122, 191, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-submit {
    text-align: right;
    margin-top: 8px;
}

.form-message {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    margin-bottom: 16px;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map */
.contact-map {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

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

.footer-brand .footer-logo-row img {
    margin-bottom: 0;
}

.footer-brand .footer-comabat-logo {
    height: 55px;
    width: auto;
}

.footer-brand .footer-spie-logo {
    height: auto;
}

.footer-brand .footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand .footer-spie-logo {
    height: auto;
    margin-bottom: 0;
}

.social-link-comabat {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.social-link-comabat:hover {
    background: #e8f4fc;
    transform: translateY(-3px);
}

.social-link-spie {
    width: 36px;
    height: 36px;
    background: #E5A100;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.social-link-spie:hover {
    background: #c98e00;
    transform: translateY(-3px);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--blue);
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--blue);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--blue);
    margin-top: 3px;
    min-width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

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

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 57, 141, 0.97);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 20px 24px;
    z-index: 10000;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.show {
    display: block;
}

.cookie-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--blue-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-accept {
    background: var(--white);
    color: var(--blue-dark);
}

.cookie-btn-accept:hover {
    background: var(--blue-pale);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================================
   PAGE HEADER (internes)
   ============================================ */
.page-header {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('') center/cover;
    opacity: 0.1;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb a:hover {
    color: var(--white);
}

.page-header .breadcrumb .separator {
    font-size: 0.7rem;
}

.page-header .breadcrumb .current {
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--blue-dark);
    transform: translateY(-3px);
}

/* ============================================
   MENTIONS LÉGALES
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content p, .legal-content li {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content ul li {
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 350px;
    }

    .metiers-grid {
        grid-template-columns: 1fr;
    }

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

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 60px 0;
    }

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

    /* Mobile Nav */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        color: var(--gray-800);
        font-size: 1rem;
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-md);
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--blue-pale);
        color: var(--blue);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

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

    .hero-scroll {
        display: none;
    }

    /* About */
    .about-values {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 24px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-overlay {
        transform: translateY(0);
        opacity: 1;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-submit {
        text-align: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Cookie */
    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
    h2 { font-size: clamp(1.3rem, 5vw, 2rem); }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .metier-card-image {
        height: 180px;
    }

    .about-image img {
        height: 280px;
    }

    .contact-info-card {
        padding: 28px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .page-header {
        padding: 130px 0 60px;
    }
}

/* --- Print --- */
@media print {
    .header, .footer, .cookie-banner, .back-to-top, .hero-scroll {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 30px 0;
    }

    body {
        color: #000;
    }
}
