/* Styles spécifiques pour les pages de formation */

/* Hero section */
.formation-hero {
    position: relative;
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border-radius: 0;
}

/* Specific background for BTS Comptabilité-Gestion */
body[data-page="bts-comptabilite-gestion"] .formation-hero {
    background: url('../../images/metiers/pexels-photo-209224.webp');
    background-size: cover;
    background-position: center;
}

/* Specific background for BTS Assurance */
body[data-page="bts-assurance"] .formation-hero {
    background: url('../../images/metiers/pexels-photo-7821684.webp');
    background-size: cover;
    background-position: center;
}

/* Specific background for Métiers de l'Accueil */
body[data-page="metiers-accueil"] .formation-hero {
    background: url('../../images/metiers/pexels-photo-2017802.webp');
    background-size: cover;
    background-position: center;
}

/* Specific background for BTS CCST */
body[data-page="bts-ccst"] .formation-hero {
    background: url('../../images/metiers/pexels-photo-3760612.webp');
    background-size: cover;
    background-position: center top;
}

/* Specific background for BTS MCO */
body[data-page="bts-mco"] .formation-hero {
    background: url('../../images/metiers/pexels-photo-5410084.jpeg');
    background-size: cover;
    background-position: center;
}

/* Specific background  bac pro comerce vente */
body[data-page="metiers-commerce-vente"] .formation-hero {
    background: url('../../images/metiers/pexels-photo-2954405.jpeg');
    background-size: cover;
    background-position: center;
}

/* Specific background for BTS CPI */
body[data-page="bts-cpi"] .formation-hero {
    background: url('../../images/formations/pexels-cookiecutter-1148820.jpg');
    background-size: cover;
    background-position: center;
}

/* Specific background for BTS TM */
body[data-page="bts-tm"] .formation-hero {
    background: url('../../images/formations/pexels-photo-459402.webp');
    background-size: cover;
    background-position: center;
}

/* Specific background for BTS MS */
body[data-page="bts-ms"] .formation-hero {
    background: url('../../images/metiers/pexels-photo-3862627.webp');
    background-size: cover;
    background-position: center;
}

.formation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
}

