/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fcfcfc;
    scroll-behavior: smooth;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(192, 57, 43, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HEADER --- */
header {
    background-color: #fff;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { height: 60px; }

nav ul { list-style: none; display: flex; align-items: center; }
nav ul li { margin-left: 20px; }
nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s;
}
nav ul li a:hover { color: #c0392b; }

.btn-urgence {
    background-color: #c0392b;
    color: white !important;
    border-radius: 50px;
    padding: 0.7rem 1.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pulse-effect { animation: pulse 2s infinite; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #2c3e50, #000); 
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 50px 20px;
}

.contenu-hero {
    z-index: 2;
    animation: popIn 1s ease-out;
    padding: 20px;
    width: 100%;
}

/* --- LOGO HERO (TAILLE AJUSTÉE : GRAND MAIS PAS TROP) --- */
.logo-hero {
    width: 90%; /* Prend bien la largeur sur les petits écrans */
    
    /* C'est ICI le changement : 850px. C'est grand, effet cinéma, mais pas "explosé". */
    max-width: 850px; 
    
    height: auto;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 4px solid rgba(255,255,255,0.3);
    
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* ------------------------------------------------------- */

.titre-principal {
    font-size: 3.5rem; 
    font-weight: 900; 
    margin: 0;
    text-transform: uppercase; 
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-style: italic;
}

.srl-petit {
    font-size: 0.5em;
    vertical-align: middle;
    font-weight: normal;
}

.badge-specialite {
    background-color: #c0392b;
    color: white;
    display: inline-block;
    padding: 5px 20px;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 4px;
    margin: 10px 0;
    letter-spacing: 1px;
}

.sous-titre {
    font-size: 1.5rem; color: #ecf0f1; margin: 15px 0 30px; font-weight: 300;
}

.boutons-hero { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.gros-bouton-appel {
    background-color: #c0392b; color: white; padding: 1rem 2.5rem;
    border-radius: 50px; font-size: 1.2rem; font-weight: bold;
    text-decoration: none; box-shadow: 0 5px 15px rgba(192, 57, 43, 0.4);
    transition: transform 0.2s;
}
.gros-bouton-appel:hover { transform: scale(1.05); background-color: #a93226; }

.btn-secondaire {
    background-color: transparent; color: white; padding: 1rem 2.5rem;
    border-radius: 50px; font-size: 1.2rem; font-weight: bold;
    text-decoration: none; border: 2px solid white;
    transition: background 0.3s;
}
.btn-secondaire:hover { background-color: white; color: #333; }

/* --- PRÉSENTATION --- */
.presentation { padding: 6rem 10%; background: white; }
.conteneur-presentation { display: flex; align-items: center; gap: 4rem; }
.texte-presentation h2 { font-size: 2.2rem; color: #2c3e50; margin-bottom: 1.5rem; position: relative; display: inline-block;}
.texte-presentation h2::after {
    content: ''; display: block; width: 50px; height: 4px;
    background: #c0392b; margin-top: 10px; border-radius: 2px;
}
.intro { font-size: 1.1rem; color: #555; margin-bottom: 1.5rem; line-height: 1.8; }
.points-forts li { margin-bottom: 0.8rem; font-weight: bold; color: #2c3e50; }
.cercle-deco {
    width: 250px; height: 250px; background: #ecf0f1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 6rem;
    color: #c0392b; box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
}

/* --- SERVICES --- */
.services { padding: 6rem 5%; text-align: center; background-color: #f9f9f9; }
.intro-services { margin-bottom: 3rem; color: #7f8c8d; font-size: 1.2rem; }
.liste-services { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }

.carte {
    background: white; padding: 2rem; border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 260px; transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid transparent;
}
.carte:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-bottom-color: #c0392b; }
.carte h3 { color: #2c3e50; margin-bottom: 1rem; font-size: 1.4rem; }

.carte-star {
    border: 2px solid #c0392b;
    transform: scale(1.05);
    position: relative;
    order: -1;
}
.carte-star:hover { transform: scale(1.08); }
.carte-star h3 { color: #c0392b; font-weight: 900; font-size: 1.6rem; }
.badge-pop {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: #c0392b; color: white; padding: 5px 15px;
    font-size: 0.8rem; font-weight: bold; border-radius: 20px;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
}

/* --- SECTION CONTACT --- */
.section-contact-style {
    background-color: #e9ecef;
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #d1d1d1;
}

.conteneur-contact {
    max-width: 700px;
    margin: 0 auto;
}

.bloc-infos {
    background: #34495e;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bloc-infos h3 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.infos-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.info-item:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.info-item .icone { font-size: 1.5rem; margin-right: 10px; }
.info-item .texte { font-weight: bold; font-size: 1.1rem; }

/* Le Formulaire */
.le-formulaire {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
    border: 1px solid #ddd;
}

.champ-saisie {
    margin-bottom: 25px;
}

.champ-saisie label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.95rem;
}

.champ-saisie input, 
.champ-saisie textarea {
    width: 100%;
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: 0.3s;
}

.champ-saisie input:focus, 
.champ-saisie textarea:focus {
    outline: none;
    border-color: #c0392b;
    background-color: white;
}

.bouton-envoyer {
    width: 100%;
    background-color: #27ae60;
    color: white;
    padding: 18px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 4px 0 #219150;
}

.bouton-envoyer:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #219150;
}

.bouton-envoyer:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* --- FOOTER --- */
footer { background: #222; color: #bdc3c7; padding: 4rem 10% 1rem; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 3rem; gap: 2rem; }
.info-box h3 { color: white; margin-bottom: 1.2rem; font-size: 1.3rem; }

.box-urgence {
    background: #c0392b; padding: 20px; border-radius: 10px;
    color: white; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.box-urgence h3 { color: white; margin: 0; font-size: 1.5rem; }
.box-urgence .btn-footer { color: white; font-size: 2rem; display: block; margin: 10px 0; text-decoration: none;}
.box-urgence small { color: rgba(255,255,255,0.8); }

.copyright { text-align: center; border-top: 1px solid #333; padding-top: 2rem; font-size: 0.9rem; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    /* Sur mobile, on lui dit de prendre toute la largeur disponible */
    .logo-hero { width: 100%; max-width: none; } 
    
    .titre-principal { font-size: 2.2rem; }
    .sous-titre { font-size: 1.2rem; }
    .boutons-hero { flex-direction: column; width: 100%; }
    .gros-bouton-appel, .btn-secondaire { width: 100%; display: block; }
    .conteneur-presentation { flex-direction: column; text-align: center; }
    .texte-presentation h2::after { margin: 10px auto; }
    .footer-content { flex-direction: column; }
    .carte-star { transform: scale(1); width: 100%; }
    .infos-flex { flex-direction: column; gap: 10px;}
    .info-item { justify-content: center; }
}