/**
 * Styles principaux pour FanaCup
 * Design inspiré de FFSA GT
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Contraintes strictes pour le logo SVG - Priorité maximale */
img.logo-img,
.header-logo img,
.header-logo .logo-img,
.header-logo-center img,
.header-logo-center .logo-img,
.header-logo-center a img,
.header-logo img.logo-img,
.site-header img,
.site-header .logo-img,
header img.logo-img,
header .logo-img,
svg.logo-img,
.header-logo svg,
.header-logo-center svg {
    max-width: 250px !important;
    max-height: 70px !important;
    width: auto !important;
    height: 70px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

:root {
    --color-primary: #e20408;
    --color-primary-dark: #c00306;
    --color-dark: #1a1a1a;
    --color-dark-light: #2d2d2d;
    --color-text: #ffffff;
    --color-text-light: #b4b4b4;
    --color-success: #4caf50;
    --color-error: #f44336;
    --color-warning: #ff9800;
    --color-info: #2196f3;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Background avec image Nürburgring */
body.body-with-bg {
    background-color: #1a1a1a !important;
    background-image: url('/FanaCup/DEV/img/img_nurburgring.jpg') !important;
    background-size: cover !important;
    background-position: center 21% !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    position: relative !important;
    min-height: 100vh !important;
}

body.body-with-bg::after {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.15) 0%, rgba(45, 45, 45, 0.15) 100%) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Header */
.site-header {
    width: 100% !important;
    background-color: transparent !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    box-shadow: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header principal - Grille avec 3 sections : gauche, centre (logo), droite */
.header-main {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    min-height: 150px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    gap: 2rem !important;
    position: relative !important;
    background-color: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Section gauche du header */
.header-section-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    grid-column: 1 !important;
    background-color: rgba(255, 255, 255, 0.4) !important; /* Opacité à 0.4 */
    padding: 1rem !important;
    border-radius: 4px 12px 12px 4px !important; /* Coins extérieurs arrondis + coins intérieurs arrondis */
}

/* Section centre du header - Logo */
.header-section-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    grid-column: 2 !important;
    background-color: transparent !important;
    height: 100% !important;
}

/* Section droite du header */
.header-section-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    grid-column: 3 !important;
    background-color: rgba(255, 255, 255, 0.4) !important; /* Opacité à 0.4 */
    padding: 1rem !important;
    border-radius: 12px 4px 4px 12px !important; /* Coins extérieurs arrondis + coins intérieurs arrondis */
}

.header-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header-section-center img,
.header-logo-link img {
    max-width: 507.8125px !important;
    max-height: 90% !important;
    width: auto !important;
    height: 90% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Bouton menu hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    grid-column: 1;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(226, 4, 8, 0.3);
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle:hover span {
    background-color: #ffffff;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu latéral (sidebar) */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-link {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 2rem;
}

/* Section dans le menu */
.sidebar-section {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-section-title {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--color-primary);
}

.sidebar-subnav {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #ffffff;
}

.sidebar-subnav li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-subnav li:last-child {
    border-bottom: none;
}

.sidebar-sublink {
    padding-left: 2.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-sublink:hover {
    padding-left: 3rem;
}

/* Overlay pour fermer le menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Logo en dehors du header - Masqué car maintenant dans le header */
.body-logo {
    display: none !important;
}

.body-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.body-logo .logo-img,
.body-logo img,
.body-logo-link .logo-img,
.body-logo-link img {
    max-width: 507.8125px !important; /* 406.25 * 1.25 = 25% plus gros */
    max-height: 142.1875px !important; /* 113.75 * 1.25 = 25% plus gros */
    width: auto !important;
    height: 142.1875px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Menu utilisateur à droite - Maintenant dans header-section-right */
.header-user-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
}

.header-user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-user-link {
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    background-color: var(--color-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

.header-user-link:hover {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(226, 4, 8, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    margin-top: 180px; /* Compenser uniquement la hauteur du header fixe (150px) + 20% (30px) - espace minimal */
    margin-bottom: 1rem; /* Réduit de 2rem à 1rem pour gagner de l'espace */
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.4); /* Opacité à 0.4 */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Important pour que flex: 1 fonctionne avec overflow */
}

/* Assurer que le body affiche bien l'image en arrière-plan */
body.body-with-bg {
    background-image: url('/FanaCup/DEV/img/img_nurburgring.jpg') !important;
}

/* Flash Messages */
.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Home Page - Hero Section */
.home-hero {
    width: 100%;
    margin-bottom: 3rem;
}

.hero-event {
    display: grid;
    grid-template-columns: 1fr auto; /* Changé de 1fr 1fr à 1fr auto pour que l'image prenne seulement l'espace nécessaire */
    gap: 2rem;
    background: #ffffff; /* Blanc */
    border-radius: 12px;
    padding: 1.5rem 3rem; /* Réduit le padding vertical de 3rem à 1.5rem */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.hero-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; /* Retiré le gradient rouge */
    z-index: 0;
}

.hero-event-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr max-content;
    grid-template-rows: auto auto auto auto;
    gap: 0.75rem 1rem; /* Réduit le gap vertical de 1rem à 0.75rem et horizontal à 1rem */
    align-items: start;
}

.hero-event-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    grid-column: 1 / -1;
}

.hero-event-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark); /* Texte sombre pour fond blanc */
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    grid-column: 1;
    grid-row: 2;
    margin: 0; /* Supprime les marges par défaut */
}