.formation-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.formation-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.formation-hero p {
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Formation section */
.formation-section {
    padding: 2rem 0;
    background-color: var(--background-color);
}

.formation-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Formation intro */
.formation-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.formation-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.formation-card h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.formation-type {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-weight: 500;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.formation-card p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 0.95rem;
}

.admission-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.admission-info i {
    font-size: 2rem;
    color: var(--primary-color);
}

.admission-info span {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Formation content */
.formation-content {
    margin-bottom: 2rem;
}

.formation-block {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.formation-block h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.formation-block h3 i {
    color: var(--accent-color);
}

.formation-block p {
    margin-bottom: 1.2rem;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Parcours de formation */
.parcours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

/* Timeline du parcours */
.parcours-timeline {
    margin: 1.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Nouvelle timeline horizontale */
.horizontal-timeline {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    gap: 3rem;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 1rem;
    width: 100%;
}

.timeline-line {
    position: absolute;
    height: 4px;
    background-color: #333;
    top: 40px;
    left: 5%;
    right: 5%;
    z-index: 1;
    background: linear-gradient(to right, #f39c12, #9b59b6);
    border-radius: 2px;
}

.track-bottom .timeline-line {
    top: 40px;
    background: linear-gradient(to right, #e74c3c, #f1c40f);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 33.333%;
    z-index: 5;
}

.timeline-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    z-index: 10;
    position: relative;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.timeline-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.2rem;
    width: 90%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.timeline-box h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.4rem;
}

.timeline-box h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
}

.timeline-box p, 
.timeline-box ul {
    font-size: 0.85rem;
    text-align: left;
}

.timeline-box ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.timeline-box li {
    margin-bottom: 0.25rem;
}

/* Couleurs des bulles */
#bubble-1 { background-color: #f39c12; }
#bubble-2 { background-color: #3498db; }
#bubble-3 { background-color: #1abc9c; }
#bubble-4 { background-color: #e74c3c; }
#bubble-5 { background-color: #9b59b6; }
#bubble-6 { background-color: #f1c40f; }

/* Débouchés - Nouvelle structure */
.debouches-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.2rem;
}

.debouches-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.debouches-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debouche-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.debouche-item {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.debouche-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.debouche-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.debouche-item span {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
}

/* Mode sombre */
[data-theme="dark"] .debouche-item {
    background-color: #2a2a2a;
}

[data-theme="dark"] .debouche-item i {
    color: #ccc;
}

[data-theme="dark"] .debouche-item span {
    color: #ccc;
}

/* Qualités requises - Nouveau style */
.qualites-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.qualite-section {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qualite-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.qualite-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: currentColor;
}

.qualite-section p {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.4;
    font-size: 0.95rem;
}

.qualite-section p:last-child {
    margin-bottom: 0;
}

/* Couleurs des titres */
.qualite-section h4.pink {
    color: #e83e8c;
}

.qualite-section h4.green {
    color: #28a745;
}

.qualite-section h4.blue {
    color: #3a54a8;
}

.qualite-section h4.orange {
    color: #fd7e14;
}

/* Responsive */
@media (min-width: 768px) {
    .qualites-sections {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mode sombre */
[data-theme="dark"] .qualite-section {
    background-color: var(--card-bg);
}

[data-theme="dark"] .qualite-section p {
    color: var(--text-color);
}

/* Après Bac */
.apres-bac {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.apres-bac-item {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.2rem;
}

.apres-bac-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.apres-bac-item ul {
    padding-left: 1rem;
}

.apres-bac-item li {
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Dark mode for apres-bac sections */
[data-theme="dark"] .apres-bac-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .apres-bac-item h4 {
    color: var(--primary-color);
}

[data-theme="dark"] .apres-bac-item li {
    color: var(--text-color);
}

/* Map link styling */
.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.map-link:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

[data-theme="dark"] .map-link {
    color: var(--primary-color);
}

[data-theme="dark"] .map-link:hover {
    color: var(--accent-color);
}

/* Hébergement */
.hebergement-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.hebergement-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hebergement-section h3 i {
    color: var(--accent-color);
}

.hebergement-content {
    color: var(--text-color);
    font-size: 0.95rem;
}

.hebergement-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 1.2rem 0 0.8rem;
}

.hebergement-content ul {
    padding-left: 1rem;
}

.hebergement-content li {
    margin-bottom: 0.4rem;
}

/* Contact */
.contact-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-section h3 i {
    color: var(--accent-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.contact-address h4,
.contact-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.contact-address p,
.contact-info p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-color);
    font-size: 0.9rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Pour éviter un espace créé par le main ou le body */
body[data-page^="section-"] main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Dark mode styles */
[data-theme="dark"] .formation-card,
[data-theme="dark"] .formation-block,
[data-theme="dark"] .hebergement-section,
[data-theme="dark"] .contact-section {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .parcours-card,
[data-theme="dark"] .debouche-item,
[data-theme="dark"] .qualite-item,
[data-theme="dark"] .apres-bac-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

/* Media Queries */
@media (max-width: 992px) {
    .formation-hero {
        height: 200px;
    }
    
    .formation-intro {
        grid-template-columns: 1fr;
    }
    
    .parcours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline-box {
        width: 95%;
    }
    
    .horizontal-timeline {
        gap: 2rem;
    }
    
    .debouches-container {
        flex-direction: column;
    }
    
    .debouches-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .formation-card.image-card {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .formation-hero {
        height: 180px;
    }
    
    .formation-hero h1 {
        font-size: 1.8rem;
    }
    
    .formation-hero p {
        font-size: 0.9rem;
    }
    
    .parcours-grid {
        grid-template-columns: 1fr;
    }
    
    .debouches-list {
        gap: 0.6rem;
    }
    
    .formation-card {
        padding: 1.5rem;
    }
    
    .formation-block {
        padding: 1.5rem;
    }
    
    .horizontal-timeline {
        flex-direction: column;
        gap: 0;
    }
    
    .timeline-track {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2.5rem;
        padding-bottom: 2rem;
    }
    
    .timeline-line {
        height: 90%;
        width: 4px;
        left: 1rem;
        right: auto;
        top: 0;
        background: linear-gradient(to bottom, #f39c12, #1abc9c);
    }
    
    .track-bottom .timeline-line {
        background: linear-gradient(to bottom, #e74c3c, #f1c40f);
    }
    
    .timeline-step {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .timeline-bubble {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .timeline-box {
        width: calc(100% - 70px);
    }
    
    .track-bottom {
        padding-top: 0;
    }
    
    .debouche-item {
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .formation-hero {
        height: 160px;
        margin-top: 50px;
    }
    
    .formation-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .formation-hero p {
        font-size: 0.85rem;
    }
    
    .formation-section {
        padding: 1.5rem 0 0.8rem;
    }
    
    .formation-card h2,
    .formation-block h3,
    .hebergement-section h3,
    .contact-section h3 {
        font-size: 1.3rem;
    }
    
    .debouches-list {
        gap: 0.6rem;
    }
    
    .back-home {
        padding: 0.4rem 0.8rem;
        margin: 0.6rem;
        font-size: 0.8rem;
        top: 65px;
        left: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .back-home span {
        display: none;
    }
    
    .back-home i {
        margin-right: 0;
        font-size: 1rem;
    }
    
    .debouche-item {
        padding: 0.7rem 1rem;
    }
    
    .debouche-item i {
        font-size: 1.2rem;
    }
    
    .debouche-item span {
        font-size: 0.9rem;
    }
    
    .debouches-container {
        flex-direction: column;
    }
    
    .debouches-image {
        order: -1;
        margin-bottom: 1rem;
    }
}

.timeline-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.timeline-title h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.timeline-title p {
    color: var(--text-color);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Collapsible section */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    background-color: var(--primary-light);
    color: black;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.collapsible-header:hover {
    background-color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.collapsible-header i {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.collapsible-header.active i {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapsible-content.active {
    max-height: 2000px;
    margin-top: 0.8rem;
}

/* Styles pour le nouveau design de la section horaires */
.horaires-moderne {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: 20px 0;
}

.horaires-titre {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.horaires-titre i {
    background: linear-gradient(135deg, #3a54a8 0%, #182848 100%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
}

.horaires-titre h4 {
    font-size: 20px;
    color: #182848;
    margin: 0;
}

/* Dark mode for horaires-moderne */
[data-theme="dark"] .horaires-moderne {
    background-color: var(--card-bg);
}

[data-theme="dark"] .horaires-titre h4 {
    color: var(--text-color);
}

[data-theme="dark"] .horaires-cell {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .horaires-cell.libelle {
    background-color: var(--gray-light);
}

[data-theme="dark"] .repartition-graphique {
    background-color: var(--card-bg);
}

[data-theme="dark"] .horaire-carte {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .carte-contenu h5 {
    color: var(--text-color);
}

/* Tableau des horaires */
.horaires-tableau {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1px;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.horaires-cell {
    background-color: #f9f9f9;
    padding: 12px 16px;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.horaires-cell:not(.libelle) {
    justify-content: center;
    font-weight: 500;
}

.horaires-cell.header {
    background-color: #3a54a8;
    color: white;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    padding: 14px;
}

.horaires-cell.libelle {
    font-weight: 500;
    background-color: #f0f0f0;
}

.horaires-cell:hover:not(.header) {
    background-color: #eef2ff;
}

/* Graphique de répartition */
.repartition-titre {
    font-size: 18px;
    margin: 30px 0 15px;
    text-align: center;
    color: #333;
}

.repartition-graphique {
    background-color: #f5f7fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.barre-progression {
    height: 40px;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.segment.general {
    background: linear-gradient(to right, #3a54a8, #4b68c8);
}

.segment.pro {
    background: linear-gradient(to right, #182848, #2c4272);
}

.legende {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.legende-item {
    display: flex;
    align-items: center;
}

.legende-couleur {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
}

.legende-couleur.general {
    background-color: #3a54a8;
}

.legende-couleur.pro {
    background-color: #182848;
}

/* Cartes d'information */
.horaires-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.horaire-carte {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    padding: 20px;
    align-items: center;
    transition: all 0.25s ease;
    border: 1px solid #eaeaea;
}

.horaire-carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.carte-icone {
    background: linear-gradient(135deg, #3a54a8 0%, #182848 100%);
    min-width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.carte-icone i {
    color: white;
    font-size: 20px;
}

.carte-contenu h5 {
    font-size: 16px;
    margin: 0 0 5px;
    color: #333;
}

.carte-contenu p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #3a54a8;
}

/* Media queries */
@media (max-width: 768px) {
    .horaires-tableau {
        grid-template-columns: 1fr;
    }
    
    .horaires-cell.header {
        background-color: #3a54a8;
    }
    
    .horaires-cell.libelle {
        background-color: #f0f0f0;
        grid-column: 1;
        font-weight: 600;
    }
    
    .horaires-cartes {
        grid-template-columns: 1fr;
    }
}

/* Nouvelle disposition des métiers */
.metiers-nouveau {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.metiers-gauche {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metier-image {
    flex: 1;
    align-self: stretch;
}

.metier-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metier-box {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.metier-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3a54a8;
}

.metier-icone {
    width: 60px;
    height: 60px;
    background-color: #3a54a8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.metier-icone i {
    color: white;
    font-size: 22px;
}

.metier-nom {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
}

/* Mode sombre */
[data-theme="dark"] .metier-box {
    background-color: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .metier-nom {
    color: #eee;
}

/* Responsive */
@media (max-width: 992px) {
    .metiers-gauche {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .metiers-nouveau {
        flex-direction: column;
    }
    
    .metier-image {
        max-height: 300px;
        order: -1;
        margin-bottom: 15px;
    }
    
    .metiers-gauche {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .metiers-gauche {
        grid-template-columns: 1fr;
    }
}

/* Carousel des atouts */
.atouts-carousel-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
    overflow: hidden;
}

/* Dark mode for carousel */
[data-theme="dark"] .atouts-carousel-container {
    background-color: var(--card-bg);
}

[data-theme="dark"] .atout-content h4,
[data-theme="dark"] .atout-content p {
    color: var(--text-color);
}

.atouts-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.atout-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.atout-slide.active {
    opacity: 1;
    visibility: visible;
}

.atout-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.atout-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.atout-content h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.atout-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.atout-image {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.atout-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.atout-slide:hover .atout-image img {
    transform: scale(1.05);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.carousel-control {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 15px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Secteurs d'activité */
.secteurs-activite {
    margin-top: 25px;
}

.secteurs-activite h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.secteurs-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.secteur-item {
    background-color: #f9f9f9;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Dark mode for secteur-item */
[data-theme="dark"] .secteur-item {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .secteur-item span {
    color: var(--text-color);
}

[data-theme="dark"] .secteur-item:hover {
    background-color: var(--gray-light);
}

.secteur-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    background-color: var(--primary-light);
}

.secteur-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.secteur-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive pour le carousel */
@media (max-width: 768px) {
    .atout-slide {
        flex-direction: column;
    }
    
    .atouts-carousel {
        height: 450px;
    }
    
    .atout-content {
        text-align: center;
        padding: 15px;
    }
    
    .atout-image {
        height: 200px;
    }
}

/* Collapsible section */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    background-color: var(--primary-light);
    color: black;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode for collapsible */
[data-theme="dark"] .collapsible-header {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .timeline-box {
    background-color: var(--card-bg);
}

[data-theme="dark"] .timeline-box h4,
[data-theme="dark"] .timeline-box p,
[data-theme="dark"] .timeline-box ul,
[data-theme="dark"] .timeline-box li {
    color: var(--text-color);
}

[data-theme="dark"] .timeline-title h4,
[data-theme="dark"] .timeline-title p {
    color: var(--text-color);
}

.collapsible-header:hover {
    background-color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.formation-card.image-card {
    padding: 0;
    display: flex;
    align-items: stretch;
    background: none;
    box-shadow: none;
}

.formation-card.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: block;
}

@media (max-width: 992px) {
    .formation-intro {
        grid-template-columns: 1fr;
    }
    .formation-card.image-card {
        min-height: 220px;
    }
}

/* Ajout de styles pour la section contenu de formation */
.content-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    color: #0d47a1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.section-title i {
    margin-right: 10px;
    color: #d32f2f;
}

.content-list {
    list-style-type: none;
    padding-left: 5px;
}

.content-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
}

.content-list li i {
    color: #d32f2f;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Styles pour l'environnement de travail */
.environnement-travail {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #0d47a1;
}

.work-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.work-location {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1 1 200px;
    transition: transform 0.2s ease;
}

.work-location:hover {
    transform: translateY(-3px);
}

.location-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
}

.relations-list {
    list-style-type: none;
    padding-left: 5px;
}

.relations-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.relations-list li i {
    color: #0d47a1;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Responsive styling */
@media (max-width: 768px) {
    .work-locations {
        flex-direction: column;
    }
    
    .work-location {
        flex: 1 1 100%;
    }
    
    .content-card {
        padding: 15px;
    }
} 

/* Menus de spécialités proposés (Bac Général) */
.menu-specialites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.menu-specialites-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s, transform 0.3s;
}
.menu-specialites-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-4px);
}
.menu-specialites-title {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  gap: 0.7rem;
}
.menu-specialites-title i {
  font-size: 1.3rem;
  color: var(--accent-color);
}
.menu-specialites-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.menu-specialites-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-color);
  font-size: 1rem;
}
.menu-specialites-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.95em;
}
@media (max-width: 600px) {
  .menu-specialites-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .menu-specialites-card {
    padding: 1.2rem 0.8rem;
  }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

.timetable-container {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timetable-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.timetable {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.timetable th, 
.timetable td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #eaeaea;
}

.timetable th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.timetable tr:nth-child(even) {
    background-color: #f8f9fa;
}

.timetable tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.subject-name {
    text-align: left;
    font-weight: 500;
}

.highlight-cell {
    background-color: rgba(0, 0, 145, 0.1);
    font-weight: 600;
}

.timetable-subheader {
    background-color: #e9ecef;
    text-align: center;
    color: #495057;
    font-size: 0.95rem;
}

[data-theme="dark"] .timetable {
    background-color: var(--card-bg);
}

[data-theme="dark"] .timetable th {
    background-color: var(--dark);
    color: var(--text-color);
}

[data-theme="dark"] .timetable td {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .timetable tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .timetable tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .timetable-subheader {
    background-color: var(--primary-dark);
    color: var(--text-color);
}

[data-theme="dark"] .highlight-cell {
    background-color: rgba(58, 84, 168, 0.2);
}

@media (max-width: 992px) {
    .timetable th, 
    .timetable td {
        padding: 0.8rem 0.5rem;
    }
    
    .timetable {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .timetable {
        font-size: 0.9rem;
        min-width: 650px;
    }
    
    .timetable th, 
    .timetable td {
        padding: 0.7rem 0.5rem;
    }
    
    .timetable-header {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .timetable-container {
        border-radius: 8px;
        margin: 1.5rem 0;
    }
    
    .timetable {
        min-width: 550px;
        font-size: 0.85rem;
    }
    
    .timetable th, 
    .timetable td {
        padding: 0.6rem 0.4rem;
    }
    
    .timetable-header {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .subject-name {
        max-width: 150px;
    }
} 
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}