/*
 * ===================================================================
 *  STYLES SPÉCIFIQUES POUR LA PAGE FORMATION PILOTE (pilot-style.css)
 *  Approche : Fluide & Mobile-First
 * ===================================================================
*/

:root {
    --accent-color-red: #c0392b; /* Rouge professionnel */
}

/* ======================= HERO COURSE ======================= */
.hero-course {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--white-color);
    background: url('https://images.unsplash.com/photo-1530533718754-001d262892d7?q=80&w=2070') no-repeat center center/cover;
    padding: 6rem 2rem; /* Plus de padding vertical pour l'impact */
}
.hero-pilote {
    background-image: url('pilote_training.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* min-height: 50vh; */
    padding-top: 4rem;
}
.hero-course .hero-content {
    max-width: 80rem; /* Limite la largeur du contenu pour une meilleure lisibilité */
}
.hero-breadcrumb {
    display: block;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: 1.6rem;
}
.hero-course .hero-title {
    /* OPTIMIZATION: Typographie fluide */
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
}
.hero-course .hero-subtitle {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    margin: 2rem 0 3rem;
    max-width: 60rem;
}

/* ======================= KEY INFO BAR ======================= */
.key-info-bar {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 3rem 0;
}
.key-info-grid {
    display: grid;
    /* OPTIMIZATION: Grille fluide. 1, 2, 3 ou 4 colonnes selon l'espace. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.info-item i {
    font-size: 3rem;
    color: var(--accent-color);
}
.info-item div {
    display: flex;
    flex-direction: column;
}
.info-label {
    font-size: 1.4rem;
    opacity: 0.7;
}
.info-value {
    font-size: 1.0rem;
    font-weight: 500;
}

/* ======================= COURSE DESCRIPTION ======================= */
.description-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: une colonne */
    gap: 4rem;
    align-items: center;
}
.description-text h2 {
    font-size: clamp(2.8rem, 4vw, 4rem);
    color: var(--primary-color);
    margin-bottom: 2rem;
}
.description-text p {
    margin-bottom: 1.5rem;
}
.description-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
}
@media (min-width: 992px) {
    .description-grid {
        grid-template-columns: 1.2fr 1fr; /* Deux colonnes sur desktop */
    }
}

/* ======================= PREREQUISITES ======================= */
.prerequisites-grid {
    display: grid;
    /* OPTIMIZATION: Ce layout était déjà excellent. On s'assure qu'il reste. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.prereq-card {
    background: var(--white-color);
    padding: 3rem;
    text-align: center;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.prereq-card:hover {
    transform: translateY(-1rem);
    box-shadow: var(--box-shadow);
}
.prereq-card i {
    font-size: 4rem;
    color: var(--accent-color-red);
    margin-bottom: 1.5rem;
}
.prereq-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ======================= PROGRAM PHASES ======================= */
.phases-timeline {
    position: relative;
    max-width: 90rem;
    margin: 0 auto;
    padding-left: 3rem;
}
.phases-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: 2rem;
    width: 0.3rem; /* Utilisation de rem */
    background-color: var(--bg-light-color);
}
.phase-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 4rem;
}
.phase-item:last-child { margin-bottom: 0; }
.phase-icon {
    position: absolute;
    left: -2.35rem;
    top: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 0.3rem solid var(--white-color); /* Utilisation de rem */
}
.phase-number {
    display: inline-block;
    font-weight: 600;
    color: var(--accent-color-red);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 1.4rem;
}
.phase-content h3 {
    color: var(--accent-color-red);
    font-size: 1.5rem;
}

/* ======================= COST SECTION ======================= */
.cost-grid {
    display: grid;
    /* OPTIMIZATION: Grille fluide pour les coûts, s'adapte de 1 à 2 colonnes */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.cost-card {
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column; /* Assure que le contenu s'étire bien */
}
.cost-logo { max-height: 4rem; margin-bottom: 2rem; }
.cost-logo-text { font-size: 2.2rem; margin-bottom: 2rem; color: var(--primary-color); }
.cost-logo-text strong { color: var(--accent-color); }
.cost-card h3 { color: var(--primary-color); font-size: 2rem; }
.cost-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0 2rem;
}
.cost-includes { list-style: none; margin-top: auto; /* Pousse les listes vers le bas */ }
.cost-includes li { margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.cost-includes li i { color: var(--accent-color); }
.financing-note {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background-color: #eaf5ff;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 0.5rem solid var(--accent-color);
    margin-top: 4rem;
}
.financing-note i { font-size: 2rem; color: var(--accent-color); margin-top: 0.3rem; }

/* ======================= FAQ ======================= */
.faq-accordion {
    max-width: 80rem;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-family);
}
.faq-question i {
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Empêche l'icône de rétrécir */
    margin-left: 1.5rem;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding: 0 1rem 2rem 1rem;
    line-height: 1.3;
}

/* ======================= FINANCING SECTION ======================= */
.financing-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
}

.financing-section h3 {
    color: var(--primary-color);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.financing-section p {
    max-width: 70rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