.hero-event-action-info {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    white-space: nowrap; /* Empêche le texte de se couper */
}


.hero-event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-dark-light); /* Texte gris foncé pour fond blanc */
    grid-column: 1;
    grid-row: 3;
}

.hero-event-action-inscrire {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    align-self: center;
    white-space: nowrap; /* Empêche le texte de se couper */
}

.hero-event-date {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    grid-column: 1;
    grid-row: 4;
}

.date-label {
    font-size: 0.9rem;
    color: var(--color-dark-light); /* Texte gris foncé pour fond blanc */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-separator {
    font-size: 1.5rem;
    color: var(--color-dark-light);
    font-weight: 300;
}

.date-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary); /* Rouge reste inchangé */
}

/* Décompte pour le prochain événement */
.hero-event-countdown {
    display: flex;
    align-items: flex-start; /* Aligner en haut pour que les ":" s'alignent avec les chiffres */
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem; /* Réduit pour être plus proche de "Prochain événement" */
    padding: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 400; /* Normal, pas en gras */
    color: #ffffff; /* Blanc */
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--color-dark); /* Noir */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 400; /* Normal, pas en gras */
    color: #ffffff; /* Blanc */
    line-height: 1;
    margin: 0 0.25rem;
    align-self: flex-start; /* Aligner avec le haut des chiffres */
    margin-top: 0; /* Pas de marge en haut pour aligner avec les chiffres */
}

/* .hero-event-actions supprimé - les boutons sont maintenant des éléments séparés */

.hero-event-image {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.hero-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-welcome {
    text-align: center;
    padding: 4rem 2rem;
}

.hero-welcome h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #000; /* Noir */
}

/* Events Grid */
.events-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
}

.section-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--color-primary-dark);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.event-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem; /* Réduit la hauteur en diminuant le padding vertical */
    text-align: center;
    min-height: auto; /* Permet de réduire la hauteur */
}

.event-date-value {
    display: block;
    font-size: 1rem; /* Taille réduite pour la date au format JJ/MM/AAAA */
    font-weight: 600;
    line-height: 1.2;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

}

