/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
    padding: 0px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 20px; */
}

/* Header */

.hero-img {
    width: 80%;
    height: auto;
    /* max-height: 200px; */
    object-fit: cover;
    border-radius: 8px;
}

.hero-header {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-top: 7.5rem;
    text-align: center;
}

/* .hero-header h1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
} */

.page-header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 20px;
    font-weight: 700;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

#search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #3182ce;
}

.search-btn {
    padding: 12px 20px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #2c5282;
}

/* Layout principal */
.main-content {
    display: flex;
    gap: 30px;
}

/* Grille des événements */
.events-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* Cartes événements */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transform: translateY(-2px);
}

/* Image de la carte */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .card-image img {
    transform: scale(1.05);
}

/* Badge type événement */
.event-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 54, 93, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenu principal de la carte */
.card-content {
    padding: 20px;
}

/* Date en évidence */
.event-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #1a365d;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 80px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date .weekday {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Titre événement */
.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Informations lieu et organisateur */
.event-location,
.event-organizer {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.event-location {
    font-weight: 500;
}

.event-organizer {
    font-style: italic;
}

/* Zone expandable */
.card-details {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 0;
}

.event-card.expanded .card-details {
    padding: 20px;
    max-height: 300px;
}

/* Table des détails */
.details-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 120px;
    font-size: 0.9rem;
}

.detail-value {
    color: #2d3748;
    text-align: right;
    flex: 1;
    font-size: 0.9rem;
}

/* Indicateur d'expansion */
.expand-indicator {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: #64748b;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.event-card.expanded .expand-indicator .chevron {
    transform: rotate(180deg);
}

/* Sidebar avec filtres */
.sidebar {
    flex: 1;
    min-width: 280px;
}

.filters-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.filters-container h2 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Groupes de filtres */
.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group h3 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Checkboxes personnalisées */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #3182ce;
}

.checkbox-label input[type='checkbox'] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type='checkbox']:checked + .checkmark {
    background: #3182ce;
    border-color: #3182ce;
}

