/* KEYFRAMES pour les animations de chargement */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Variables pour les couleurs (FINALISATION AVEC CODES COULEUR DU LOGO) */
:root {
    --couleur-primaire: #1B3A7B; /* Bleu Principal du Logo */
    --couleur-secondaire: #7FC141; /* Vert Principal du Logo */
    --couleur-texte: #333; /* Reste en noir classique pour la lecture */
    --couleur-fond-sections: #F9F9FC; 
    --couleur-footer-fond: #1B3A7B; /* Le footer utilise le Bleu Principal exact */
}

/* Réinitialisation de base */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--couleur-texte);
    background-color: white; 
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* TYPOGRAPHIE */
h1, h2, h3, h4 {
    color: var(--couleur-primaire);
    line-height: 1.2;
}
h2 { 
    font-size: 2.5em; 
    border-bottom: 3px solid var(--couleur-secondaire); 
    display: inline-block; 
    padding-bottom: 5px;
    margin-bottom: 25px; 
}
h3 { font-size: 1.8em; margin-bottom: 20px; }
.subtitle {
    font-size: 1.3em;
    color: #555;
}

/* BOUTONS CTA */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--couleur-secondaire);
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px; 
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease; 
}
.cta-button:hover {
    /* Assure un bon contraste au survol */
    background-color: #6EB230; 
    transform: scale(1.05); 
    box-shadow: 0 0 20px rgba(127, 193, 65, 0.6); 
}

/* HEADER */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1, .logo p { 
    display: none; 
} 
/* TAILLE FINALE DU LOGO EN .PNG : 250px */
.header-logo {
    max-height: 250px !important; 
    width: auto;
    display: block;
}

.header-cta {
    font-size: 0.9em;
    padding: 10px 20px;
}

/* SECTION HERO */
#hero {
    background: url('hero-background.jpg') no-repeat center bottom/cover; 
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 0; 
    padding-bottom: 0;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0; 
    border-radius: 0; 
}
#hero h2 {
    color: white;
    font-size: 3.5em;
    margin-bottom: 10px;
    border-bottom: 3px solid white; 
    padding-bottom: 5px;
}
#hero .subtitle {
    color: #eee;
    margin-bottom: 30px;
}

/* SECTIONS GÉNÉRALES */
section {
    padding: 60px 0;
    text-align: center;
}
#services {
    background-color: var(--couleur-fond-sections);
    padding-top: 60px; 
}
#avantages {
    background-color: white; 
    padding: 80px 0;
}

/* NOUVELLE SECTION FLEXIBILITÉ */
#flexibilite {
    background-color: var(--couleur-primaire); /* Fond Bleu Principal */
    color: white;
    padding: 40px 0; 
}
#flexibilite .subtitle {
    color: white;
    margin-bottom: 20px;
}

/* CARDS SERVICES */
.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
}
.card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    flex: 1;
    text-align: left;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); 
    animation: slideInUp 0.6s ease-out both; 
    transition: all 0.3s ease-out; 
}

/* Style moderne pour les titres des services (H4) */
.card h4 {
    color: var(--couleur-primaire); 
    margin-top: 0;
    padding-left: 20px; 
    border-left: 7px solid var(--couleur-secondaire); 
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15); 
    transform: translateY(-8px); 
}

/* Délai d'apparition pour la deuxième carte */
.service-cards .card:nth-child(2) {
    animation-delay: 0.2s;
}

.card ul {
    list-style: none; 
    padding: 0;
}
.card li {
    padding: 5px 0 5px 25px; 
    border-bottom: 1px dotted #eee;
    position: relative;
}
.card li::before {
    content: '✓'; 
    color: var(--couleur-secondaire); 
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
}

/* AVANTAGES - Grille et Style de Bloc Minimaliste Élevé */
.avantage-list {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 30px;
}
.avantage-list div {
    background-color: white;
    border-radius: 10px; 
    padding: 25px;
    color: #666; 
    font-weight: 400; 
    transition: all 0.3s ease-out; 
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); 
    text-align: left;
    line-height: 1.5;
}

/* Style pour le titre de l'avantage (bleu fort) */
.avantage-list .avantage-titre {
    color: var(--couleur-primaire); 
    font-weight: 700;
    display: block; 
    margin-bottom: 5px;
    font-size: 1.15em;
}
.avantage-list div:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); 
    transform: translateY(-5px); 
    background-color: #fcfcfc; 
}

/* FORMULAIRE */
#formulaire {
    background-color: var(--couleur-fond-sections);
}
#formulaire h3 {
    color: var(--couleur-primaire);
}
#formulaire form {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 12px; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); 
    text-align: left;
    display: block;
}
#formulaire input, #formulaire select, #formulaire textarea {
    width: 100%; 
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px; 
    box-sizing: border-box; 
}
#formulaire textarea {
    resize: vertical;
}
.submit-cta {
    width: 100%;
    font-size: 1.1em;
}

/* FOOTER - DESIGN FINALISÉ ET ÉLÉGANT */
footer {
    background-color: var(--couleur-footer-fond); /* Utilise le Bleu Principal du logo */
    color: white;
    padding: 30px 0; 
    text-align: center;
    font-size: 0.9em;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
}
.footer-left, .footer-right {
    flex-basis: 48%;
    text-align: left;
}
.footer-right {
    text-align: right;
}
.footer-right a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    margin-left: 10px;
    transition: color 0.3s;
}
.footer-right a:hover {
    color: var(--couleur-secondaire); /* Vert Principal au survol */
}
.legal-info {
    margin-top: 10px;
    font-size: 0.85em;
    opacity: 0.8;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    #hero {
        height: 40vh;
    }
    #hero h2 {
        font-size: 2em;
    }
    .service-cards {
        flex-direction: column;
    }
    .avantage-list {
        grid-template-columns: 1fr; 
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
    }
    .footer-left, .footer-right {
        text-align: center;
        margin-bottom: 15px;
    }
}