* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --teal-50: #f0fdfa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-50: #eff6ff;
    --purple-500: #a855f7;
    --purple-50: #faf5ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background-color: var(--emerald-500);
    padding: 0.5rem;
    border-radius: 0.75rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.user-info {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.user-name {
    font-weight: 600;
}

/* Navigation */
.navigation {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.nav-tabs::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 2px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    background: none;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    background-color: var(--gray-50);
}

.nav-tab.active {
    background-color: var(--emerald-500);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

/* Hamburger Button */
.hamburger-btn {
    position: fixed;
    left: 1rem;
    top: 14rem;
    background-color: var(--emerald-500);
    color: var(--white);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    display: none;
}

.hamburger-btn:hover {
    background-color: var(--emerald-600);
    transform: scale(1.1);
}

.hamburger-btn.active .menu-icon {
    display: none;
}

.hamburger-btn.active .close-icon {
    display: block;
}

.hamburger-btn .close-icon {
    display: none;
}

.hamburger-btn.show {
    display: block;
}

/* Sidebar */
.sidebar-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;

}

.sidebar {
    position: fixed;
    left: 0;
    top: 19%;
    height: 100%;
    width: 320px;
    background-color: var(--white);
    box-shadow: var(--shadow-2xl);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

.sidebar-nav {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    background: none;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.sidebar-item:hover {
    background-color: var(--emerald-50);
    color: var(--emerald-700);
}

.sidebar-item.active {
    background-color: var(--emerald-500);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.sidebar-item span {
    flex: 1;
}

.sidebar-item .chevron {
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    padding-bottom: 3rem;
}

.home-header {
    text-align: center;
    margin-bottom: 3rem;
}

.home-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.home-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
}

/* Scholarship Cards */
.scholarship-card {
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.scholarship-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.scholarship-card.emerald {
    background: linear-gradient(135deg, var(--emerald-50), var(--teal-50));
}

.scholarship-card.blue {
    background: linear-gradient(135deg, var(--blue-50), #dbeafe);
}

.card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.card-icon {
    background-color: var(--emerald-500);
    padding: 1rem;
    border-radius: 1rem;
    color: var(--white);
    flex-shrink: 0;
}

.scholarship-card.blue .card-icon {
    background-color: var(--blue-500);
}

.card-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--gray-600);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--emerald-500);
    margin-bottom: 0.5rem;
}

.scholarship-card.blue .stat-value {
    color: var(--blue-500);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--emerald-500);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background-color: var(--emerald-600);
    transform: scale(1.05);
}

.scholarship-card.blue .btn-primary {
    background-color: var(--blue-500);
}

.scholarship-card.blue .btn-primary:hover {
    background-color: var(--blue-600);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background-color: var(--gray-50);
}

/* Content Sections */
.content-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title svg {
    color: var(--emerald-500);
}

/* History Timeline */
.timeline-item {
    border-left: 4px solid var(--emerald-500);
    padding-left: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
    border-radius: 0 0.5rem 0.5rem 0;
}

.timeline-item:hover {
    background-color: var(--emerald-50);
}

.timeline-item.blue {
    border-left-color: var(--blue-500);
}

.timeline-item.blue:hover {
    background-color: var(--blue-50);
}

.timeline-item.purple {
    border-left-color: var(--purple-500);
}

.timeline-item.purple:hover {
    background-color: var(--purple-50);
}

.timeline-year {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--emerald-600);
    margin-bottom: 0.25rem;
}

.timeline-item.blue .timeline-year {
    color: var(--blue-600);
}

.timeline-item.purple .timeline-year {
    color: var(--purple-600);
}

.timeline-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3.5rem;
}

.gallery-item {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--emerald-100), #99f6e4);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6ee7b7;
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

/* Boursiers List */
.boursiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.boursier-card {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.boursier-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-500);
}