.event-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.event-country {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.event-actions {
    margin-top: 1rem;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-action-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--color-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.quick-action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quick-action-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quick-action-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(226, 4, 8, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-success {
    background-color: var(--color-success);
    color: white;
}

.btn-success:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-error {
    background-color: var(--color-error);
    color: white;
}

.btn-error:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

/* News Section */
.news-section {
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.news-date {
    color: #999;
    font-size: 0.85rem;
}

.news-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--color-primary-dark);
}

/* Photos Section */
.photos-section {
    margin-bottom: 3rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.photo-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.photo-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.photo-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.photo-card:hover .photo-image img {
    transform: scale(1.1);
}

.photo-info {
    padding: 1rem;
}

.photo-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}

.photo-event {
    color: #666;
    font-size: 0.85rem;
}

/* Videos Section */
.videos-section {
    margin-bottom: 3rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.video-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #666;
    background: #f0f0f0;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.video-event {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.video-date {
    color: #999;
    font-size: 0.85rem;
}

/* Formulaire d'inscription et de connexion - Centré */
.register-container,
.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: auto;
    padding: 1rem 1rem 2rem 1rem;
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

.register-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.register-box h1,
.login-box h1 {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.register-box .subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.register-box form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem; /* Réduit gap vertical de 0.875rem à 0.6rem (30% supplémentaire) */
}

.register-box form .form-group-full {
    grid-column: 1 / -1;
}

.register-box form .btn {
    grid-column: 1 / -1;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Réduit de 1.4rem à 1rem (30% supplémentaire) */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Réduit de 0.35rem à 0.25rem (30% supplémentaire) */
}

.form-group label {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.75rem; /* Réduit de 0.85rem à 0.75rem (30% supplémentaire) */
    line-height: 1.1; /* Réduit encore la hauteur de ligne */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    padding: 0.25rem 1rem; /* Réduit de 0.35rem à 0.25rem (30% supplémentaire) */
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.8rem; /* Réduit de 0.9rem à 0.8rem (30% supplémentaire) */
    transition: all 0.3s ease;
    background-color: #fff;
    color: var(--color-dark);
    font-family: inherit;
    line-height: 1.2; /* Réduit encore la hauteur de ligne */
}

.form-group textarea {
    resize: vertical;
    min-height: 50px; /* Réduit de 70px à 50px (30% supplémentaire) */
}

.form-group select {
    cursor: pointer;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="datetime-local"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="url"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(226, 4, 8, 0.1);
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="password"]:hover,
.form-group input[type="number"]:hover,
.form-group input[type="datetime-local"]:hover,
.form-group input[type="date"]:hover,
.form-group input[type="time"]:hover,
.form-group input[type="url"]:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #b0b0b0;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.register-box .btn,
.login-box .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
}

/* Responsive formulaire d'inscription */
@media (max-width: 768px) {
    .register-box form {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .register-box form .form-group-full {
        grid-column: 1;
    }
}

.register-links,
.login-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.register-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-links a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: rgba(26, 26, 26, 0.9);
    color: var(--color-text-light);
    padding: 0.75rem 2rem; /* Réduit padding vertical de 2rem à 0.75rem */
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    font-size: 0.85rem; /* Réduit la taille de la police */
}

.footer-content p {
    margin: 0.25rem 0; /* Réduit de 0.5rem à 0.25rem */
    line-height: 1.3; /* Réduit la hauteur de ligne */
}

/* Responsive */
@media (max-width: 1024px) {
    .header-main {
        padding: 1rem 1.5rem;
        min-height: 135px;
        gap: 1.5rem;
    }
    
    .header-section-center img,
    .header-logo-link img {
        max-width: 400px !important;
        max-height: 112px !important;
        height: 112px !important;
    }
    
    .body-logo {
        padding: 1.5rem 0 !important;
    }
    
    .body-logo .logo-img,
    .body-logo img,
    .body-logo-link .logo-img,
    .body-logo-link img {
        max-width: 325px !important; /* 260 * 1.25 */
        max-height: 97.5px !important; /* 78 * 1.25 */
        height: 97.5px !important;
    }
    
    .header-nav-left .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-event {
        grid-template-columns: 1fr;
    }

    .hero-event-title {
        font-size: 2rem;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-main {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        padding: 1rem;
        min-height: 120px;
    }
    
    .header-section-center img,
    .header-logo-link img {
        max-width: 300px !important;
        max-height: 84px !important;
        height: 84px !important;
    }

    .header-section-right {
        justify-content: flex-end;
    }
    
    .sidebar-menu {
        width: 280px;
    }

    .header-nav-left .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 1rem;
        margin-top: 144px; /* Compenser uniquement la hauteur du header fixe (120px) + 20% (24px) - espace minimal */
        max-height: calc(100vh - 144px - 2rem);
    }

    .hero-event {
        padding: 1rem 2rem; /* Réduit le padding vertical sur mobile aussi */
    }

    .hero-event-title {
        font-size: 1.75rem;
    }

    .hero-event-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-event-badge,
    .hero-event-title {
        grid-column: 1;
    }

    .hero-event-action-info,
    .hero-event-action-inscrire {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        width: fit-content; /* Largeur adaptée au contenu au lieu de 100% */
        max-width: 100%; /* Mais ne dépasse pas la largeur disponible */
        font-size: 0.9rem; /* Réduit la taille de la police */
        padding: 0.6rem 1.2rem; /* Réduit le padding */
    }

    .hero-event-countdown {
        gap: 0.5rem;
        padding: 1rem;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-value {
        font-size: 1.75rem;
        color: #ffffff; /* Blanc */
    }

    .countdown-label {
        font-size: 0.65rem;
        color: var(--color-dark); /* Noir */
    }

    .countdown-separator {
        font-size: 1.75rem; /* Même taille que les chiffres */
        font-weight: 400; /* Normal, pas en gras */
        color: #ffffff; /* Blanc */
        margin: 0 0.1rem;
        align-self: flex-start; /* Aligner avec le haut des chiffres */
        margin-top: 0; /* Pas de marge en haut pour aligner avec les chiffres */
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .body-logo {
        padding: 1rem 0 !important;
    }
    
    .body-logo .logo-img,
    .body-logo img,
    .body-logo-link .logo-img,
    .body-logo-link img {
        max-width: 243.75px !important; /* 195 * 1.25 */
        max-height: 81.25px !important; /* 65 * 1.25 */
        height: 81.25px !important;
    }
    
    .header-nav-left .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .header-user-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-welcome h1 {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .register-box {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .register-box h1 {
        font-size: 1.75rem;
    }
}

/* ============================================
   INTERFACE ADMINISTRATION
   ============================================ */

/* Container principal admin */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header admin */
.admin-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

.admin-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

/* Section tableau de bord */
.admin-dashboard {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Grille des statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Cartes de statistiques */
.stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.stat-card-primary {
    border-left-color: var(--color-primary);
}

.stat-card-success {
    border-left-color: var(--color-success);
}

.stat-card-warning {
    border-left-color: var(--color-warning);
}

.stat-card-error {
    border-left-color: var(--color-error);
}

.stat-icon {
    font-size: 1.75rem;
    line-height: 1;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 0.25rem 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    line-height: 1;
}

/* Section menu admin */
.admin-menu-section {
    margin-top: 1.5rem;
}

.admin-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

/* Catégories du menu */
.admin-menu-category {
    margin-bottom: 1.5rem;
}

.admin-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--color-primary);
}

/* Grille du menu admin */
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

/* Items du menu admin */
.admin-menu-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.admin-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
    text-decoration: none;
    color: inherit;
}

.admin-menu-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 6px;
    color: white;
}

.admin-menu-content {
    flex: 1;
}

.admin-menu-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 0.25rem 0;
}

.admin-menu-content p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Tableau des prochains événements */
.prochains-events {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.prochains-events h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.prochains-events .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.prochains-events .table thead {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.prochains-events .table th {
    padding: 0.125rem 0.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.prochains-events .table td {
    padding: 0.125rem 0.25rem;
    border-bottom: 1px solid #e0e0e0;
    color: var(--color-dark);
    font-size: 0.75rem;
}

.prochains-events .table tbody tr:hover {
    background-color: #f8f9fa;
}

.prochains-events .table tbody tr:last-child td {
    border-bottom: none;
}

/* Formulaires admin */
.admin-form-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
}

.admin-form-container h2 {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.admin-form-container form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Réduit de 0.875rem à 0.6rem (30% supplémentaire) */
}

.admin-form-container form .btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.admin-form-container .form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: -0.25rem;
}

/* Formulaires dans les sections admin */
.admin-section form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Réduit de 0.875rem à 0.6rem (30% supplémentaire) */
}

.admin-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Réduit de 0.35rem à 0.25rem (30% supplémentaire) */
}

