/* ============================= */
/* VARIABLES */
/* ============================= */
:root {
    --black-main: #0b0b0b;
    --black-soft: #1a1a1a;
    --orange: #ff8c00;
    --orange-hover: #e67e00;
    --bg-light: #f2f2f2;
    --text-gray: #b5b5b5;
    --white: #ffffff;
    --shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* ============================= */
/* RESET */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--white);
    line-height: 1.7;
}

/* ============================= */
/* CONTAINER */
/* ============================= */
.container {
    width: 92%;
    max-width: 1250px;
    margin: auto;
}

/* ============================= */
/* BUTTONS */
/* ============================= */
.btn {
    padding: 15px 38px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--orange);
    color: #111;
    box-shadow: 0 10px 30px rgba(255,140,0,0.4);
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-3px);
}

/* ============================= */
/* HEADER */
/* ============================= */
.header {
    background: var(--black-main);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.nav a {
    color: var(--text-gray);
    margin-left: 32px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--orange);
}

/* ============================= */
/* HERO */
/* ============================= */
/* ============================= */
/* HERO VIDEO */
/* ============================= */
.hero {
    position: relative;
    min-height: 95vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
}

/* Vidéo en arrière-plan */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Overlay sombre */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

/* Contenu au-dessus */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero h1 {
    font-size: 54px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 30px;
    }
}


/* ============================= */
/* ABOUT */
/* ============================= */
.about {
    background: var(--black-soft);
    padding: 90px 0;
}

.about h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 20px;
}

.about p {
    max-width: 850px;
    margin: auto;
    text-align: center;
    color: var(--text-gray);
}

/* ============================= */
/* SERVICES */
/* ============================= */
.services {
    background: var(--bg-light);
    padding: 90px 0;
    color: #111;
}

.services h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 6px solid var(--orange);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #111;
}

.service-card p {
    color: #555;
}

/* ============================= */
/* DEVIS */
/* ============================= */
.devis {
    background: var(--black-main);
    padding: 100px 0;
}

.devis h2 {
    text-align: center;
    font-size: 38px;
}

.devis p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
}

.devis-form {
    max-width: 850px;
    margin: auto;
    background: var(--black-soft);
    padding: 45px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.devis input,
.devis select,
.devis textarea {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    border: none;
    background: #111;
    color: var(--white);
}

.devis textarea {
    resize: none;
    margin-bottom: 28px;
}

/* ============================= */
/* REALISATIONS */
/* ============================= */
.realisations {
    background: var(--bg-light);
    padding: 90px 0;
    color: #111;
}

.realisations h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.realisations-grid img {
    width: 100%;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

/* SLIDER REALISATIONS */
.realisations-slider {
    position: relative;
    max-width: 800px; /* largeur max du slider */
    margin: 0 auto;
    text-align: center;
}

.realisations-slider .slide {
    display: none; /* seulement le slide actif sera visible */
}

.realisations-slider .slide.active {
    display: block;
}

.realisations-slider img {
    width: 100%;
    max-height: 450px; /* limite la hauteur */
    object-fit: cover; /* garde le ratio et recadre si nécessaire */
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.realisations-slider .caption {
    text-align: center;
}

.realisations-slider .caption h3 {
    font-size: 22px;
    color: #111;
    margin-bottom: 5px;
}

.realisations-slider .caption p {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slider-btn.left {
    left: 10px;
}

.slider-btn.right {
    right: 10px;
}



/* ============================= */
/* CONTACT */
/* ============================= */
.contact {
    background: var(--black-soft);
    padding: 70px 0;
    text-align: center;
}

.contact h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.contact p {
    color: var(--text-gray);
    font-size: 18px;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 25px 0;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .nav a {
        margin-left: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .header .container {
        flex-direction: column;
    }

    .nav {
        margin-top: 15px;
    }
}
