/* =============================================
   SRE - CSS Industrial Powerhouse
   Design: Bold, powerful, high-impact
   ============================================= */

:root {
    /* Couleurs Industrial */
    --primary: #3280a4; /* Bleu SRE */
    --primary-dark: #25607a;
    --industrial-black: #1a1a1a;
    --industrial-gray: #2d2d2d;
    --light-gray: #f4f4f4;
    --accent-yellow: #ffcc00; /* Rappel signalétique électrique */
    --white: #ffffff;

    /* Espacements */
    --spacing-section: 120px;
    --transition: all 0.3s ease;
}

/* Reset CSS */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--industrial-black);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

.nav {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo {
    display: block;
    max-height: 50px;
    width: auto;
    border-radius: 8px;
}

.brand-name {
    color: #4fa8d0 !important;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
}

.nav__link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 5px 0;
}

.nav__link:hover {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../img/hero.png') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 10%;
}

.hero__content {
    max-width: 100%;
}

.hero__title {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 20px;
    color: var(--white);
}

.hero__subtitle {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.hero p {
    max-width: 800px;
    font-size: 1.4rem;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- BUTTONS --- */
.btn {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

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

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: var(--white);
    color: var(--industrial-black);
}

/* --- SECTIONS --- */
.section {
    padding: var(--spacing-section) 5%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Section Title */
h2 {
    font-size: 3.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background: var(--primary);
    margin: 20px auto;
}

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

.lead {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--industrial-gray);
}

/* --- SERVICES GRID --- */
.grid--4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-gray);
    padding: 50px;
    border-left: 8px solid var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.02);
}

.service-card__image {
    display: none;
}

.service-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card__title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card__title a {
    text-decoration: none;
    color: inherit;
}

.service-card:hover .service-card__title a {
    color: var(--white);
}

.service-card__description {
    font-size: 1.1rem;
}

.service-card .btn {
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 1rem;
}

/* --- STATS SECTION (Glassmorphism) --- */
.stats-section {
    background: linear-gradient(45deg, #1a1a1a, #3280a4);
    padding: 100px 5%;
}

.stats-glass {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stats-title {
    grid-column: 1 / -1;
    color: var(--white);
    text-align: center;
    margin-bottom: 20px;
}

.stats-title::after {
    background: var(--accent-yellow);
}

.stats-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 4rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--accent-yellow);
}

.stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

/* --- ENGAGEMENTS (Horizontal Cards) --- */
.engagements-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.engagement-card-horizontal {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--white);
    padding: 30px;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.engagement-card-horizontal:hover {
    border-color: var(--primary);
    box-shadow: 10px 10px 0px var(--primary);
}

.engagement-icon-svg {
    min-width: 60px;
    height: 60px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.engagement-icon-svg img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.engagement-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.engagement-content p {
    font-size: 1rem;
    color: var(--industrial-gray);
}

/* --- ABOUT SECTION --- */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about__text h2::after {
    margin: 20px 0;
}

.about__text h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about__text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--industrial-gray);
}

.about__highlight {
    background: var(--light-gray);
    padding: 30px;
    margin: 30px 0;
    border-left: 5px solid var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.values-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.values-icon {
    width: 10px;
    height: 10px;
    background: var(--primary);
    flex-shrink: 0;
}

.values-text {
    font-size: 1.1rem;
}

.about__image {
    width: 100%;
    height: 500px;
    background: #ccc url('../img/index.jpg') center/cover;
    position: relative;
}

.about__image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary);
    z-index: -1;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CONTACT SECTION --- */
#contact {
    background: var(--industrial-black);
    color: var(--white);
}

#contact h2 {
    color: var(--white);
}

#contact .lead {
    color: #ccc;
}

#contact .lead a {
    color: var(--primary);
    text-decoration: none;
}

#contact .lead a:hover {
    text-decoration: underline;
}

/* --- FORM --- */
.form {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group:has(#message) {
    grid-column: span 2;
}

.form-label {
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--white);
}

.form-input,
.form-textarea {
    padding: 20px;
    background: #333;
    border: none;
    border-left: 4px solid var(--primary);
    color: white;
    font-size: 1.1rem;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: #3d3d3d;
}

.form button[type="submit"] {
    grid-column: span 2;
}

.form-success,
.form-error,
.form-error-message {
    grid-column: span 2;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.form-success {
    background: var(--primary);
    color: var(--white);
}

.form-error-message {
    background: #dc2626;
    color: var(--white);
}

.hp {
    display: none;
}

/* --- FOOTER --- */
.footer {
    background: #000;
    color: var(--white);
    text-align: center;
    padding: 60px 5%;
    border-top: 1px solid var(--industrial-gray);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .nav__menu.active {
        display: flex;
    }

    .hero__title {
        font-size: 3.5rem;
    }

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

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

    .form-group:has(#message) {
        grid-column: span 1;
    }

    .form button[type="submit"] {
        grid-column: span 1;
    }

    .engagements-horizontal-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2.5rem;
    }

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

@media (min-width: 769px) and (max-width: 1200px) {
    .engagements-horizontal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
