:root {
    --blue: #004a99;
    --red: #e63946;
    --dark: #1d3557;
    --light: #f1faee;
    --white: #ffffff;
	--gray: rgb(111, 111, 111); 
	--black: #000000;
	--green: #2ecc71;
	--jaune: rgb(238, 182, 0);
	--font-tall: 'Oswald', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--gray); line-height: 1.6; }
header {
    position: fixed; /* Fixe le menu en haut au scroll */
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent !important; /* On sature la transparence ici */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

.top-bar {
    background-color: var(--blue);
    color: white;
	 font-weight: bold;
    padding: 8px 5%;
   white-space: nowrap; /* Empêche le numéro de revenir à la ligne */
    font-size: 14px;     /* Ajustez la taille pour qu'il tienne sur une seule ligne */
}

.top-bar-content {
    display: flex;
    justify-content: flex-end; /* Aligne les infos à droite */
    gap: 25px;
}

.top-bar-content a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.container { max-width: 1000px; margin: auto; padding: 180px 20px; }

h2 { font-size: 2rem; color: var(--blue); text-align: center; margin-bottom: 30px; text-transform: uppercase; }

/* On s'assure que le conteneur du logo n'a aucune couleur */
.logo, .logo a {
    background: transparent !important;
    border: none !important;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    margin: 10px 0px 2px 50px;
    /* Si votre image a un fond blanc forcé, cette ligne aide à le fusionner */
    mix-blend-mode: multiply; 
}

.logo {
    display: flex;
    align-items: center;
}
/* Navigation */
.phone-link { color: #a8dadc; font-weight: bold; text-decoration: none; }

nav {  
    display: flex;  
    align-items: center;  
    padding: 5px 5%;  
    /* LE VOILE : blanc à 70% d'opacité + effet flou */
    background: rgba(255, 255, 255, 0.1) !important;  
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    align-items: center;
    margin-left: auto;  /* Cela pousse tout le menu vers la droite */
    margin-right: 50px; /* Ajoute un espace à droite si tu veux décoller du bord */
}

nav a { 
font-family: var(--font-tall);
    text-decoration: none; 
    color: var(--white); 
    font-weight: 900; 
    font-size: 1.0rem; 
    text-transform: uppercase; 
}
.hero { 
    padding-top: 120px; /* Ajuste cette valeur selon la hauteur de ton logo */
    background-image: url('images/fond_ecran1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh; /* hauteur de la fenetre */
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.hero-content {
    /* background: linear-gradient(180deg, rgb(245, 203, 74) 0%, var(--white) 100%) !important;*/
    /*background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), rgb(238, 182, 0) !important;*/
	background-color: #f8f9fa;
	border: 1px solid rgb(111, 111, 111) !important; 
    border-radius: 12px;	
    padding: 60px 0; /* Espace en haut et en bas du texte */
    text-align: center;  
    max-width: none !important;    
}

/* Limite la largeur du texte à l'intérieur pour qu'il soit lisible */
.hero-content h1, 
.hero-content p {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: var(--black) !important;
    padding: 0 20px;
}

.hero-content h1 {
color: var(--gray) !important;
    font-family: var(--font-tall) !important;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}
/* Boutons */
.bouton { 
    background: var(--blue) !important; 
    color: white !important; 
    padding: 10px 20px !important; 
    font-size: 0.9rem !important; 
    font-weight: 900;
    border-radius: 4px; 
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s ease; /* Animation fluide de 0.3 secondes */
    border: none;
    cursor: pointer;
}

.bouton:hover { 
    background: var(--jaune) !important;
    color: white !important;
    transform: translateY(-2px); /* Petit saut vers le haut */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre portée plus marquée */
}
.bouton-devis { 
    background: var(--blue); 
    color: white;
    padding: 15px 30px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    display: inline-block; 
}

.bouton-services { 
    background: var(--blue); 
    color: white;; 
    padding: 15px 30px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    display: inline-block; 
    margin-left: 10px; 
}

/* Lors du click sur bouton definie la hauter d'affichage par rapport au bandeau menu Appliquer à toutes les sections qui ont un ID (utilisées pour le menu) */
section[id] {
    /* Ajustez la valeur (100px) en fonction de la hauteur réelle de la bande logo */
    scroll-margin-top: 34px; 
}

/* Geo Strip */
.geo-strip { background: var(--light); text-align: center; padding: 15px; font-size: 0.95rem; border-bottom: 1px solid #ddd; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-item { padding: 30px; background: var(--white); border: 1px solid #eee; border-radius: 8px; transition: 0.3s; }
.service-item:hover { border-color: var(--blue); transform: translateY(-5px); }
.service-item h3 { color: var(--blue); margin-bottom: 15px; font-size: 1.3rem; }

/* Avis */
.bg-light { background: #f8f9fa; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
blockquote { background: white; padding: 25px; border-radius: 8px; border-left: 5px solid var(--light); font-style: italic; }
cite { display: block; margin-top: 10px; font-weight: bold; color: var(--blue); font-style: normal; }
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Cache les avis qui dépassent */
}

.stars { color: var(--jaune); margin-bottom: 10px; font-size: 1.2rem; }
.testimonial-slider { position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden; padding: 20px 0; }
.testimonial-container { 
    display: flex; 
    /* On définit l'écart ici */
    gap: 20px; /* attention si modif modifier aussi le java const cardWidth = cards[0].offsetWidth + 20;*/
    transition: transform 0.5s ease-in-out; 
    /* On s'assure que rien ne dépasse du conteneur parent */
    width: 100%;
}

.testimonial-card { 
    /* La formule magique : 
       calc(50% - 10px) car on a deux vignettes et UN SEUL espace de 20px entre elles (20/2 = 10) */
    flex: 0 0 calc(50% - 10px) !important; 
    
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    border-left: 5px solid var(--jaune); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    box-sizing: border-box; /* Indispensable pour que le padding ne gonfle pas la vignette */
}
.slider-nav { text-align: center; margin-top: 20px; }
.slider-nav button { 
    background: var(--blue); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    cursor: pointer; 
    border-radius: 4px; 
    font-weight: bold;
}

/* Formulaire */
.contact-card { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-top: 5px solid var(--gray); }
.form-group { display: flex; gap: 15px; margin-bottom: 15px; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.btn-submit { background: var(--blue); color: white; border: none; padding: 15px; width: 100%; font-weight: bold; border-radius: 4px; cursor: pointer; }

/* Footer */
footer { 
    background: #111; 
    color: #eee; 
    padding: 40px 0; /* On réduit l'espace ici */
}
.footer-content {
    max-width: 1000px;
    margin: auto;
    padding: 0 20px; /* Juste un peu d'espace sur les côtés */
    display: flex;
    justify-content: space-between; /* Aligne le nom à gauche et le copyright à droite */
    align-items: center;
    flex-wrap: wrap; /* Pour que ça passe sur deux lignes sur mobile */
}
/* Ajustement suivant la taille de l'ecran */
@media (max-width: 768px) {
    /* On réduit la taille du titre pour que ça loge sur un iPhone */
    .hero-content h1 { font-size: 1.5rem !important; }
    
    /* Le formulaire passe en une seule colonne (indispensable) */
    .form-group { flex-direction: column; }
    
    /* Les boutons du bandeau se mettent l'un sous l'autre */
    .hero-actions { 
        flex-direction: column; 
        gap: 10px; 
    }
    .bouton-services { margin-left: 0 !important; }

    /* Pour ton nouveau slider d'avis : force 1 seule vignette sur mobile */
    .testimonial-card { min-width: 100% !important; }
	.footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;}
		
	.hero {
        background-image: none !important;        
    }	   
}
/* --- Ajustement du logo pour Mobile --- */
@media screen and (max-width: 600px) {
    .logo-img {
        height: 60px !important; /* On réduit la hauteur (contre 90px ou 100px avant) */
        margin-left: 20px !important; /* On réduit la marge à gauche pour gagner de la place */
        }
    .logo {
        margin-top: 5px; /* Petit ajustement pour centrer verticalement si besoin */
		margin-bottom: 20px
    }	
	.hero-content h1 {
    font-size: 1.2rem;
    }
    .hero-content p {
    font-size: 0.8rem;
   }	
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.projet-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.projet-card img {
    width: 100%;
    height: 300px; /* Force une hauteur identique pour toute la ligne */
    object-fit: cover; /* Recadre intelligemment pour remplir le cadre */
}
.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.projet-card img {
    width: 100%;
    height: 300px;
    object-fit: cover; /* Important : garde les photos proportionnelles */
    border-bottom: 3px solid var(--jaune);
}

.projet-info {
    padding: 20px;
}

.projet-info h3 {
    font-family: var(--font-tall);
    font-size: 1.2rem;
    color: var(--blue);
    margin-bottom: 10px;
}