html{
    --bg-color-btn : #F5F5F5;
    --color-text : white;
    --font-text: 'AMUMonumentGrotesk', 'Arial';
    --color-title : #00558b;
}

:root {
    --primary-gradient: linear-gradient(135deg, #33CCFF 0%, #9966ff 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}


body{
    margin : 0;
    padding: 0;

}

#content{
    font-family: var(--font-text), serif ;
}


.title_h1{
    padding: 2%;
    color: var(--color-title);
    font-weight: bolder;
    font-size: 2vw;
    text-align: center;
    text-transform: uppercase;

}
/*Carte à la une */

.featured-documents {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.featured-documents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.document-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.document-card:hover::before {
    transform: scaleX(1);
}

.document-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-icon.statuts { background: var(--primary-gradient); }
.card-icon.reglement { background: var(--secondary-gradient); }
.card-icon.election { background: var(--accent-gradient); }
.card-icon.delegation { background: var(--success-gradient); }

.document-card:hover .card-icon {
    transform: rotate(5deg) scale(1.1);
}

.card-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.download-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.publish-date {
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.pin-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .featured-documents {
        margin: 1rem;
        padding: 2rem 1rem;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*Carte à la une */



/*Dernières publications */
.recent-documents {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.recent-documents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.recent-documents .section-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0 1rem 0;
}

.recent-documents .section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.recent-documents .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.recent-documents .section-subtitle {
    opacity: 0.7;
    font-size: 1.1rem;
    color: #2d3748;
    margin-top: 1rem;
}

.recent-document-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.recent-document-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recent-document-item:hover::before {
    transform: scaleX(1);
}

.recent-document-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--card-shadow-hover);
}

.document-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    color: #2d3748;
}

.document-meta .badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #2d3748;
}

.document-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.download-link {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.time-indicator {
    font-size: 0.85rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
}

.fade-in-slide {
    animation: fadeInSlide 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.fade-in-slide:nth-child(1) { animation-delay: 0.1s; }
.fade-in-slide:nth-child(2) { animation-delay: 0.2s; }
.fade-in-slide:nth-child(3) { animation-delay: 0.3s; }
.fade-in-slide:nth-child(4) { animation-delay: 0.4s; }
.fade-in-slide:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.clock-icon {
    animation: tick 2s infinite;
}

@keyframes tick {
    0%, 50% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@media (max-width: 768px) {
    .recent-documents .section-title {
        font-size: 2rem;
    }

    .document-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .download-link {
        justify-content: center;
    }
}
/*Dernières publications */


.publications-container {
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: var(--font-text);
}


.tree-view {
    flex: 1;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 15px;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}


.tree-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
}

.tree-item summary {
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.tree-item summary:hover {
    background: #eef5ff;
}

details {
    width: 100%;
}
/* Documents */
.container_link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    gap: 10px;
    background: #f9f9f9;
    color: #696b6d;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.container_link-item:hover {
    background: #e8f0fe;
}



details[open] > summary::before {
    transform: rotate(90deg);
}

.tree-content {
    padding-left: 2rem;
}

.nested-list {
    margin: 0.5rem 0;
    background-color: #f8fafc;
    border-radius: 8px;
}

.nested-list summary {
    color: #1e40af;
    font-weight: 500;
}



.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background-color: white;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.file-item p{
    margin: 0;
}

.file-item:hover {
    background-color: #f1f5f9;
}

.file-icon {
    color: #64748b;
    margin-right: 0.8rem;
}

/* Niveaux de profondeur */
.level-1 { margin-left: 0; }
.level-2 { margin-left: 1rem; }
.level-3 { margin-left: 2rem; }
.level-4 { margin-left: 3rem; }
.level-5 { margin-left: 4rem; }

/* Animation */
details[open] > .tree-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*Filtres*/
.filters-container {
    transition: opacity 0.3s ease-in-out;
}


svg{
    width: 30px;
}

.footer_amu{
    background-color: #00558b;
}


@media screen and (max-width: 758px) {

    .publications-container {
        width: 100%;
        margin: 1rem auto;
        flex-direction: column;
    }
}
