
/* Hero Section */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.03)"><path d="M0,50 C150,80 350,20 500,50 C650,80 850,20 1000,50 L1000,100 L0,100 Z"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.breadcrumb-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
}
/* Defil menu*/
.defil-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.defil-navbar {
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.defil-navbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.defil-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
}

.defil-item:hover {
    color: var(--primary-color);
    background-color: var(--hover-bg);
}

.defil-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);

}

.defil-item i {
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .defil-container {
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .defil-navbar {
        padding: 0 10px;
        gap: 0;
    }

    .defil-item {
        padding: 10px 20px;
        font-size: 13px;
    }

    .defil-item .icon {
        margin-right: 6px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .defil-item {
        padding: 16px 16px;
        font-size: 12px;
    }
}

/* Scroll indicators (optional) */
.defil-container::before,
.defil-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
}

.defil-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
}

.defil-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
}

.defil-container {
    position: relative;
}

.fond-titre{
    background: var(--secondary-color);
    color: white;
    font-size: 1rem;
}
.rubrique{
    font-family: 'Merriweather', serif;
    font-size: 1.2rem; 
    color: var(--primary-color);
}
.rubrique-description{
    font-size: 0.95rem;
    font-weight: 400;
    text-align: justify;
    color: var(--text-light);
}
.section{
    background: var(--bg-light);
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
    
.video-list {
    overflow: hidden;
}

.video-item {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-item:hover, .video-item.active {
    border-left: 3px solid var(--accent-color);
    background-color: rgba(24, 49, 104, 0.05);
}

.video-item.active {
    background-color: var(--font-bg);
    color: var(--primary-color);
    border: none;
    border-left: 3px solid var(--accent-color);
}

.video-player-container {
    background:white;
    border-radius: 8px;
    padding: 5px;
    height: 100%;
}

.video-info{
    padding: 15px;
}

.no-videos {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-videos i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Styles pour le glossaire */
.glossaire-section {
    background-color: var(--bg-light, #f8f9fa);
    
}

.glossaire-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.glossaire-titre{
    color: var(--primary-color);
    font-family: 'Merriweather', serif;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.glossaire-header p {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.glossaire-controls {
    background-color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
}

.letter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 400;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.letter-btn:hover, 
.letter-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    text-decoration: none;
}

.letter-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.glossaire-container {
    background-color: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
}

.letter-section {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    display: none; /* Masqué par défaut */
}

.letter-section:last-child {
    border-bottom: none;
}

.letter-section.active {
    display: block; /* Affiché si actif */
}

.letter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--primary-color, #183168);
}

.letter-header-titre {
    color: var(--primary-color, #183168);
    font-size: 2rem;
    margin: 0;
    width: 60px;
    padding-left: 1rem;
    font-family: 'Merriweather', serif;
}

.letter-header span {
    background-color: var(--secondary-color);
    padding: 0.2rem 0.6rem;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 15px;
}

.glossaire-term {
    border-radius: 6px;
}

.term-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.term-title .terme_terme {
    color: var(--primary-color);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.term-category {
    background-color: var(--font-bg, rgba(24, 49, 104, 0.1));
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    margin-left: 1.25rem;
}

.term-definition {
    color: rgba(0, 0, 0, 0.909);
    font-size: 0.9rem;
    line-height: 1.5;
}

.term-example {
    background-color: #f8f9fa;
    border-left: 3px solid var(--secondary-color);
    padding: 0.75rem 1rem;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-light);
}

.term-reference {
    font-size: 0.85rem;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light, #6c757d);
}

.show-all-sections {
    display: block !important;
}

@media (max-width: 768px) {
    .glossaire-section {
        padding: 2rem 0;
    }
    
    .letter-section {
        padding: 1.5rem 1rem;
    }
    
    .letter-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
.btn-primary{
    border-radius: 5px;
    border: none;
    outline: none;
    padding: 6px 15px;
    color: white;
    background-color: var(--secondary-color);
    font-size: 0.9rem;
}
.btn-primary:hover{
   background-color: var(--primary-color);
}

    .accordion-container {
        max-width: 900px;
        margin: 0 auto;
        position: relative;
    }
    
    .accordion-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
        z-index: -1;
    }
    
    .accordion-item {
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 25px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.4s ease;
        border: none;
        background: white;
        position: relative;
        z-index: 1;
    }
    
    .accordion-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .accordion-header {
        background-color: transparent;
        border: none;
        padding: 0;
    }
    
    .accordion-button {
        background-color: #e0e0e0;
        color: black;
        font-weight: 500;
        padding: 5px 30px;
        border-radius: 12px !important;
        position: relative;
        transition: all 0.3s ease;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
    }
    
    .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
        color: white;
        box-shadow: none;
    }
    
    .accordion-button:focus {
        box-shadow: none;
        border-color: transparent;
    }
    
    .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        transform: scale(1.2);
        transition: transform 0.3s ease;
        margin-left: auto;
    }
    
    .accordion-button:not(.collapsed)::after {
        transform: rotate(-180deg) scale(1.2);
    }
    
    .accordion-body {
        padding-left: 30px;
        background-color: white;
        border-radius: 0 0 12px 12px;
        position: relative;
        overflow: hidden;
    }
    
    .accordion-body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 10%;
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    }
    
    .ressource-icon {
        font-size: 1.8rem;
        margin-right: 15px;
        vertical-align: middle;
        background: rgba(255, 255, 255, 0.2);
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    .ressource-content {
        display: flex;
        align-items: flex-start;
        position: relative;
    }
    
    .ressource-text {
        flex: 1;
    }
    .ressource-text-titre{
        color: var(--primary-color);
        font-size: 1.1rem;
    }
    .ressource-actions {
        margin: 20px;
        text-align: right;
    }
    
    .badge-category {
        background-color: #007A3D;
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-left: 10px;
        vertical-align: middle;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    /* Styles spécifiques pour les catégories */
    .accordion-school .accordion-button {
        background: linear-gradient(135deg, var(--secondary-color), #3a6aa0);
    }
    
    .accordion-school .accordion-body::before {
        background: linear-gradient(to bottom, var(--secondary-color), #3a6aa0);
    }
    
    .accordion-school .badge-category {
        background-color: rgba(44, 82, 130, 0.15);
        color: var(--secondary-color);
    }
    
    .card-sm {
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .card-sm:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .card-sm::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background-color: var(--primary-color);
    }
    
    .resource-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }
    
    .resource-item {
        background: rgba(24, 49, 104, 0.05);
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid var(--border-color);
    }
    
    .resource-item:hover {
        background: rgba(24, 49, 104, 0.1);
        transform: translateY(-3px);
    }
    
    .resource-icon-lg {
        font-size: 1.8rem;
        color: var(--primary-color);
        margin-bottom: 10px;
    }
    
    .wave-bg {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
        line-height: 0;
        z-index: -1;
    }
    
    .wave-bg svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 100px;
    }
    
    .wave-bg .shape-fill {
        fill: rgba(24, 49, 104, 0.03);
    }
    
    .no-resources {
        text-align: center;
        padding: 3rem;
        color: #6c757d;
    }
    .no-resources .titre{
        color: var(--primary-color);
        font-size: 1rem;
    }
    .no-resources i {
        font-size: 4rem;
        margin-bottom: 1rem;
        color: #dee2e6;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .accordion-item {
        animation: fadeIn 0.5s ease forwards;
    }
    
    @media (max-width: 768px) {
        .accordion-button {
            padding: 20px;
            font-size: 1.05rem;
        }
        
        .accordion-body {
            padding: 20px;
        }
        
        .ressource-actions .btn {
            display: block;
            width: 100%;
            margin-bottom: 10px;
        }
        
        .ressource-actions .btn + .btn {
            margin-left: 0;
        }
    }
/* Footer */
.footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.664);
    padding: 3rem 0 1rem;
}

.footer-section-titre {
    font-family: 'Merriweather', serif;
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}
.footer p{
    line-height: 1.4;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.664);
    line-height: 1.4;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.newsletter {
    display: flex;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
}

.form-icon {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-top: 20px;
}
.form-icon a {
    list-style: none;
    margin-bottom: 5px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.form-icon  a:hover {
    color: white;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.664);;
}
.bottom{
    display: flex;
    gap: 15px;
}
.bottom a{
    color: rgba(255, 255, 255, 0.664);;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.4;
    font-size: 0.9rem;
}
.bottom a:hover{
     color: white;
}
/* Responsive Design */
@media (max-width: 1250px) {
    .container {
        max-width: 1150px;
        margin: 0 auto;
    }
}
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
}
@media (max-width: 880px) {
    .footer-bottom, .bottom {
        flex-direction: column;
        align-items: center;
    }
}
/* Messages Flash */
.alert-custom {
    border-radius: 10px;
    border: none;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-custom .nav-link {
        padding: 0.6rem 1rem;
        margin: 0.2rem 0;
    }
}

.fond-titre,
.section-titre,
.doc-titre, 
.doc-presse,
.fond-titre-second{
    font-family: 'Merriweather', serif;
}