/* =========================================
   1. VARIABLES & RESET
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
    /* Couleurs du logo Admin'Co */
    --primary-blue: #1c304a;   /* Bleu Nuit (A) */
    --secondary-orange: #eb6b34; /* Orange (C) */
    --accent-teal: #318794;    /* Bleu canard (A) */
    
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* =========================================
   2. HEADER & NAVIGATION
========================================= */
header#navbar {
    background: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 80px;
    transition: transform 0.3s ease;
}

.footer-logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-teal);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-teal);
}

.nav-links li a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* =========================================
   3. BOUTONS
========================================= */
.btn-primary, .btn-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--secondary-orange);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(235, 107, 52, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-cta:hover {
    background: #d15a28;
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(235, 107, 52, 0.4);
}

.btn-primary::after { display: none !important; }

/* Bouton Secondaire (Accueil) - Transparent avec bordure */
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--accent-teal);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent-teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(49, 135, 148, 0.3);
}

/* Forcer la transition propre sur le bouton Contact du menu */
.nav-links li a.btn-primary {
    transition: all 0.3s ease !important;
    padding: 10px 22px;
}

.nav-links li a.btn-primary:hover {
    background: #d15a28; /* Orange légèrement plus foncé */
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 107, 52, 0.3);
}

/* Empêche la petite barre de soulignement du menu de s'afficher sous le bouton */
.nav-links li a.btn-primary::after {
    display: none !important;
}

/* =========================================
   4. HERO SECTIONS (ACCUEIL & INTERNES)
========================================= */
/* Hero Accueil (avec Parallax et hauteur réduite) */
.hero {
    position: relative;
    /* On utilise background-image pour ne pas écraser les autres propriétés */
    background-image: linear-gradient(135deg, rgba(28, 48, 74, 0.85) 0%, rgba(49, 135, 148, 0.8) 100%), 
                url('assets/hero-bg.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* L'effet Parallax est ici ! */
    
    color: var(--white);
    /* Hauteur réduite pour s'aligner sur les pages internes (140px et 100px) */
    padding: 140px 0 100px 0; 
    text-align: center;
    
    /* Découpe adoucie (90% au lieu de 85%) pour s'adapter à la nouvelle hauteur */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-top: 80px;
}

.hero h1 {
    font-weight: 800;
    font-size: 3.5rem;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Hero Pages Internes (Effet Fondu) */
.hero-interne {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0 100px; 
    color: var(--white);
    text-align: center;
    margin-top: 80px;
}

/* Utilisation stricte de background-image pour garder le background-size: cover intact */
.hero-apropos { 
    background-image: linear-gradient(135deg, rgba(28, 48, 74, 0.9), rgba(49, 135, 148, 0.8)), url('assets/bg-apropos.avif'); 
}
.hero-contact { 
    background-image: linear-gradient(135deg, rgba(49, 135, 148, 0.8),rgba(28, 48, 74, 0.9)), url('assets/bg-contact.avif'); 
}
.hero-services { 
    background-image: linear-gradient(135deg, rgba(49, 135, 148, 0.8), rgba(28, 48, 74, 0.9)), url('assets/bg-services.avif'); 
}

.hero-interne h1 { font-size: 3rem; margin-bottom: 15px; }

/* =========================================
   5. SECTIONS & GRILLES (ZIG-ZAG, CARTES)
========================================= */
.page-content { padding: 60px 0; }
.section-white { padding: 60px 0; background: var(--white); }

/* Cartes Accueil qui chevauchent le Hero */
.services-section {
    max-width: 1100px;
    margin: -80px auto 80px auto; 
    position: relative;
    z-index: 10;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--accent-teal);
    box-shadow: 0 15px 35px rgba(49, 135, 148, 0.15);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: #eef5f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--accent-teal);
    font-size: 30px;
}

/* Disposition Zig-Zag (Flex Row) */
.flex-row {
    display: flex;
    align-items: center;
    gap: 60px;
}
.flex-row.reverse { flex-direction: row-reverse; }

.text-block { flex: 1.2; }
.image-block { flex: 1; display: flex; justify-content: center; }

.img-service {
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Badges et Textes */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(49, 135, 148, 0.1);
    color: var(--accent-teal);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.text-block h3 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.check-list { list-style: none; margin: 25px 0; }
.check-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--text-muted);
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-orange);
    font-weight: bold;
}