/* Formulaire d'inscription événement */
.inscription-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: auto;
    padding: 1rem 1rem 2rem 1rem;
    padding-top: 1rem;
}

.inscription-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.inscription-box h2 {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.inscription-box form {
    margin-top: 1rem;
}

.inscription-status {
    margin-top: 1.5rem;
}

/* Responsive admin */
@media (max-width: 1024px) {
    .admin-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 0.75rem;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-dashboard {
        padding: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .prochains-events {
        padding: 0.75rem;
        overflow-x: auto;
    }
    
    .prochains-events .table {
        min-width: 600px;
    }
}

/* ============================================
   AFFICHAGE DU RÈGLEMENT
   ============================================ */

.reglement-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.reglement-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    line-height: 1.4;
    color: var(--color-dark);
    font-size: 1.05rem;
}

/* Titres dans le règlement */
.reglement-content h1,
.reglement-content h2,
.reglement-content h3,
.reglement-content h4,
.reglement-content h5,
.reglement-content h6,
.reglement-title {
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--color-primary);
    line-height: 1.2;
}

.reglement-content h1,
.reglement-content .reglement-title {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    border-bottom-width: 4px;
}

.reglement-content h2 {
    font-size: 1.35rem;
    margin-top: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.reglement-content h2::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.9rem;
    top: 0.1rem;
}

