/* ==================== FORMATIONS PAGE - CSS dédié ==================== */

/* Sections encadrées */
.formation-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
}
.formation-section h2 {
    margin-top: 0;
    color: #333;
}

/* Grille des formations */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Cards formation */
.formation-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.formation-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}
.formation-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}
.formation-card-titles { flex: 1; }
.formation-card-titles h3 {
    margin: 0 0 5px 0;
    font-size: 1.15em;
    color: #333;
}
.formation-subtitle {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}
.formation-card-body {
    padding: 15px 20px;
    flex: 1;
}
.formation-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}
.formation-public {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}
.formation-points {
    list-style: none;
    padding: 0;
    margin: 0;
}
.formation-points li {
    color: #444;
    padding: 4px 0;
    font-size: 0.9em;
}
.formation-card-footer {
    padding: 15px 20px 20px;
    text-align: center;
}
.btn-formation {
    display: inline-block;
    padding: 12px 25px;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95em;
}
.btn-formation:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #fff !important;
}

/* Parcours */
a.parcours-box {
    display: block;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid LimeGreen;
    padding: 20px;
    margin-bottom: 15px;
    min-height: 150px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
a.parcours-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
    text-decoration: none;
    color: #333;
}
a.parcours-box h4 {
    margin-top: 0;
    color: #333;
}

/* Modalités */
.card-concept {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.card-concept h3 {
    margin-top: 0;
    font-size: 1.1em;
}

/* Sessions Inter */
.sessions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1em;
}
.session-card {
    flex: 0 0 calc(25% - 12px);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #333;
}
.session-header {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.session-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: #555;
}
.session-logo {
    height: 30px;
    width: auto;
}
.session-body {
    padding: 12px 15px;
    flex-grow: 1;
}
.session-formation {
    font-weight: 600;
    font-size: 0.92em;
    margin-bottom: 4px;
}
.session-date {
    font-size: 0.85em;
    color: #666;
}
.session-btn {
    display: block;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    font-size: 0.88em;
    color: #fff;
}

/* FAQ Accordion — <details>/<summary> */
.faq-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
}
.faq-accordion details {
    border-bottom: 1px solid #ddd;
}
.faq-accordion details:last-child {
    border-bottom: none;
}
.faq-accordion summary {
    padding: 12px 40px 12px 15px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    list-style: none;
    color: #333;
    background: #f5f5f5;
}
.faq-accordion summary:hover {
    background: #eee;
}
.faq-accordion summary::-webkit-details-marker {
    display: none;
}
.faq-accordion summary::marker {
    display: none;
    content: "";
}
.faq-accordion summary::after {
    content: "\25BC";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    color: #999;
    transition: transform 0.2s;
}
.faq-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.faq-accordion .faq-body {
    padding: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .session-card { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 768px) {
    .formations-grid { grid-template-columns: 1fr; }
    .formation-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
@media (max-width: 576px) {
    .session-card { flex: 0 0 100%; }
    .formation-section { padding: 15px; }
}