.boursier-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.boursier-avatar {
    width: 4rem;
    height: 4rem;
    background-color: var(--emerald-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.boursier-name {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.boursier-program {
    color: var(--emerald-600);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.boursier-year {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Inscription Details */
.info-box {
    border-radius: 0.75rem;
    padding: 1.5rem;
    border-left: 4px solid var(--emerald-500);
    margin-bottom: 1.5rem;
}

.info-box.emerald {
    background-color: var(--emerald-50);
}

.info-box.blue {
    background-color: var(--blue-50);
    border-left-color: var(--blue-500);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.info-list svg {
    color: var(--emerald-500);
    flex-shrink: 0;
}

.process-list {
    list-style: none;
}

.process-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.process-number {
    background-color: var(--blue-500);
    color: var(--white);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.partner-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.partner-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--emerald-500);
}

.partner-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--emerald-100);
}

.partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.partner-title {
    font-size: 0.875rem;
    color: var(--emerald-600);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.partner-meta {
    margin-bottom: 1.5rem;
}

.meta-item {
    margin-bottom: 0.75rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.meta-value {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
}

.partner-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--emerald-50);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item svg {
    color: var(--emerald-500);
    flex-shrink: 0;
}

.contact-item span,
.contact-item a {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--emerald-600);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

    .home-header h1 {
        font-size: 1.875rem;
    }

    .home-header p {
        font-size: 1rem;
    }

    .card-header {
        flex-direction: column;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .sidebar {
        width: 280px;
        margin-top: 10%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .boursiers-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .partner-card {
        padding: 1.5rem;
    }

    .partner-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        width: 100%;
    }

    .home-header h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-contact {
        padding: 0.75rem;
    }

    .contact-item {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-section,
.content-card {
    animation: fadeIn 0.5s ease;
}

.card {
    position: relative;
    display: flex;
    margin: auto -20px;
    border-radius: 5px;
    flex-direction: column;
    width: 300px;
    background: transparent;
    color: currentColor;
    text-decoration: none;
    overflow: hidden;
    transition-property: color;
    transition-delay: 0.15s;
    box-shadow: 0 20px 20px rgba(0, 0, 0, .1);
}

.card.hover {
    color: white;
    transition-delay: 0;
    transform: scale(1,1);
}
.card, .card__image, .card__image::after,
.card__author, .card__body, .card__foot,
.card__border {
    transition-duration: 0.4s;
    transition-timing-function:
        cubic-bezier(0.51, 0.92, 0.24, 1);
}
.card__head {
    position: relative;
    padding-top: 70%;
}
.card__author {
    position: absolute;
    padding: 2em;
    left: 0;
    bottom: 0;
    color: white;
    transition-property: transform;
    transition-delay: 0.15s;
}
.card.hover .card__author {
    transition-delay: 0;
}
.card__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-image: url('/activiter.JPG');
    transform-origin: top center;
    transition-property: transform;
    transition-delay: 0.15s;
}
.card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    background: linear-gradient(30deg,
    rgba(26, 42, 99, .85), rgba(26, 42, 99, .5));
    transition-property: opacity;
    transition-delay: 0.15s;
}
.card.hover .card__image {
    transition-delay: 0;
}
.card.hover .card__image::after {
    opacity: 1;
    transition-delay: 0;
}
.card__body {
    position: relative;
    padding: 2em;
    transition-property: transform;
    transition-delay: 0.15s;
}
.card.hover .card__body {
    transition-delay: 0;
}
.card__headline {
    font-weight: 400;
    margin: 0 0 0.8em;
}
.card__text {
    line-height: 1.5;
    margin: 0;
    font-family: 'Lato', sans-serif;
    opacity: 0.8;
    font-weight: 500;
}
.card__foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 2em 2em;
    opacity: 0;
    transition-property: opacity;
}
.card.hover .card__foot {
    opacity: 1;
    transition-delay: 0.15s;
}
.card.hover .card__border {
    transform: none;
    transition-delay: 0.15s;
}
.author {
    display: flex;
    align-items: center;
}
.author__image {
    flex-shrink: 0;
    margin-right: 1em;
    width: 56px;
    height: 56px;
    border-radius: 100%;
    overflow: hidden;
}
.author__content {
    display: grid;
    grid-gap: 0.4em;
    font-size: 0.9em;
    font-family: 'Lato', sans-serif;
}
.author__header {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
}
.author__subheader {
    line-height: 13px;
    margin: 0;
    opacity: 0.9;
}

/* ══════════════════════════════════
   HISTORIQUE - CARTES NORMALES
══════════════════════════════════ */
.history-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.history-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.history-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.history-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.history-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--emerald-600);
}

.history-count {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 600;
}

.history-note {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-height: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-toggle {
    background-color: var(--emerald-500);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
}

.history-toggle:hover {
    background-color: var(--emerald-600);
    transform: scale(1.02);
}

/* ══════════════════════════════════
   OVERLAY POUR POPUP
══════════════════════════════════ */
.history-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
}

.history-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ══════════════════════════════════
   POPUP CARD (flottante)
══════════════════════════════════ */
.history-popup {
    position: fixed;
    top: 15%;
    left: 50%;
    right: 50%;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.history-popup .history-header {
    margin-bottom: 1.5rem;
}

.history-popup .history-note {
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 1.5rem;
}

.history-popup .history-toggle {
    display: none;
}

/* ══════════════════════════════════
   BOUTON FERMER (croix) - POPUP SEULEMENT
══════════════════════════════════ */
.history-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 51;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-close:hover {
    color: var(--gray-800);
    transform: scale(1.2);
}

/* ══════════════════════════════════
   BOUTON "LIRE LA SUITE/MOINS"
══════════════════════════════════ */
.history-readmore {
    background-color: var(--emerald-500);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.history-readmore:hover {
    background-color: var(--emerald-600);
    transform: scale(1.02);
}

/* CARTE PRINCIPALE */
.content-card{

    width:100%;
    max-width:1200px;
    margin:30px auto;

    padding:35px;

    background:#ffffff;

    border-radius:14px;

    box-shadow:0 12px 35px rgba(0,0,0,0.08);

    border-top:6px solid #2e7d32;

    transition:all .3s ease;

}


/* TITRE */
.content-card h2{

    display:flex;
    align-items:center;
    gap:12px;

    font-size:26px;
    font-weight:700;

    color:#2e7d32;

    margin-bottom:20px;

    border-bottom:2px solid #e8f5e9;

    padding-bottom:12px;

}


/* ICONE */
.content-card .icon{

    font-size:26px;

}


/* CONTENU */
.documents-block{

    background:#f9fdf9;

    padding:25px;

    border-radius:10px;

    border-left:6px solid #66bb6a;

    line-height:1.8;

    font-size:16px;

    color:#444;

}


/* LISTES */
.documents-block ul{
    padding-left:20px;
}

.documents-block li{
    margin-bottom:10px;
}


/* PARAGRAPHES */
.documents-block p{
    margin-bottom:12px;
}


/* HOVER */
.content-card:hover{

    transform:translateY(-4px);

    box-shadow:0 20px 45px rgba(0,0,0,0.12);

}


/* ANIMATION */
@keyframes fadeInCard{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.content-card{
    animation:fadeInCard 0.7s ease;
}


/* TABLETTE */
@media (max-width:1024px){

    .content-card{
        max-width:95%;
        padding:25px;
    }

}


/* MOBILE */
@media (max-width:768px){

    .content-card{

        max-width:100%;
        margin:20px 10px;
        padding:20px;

    }

    .content-card h2{
        font-size:20px;
    }

    .documents-block{
        font-size:15px;
        padding:18px;
    }

}

/* ══════════════════════════════════
   LIEN DE TÉLÉCHARGEMENT
══════════════════════════════════ */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
}

.download-link:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
    text-decoration: none;
}

.download-link:active {
    transform: translateY(0);
}

.download-link svg {
    flex-shrink: 0;
}

/* Variante secondaire pour les documents */
.download-link.secondary {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.download-link.secondary:hover {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}

/* ══════════════════════════════════
   SECTION DOCUMENTS À TÉLÉCHARGER
══════════════════════════════════ */
.download-documents-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
}

.download-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.documents-note {
    margin-top: 1.5rem;
}

/* Responsive pour les liens de téléchargement */
@media (min-width: 768px) {
    .download-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .download-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .download-link.secondary {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* ══════════════════════════════════
   PANNEAU FLOTTANT POUR TEMPLATE
══════════════════════════════════ */
.template-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.template-overlay[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
}

.template-panel {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: templateSlideIn 0.3s ease;
}

@keyframes templateSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--emerald-50);
}

.template-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-800);
    transform: scale(1.1);
}