/* Style de la liste dynamique dans les cartes de services */
.service-details-list {
    list-style: none;
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.service-details-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.service-details-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* =========================================
   6. PAGE CONTACT (FORMULAIRE & ALIGNEMENT)
========================================= */
.contact-page {
    padding: 60px 0;
}

.contact-info {
    flex: 1;
    padding-right: 30px;
}

.contact-form-container {
    flex: 1.5;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    width: 100%;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: #fff3ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0; /* Évite que l'icône s'écrase si le texte est long */
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Ciblage strict des champs texte pour éviter de déformer la checkbox */
.form-group input[type="text"], 
.form-group input[type="email"], 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    /* Transition ciblée pour éviter les sauts de layout */
    transition: border-color 0.3s ease, background-color 0.3s ease; 
}

.form-group input[type="text"]:focus, 
.form-group input[type="email"]:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-teal);
    outline: none;
    background: #fcfcfc;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Style isolé pour la case à cocher pour garder sa fluidité native */
.checkbox-group input[type="checkbox"] { 
    width: 16px; 
    height: 16px;
    margin-top: 4px;
    cursor: pointer;
    flex-shrink: 0; 
}

.checkbox-group input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

/* Alertes */
.alert-success, .alert-error {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* =========================================
   CARTES TÉMOIGNAGES CLIENTS
   ========================================= */
.testimonials-grid {
    display: grid;
    /* Crée des colonnes qui s'adaptent automatiquement à l'écran */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border-top: 4px solid var(--accent-teal);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .stars {
    color: #f39c12; /* Jaune/Orange pour les étoiles */
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-message {
    font-style: italic;
    color: var(--text-dark);
    flex-grow: 1; /* Pousse l'auteur vers le bas pour aligner les cartes */
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.testimonial-author strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   7. FOOTER REVISITÉ (COHÉRENT & PRO)
========================================= */
footer {
    background-color: var(--primary-blue); /* Utilisation stricte de ta couleur principale */
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 4px solid var(--accent-teal); /* Ligne de démarcation élégante */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

/* Si tu utilises un texte au lieu de l'image provisoirement */
.footer-logo-text {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}
.footer-logo-text span {
    color: var(--secondary-orange); /* Le 'CO' en orange */
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 1px;
}

/* Ligne sous les titres du footer */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background: var(--secondary-orange); /* Touche de rappel orange */
    border-radius: 2px;
}

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; }

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Effet de glissement au survol des liens */
.footer-list a:hover {
    color: var(--accent-teal);
    transform: translateX(5px); 
}

.footer-contact p { 
    color: rgba(255, 255, 255, 0.8); 
    margin-bottom: 10px; 
}

.footer-contact a {
    color: var(--secondary-orange);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ff8552; /* Orange plus lumineux */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Correction du lien email pour Admin'Co */
.contact-mail {
    display: inline-block;
    color: var(--secondary-orange);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    margin: 15px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-mail:hover {
    color: #ff8552; /* Orange plus lumineux au survol */
    transform: translateX(5px); /* Petit effet dynamique cohérent avec le reste */
}

/* Ajustement responsive du footer (à laisser s'il est déjà dans ta media query) */
@media (max-width: 768px) {
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =========================================
   8. RESPONSIVE SANS COMPROMIS (SMARTPHONES & TABLETTES)
========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .flex-row { gap: 40px; }
}

@media (max-width: 768px) {
    /* Menu Mobile Navigation */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .burger { display: block; }
    
    /* Adaptabilité des Layouts */
    .hero { 
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); 
        padding: 120px 0 80px; 
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-interne h1 { font-size: 2.4rem; }
    
    .services-section { margin-top: -40px; }
    
    /* Passage des colonnes en lignes fluides */
    .flex-row, .flex-row.reverse { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px;
    }
    
    .text-block h3 { font-size: 1.8rem; }
    .check-list li { text-align: left; }
    
    /* Ajustements spécifiques à la structure de contact sur petits écrans */
    .contact-info {
        padding-right: 0;
        width: 100%;
    }
    .info-item {
        justify-content: center;
        text-align: left;
    }
    .contact-form-container {
        padding: 25px 20px; /* Réduction du padding interne pour maximiser l'espace des inputs */
        width: 100%;
    }
    .checkbox-group {
        text-align: left;
    }

    /* Pied de page */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-list a:hover { padding-left: 0; }
}