/* --- Variables --- */
:root {
    --primary: #444444;
    --accent: #77080b;
    --light: #f4f7f6;
    --text: #444444;
    --white: #ffffff;
    --google-blue: #77080b;
}

/* --- Global --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Segoe UI', sans-serif; 
    line-height: 1.6; 
    color: var(--text); 
    overflow-x: hidden;
    padding-top: 60px; /* IMPORTANT : Laisse de la place pour le menu fixe */
}

h2 { text-align: center; margin-bottom: 3rem; font-size: 2rem; color: var(--primary); }
h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent); margin: 15px auto; }
.bg-light { background-color: var(--light); }
.text-center { text-align: center; }

/* --- Navigation Fixe (Sticky) --- */
/* --- CONTENEUR DU MENU BURGER (FIXE EN HAUT À DROITE) --- */
.burger-menu-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5000;
}

/* L'icône Burger (Les 3 traits) */
.burger-icon {
    display: block;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 8px;
    cursor: pointer;
   /* position: relative;*/
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid white;
}

.burger-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    position: absolute;
    left: 10px;
    transition: 0.3s;
}

.burger-icon span:nth-child(1) { top: 15px; }
.burger-icon span:nth-child(2) { top: 23px; }
.burger-icon span:nth-child(3) { top: 31px; }

/* Cache la checkbox */
#burger-toggle { display: none; }

/* --- LE MENU QUI APPARAÎT --- */
.nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--primary);
    width: 200px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-links a:hover { background: var(--accent); }

/* Animation d'ouverture au clic */
#burger-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Animation des barres du burger en croix */
#burger-toggle:checked + .burger-icon span:nth-child(1) { transform: rotate(45deg); top: 23px; }
#burger-toggle:checked + .burger-icon span:nth-child(2) { opacity: 0; }
#burger-toggle:checked + .burger-icon span:nth-child(3) { transform: rotate(-45deg); top: 23px; }

/* --- POSITION DU BOUTON 7/7 JUSTE EN DESSOUS --- */
.floating-call-btn {
    position: fixed;
    top: 85px; /* Positionné juste après le bouton burger (20px top + 50px hauteur + 15px marge) */
    right: 20px;
    bottom: auto; /* On annule le bottom précédent */
    background: var(--accent);
    color: white;
    width: 40px; /* On réduit un peu la taille pour l'aligner avec le burger */
    height: 40px;
    border-radius: 8px; /* Carré arrondi comme le burger pour l'harmonie */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 4900;
    font-weight: bold;
    border: 2px solid white;
    transition: 0.3s;
}

.floating-call-btn span { font-size: 0.7rem; }
.floating-call-btn i { font-size: 1.2rem; }

/* --- AJUSTEMENT BODY --- */
body {
    padding-top: 0; /* Plus besoin de padding car le menu est flottant */
}

/* --- Hero (Logo Incrusté & Effet Toiture) --- */
.hero {
    background: linear-gradient(rgba(126,19,19,0.98), rgba(0,0,0,0.69)), url('images/hero-bg.jpg') center/cover;
    color: var(--white);
    height: 70vh;
    display: flex;
    flex-direction: column; /* Aligne logo + texte verticalement */
    align-items: center;
    justify-content: center;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.hero-logo img {
    max-height: 200px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.btn { background: #77080b; color: white; padding: 15px 35px; text-decoration: none; border-radius: 50px; font-weight: bold; transition: 0.3s; display: inline-block; margin-top: 20px; }
.btn:hover { background: #888888; transform: translateY(-3px); }

/* --- Services --- */
section { padding: 80px 5%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 40px; border-radius: 12px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 5px solid var(--primary); transition: 0.3s; }
.card:hover { transform: translateY(-10px); }
.icon-service { font-size: 3rem; color: var(--accent); margin-bottom: 20px; }

/* --- Galerie --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.gallery-item { height: 250px; overflow: hidden; border-radius: 8px; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- Avis Google --- */
.avis-section { max-width: 700px; margin: 0 auto; text-align:center; background: var(--light); padding: 40px; border-radius: 20px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.1); }
.stars { color: #f1c40f; font-size: 1.5rem; margin-bottom: 15px; }
.btn-google-review { background: var(--google-blue); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 20px; transition: 0.3s; }

/* --- Horaires (Dark Mode) ---
.horaires-section { background: #1a1a1a; color: white; }
.horaires-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 30px; }
.horaires-card, .acces-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 15px; border: 1px solid #333; }
.horaires-list { list-style: none; }
.horaires-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #333; }
.horaires-list strong { color: var(--accent); }
.highlight-77 { margin-top: 20px; text-align: center; font-weight: bold; animation: pulse 2s infinite; }
.highlight-77 a { color: #2ecc71; text-decoration: none; font-size: 1.2rem; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }*/

/*HORAIRES */

.horaires-section {
    background-color: #1a1a1a; /* Fond sombre élégant */
    color: white;
    padding: 60px 0;
}

.horaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.horaires-list {
    list-style: none;
    padding: 0;
}

.horaires-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.horaires-list li strong { color: #324355;; }
.horaires-list li .ferme { color: #e74c3c; }

.section-padding-horaire{
padding: 110px 0;}

.rdv-mention {
    font-size: 1.2rem;
    color: #333;
    margin-top: 15px;
    font-style: italic;
	font-weight: bold;
}

.btn-itineraire {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #77080b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-itineraire:hover {
    background-color: #888888;
    transform: translateY(-2px);
}

.zone-info { color: #bbb; font-size: 0.9rem; margin-top: 5px; }

@keyframes pulse-red {
    0% { color: #2e7d32; transform: scale(1); }
    50% { color: #e53935; transform: scale(1.05); } /* Passe au rouge et grossit un peu */
    100% { color: #2e7d32; transform: scale(1); }
}

.highlight-77 {
    display: inline-block;
    font-weight: bold;
    animation: pulse-red 2s infinite ease-in-out;
}


/* --- Contact Form --- */
.form-container { max-width: 700px; margin: 0 auto; background: var(--light); padding: 40px; border-radius: 20px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.1); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; }
.btn-submit { width: 100%; padding: 18px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; } 
.btn-submit:hover { background: var(--accent); }

/* --- Bouton Flottant (Toujours au-dessus) --- */
.floating-call-btn { 
    position: fixed; bottom: 30px; 
    background: var(--accent); color: white; 
    width: 50px; height: 50px; border-radius: 50%; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,0.4); 
    z-index: 4000; font-weight: bold; border: 3px solid white; transition: 0.3s; 
}

/* --- Footer --- */
footer { background: var(--primary); color: var(--white); padding: 3rem 5% 1rem 5%; margin-top: 4rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
.footer-column h3 { color: var(--accent); margin-bottom: 1rem; }
.footer-column ul { list-style: none; }
.footer-column a { color: white; text-decoration: none; opacity: 0.8; }

/* --- Mobile Adaptations --- */
@media (max-width: 768px) {
    .nav-container { gap: 12px; }
    .main-nav a { font-size: 0.75rem; }
    .hero h1 { font-size: 2rem; }
    .hero-logo img { max-height: 120px; }
    section { padding: 50px 20px; }
    .floating-call-btn { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    footer { padding-bottom: 100px; } /* Pour ne pas cacher le footer par le bouton */
}