.template-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.7;
    color: var(--gray-700);
}

.template-body h1,
.template-body h2,
.template-body h3,
.template-body h4,
.template-body h5,
.template-body h6 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.template-body h1 { font-size: 2rem; }
.template-body h2 { font-size: 1.75rem; }
.template-body h3 { font-size: 1.5rem; }
.template-body h4 { font-size: 1.25rem; }

.template-body p {
    margin-bottom: 1rem;
}

.template-body ul,
.template-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.template-body li {
    margin-bottom: 0.5rem;
}

.template-body strong,
.template-body b {
    font-weight: 700;
    color: var(--gray-800);
}

.template-body em,
.template-body i {
    font-style: italic;
}

.template-body u {
    text-decoration: underline;
}

.template-body a {
    color: var(--emerald-600);
    text-decoration: none;
}

.template-body a:hover {
    text-decoration: underline;
}

.template-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    display: flex;
    justify-content: flex-end;
}

.close-btn-bottom {
    background-color: var(--gray-600);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.close-btn-bottom:hover {
    background-color: var(--gray-700);
    transform: scale(1.05);
}

/* Contrôles de pagination */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.page-btn {
    background-color: var(--emerald-500);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--emerald-600);
    transform: scale(1.05);
}

.page-btn:disabled {
    background-color: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

#page-info {
    font-weight: 600;
    color: var(--gray-700);
}

/* Bouton lire les détails */
.read-details-btn {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-details-btn:hover {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.read-details-btn:active {
    transform: translateY(0);
}

/* Responsive pour le panneau */
@media (max-width: 768px) {
    .template-panel {
        width: 95%;
        max-height: 95vh;
    }

    .template-header {
        padding: 1rem 1.5rem;
    }

    .template-header h3 {
        font-size: 1.25rem;
    }

    .template-body {
        padding: 1.5rem;
        max-height: 70vh;
    }

    .template-footer {
        padding: 1rem 1.5rem;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .read-details-btn {
        width: 100%;
        justify-content: center;
    }
}
