/* Import d'une police moderne */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --primary-color: #f39c12;    /* Orange vif pour l'action */
    --secondary-color: #1a252f;  /* Bleu nuit très pro pour le sérieux */
    --accent-color: #2c3e50;     /* Bleu gris pour les variantes */
    --light-bg: #f4f7f6;         /* Gris très léger pour alterner les sections */
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth; /* Pour le scroll fluide */
}

/* Arrière-plan global */
body {
    background-color: var(--white);
    color: #444;
}

/* Alternance des couleurs de fond par section */
section:nth-child(even) {
    background-color: var(--light-bg);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Menu de navigation */
nav {
    background: white;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    margin: 0 15px;
    font-weight: 600;
}

.urgence a {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Sections */
section {
	padding: 60px 10%; /* On passe de 100px à 60px pour réduire l'espace */
    min-height: auto;   /* On enlève le min-height pour éviter que les sections vides ne s'étirent trop */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments horizontalement */
    gap: 20px;           /* Crée un espace régulier de 20px entre chaque élément (titre, texte, bouton) */
}

.hero-content p {
    max-width: 600px;    /* Évite que le texte ne soit trop large sur grand écran */
    margin-bottom: 10px; /* Espace supplémentaire sous le texte si besoin */
}

#presentation {
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.9) 0%, rgba(44, 62, 80, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&q=80&w=1000'); /* Image pro de serrurerie */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 140px 10% 100px;
    text-align: center;
}

#presentation h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Style des cartes de services pour qu'elles ressortent */
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Ombre légère pour donner du relief */
    border-bottom: 4px solid var(--primary-color); /* Liseré orange sous chaque carte */
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* Petit effet de survol */
}

.service-card i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Grille pour les réalisations */
.grid-realisations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #ddd;
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Boutons plus modernes */
.cta-button {
    display: inline-block; /* Indispensable pour que les marges fonctionnent bien */
    margin-top: 30px;      /* C'est cette ligne qui crée l'espace vers le bas */
    background: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    color: white;
    text-decoration: none; /* Enlève le souligné du lien */
    font-weight: bold;
    /* ... garde le reste de tes styles (box-shadow, etc.) ... */
}

.cta-button:active, button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #d35400;
}

/* Responsive mobile */
@media (max-width: 768px) {
    nav ul { display: none; } /* On simplifiera avec un bouton tel sur mobile */
    #presentation h1 { font-size: 2rem; }
}

/* Style du bouton flottant */
.btn-flottant-mobile {
    display: none; /* Caché par défaut sur ordinateur */
    position: fixed;
    bottom: 20px;
    left: 5%;
    right: 5%;
    background-color: #e67e22; /* Le même orange que ton thème */
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: pulse 2s infinite; /* Petit effet d'animation pour attirer l'oeil */
}

/* Animation de pulsation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Affichage uniquement sur mobile (écrans de moins de 768px) */
@media (max-width: 768px) {
    .btn-flottant-mobile {
        display: block;
    }
    
    /* On ajoute un peu de marge en bas du site pour que le bouton ne cache pas le texte */
    body {
        padding-bottom: 80px;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: -1px;
}
.logo span {
    color: var(--primary-color);
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden; /* Pour arrondir les coins de la carte */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.map-container iframe {
    display: block; /* Enlever l'espace sous l'iframe */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--secondary-color);
}

/* --- Version Mobile (pour les écrans jusqu'à 768px) --- */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem; /* Vous pouvez ajuster cette valeur (1.6rem, 1.7rem...) */
        line-height: 1.2;
    }
}

/* On s'assure que le titre de cette section soit aussi en blanc */
/* Cible spécifiquement les paragraphes d'infos */
.location-info p {
    color: var(--secondary-color) !important;
    font-size: 1.1rem;
    font-weight: 500; /* Un peu plus épais pour la lecture */
    margin-bottom: 15px;
    opacity: 1 !important; /* Au cas où une opacité serait appliquée */
}

/* Rend les icônes (📍, ⏰, 📞) bien visibles */
.location-info i {
    color: var(--primary-color) !important; /* Orange vif */
    margin-right: 12px;
    font-size: 1.2rem;
}

#contact, #engagement {
	background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    padding: 80px 10%;
}


/* On ajuste les icônes et le texte d'info pour qu'ils soient lisibles */
.contact-info p, engagement-info p {
    color: #ecf0f1; /* Un blanc légèrement cassé pour ne pas agresser l'œil */
}

/* Force le titre de la section contact en blanc */
#contact .section-title, #engagement .section-title {
    color: var(--white) !important;
    text-align: center;
    margin-bottom: 30px;
}