/* NOUVEAU STYLE - Design Professionnel et Épuré (Couleurs INDIGO & ROSE) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4B0082; /* Deep Indigo (Violet Foncé) - Principal */
    --secondary: #673AB7; /* Standard Indigo */
    --accent: #E91E63; /* Vibrant Pink/Rose - Accent */
    --dark: #1A237E; /* Very Dark Indigo (Footer/Top Bar) */
    --background-light: #F0F2F5; /* Fond très clair et professionnel */
    --text-color: #333;
    --soft-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Ombre douce */
    --border-radius: 15px; /* Arrondis subtils */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--dark);
}

section {
    padding: 5rem 2rem;
}

/* -------------------------------------------------------------------------- */
/* TOP BAR & HEADER (Plus institutionnel) */
/* -------------------------------------------------------------------------- */

.top-bar {
    background: var(--dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.top-info i {
    color: var(--accent); /* Icônes en Rose */
    margin-right: 0.5rem;
}

header {
    background: white;
    border-bottom: 1px solid var(--background-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent); /* Logo icône en Rose */
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    color: #FF69B4;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.btn-download-nav {
    background: var(--accent); /* Bouton en Rose */
    color: white !important;
    padding: 0.7rem 1.2rem !important;
    border-radius: var(--border-radius);
    font-weight: 700 !important;
    transition: all 0.3s;
    box-shadow: var(--soft-shadow);
}

.btn-download-nav:hover {
    background: #FF69B4; /* Rose plus clair au survol */
    transform: translateY(-2px);
}

.btn-download-nav::after {
    content: none !important;
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION (Épurée) */
/* -------------------------------------------------------------------------- */

.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%); /* Dégradé Indigo */
    color: white;
    padding: 10rem 2rem 8rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); 
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 300;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    display: inline-block;
}

.btn-primary-cta {
    background: var(--accent); /* CTA Primaire en Rose */
    color: white;
    border: 2px solid var(--accent);
    box-shadow: var(--soft-shadow);
}

.btn-primary-cta:hover {
    background: #FF69B4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.btn-secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-cta:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-primary-cta.small {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* -------------------------------------------------------------------------- */
/* MISSION & STATS (Ancien About/Qui sommes-nous) */
/* -------------------------------------------------------------------------- */

.mission {
    background-color: var(--background-light);
    padding-top: 5rem;
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary); /* Titre en Indigo */
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.mission-text p {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.15rem;
}

/* Contrainte: Image en bas du texte introductif */
.mission-image-wrapper {
    margin: 0 auto 3rem;
    max-width: 1000px;
}

.mission-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
}

/* STATS (Nouveau style intégré) */
.stats-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary); /* Icônes stats en Indigo */
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--primary);
}

/* FEATURES (Sous Stats) */
.mission-features {
    max-width: 1000px;
    margin: 0 auto;
}

.features-title {
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}

.features-list-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.features-list-grid li {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    transition: border-left 0.3s;
    border-left: 5px solid var(--primary); /* Bordure en Indigo */
}

.features-list-grid li i {
    color: var(--accent); /* Icônes de liste en Rose */
    margin-right: 1rem;
}

/* -------------------------------------------------------------------------- */
/* FORMATIONS SECTION (Cartes modernes) */
/* -------------------------------------------------------------------------- */

.formations {
    background-color: white;
}

.formations-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.formation-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 0 0 350px;
    max-width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
}

.formation-card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.formation-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
}

.formation-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    justify-content: center;
}

.formation-content h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.formation-content h3 i {
    margin-right: 0.5rem;
    color: var(--accent); /* Icônes des cartes en Rose */
}

.formation-description {
    margin-bottom: 1rem;
    color: #555;
}

