/* =========================
GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #333;
}

.page-bg {
    position: fixed;       /* reste derrière le contenu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;  /* noir */
    z-index: -1;             /* derrière tout */
}

.full-bg {
    width: 100vw;               /* prend toute la largeur de la fenêtre */
    margin-left: calc(-50vw + 50%); /* corrige le centrage si tu as un container */
    background-color: #0b0b0b;     /* fond noir */
    color: #f0f0f0;             /* texte clair pour contraste */
    padding: 80px 0;            /* garde l’espacement vertical */
}

/* =========================
CONTAINER
========================= */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* =========================
HEADER
========================= */

/* Header quand scrollé */
header.scrolled nav a {
    color: #191919; /* liens en noir foncé */
}

header.scrolled .btn-nav {
    background: #ff6600;
    color: white !important;
}

header.scrolled .logo {
    filter: none; /* si ton logo avait un filtre pour blanc, on le retire */
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    transition: 0.3s ease;
    z-index: 1000;
}

.logo {
    width: 100px;
    background: white;           /* fond blanc */
    padding: 8px 12px;           /* espace autour du logo */
    border-radius: 8px;          /* coins légèrement arrondis */
    z-index: 1001;               /* pour qu’il reste au-dessus du header */
}

header.scrolled {
    background: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    width: 100px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #ff6600;
}

/* bouton nav */

.btn-nav {
    background: #ff6600;
    color: white !important;
    padding: 8px 18px;
    border-radius: 15px;
}

.btn-nav:hover {
    background: #e65c00;
}

/* =========================
HERO
========================= */

.hero {
    position: relative;
    height: 100vh;
    background: url("images/img1.webp") center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}


/* badge orange */

/* badge orange transparent */
.hero-badge {
    display: inline-flex;        /* flex pour aligner le rond et le texte */
    align-items: center;         /* aligne verticalement */
    gap: 10px;                   /* espace entre le rond et le texte */
    background: rgba(255, 102, 0, 0.15);
    color: #ff6600;

    font-size: 14px;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 102, 0, 0.5);
    font-weight: bold;
    margin-bottom: 30px;
}
.hero-badge svg {
    width: 8px;  /* taille du rond */
    height: 8px;
}

.hero-content h1{
    font-size:58px;
    line-height:1.1;
    margin-bottom:20px;
    color:#e5e5e5;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(25,25,25,0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: rgb(155, 155, 155);
}

.hero h1 {
    font-size: 65px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* texte dégradé */

.highlight {
    background: linear-gradient(90deg,#ff6600,#c75300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
BOUTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Boutons principaux */
.btn {
    background: #ff6600;
    color: white;
    padding: 10px 25px;      /* moins haut, un peu plus étroit */
    border-radius: 15px;     /* plus arrondi */
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

/* Boutons secondaires */
.btn-secondary {
    background: transparent;
    border: 2px solid #ff6600;
    padding: 10px 25px;      /* correspond au bouton principal */
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: #ff6600;
    color: white;
}

/* =========================
SECTIONS
========================= */

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 40px;
    color: #191919;
    position: relative;
}

/* =========================
A PROPOS
========================= */

.apropos p {
    text-align: justify;
    max-width: 800px;
    margin: auto;
}

/* =========================
SERVICES
========================= */
/* Petit texte orange au-dessus du titre */
.section-subtitle {
    text-align: center;
    color: #ff6600;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Description grisée sous le titre */
.section-description {
    text-align: center;
    color: #555555;
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.services {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}


/* =========================
SERVICE CARD MODERN
========================= */

.service-card {
    position: relative;            /* nécessaire pour overlay */
    width: calc(33.333% - 17px);
    height: 300px;                 /* fixe une hauteur agréable */
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;             /* image couvre tout en gardant proportions */
    transition: transform 0.3s;
}

.service-card:hover img {
    transform: scale(1.05);        /* léger zoom au hover */
}

/* Overlay pour lisibilité du texte */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);  /* noir transparent pour texte lisible */
    z-index: 1;
}

/* Texte sur les cartes */
.service-card h3,
.service-card p {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.service-card h3 {
    bottom: 60px;                  /* ajustable */
    font-size: 22px;
    font-weight: 700;
}

.service-card p {
    bottom: 20px;                  /* ajustable */
    font-size: 14px;
    line-height: 1.4;
}

/* Pour les petits écrans */
@media (max-width: 900px) {
    .service-card {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .service-card {
        height: 250px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 12px;
    }
}

/* =========================
AVANT / APRES
========================= */
.avant-apres .section-subtitle {
    color: #ff6600;
}

.avant-apres {
    color: #f0f0f0;           /* texte clair */
    padding: 80px 20px;       /* padding vertical et horizontal */
    position: relative;        /* nécessaire pour le slider */
    box-sizing: border-box;
    width: 100%;     /* inclut padding dans largeur */
    margin-left: 0px;
}

.avant-apres {
    text-align: center;
}

.avant-apres h2 {
    color: #ffffff;
}


.avant-apres p {
    margin-bottom: 40px;
    color: #ffffff;
}

/* slider */

.ba-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
}

.ba-slider,
.ba-slider * {
    user-select: none;
    -webkit-user-select: none;     /* Safari */
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;   /* empêche menu long press iOS */
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* image après */

.ba-img-after {
    clip-path: inset(0 50% 0 0);
}

/* barre */

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ff6600;
    cursor: ew-resize;
    z-index: 5;
}

/* =========================
CONTACT
========================= */
#contact {
     /* cadre noir de 2px */
    border-radius: 15px;          /* coins arrondis */
    padding: 40px 20px;           /* espace intérieur */
    background-color: #000000;       /* fond clair pour contraste avec le cadre */
    box-sizing: border-box;       /* inclut padding dans la largeur */
    margin: 40px auto;            /* espace autour de la section */
    max-width: 800px;             /* largeur maximale */
}

.contact h2 {
    text-align: center;
    font-size: 40px;
    color: #ffffff;
    position: relative;
}
    
.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center; /* centre les boutons horizontalement */
    flex-wrap: wrap;          /* pour passer à la ligne sur petits écrans */
}

.contact-buttons a {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 15px;
    transition: 0.3s;
    display: inline-block;
}

.contact-buttons .btn {
    background: #ff6600;
    color: white;
}

.contact-buttons .btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.contact-buttons .btn-secondary {
    background: transparent;
    border: 2px solid #ff6600;
    color: #ff6600;
}

.contact-buttons .btn-secondary:hover {
    background: #ff6600;
    color: white;
}

.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #ff6600;
    outline: none;
}

/* =========================
FOOTER
========================= */

.footer {
    background: #191919;
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 900px) {

    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }

    .services {
        flex-direction: column;
    }

    .service-card {
        width: 100%;
    }

    nav ul {
        gap: 15px;
    }
}

@media (max-width: 600px) {

    .hero-buttons {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 32px;
    }

}

.google-reviews iframe {
    border-radius: 15px;   /* coins arrondis */
    overflow: hidden;      /* utile si le parent a un fond ou masque */
    border: 0;             /* supprime la bordure par défaut */
}
