/* ============================================== */
/* 0. VARIABLES & RESET BASIQUE */
/* ============================================== */
:root {
    --primary-color: #007BFF; /* Bleu Vif (Couleur principale d'AJF-Tech) */
    --secondary-color: #28a745; /* Vert (pour les CTAs secondaires ou la réussite) */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {font-family: 'Poppins', sans-serif; /* MODIFIÉ */
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

/* NOUVELLE RÈGLE à ajouter ou modifier dans styles.css (par exemple, après la section "Variables") */
h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Plus de finesse que 800, mais suffisamment d'impact */
}

/* Assurons-nous que le titre principal soit bien Montserrat */
.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--dark-bg);
    /* Ajout de la police pour garantir la surcharge */
    font-family: 'Montserrat', sans-serif; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* ============================================== */
/* BOUTONS & TITRES */
/* ============================================== */
.section-padding {
    padding: 80px 0;
}
.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-tertiary {
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}
.btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}
.text-center {
    text-align: center;
}
.mt-50 {
    margin-top: 50px;
}

/* ============================================== */
/* NAVIGATION BAR */
/* ============================================== */
.navbar {
    background: white;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
}

/* ============================================== */
/* HERO SLIDER (CARROUSEL) */
/* ============================================== */
.hero-slider {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Images de fond pour les slides (Chemins d'accès à modifier) */
.slide-1 { background-image: url('../images/seminaire_depannage_2024.jpg'); }
.slide-2 { background-image: url('../images/seminaire_depannage_2024.jpg'); }
.slide-3 { background-image: url('../images/seminaire_depannage_2024.jpg'); }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.slide-content {
    z-index: 10;
    padding: 20px;
    max-width: 900px;
    animation: fadeInSlide 1.5s ease-out;
}

.slide-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.1;
}

.slide-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.pre-title {
    font-size: 1em;
    font-weight: 600;
    color: #ffc107;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================== */
/* 3. SECTION DOMAINES D'EXPERTISE / ACCUEIL */
/* ============================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.expertise-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.expertise-item i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.expertise-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.expertise-item p {
    color: #6c757d;
    margin-bottom: 20px;
}

.expertise-item a {
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.expertise-item a:hover {
    color: var(--secondary-color);
}

/* ============================================== */
/* 4. SECTION APERÇU DES FORMATIONS (ACCUEIL) */
/* ============================================== */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.formation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.formation-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.formation-card h3 {
    font-size: 1.5em;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.formation-card p {
    font-size: 0.95em;
    color: #6c757d;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
}

.duree {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: bold;
}

.duree i {
    margin-right: 5px;
}

/* ============================================== */
/* 5. SECTION ÉVÉNEMENTS PASSÉS (GRILLE) */
/* ============================================== */
.evenements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.evenement-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evenement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.evenement-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.card-content .date {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 15px;
}

.card-content .date i {
    margin-right: 5px;
}

/* Animation "Scroll Reveal" (La classe est activée par JS) */
.anim-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================== */
/* 6. PIED DE PAGE (FOOTER) */
/* ============================================== */
.main-footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.main-footer h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.main-footer p, .main-footer li {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.main-footer i {
    margin-right: 8px;
    color: #ffc107;
}

.social-links a {
    color: white;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* ============================================== */
/* MEDIA QUERIES (RESPONSIVE DESIGN) */
/* ============================================== */
@media (max-width: 900px) {
    .nav-links {
        gap: 15px;
    }
    .slide-content h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 600px) {
    .nav-content {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .logo {
        margin-bottom: 10px;
    }
    .hero-slider {
        height: 60vh;
    }
    .slide-content h1 {
        font-size: 2em;
    }
    .section-padding {
        padding: 60px 0;
    }
    .evenements-grid, .expertise-grid, .formations-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        text-align: center;
    }
}






/* ============================================== */
/* STYLES SPÉCIFIQUES À FORMATIONS.HTML */
/* ============================================== */

/* Page Hero Header pour les pages internes */
.page-hero {
    padding: 100px 0 60px 0;
    background-color: var(--light-bg);
}

.page-hero h1 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Détails de la Formation */
.formation-detail {
    margin-bottom: 60px;
    padding: 40px;
    border: 1px solid #e9ecef;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: var(--shadow-light);
}

.formation-detail h2 {
    font-size: 2em;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.formation-detail h2 i {
    color: var(--primary-color);
    margin-right: 15px;
}

.formation-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #6c757d;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.formation-meta i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.programme-list {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-left: 20px;
}

.programme-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-color);
}

.programme-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.separator {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 60px 0;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.action-buttons .btn-large {
    flex-grow: 1;
    max-width: 300px;
}

.contact-cta {
    padding: 40px;
    border: 1px dashed var(--primary-color);
    border-radius: 5px;
}

.contact-cta .lead {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .formation-meta {
        flex-direction: column;
        gap: 10px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .action-buttons .btn-large {
        max-width: 100%;
    }
}





/* ============================================== */
/* STYLES SPÉCIFIQUES INSCRIPTION.HTML */
/* ============================================== */

.inscription-container {
    display: flex;
    justify-content: center;
}

.form-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 700px; /* Limiter la largeur pour la lisibilité */
    width: 100%;
}

.form-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}

.form-title i {
    margin-right: 10px;
}

.subsection-title {
    font-size: 1.4em;
    color: var(--dark-bg);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 5px solid var(--secondary-color);
}

.pro-form .form-group {
    margin-bottom: 20px;
}

.pro-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color);
}

.pro-form input[type="text"],
.pro-form input[type="email"],
.pro-form input[type="tel"],
.pro-form select,
.pro-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pro-form input:focus,
.pro-form select:focus,
.pro-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.required {
    color: red;
    font-weight: normal;
    margin-left: 3px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1; /* Permet aux groupes de prendre une largeur égale */
}

/* Checkbox style */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    width: auto;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9em;
    line-height: 1.4;
    display: inline;
}