.formation-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.formation-detail {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

.detail-value {
    font-weight: 700;
    color: var(--dark);
}

.btn-card-action {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-card-action:hover {
    background: var(--dark);
    color: white;
}

.cta-card {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-content h4 {
    color: var(--accent); /* Titre CTA en Rose */
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hidden-card {
    display: none; 
}

/* -------------------------------------------------------------------------- */
/* CONTACT SECTION (Formulaire et Infos côte à côte) */
/* -------------------------------------------------------------------------- */

.contact {
    background-color: var(--background-light);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;             
    gap: 4rem;
    align-items: center;        
    justify-content: center;    
}

.contact-form, .contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
}

.contact-form h3 {
    color: var(--primary);
}

.contact-form h3 i {
    color: var(--accent); /* Icône du formulaire en Rose */
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Styles pour le téléphone (iti) */
.phone-input-wrapper {
    position: relative;
    width: 100%;
}

.phone-error {
    color: #ff0000;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: 10px 0 0 10px;
}

.iti input[type=tel] {
    border-radius: 10px !important;
    border: 1px solid #ddd;
    padding: 0.9rem;
    height: auto;
}

.iti__country-list {
    display: none;
}

#country-select {
    flex: 0 0 120px;  /* Largeur fixe pour le select */
    padding: 0.8rem 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px 0 0 10px;  /* Arrondi à gauche */
    background: white;
    font-size: 1rem;
    cursor: pointer;
    border-right: none;  /* Fusion avec input */
}

#country-select:focus {
    outline: none;
    border-color: var(--primary);
}

.phone-input-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
}

.phone-input-container.valid {
    border-color: var(--accent) !important;
}

.phone-input-container.error {
    border-color: #ff0000 !important;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border-radius: 10px;
}

.submit-btn:hover {
    background: var(--dark);
    transform: none;
    box-shadow: 0 5px 15px rgba(75,0,130,0.2);
}

.submit-btn i {
    margin-left: 0.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-left: 4px solid var(--accent); /* Bordure en Rose */
    background: var(--background-light);
    border-radius: 8px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-item strong {
    font-weight: 700;
    color: var(--dark);
}

.contact-credentials {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.contact-credentials p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-credentials i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* MAP SECTION */
/* -------------------------------------------------------------------------- */

.map-section {
    background-color: white;
    padding-top: 0;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-frame {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
}

/* -------------------------------------------------------------------------- */
/* DOCUMENTS / MENTIONS LÉGALES (Minimaliste) */
/* -------------------------------------------------------------------------- */

.documents {
    padding: 3rem 2rem;
    background: var(--background-light);
}

.documents-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-small {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.info-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.document-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.document-item-title {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent); /* Bordure en Rose */
    padding-bottom: 0.5rem;
}

.info-list-pro {
    list-style: none;
}

.info-list-pro li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed #eee;
}

.info-list-pro strong {
    color: var(--primary);
    display: inline-block;
    min-width: 100px;
    margin-right: 10px;
}

.legal-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #EDE7F6; /* Indigo très clair */
    border-left: 5px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------------------------- */

footer {
    background: var(--dark); /* Fond en Indigo très foncé */
    color: #ccc;
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent); /* Titres en Rose */
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-brand i {
    color: white;
    margin-right: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section a i {
    font-size: 0.7rem;
    margin-right: 0.5rem;
    color: var(--accent); /* Icônes en Rose */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.85rem;
}

#menu-toggle {
    display: none; 
}

.menu-icon {
    display: none; 
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    color: white;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .formation-card {
        flex: 1 1 100%;
    }

    .hero {
        padding-top: 8rem;
    }

    #country-select {
        flex: 0 0 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .menu-icon {
        display: block;
        color: #FF69B4;
    }

    /* CACHE LE MENU PAR DÉFAUT EN MOBILE */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Aligné sous le header */
        left: 0;
        width: 100%;
        background: #FF69B4;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        padding: 1rem 0;
        z-index: 999;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        border-radius: 0;
        color: white;
    }
    
    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }
    
    .logo {
        font-size: 1.5rem;
    }

    .about-container,
    .info-details-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-inline {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