.reglement-content h3 {
    font-size: 1.2rem;
    margin-top: 0.875rem;
}

.reglement-content h4 {
    font-size: 1.1rem;
    margin-top: 0.75rem;
}

.reglement-content h5 {
    font-size: 1.05rem;
    margin-top: 0.625rem;
}

.reglement-content h6 {
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Listes à puces dans le règlement */
.reglement-content ul,
.reglement-content ol,
.reglement-list {
    margin: 0.75rem 0;
    padding-left: 0;
    list-style: none;
}

.reglement-content li,
.reglement-list-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.reglement-content ul li::before,
.reglement-list-item::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8rem;
    top: 0.2rem;
}

.reglement-content ol {
    counter-reset: item;
    list-style: none;
}

.reglement-content ol li {
    counter-increment: item;
    padding-left: 2.5rem;
}

.reglement-content ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Listes imbriquées */
.reglement-content ul ul,
.reglement-content ol ol,
.reglement-content ul ol,
.reglement-content ol ul {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    margin-left: 1.5rem;
}

.reglement-content ul ul li::before {
    content: '▸';
    color: var(--color-primary-dark);
}

/* Paragraphes */
.reglement-content p {
    margin: 0.5rem 0;
    text-align: justify;
    line-height: 1.4;
}

/* Mise en évidence du texte */
.reglement-content strong,
.reglement-content b {
    color: var(--color-dark);
    font-weight: 700;
}

.reglement-content em,
.reglement-content i {
    font-style: italic;
    color: #555;
}

/* Liste des règlements */
.reglements-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.reglements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reglement-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.reglement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.reglement-header {
    margin-bottom: 1rem;
}

.reglement-header h2 {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.reglement-version {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.reglement-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark-light);
    font-size: 0.9rem;
}

.reglement-author {
    font-weight: 600;
}

.reglement-date {
    font-style: italic;
}

.reglement-actions {
    margin-top: auto;
}