.btn-full-width {
    width: 100%;
    margin-top: 30px;
}

/* Responsive pour les Formulaires */
@media (max-width: 600px) {
    .form-card {
        padding: 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}



/* ============================================== */
/* STYLES SPÉCIFIQUES À CONTACT.HTML */
/* ============================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 1/3 pour info, 2/3 pour le formulaire */
    gap: 50px;
    align-items: flex-start;
}

/* Informations de Contact (Colonne de gauche) */
.contact-info {
    padding: 30px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.contact-info h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 1.1em;
    color: var(--dark-bg);
    margin-bottom: 3px;
}

.info-item p {
    margin: 0;
    color: #6c757d;
}

/* Formulaire de Contact (Colonne de droite) */
.contact-form-wrapper {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.map-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    display: block;
}

/* Responsive pour Contact */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Passage à une seule colonne */
    }
    .contact-info {
        order: 2; /* Met les infos en bas (après le formulaire) */
    }
    .contact-form-wrapper {
        order: 1; /* Met le formulaire en haut */
    }
}





/* ============================================== */
/* STYLES SPÉCIFIQUES À A-PROPOS.HTML */
/* ============================================== */

.about-section {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.about-content strong {
    color: var(--dark-bg);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================== */
/* STYLES SPÉCIFIQUES À MENTIONS-LÉGALES.HTML */
/* ============================================== */
.legal-content article {
    margin-bottom: 40px;
}

.legal-content h2 {
    color: var(--dark-bg);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    color: var(--text-color);
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content p {
    line-height: 1.8;
}

/* Responsive pour À Propos */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
    }
}



/* ============================================== */
/* STYLES SPÉCIFIQUES À REALISATIONS.HTML */
/* ============================================== */

/* Grille des projets */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.projet-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.projet-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.projet-card .card-content {
    padding: 20px;
}

.projet-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4em;
}

/* Grille de la Galerie Photo */
.galerie-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: zoom-in;
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1em;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}



/* ============================================== */
/* STYLES SPÉCIFIQUES À ESPACE-PARTICIPANT.HTML */
/* ============================================== */

/* Pour centrer le contenu de la section Login */
.centered-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* S'assure que le contenu est bien au milieu de la fenêtre */
    padding: 60px 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 450px; /* Taille limitée pour le formulaire */
    width: 100%;
}

.login-box h1 {
    font-size: 1.8em;
    margin-top: 15px;
    margin-bottom: 5px;
}

.login-box p {
    color: var(--text-color);
    margin-bottom: 30px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9em;
}

.login-links a {
    color: var(--secondary-color);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Utilitaires (si non déjà définis) */
.mt-30 { margin-top: 30px; }