
/* === VARIABLES GLOBALES === */
:root {
    --primary-color: rgb(243, 156, 18);
    --secondary-color: rgb(41, 128, 185);
    --background-light: #f9f9f9;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Oswald", sans-serif;
    scroll-behavior: smooth;
}
/* Préchargement */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* Couleur de fond */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
  }
  
  /* Conteneur du loader */
  .loader-container {
    text-align: center;
  }
  
  /* Texte animé */
  .loader-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: heartbeat 1.5s infinite ease-in-out;
    margin-bottom: 30px;
  }
  
  /* Barre de chargement */
  .loader-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
  }
  
  .loader-progress {
    height: 100%;
    width: 0;
    background: white;
    animation: loading 2s forwards;
    border-radius: 3px;
  }
  
  
  /* Animations */
  @keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.1); opacity: 1; }
  }
  
  @keyframes loading {
    0%   { width: 0%; }
    100% { width: 100%; }
  }
  
  
.btn {
    display: flex;
    align-items: center;  /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    height: 50px;
    width: fit-content; /* S'adapte au texte */
    padding: 0 20px; /* Ajuster les côtés */
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 16px;
    text-transform: uppercase;
}

/* HEADER */
header {
    z-index: 900;
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0);
    padding: 30px 80px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    min-height: 125px;
    max-height: 125px;
    transition: top 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
}

header .logo img{
    width: 70px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Burger icon */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
  }
  
  .burger span {
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* Mobile nav */
  @media screen and (max-width: 768px) {
    header {
      padding: 20px 30px;
    }
  
    nav {
        border-top: 1px solid #f39c13;
        position: absolute;
        top: 125px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        flex-direction: column;
        text-align: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
      }
    
      nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
      }
    
      nav.active {
        max-height: 300px; /* ajuste selon ton contenu */
        padding: 20px 0;
      }
  
    .burger {
      display: flex;
    }
  
  }
  .burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .burger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
/* HERO SECTION */
#home {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: black;
}

#home video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#home .hero-text {
    position: relative;
    z-index: 1;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    padding: 0px 80px;
}
#home h1{
    font-size: clamp(52px, 10vw, 80px) !important;
}
/* SECTIONS */
section .content-wrapper{
    margin: 20px;
}
section h1 {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* === SECTION SERVICES === */
#services {
    padding: 60px 100px;
    background-color: #f9f9f9;
    text-align: center;
}

#services .section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

#services .section-title p {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

#services .section-title {
    text-align: center;
    margin-bottom: 40px;
}

#services .section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
}

#services .section-title p {
    font-size: 16px;
    color: #555;
}

#services .service-container {
    display: flex;
    flex-wrap: wrap; /* Permet d'aller à la ligne si l'écran est trop petit */
    justify-content: center; /* Centre les éléments */
    gap: 20px; /* Espace entre les blocs */
    margin: 0 auto;
}

#services .service {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aligne bien le contenu */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 300px; /* Taille max de chaque bloc */
    min-height: 300px; /* Assure que tous les blocs ont la même hauteur */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .service:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#services .service img {
    width: 100%;
    height: 180px; /* Hauteur uniforme pour toutes les images */
    object-fit: cover;
}

#services .service-content {
    flex-grow: 1; /* Permet d'occuper l'espace restant */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px;
    text-align: center;
}

#services .service-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

#services .service-content p {
    font-size: 14px;
    color: #666;
}

#services .services-btn {
    text-align: center;
    margin-top: 40px;
}

#services .services-btn {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .service {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .service-container {
        flex-direction: column;
        align-items: center;
    }
    
    .service {
        max-width: 90%; /* Adapte la largeur sur petit écran */
    }
    #home .hero-text {
        padding: 0px 20px;
    }
}

/* === POURQUOI NOUS CHOISIR === */
#why-choose-us {
    position: relative; /* Nécessaire pour le positionnement absolu du pseudo-élément */
    padding: 60px 100px;
    color: white; /* Rendre le texte plus lisible sur un fond flouté */
    background-color: black;
    z-index: -2;
}

#why-choose-us::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/assets/images/back-why.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px); /* Applique le flou */
    z-index: -1; /* Place l’image de fond sous le contenu */
}

#why-choose-us .section-title h2{
    color: var(--primary-color);
    font-size: 32px;
    text-align: center;
}

#why-choose-us .section-title p{
    font-size: 16px;
    margin-bottom: 40px;
    text-align: center;
}

#why-choose-us .why-container {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

#why-choose-us .why-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    max-width: 300px;
}

.why-item:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); */
}

#why-choose-us .why-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

#why-choose-us .why-item h3 {
    font-size: 20px;
    color: #ffffff;
}

#why-choose-us .why-item p {
    font-size: 14px;
    color: #dadada;
}

/* === SECTION À PROPOS === */
#about {
    padding: 60px 100px;
    position: relative;
    background: #191513;
    color: white;
}

.about-container {
    display: flex;
    justify-content: flex-start; /* Aligner le contenu à gauche */
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: row;
}

.part-text{
    width: 50%;
}

.part-img{
    width: 50%;
}
.part-img img {
    width: 100%;
    border-radius: 10px;
}
.about-content h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    margin-right: 30px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-content {
        max-width: 100%;
        padding: 30px;
        flex-direction: column;
    }
    .part-img {
        width: 100%;
        margin-top: 40px;
    }
    .part-text {
        width: 100%;
    }
    #contact .contact-container {
        flex-direction: column;
    }
    .contact-map{
        width: 100% !important;
    }
    .contact-info{
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    #about {
        padding: 60px 0px !important;
    }
    #services{
        padding: 60px 0px !important;
    }
    #why-choose-us {
        padding: 60px 0px !important;
    }
    .about-content {
        padding: 20px;
    }
    #contact {
        padding: 60px 0px !important;
        background-color: #f9f9f9;
    }
}


/* CONTACT */
#contact {
    padding: 60px 100px;
    background-color: #f9f9f9;
}

#contact .contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

#contact .contact-info {
    flex: 1;
    width: 40%;
    padding: 20px;
}

#contact .contact-info h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

#contact .contact-info p {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

#contact .contact-info strong {
    font-size: 18px;
    font-weight: bold;
}

#contact .contact-map {
    flex: 1;
    width: 50%;
    padding: 20px;
}
#contact iframe {
    min-height: 400px;
}

/* === FOOTER === */
#footer {
    background: #191513; /* Fond sombre */
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    max-width: 80px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    color: #ccc;
}

/* === LIENS UTILES === */
.footer-links h3,
.footer-hours h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

/* === HORAIRES === */
.footer-hours p {
    font-size: 14px;
    color: #ccc;
}

/* === RÉSEAUX SOCIAUX === */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* === COPYRIGHT === */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #ccc;
}

.powered-by {
    margin-top: 5px;
    font-size: 13px;
    color: #aaa;
}

.powered-by a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.powered-by a:hover {
    color: var(--primary-color);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Colonne unique en mobile */
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}