/* Responsive règlement */
@media (max-width: 768px) {
    .reglement-container {
        padding: 1rem;
    }
    
    .reglement-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .reglement-content h1,
    .reglement-content .reglement-title {
        font-size: 1.35rem;
    }
    
    .reglement-content h2 {
        font-size: 1.25rem;
    }
    
    .reglement-content h3 {
        font-size: 1.15rem;
    }

    .reglements-container {
        padding: 1rem;
    }

    .reglements-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   SYSTÈME DE TABLEAUX UNIFORME
   ============================================ */

/* Container pour tableaux avec filtres */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

/* Barre de recherche globale */
.table-search-bar {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-search-bar input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.table-search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(226, 4, 8, 0.1);
}

.table-search-bar .search-icon {
    color: #666;
    font-size: 1.2rem;
}

/* Styles uniformes pour tous les tableaux */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.8rem;
}

.table thead {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table th {
    padding: 0.25rem 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.table th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table th.sortable {
    padding-right: 1rem;
}

.table th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.6;
}

.table th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.table th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

/* Filtres par colonne */
.table-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.table-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.table-filter label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-filter select,
.table-filter input {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: var(--color-dark);
    font-family: inherit;
}

.table-filter select:focus,
.table-filter input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(226, 4, 8, 0.1);
}

.table-filter select:hover,
.table-filter input:hover {
    border-color: #b0b0b0;
}

/* Corps du tableau */
.table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table td {
    padding: 0.25rem 0.5rem;
    color: var(--color-dark);
    vertical-align: middle;
}

/* Badges dans les tableaux */
.table .badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-error {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-admin {
    background-color: var(--color-primary);
    color: white;
}

.badge-pilote {
    background-color: #0066cc;
    color: white;
}

/* Podium classes */
.podium-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.podium-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
}

.podium-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.05) 100%);
}

