/* Configuration Générale */
body, html {
  height: 100%;
  margin: 0;
  font-family: 'Montserrat', sans-serif;

}

/* Section Hero */
.hero-header {
  height: 100vh;
  background-size: cover;
  background-position: center;
  /* Attachment: fixed est désactivé ici pour éviter les saccades durant l'animation du carrousel */
  position: relative;
  color: white;
}

/* Navigation */
.navbar {
  padding: 30px 0;
  z-index: 1050;
}
.navbar-brand {
  font-weight: 300;
  letter-spacing: 2px;
  color: white !important;
}
.nav-link {
  font-size: 14px;
  font-weight: 300;
  margin-left: 15px;
  color: white !important;
}

/* Contenu */
.content-box {
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  padding-left: 40px;
  max-width: 800px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 30px;
}

.hero-subtitle {
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Bouton Personnalisé */
.btn-custom {
  text-decoration: none;
  color: white;
  border: 1px solid white;
  padding: 12px 35px;
  border-radius: 50px;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-custom:hover {
  background-color: white;
  color: black;
}

/* Ajustement des contrôles Bootstrap pour vos flèches */
.carousel-control-prev, .carousel-control-next {
  width: 10%;
  opacity: 1;
  z-index: 1000;
}

.arrow {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: 0.3s;
  background: rgba(0,0,0,0.1);
  color: white;
}

.arrow:hover {
  border-color: white;
  background: rgba(255,255,255,0.2);
}

/* Indicateurs (Points) */
.dots-container {
  bottom: 40px !important;
  margin-bottom: 0;
}

.dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: rgba(255,255,255,0.4) !important;
  border: none !important;
  margin: 0 6px !important;
  opacity: 0.5;
  transition: 0.3s;
}

.dot.active {
  background-color: white !important;
  opacity: 1;
  transform: scale(1.2);
}

/* Vitesse du fondu */
.carousel-fade .carousel-item {
    transition-duration: 0.8s;
}

/*BLOC */

/* Style pour la section About */
.about-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 200; /* Très léger comme sur la photo */
    line-height: 1.2;
    color: #1a1a1a;
}

.lead-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #444;
}

/* Bouton Read More (contour noir cette fois) */
.btn-read-more {
    text-decoration: none;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 12px 45px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* Ajustement pour mobile */
@media (max-width: 991px) {
    .about-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    .about-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

/* --------------------------------------------------------------------------------------- */

/* Section Services Parallaxe */
.services-parallax {
    height: 80vh; /* Hauteur de la section */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.3)), 
                url('./images/service.jpg'); /* Remplacez par votre image de ciel/ville */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet de défilement fixe */
    position: relative;
}

.services-title {
    font-size: 4rem;
    font-weight: 200;
    margin-bottom: 20px;
}

.services-text {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto; /* Pousse le texte vers la droite */
}

/* Menu des services en bas à droite */
.services-menu ul {
    padding: 0;
    margin-top: 50px;
}

.services-menu a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    transition: 0.3s;
}

.services-menu a:hover {
    opacity: 0.7;
}

/* La ligne blanche sous le menu */
.service-underline {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    margin-top: 15px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .services-parallax {
        height: auto;
        padding: 80px 0;
        background-attachment: scroll; /* Désactivé sur mobile pour la performance */
    }
    .services-title {
        font-size: 2.5rem;
    }
    .text-end {
        text-align: center !important;
    }
    .services-text {
        margin-right: auto;
    }
}
/* Section Projets */
.section-title-dark {
    font-size: 3.5rem;
    font-weight: 200;
    color: #1a1a1a;
    line-height: 1.1;
}

.project-image-container {
    position: relative;
    height: 500px; /* Ajustez la hauteur selon vos besoins */
    overflow: hidden;
}

.project-image-container img {
    height: 100%;
    object-fit: cover;
}

/* Texte par-dessus l'image du projet */
.project-overlay-text {
    position: absolute;
    bottom: 10%;
    left: 10%;
    color: white;
    z-index: 10;
}

.project-overlay-text h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
}

.project-overlay-text p {
    font-weight: 200;
    letter-spacing: 1px;
}

/* Flèches spécifiques pour cette section */
.custom-project-arrow {
    width: 80px;
    opacity: 1;
}

.custom-project-arrow .arrow {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.custom-project-arrow:hover .arrow {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .project-image-container {
        height: 400px;
    }
    .section-title-dark {
        font-size: 2.5rem;
    }
}

/* Style du Footer */
.footer-section {
    border-top: 1px solid #eee;
    color: #333;
    font-size: 0.9rem;
}

.footer-logo {
    font-weight: 300;
    letter-spacing: 2px;
    color: #1a1a1a;
}

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

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 300;
}

.footer-links a:hover {
    color: #000;
    padding-left: 5px;
}

.contact-info p {
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Optionnel : Si vous utilisez FontAwesome pour l'icône LinkedIn */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');


/*--------------------------------------------------------------*/
/* Hero spécifique pour les pages secondaires */
.hero-small {
    height: 60vh; /* Moins haut que la page d'accueil */
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.bg-dark-transparent {
    background-color: rgba(0, 0, 0, 0.7); /* Navbar légèrement plus sombre pour la lisibilité */
}

/* Cartes de l'équipe */
.team-card {
    background: white;
    border: none;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%); /* Style noir et blanc professionnel */
    transition: 0.5s;
}

.team-card:hover .team-img {
    filter: grayscale(0%); /* Revient en couleur au survol */
}

.team-info h4 {
    letter-spacing: 1px;
}

/* --- Ajustement Image de Section --- */
.about-details .row {
    display: flex;
    flex-wrap: wrap;
}

.about-side-image {
    width: 100%;
    height: 100%; /* Prend toute la hauteur de la colonne */
    min-height: 500px; /* Sécurité pour le responsive */
}

