/* Modern Formation Page Styles */
body {
    padding-top: var(--header-height);
    margin: 0;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.formation-page {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
}

.formation-hero {
    background: linear-gradient(45deg, #0056b3, #007bff);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.formation-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/cyber-security-lock.jpeg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.formation-hero .container {
    position: relative;
    z-index: 2;
}

.formation-breadcrumb {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.formation-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.formation-breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.formation-breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

.formation-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.formation-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
    opacity: 0.9;
}

.formation-metadata {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.metadata-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metadata-badge i {
    color: #4CAF50;
}

.formation-content {
    padding: 4rem 0;
    background: white;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* Programme Section */
.program-section {
    margin-top: 2rem;
}

.program-day {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #007bff;
}

.day-title {
    color: #0056b3;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-title i {
    color: #4CAF50;
}

.program-topics {
    list-style: none;
    padding: 0;
}

.program-topic {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.program-topic:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.program-topic:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, #0056b3, #007bff);
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.cta-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn {
    background-color: #4CAF50;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-content .btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Section Content Lists */
.section-content ul {
    list-style: none;
    padding: 0;
}

.section-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.section-content li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #007bff;
    font-size: 0.8rem;
}

.section-content li:last-child {
    border-bottom: none;
}

/* Footer Social Media Styles */
.footer-social-media {
    margin-top: 1.5rem;
}

.footer-social-media h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-social-media .social-links {
    display: flex;
    gap: 10px;
}

.footer-social-media .social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social-media .social-links a:hover {
    color: #4CAF50;
}

/* Language Flags */
.language-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    display: inline-block;
}

.language-flag.fr {
    background-image: linear-gradient(to right, #002395 33%, #ffffff 33%, #ffffff 66%, #ed2939 66%);
}

.language-flag.en {
    background-image: linear-gradient(45deg, #012169 25%, transparent 25%), 
                      linear-gradient(-45deg, #012169 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #012169 75%), 
                      linear-gradient(-45deg, transparent 75%, #012169 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
    background-color: #ffffff;
    position: relative;
}

.language-flag.en::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #c8102e 20%, transparent 20%, transparent 80%, #c8102e 80%),
                linear-gradient(to right, #c8102e 40%, transparent 40%, transparent 60%, #c8102e 60%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .formation-hero {
        padding: 80px 0 40px;
    }

    .formation-title {
        font-size: 2.5rem;
    }

    .formation-metadata {
        flex-direction: column;
        gap: 1rem;
    }

    .metadata-badge {
        width: fit-content;
    }

    .program-day {
        padding: 1.5rem;
    }

    .day-title {
        font-size: 1.3rem;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }
}
