/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de page */
body {
    font-family: Arial, sans-serif;
    background-color: #0e0e0e;
    color: #fff;
    line-height: 1.6;
    padding-top: 60px; /* espace sous navbar fixe */
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header principal */
#header-logo {
    background-color: #ffffff; /* ou transparent selon design */
    padding: 30px 20px;
    text-align: center;
}

/* Logo */
#header-logo img {
    height: 120px; /* augmente la taille du logo */
    max-width: 90%;
    object-fit: contain;
}

/* Slogan */
#header-logo .slogan {
    font-style: italic;
    color: #ff4500;
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    #header-logo img {
        height: 80px;
    }
    #header-logo .slogan {
        font-size: 1rem;
    }
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #111;
    padding: 0 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Liste de la navbar */
.navbar ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

/* Liens de la navbar */
.navbar ul li a {
    position: relative;
    color: #fff;
    font-weight: 600;
    padding: 20px 10px;
    display: inline-block;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

/* Soulignement animé orange au hover */
.navbar ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: #ff4500;
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

.navbar ul li a:hover {
    color: #ff4500;
}

/* Bouton burger caché par défaut */
.navbar .burger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
}

.navbar .burger div {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
}

/* Responsive - petits écrans */
@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }
    .navbar ul {
        flex-direction: column;
        max-width: 100%;
        background: #111;
        position: fixed;
        top: 60px; /* sous navbar */
        left: 0;
        right: 0;
        display: none; /* caché par défaut */
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.7);
        z-index: 999;
    }
    .navbar ul.active {
        display: flex;
    }
    .navbar ul li {
        text-align: center;
        margin: 10px 0;
    }
    .navbar ul li a {
        padding: 15px;
        font-size: 1.2rem;
    }
    /* Afficher burger */
    .navbar .burger {
        display: flex;
    }
}






.menu-icon {
    display: none;
    font-size: 24px;
}

.hero {
    position: relative;
    background: url('../images/home.jpg') center/cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}




/* Section Services */
.services {
    padding: 60px 20px;
    text-align: center;
}

.services h2 {
    color: #ff4500;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 40px;
    flex-wrap: wrap; /* permet de passer à la ligne */
}

.services .card {
    width: calc((100% - 80px) / 3);
    aspect-ratio: 3 / 2;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background-color: transparent;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* évite que la carte rétrécisse trop */
}

.services .card:hover {
    transform: scale(1.05);
}

.services .card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.services .card-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.services .card-overlay h3 {
    margin: 0;
    font-size: 18px;
    color: #ff4500;
}

.services .card-overlay p {
    margin: 5px 0 0;
    font-size: 14px;
}

.second-row {
    margin-top: 40px;
}

/* Responsive - tablettes et petits écrans */
@media (max-width: 992px) {
    .services .card {
        width: calc((100% - 40px) / 2); /* 2 colonnes avec 20px gap */
    }
    .service-cards {
        padding: 0 20px;
    }
}

/* Responsive - mobiles */
@media (max-width: 600px) {
    .services .card {
        width: 100%; /* 1 colonne */
        margin-bottom: 20px;
    }
    .service-cards {
        padding: 0 10px;
        gap: 15px;
    }
}


/* Section About Company */
.about-company {
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.about-company .card {
    position: relative; /* nécessaire pour le pseudo-élément */
    background-image: url('../images/localisation.png'); /* remplace par ton image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(17, 17, 17, 0.2);
    overflow: hidden; /* pour le pseudo-élément */
}

.about-company .card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 0;
}

.about-company .card > * {
    position: relative;
    z-index: 1;
}


.about-company h2 {
    color: #ff4500 ;
    margin-bottom: 40px;
}

.about-company p {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    background-color: rgba(79, 79, 79, 0.4); /* fond noir semi-transparent */
    padding: 15px 20px;
    border-radius: 8px;
}

.realisations {
    padding: 60px 20px;
    text-align: center;
}

.realisations h2 {
    color: #ff4500;
    margin-bottom: 40px;
}

/* Container du slider */
.card-slider {
    position: relative;
    width: 90%;
    max-width: 1250px;
    /* Hauteur responsive basée sur la largeur pour garder le ratio */
    height: 0;
    padding-top: 54%; /* 675 / 1250 = 0.54 (ratio hauteur/largeur) */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Les images du slider */
.card-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
    border-radius: 16px;
}

.card-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

/* Responsive - petits écrans */
@media (max-width: 768px) {
    .realisations {
        padding: 40px 10px;
    }

    .card-slider {
        width: 100%;
        padding-top: 75%; /* plus haute pour mobiles (exemple 4:3 ratio) */
        max-width: 100%;
        border-radius: 12px;
    }

    .realisations h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .realisations {
        padding: 30px 10px;
    }

    .card-slider {
        padding-top: 100%; /* carré pour petits écrans */
        border-radius: 10px;
    }

    .realisations h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}


/* Section Contact */
.contact {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact h2 {
    color: #ff4500 ;
    margin-bottom: 40px;
}


.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.contact label {
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    color: #ff4500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    text-align: left;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 8px #ff4500;
    background-color: #2b2b2b;
}

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

.contact button {
    background-color: #ff4500;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover,
.contact button:focus {
    background-color: #e03e00; /* une nuance un peu plus foncée */
    outline: none;
}



/* Footer */
.footer {
    background-color: #0e0e0e;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer p {
    margin: 5px 0;
}

.clients {
    padding: 60px 20px;
    text-align: center;
    background-color: #0e0e0e;
}

.clients h2 {
    color: #ff4500;
    margin-bottom: 40px;
}

.logo-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
}

.logo-track {
    display: inline-flex;
    gap: 40px;
    padding: 10px;
}

.logo-track img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
}

.logo-track img:hover {
    transform: scale(1.1);
}

/* Style personnalisé pour la scrollbar (WebKit - Chrome, Edge, Safari) */
.logo-container::-webkit-scrollbar {
    height: 10px;
}

.logo-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.logo-container::-webkit-scrollbar-thumb {
    background: #ff4500;
    border-radius: 10px;
}

.logo-container::-webkit-scrollbar-thumb:hover {
    background: #e03d00;
}

/* Firefox */
.logo-container {
    scrollbar-width: thin;
    scrollbar-color: #ff4500 #1a1a1a;
}

/* Initial state : invisible et décalé à gauche */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  /* Quand la classe 'visible' est ajoutée, l'élément devient visible et revient à sa place */
  .fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
.partenaire {
  background-color: #121212;
  padding: 60px 20px;
  color: #fff;
  position: relative;
}

.partenaire h2 {

  margin-bottom: 40px;
  color: #ff6600;
  letter-spacing: 1px;
  text-align: center;
}

/* Container global */
.partenaire-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
}

/* Logo en haut à gauche dans un cadre blanc */
.partenaire-logo {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  margin: 20px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.partenaire-logo img {
  max-width: 150px;
  height: auto;
  display: block;
}

/* Carte vidéo centrée */
.partenaire-video-card {
  max-width: 640px;
  width: 100%;
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
  max-width: 960px;
  width: 100%;
  margin: auto;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  object-fit: contain; 
  display: block;
}




/* Responsive logo position sur petit écran */
@media (max-width: 768px) {
  .partenaire-logo {
    position: static;
    margin: 0 auto 20px auto;
  }

  .partenaire-container {
    align-items: center;
  }
}