.about-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit l'espace sans être écrasée */
    object-position: center;
    display: block;
}

.section-title-dark {
    font-size: 2.8rem;
    font-weight: 200;
    line-height: 1.2;
    color: #000;
    text-transform: uppercase;
}

.about-paragraph {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .about-side-image {
        height: 400px;
    }
}

/* État initial de la Navbar (Transparent) */
.navbar {
    padding: 30px 0;
    transition: all 0.4s ease-in-out; /* Transition fluide pour le changement de couleur */
    background-color: transparent;
}

/* Classe qui sera ajoutée via JavaScript lors du scroll */
.navbar.scrolled {
    padding: 15px 0; /* Le menu devient un peu plus fin au scroll */
    background-color: #22407e !important; /* Arrière-plan sombre */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
/* Conteneur d'image avec taille fixe */
.portfolio-img-fixed {
    position: relative;
    width: 100%;
    /* Définit un ratio carré (1/1) comme sur votre image modèle */
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    background-color: #f0f0f0;
}

.portfolio-img-fixed img {
    width: 100%;
    height: 100%;
    /* Crucial : remplit le cadre sans déformer l'image */
    object-fit: cover; 
    transition: transform 0.6s ease;
}

/* Typographie identique au modèle */
.project-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 2px;
}

.project-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.5px;
}

/* Animation au survol */
.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}
/* --- Page Contact Style --- */

.contact-hero {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
}

.contact-title {
    font-size: 4rem;
    font-weight: 200;
    font-family: 'Montserrat', sans-serif;
}

.form-heading {
    font-weight: 300;
    color: #fff;
    font-size: 2rem;
}

/* Style des champs (Inputs) */
.contact-input {
    background: rgba(255, 255, 255, 0.8) !important;
    border: none;
    border-radius: 20px; /* Bords très arrondis comme sur l'image */
    padding: 10px 20px;
    font-size: 0.9rem;
}

.contact-input:focus {
    background: #fff !important;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Bouton Send Ovale */
.btn-send {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 60px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background: #fff;
    color: #000;
}

/* Ajustements pour la Navbar sur fond sombre */
.contact-page .navbar {
    background: transparent;
}

.footer-logo-img {
    max-width: 250px; /* Ajuste cette valeur selon la forme de ton logo */
    height: auto;
    display: block;
}

/* Style des liens du footer pour correspondre à ton image */
.footer-links li a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    line-height: 2;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: #000;
}


/* Container de l'overlay pour centrer le bouton */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Assombrit l'image pour voir le bouton */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s ease;
}

/* Affiche l'overlay au survol de la carte */
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Style du bouton blanc */
.btn-read-more-white {
    display: inline-block;
    padding: 10px 24px;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    background: transparent;
}

/* Effet au survol du bouton */
.btn-read-more-white:hover {
    background: #ffffff;
    color: #333333; /* Le texte devient sombre quand le fond devient blanc */
    transform: translateY(-2px); /* Petit saut vers le haut */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* --- Responsivité Globale --- */

/* Tablettes et Mobiles (Moins de 992px) */
@media (max-width: 991.98px) {
    .hero-header { height: 80vh; }
    .hero-title { font-size: 3rem; }
    .about-title { text-align: center; font-size: 2rem; }
    .about-content { padding-left: 0 !important; text-align: center; }
    .project-intro { text-align: center; padding-left: 0 !important; }
}

/* Mobiles uniquement (Moins de 768px) */
@media (max-width: 767.98px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .services-parallax { height: auto; padding: 60px 0; }
    .services-menu ul li { display: block; margin-bottom: 10px; }
    
    .footer-section { text-align: center; }
}

/* --- Styles des boutons (Read More) --- */
.btn-read-more {
    display: inline-block;
    padding: 10px 30px;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: #333;
    color: #fff;
    padding-left: 40px;
}

/* Adaptation de la grille projets */
@media (max-width: 576px) {
    .portfolio-info {
        text-align: center; /* Centre le titre et la ville sur petit téléphone */
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Style de l'overlay au survol */
.portfolio-img-fixed {
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Bouton blanc sur l'image */
.btn-read-more-white {
    padding: 10px 20px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-read-more-white:hover {
    background: #fff;
    color: #000;
}
/* Centrage automatique sur mobile pour les paragraphes et titres */
@media (max-width: 991.98px) {
    .section-title-dark {
        text-align: center;
        font-size: 1.8rem;
    }
    
    .about-paragraph {
        text-align: center;
        padding: 0 10px;
    }

    /* Pour la section Maintenance Access, l'image passe au dessus du texte sur mobile */
    .flex-column-reverse {
        flex-direction: column-reverse !important;
    }
}

/* Image fluide pour éviter les débordements */
.img-fluid {
    max-width: 100%;
    height: auto;
}
/* Ajustements pour la page contact sur mobile */
@media (max-width: 991.98px) {
    .contact-hero {
        height: auto; /* Permet au contenu de s'étendre verticalement */
        min-height: 100vh;
    }

    .contact-form-container {
        margin-top: 20px;
        background: rgba(255, 255, 255, 0.1); /* Plus léger pour le mobile */
        border-radius: 10px;
    }

    .contact-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
}

/* Fix pour l'espacement sur mobile */
.pt-5.mt-4 {
    padding-top: 100px !important;
}
/* Ajustements pour le menu déroulé sur Mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #22407e; /* Utilise la même couleur bleue que votre état 'scrolled' */
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    .nav-link {
        margin-left: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Réduction de la taille du titre du carrousel sur mobile pour éviter les chevauchements */
    .hero-title {
        font-size: 2.2rem !important;
        margin-top: 60px; /* Donne de l'espace par rapport à la navbar */
    }
}