.checkbox-label input[type='checkbox']:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Selects */
.date-filter,
.location-filter,
.sector-filter {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.date-filter:focus,
.location-filter:focus,
.sector-filter:focus {
    outline: none;
    border-color: #3182ce;
}

/* Boutons d'action */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-apply,
.btn-reset {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply {
    background: #3182ce;
    color: white;
}

.btn-apply:hover {
    background: #2c5282;
}

.btn-reset {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-reset:hover {
    background: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .container {
        padding: 15px;
    }

    .sidebar {
        order: -1;
        min-width: auto;
    }

    .filter-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-content {
        padding: 15px;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .filters-container {
        padding: 20px;
    }
}

/* Section Organisateurs Partenaires */
.part-partners-section {
    background-color: #f8f9fa;
    position: relative;
}

.part-partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

/* En-tête de section */
.part-header {
    margin-bottom: 3rem;
}

.part-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.part-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 2px;
}

.part-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Cartes organisateurs */
.part-card {
    background: #ffffff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.part-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.part-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.2);
}

.part-card:hover::before {
    transform: scaleX(1);
}

.part-card-body {
    padding: 2rem 1.5rem;
}

/* Header de carte */
.part-header-card {
    margin-bottom: 1.5rem;
}

.part-logo-container {
    position: relative;
    display: inline-block;
}

.part-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.part-card:hover .part-logo {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
}

.part-org-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.part-card:hover .part-org-name {
    color: #007bff;
}

/* Informations de base */
.part-info {
    margin-bottom: 1.5rem;
}

.part-sector {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #007bff;
    transition: all 0.3s ease;
}

.part-card:hover .part-sector {
    background: rgba(0, 123, 255, 0.05);
    border-left-color: #0056b3;
}

.part-sector i {
    font-size: 1rem;
    color: #007bff;
}

.part-sector span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

/* Actions et boutons */
.part-actions {
    margin-top: auto;
}

.part-profile-link {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.part-profile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.part-profile-link:hover::before {
    left: 100%;
}

.part-profile-link:hover {
    background: linear-gradient(45deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.part-profile-link i {
    font-size: 1rem;
}

/* Réseaux sociaux */
.part-social {
    margin-top: 0.75rem;
}

.part-social-link {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    color: #6c757d;
    text-decoration: none;
}

.part-social-link:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.part-social-link i {
    font-size: 1rem;
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.part-card {
    animation: fadeInUp 0.6s ease forwards;
}

.part-card:nth-child(1) {
    animation-delay: 0.1s;
}
.part-card:nth-child(2) {
    animation-delay: 0.2s;
}
.part-card:nth-child(3) {
    animation-delay: 0.3s;
}
.part-card:nth-child(4) {
    animation-delay: 0.4s;
}
.part-card:nth-child(5) {
    animation-delay: 0.5s;
}
.part-card:nth-child(6) {
    animation-delay: 0.6s;
}
.part-card:nth-child(7) {
    animation-delay: 0.7s;
}
.part-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .part-card-body {
        padding: 1.5rem 1.25rem;
    }

    .part-org-name {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .part-partners-section {
        padding: 3rem 0;
    }

    .part-header {
        margin-bottom: 2rem;
    }

    .part-title {
        font-size: 1.75rem;
    }

    .part-subtitle {
        font-size: 1rem;
    }

    .part-card-body {
        padding: 1.25rem 1rem;
    }

    .part-logo {
        width: 70px;
        height: 70px;
    }

    .part-org-name {
        font-size: 0.95rem;
    }

    .part-profile-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .part-social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 575.98px) {
    .part-card {
        margin-bottom: 1rem;
    }

    .part-social {
        gap: 0.5rem;
    }
}

/* États focus pour l'accessibilité */
.part-profile-link:focus,
.part-social-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Amélioration des contrastes pour l'accessibilité */
@media (prefers-contrast: high) {
    .part-card {
        border: 2px solid #000;
    }

    .part-org-name {
        color: #000;
    }

    .part-sector span {
        color: #000;
    }
}

/* Support du mode sombre */
@media (prefers-color-scheme: dark) {
    .part-partners-section {
        background-color: #1a1a1a;
    }

    .part-card {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .part-title {
        color: #f8f9fa;
    }

    .part-subtitle {
        color: #adb5bd;
    }

    .part-org-name {
        color: #f8f9fa;
    }

    .part-sector {
        background: #343a40;
    }

    .part-sector span {
        color: #ced4da;
    }
}

/* Section Événements Vedette - CSS */

/* Section principale */
.prem-featured-events {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.prem-section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.prem-section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Carousel Container */
.prem-carousel-wrapper {
    margin: 0 60px; /* Espace pour les flèches de navigation */
}

@media (max-width: 768px) {
    .prem-carousel-wrapper {
        margin: 0;
    }
}

.prem-carousel-track {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Navigation Buttons */
.prem-nav-btn {
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 10;
    transition: all 0.3s ease;
    color: #495057;
}

.prem-nav-btn:hover {
    background: #ffffff !important;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
    color: #007bff;
}

.prem-nav-btn:active {
    transform: scale(0.95);
}

/* Cartes Événements */
.prem-event-card {
    width: 380px;
    min-width: 380px;
}

@media (max-width: 768px) {
    .prem-event-card {
        width: 320px;
        min-width: 320px;
    }
}

@media (max-width: 576px) {
    .prem-event-card {
        width: 280px;
        min-width: 280px;
    }
}

.prem-card-premium {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #ffffff;
    height: 520px;
}

.prem-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Images et Overlay */
.prem-image-container {
    height: 250px;
    overflow: hidden;
}

.prem-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prem-card-premium:hover .prem-event-image {
    transform: scale(1.05);
}

.prem-image-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    border-radius: 0 0 16px 16px;
}

.prem-image-overlay h4 {
    font-size: 1.4rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Badge Premium */
.prem-premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #1a1a1a !important;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Tags sectoriels */
.prem-tags .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Participants */
.prem-participants {
    color: #495057;
    font-size: 0.9rem;
}

.prem-participants i {
    font-size: 1rem;
}

/* Boutons d'action */
.prem-actions {
    gap: 0.5rem;
}

.prem-btn-info {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.prem-btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.prem-btn-share {
    width: 44px;
    height: 44px;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef !important;
}

.prem-btn-share:hover {
    transform: translateY(-2px);
    border-color: #007bff !important;
    background-color: #007bff !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
}

/* Indicateurs de pagination */
.prem-pagination {
    margin-top: 2rem;
}

.prem-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 4px;
}

.prem-dot:hover {
    background: #adb5bd;
    transform: scale(1.2);
}

.prem-dot.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transform: scale(1.3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Animations au scroll */
.prem-featured-events {
    opacity: 0;
    transform: translateY(30px);
    animation: prem-fadeInUp 0.8s ease forwards;
}

@keyframes prem-fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation des cartes */
.prem-event-card {
    opacity: 0;
    transform: translateY(20px);
    animation: prem-cardFadeIn 0.6s ease forwards;
}

.prem-event-card:nth-child(1) {
    animation-delay: 0.1s;
}
.prem-event-card:nth-child(2) {
    animation-delay: 0.2s;
}
.prem-event-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes prem-cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États de chargement */
.prem-carousel-track.prem-loading {
    pointer-events: none;
}

.prem-carousel-track.prem-loading .prem-event-card {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .prem-section-title {
        font-size: 2.2rem;
    }

    .prem-event-card {
        width: 350px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .prem-section-title {
        font-size: 2rem;
    }

    .prem-section-subtitle {
        font-size: 1rem;
    }

    .prem-image-container {
        height: 200px;
    }

    .prem-card-premium {
        height: 480px;
    }

    .prem-image-overlay h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .prem-section-title {
        font-size: 1.8rem;
    }

    .prem-image-container {
        height: 180px;
    }

    .prem-card-premium {
        height: 450px;
    }

    .prem-premium-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    .prem-btn-info {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .prem-btn-share {
        width: 40px;
        height: 40px;
    }
}

/* Animation de pause au hover */
.prem-carousel-wrapper:hover .prem-carousel-track {
    animation-play-state: paused;
}

/* Amélioration de l'accessibilité */
.prem-nav-btn:focus,
.prem-dot:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Optimisations performance */
.prem-card-premium,
.prem-event-image,
.prem-nav-btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
    .prem-featured-events {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .prem-section-title {
        color: #ffffff;
    }

    .prem-card-premium {
        background: #2d2d2d;
        color: #ffffff;
    }
}