/* Message "Aucune donnée" */
.table-empty {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

/* Responsive tableaux */
@media (max-width: 768px) {
    .table-container {
        padding: 1rem;
    }
    
    .table-filters {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.375rem 0.25rem;
    }
    
    .table th {
        font-size: 0.8rem;
    }
}

/* Actualités Section */
.actualites-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.actualite-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.actualite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.actualite-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.actualite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.actualite-card:hover .actualite-image img {
    transform: scale(1.05);
}

.actualite-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actualite-categorie {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    background: rgba(226, 4, 8, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.actualite-rss-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0066cc;
    background: rgba(0, 102, 204, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.actualite-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.actualite-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.actualite-content h2 a:hover {
    color: var(--color-primary);
}

.actualite-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.actualite-date {
    color: #999;
    font-size: 0.85rem;
}

.actualite-auteur {
    color: #666;
    font-size: 0.85rem;
}

.actualite-extrait {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.actualite-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #000;
    font-style: italic;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-info {
    color: #000; /* Noir */
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .actualite-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   AGENDA / CALENDRIER
   ============================================ */

.agenda-container {
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.calendar-year-nav .current-year {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    padding: 0 0.75rem;
}

.calendar-year-nav .btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

/* Mois dans l'agenda */
.agenda-month {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    overflow: hidden;
}

.agenda-month-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 0.625rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agenda-month-title {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.agenda-month-name {
    text-transform: capitalize;
}

.agenda-month-year {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

.agenda-month-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Liste des événements du mois */
.agenda-events {
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Événement individuel */
.agenda-event {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.75rem;
    padding: 0.625rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

.agenda-event:hover {
    background: #f0f0f0;
    transform: translateX(2px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Date de l'événement */
.agenda-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white;
    border-radius: 5px;
    padding: 0.4rem 0.3rem;
    min-height: 55px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.agenda-event-day {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.1rem;
}

.agenda-event-weekday {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-dark-light);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 0.15rem;
}

.agenda-event-time {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

/* Contenu de l'événement */
.agenda-event-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.agenda-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agenda-event-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    flex: 1;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}


.agenda-event-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.agenda-event-location,
.agenda-event-type {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-dark-light);
    font-size: 0.75rem;
    margin: 0;
}

.agenda-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.agenda-event-description {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    padding-top: 0.3rem;
    border-top: 1px solid #e0e0e0;
}

.agenda-event-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.agenda-event-actions .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

.agenda-inscription-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    margin-left: 0.5rem;
}

.agenda-event-header .badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

/* Événements terminés - griser les parties rouges */
.agenda-event-termine {
    border-left-color: #999 !important;
    opacity: 0.85;
}

.agenda-event-termine .agenda-event-day {
    color: #999 !important;
}


/* Événements en cours - couleur verte */
.agenda-event-en-cours {
    border-left-color: var(--color-success) !important;
}

.agenda-event-en-cours .agenda-event-day {
    color: var(--color-success) !important;
}


/* Badges de statut pour l'agenda */
.badge-planifie {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-en_cours {
    background-color: #fff3cd;
    color: #856404;
}

.badge-termine {
    background-color: #d4edda;
    color: #155724;
}

.badge-annule {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive agenda */
@media (max-width: 768px) {
    .agenda-month {
        margin-bottom: 0.75rem;
    }
    
    .agenda-month-header {
        padding: 0.5rem 0.875rem;
    }
    
    .agenda-month-title {
        font-size: 1rem;
    }
    
    .agenda-month-year {
        font-size: 0.8rem;
    }
    
    .agenda-events {
        padding: 0.5rem;
        gap: 0.4rem;
    }
    
    .agenda-event {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .agenda-event-date {
        min-height: auto;
        padding: 0.4rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .agenda-event-day {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
    
    .agenda-event-weekday {
        margin-bottom: 0;
        font-size: 0.6rem;
    }
    
    .agenda-event-time {
        font-size: 0.65rem;
    }
    
    .agenda-event-title {
        font-size: 0.9rem;
    }
    
    
    .agenda-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .calendar-year-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .agenda-month-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.5rem 0.75rem;
    }
    
    .agenda-month-title {
        font-size: 0.95rem;
    }
    
    .agenda-month-year {
        font-size: 0.75rem;
    }
    
    .agenda-month-count {
        align-self: flex-start;
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .agenda-events {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .agenda-event {
        padding: 0.5rem;
    }
    
    .agenda-event-day {
        font-size: 1.15rem;
    }
    
    .agenda-event-title {
        font-size: 0.85rem;
    }
    
    
    .agenda-event-location,
    .agenda-event-type {
        font-size: 0.7rem;
    }
    
    .agenda-event-actions .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* ============================================
   PAGE DÉTAIL CIRCUIT
   ============================================ */

.circuit-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.circuit-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.circuit-detail-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.circuit-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.circuit-official {
    font-size: 1.1rem;
    color: var(--color-dark-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.circuit-specs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.circuit-spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
}

.circuit-spec-label {
    font-weight: 600;
    color: var(--color-dark);
    min-width: 120px;
}

.circuit-spec-value {
    color: var(--color-dark-light);
    font-size: 1rem;
}

.circuit-description {
    margin-top: 2rem;
}

.circuit-description h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.circuit-description p {
    color: var(--color-dark-light);
    line-height: 1.6;
    font-size: 1rem;
}

.circuit-detail-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.circuit-detail-image,
.circuit-detail-plan {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.circuit-detail-image h3,
.circuit-detail-plan h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.circuit-detail-image img,
.circuit-detail-plan img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.circuit-events {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.circuit-events h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
    flex-wrap: wrap;
}

.event-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.event-item p {
    color: var(--color-dark-light);
    margin: 0;
}

.event-item .btn {
    margin-left: auto;
}

/* Responsive circuit detail */
@media (max-width: 1024px) {
    .circuit-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .circuit-detail-images {
        order: -1;
    }
}

@media (max-width: 768px) {
    .circuit-detail-info,
    .circuit-detail-image,
    .circuit-detail-plan,
    .circuit-events {
        padding: 1.5rem;
    }
    
    .circuit-spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .circuit-spec-label {
        min-width: auto;
    }
    
    .event-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-item .btn {
        margin-left: 0;
        width: 100%;
    }
}