:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-red: #e63946;
    --color-red-dark: #c1121f;
    --color-gray-dark: #1a1a1a;
    --color-gray: #2d2d2d;
    --color-gray-light: #4a4a4a;
    --color-gray-lighter: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animation pour les mises à jour de stats */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--color-red);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #ffffff 50%, #f5f5f5 75%, #ffffff 100%);
    background-size: 200% 200%;
    background-attachment: fixed;
    animation: gradientShift 20s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(193, 18, 31, 0.025) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Assurer que le contenu est au-dessus du background */
body > * {
    position: relative;
    z-index: 1;
}

* {
    box-sizing: border-box;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.main-nav.nav-scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-black);
    text-decoration: none;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 12px !important;
    display: block;
}

.nav-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-red);
}

.nav-link.instagram-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-red);
    font-weight: 600;
}

.nav-link.instagram-nav:hover {
    color: var(--color-red-dark);
}

/* Menu Admin */
.admin-menu {
    position: relative;
}

.admin-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: white !important;
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35), 0 0 0 0 rgba(230, 57, 70, 0);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.admin-btn:hover::before {
    width: 300px;
    height: 300px;
}

.admin-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.admin-btn:hover::after {
    left: 100%;
}

.admin-btn:hover {
    background: linear-gradient(135deg, var(--color-red-dark) 0%, var(--color-red) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.5), 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.admin-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
    transition: all 0.1s ease;
}

.admin-btn svg:first-child {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-btn:hover svg:first-child {
    transform: scale(1.1) rotate(5deg);
}

.admin-btn svg:last-child {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.3rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.admin-btn:hover svg:last-child {
    transform: rotate(180deg) scale(1.1);
}

.admin-btn span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-btn svg:first-child,
.admin-login-btn svg {
    flex-shrink: 0;
}

.admin-login-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: white !important;
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35), 0 0 0 0 rgba(230, 57, 70, 0);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.admin-login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.admin-login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.admin-login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.admin-login-btn:hover::after {
    left: 100%;
}

.admin-login-btn:hover {
    background: linear-gradient(135deg, var(--color-red-dark) 0%, var(--color-red) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.5), 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.admin-login-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
    transition: all 0.1s ease;
}

.admin-login-btn svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-login-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.admin-login-btn span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-login-btn:hover::before {
    left: 100%;
}

.admin-login-btn:hover {
    background: linear-gradient(135deg, var(--color-red-dark) 0%, var(--color-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.admin-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.admin-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-color);
    min-width: 280px;
    z-index: 1001;
    overflow: hidden;
    animation: slideDownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

.admin-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: var(--color-white);
    transform: rotate(45deg);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.3);
}

.admin-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.admin-dropdown a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.admin-dropdown a:hover::after {
    width: 5px;
}

.admin-dropdown a svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    opacity: 0.75;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.admin-dropdown a:hover svg {
    opacity: 1;
    transform: scale(1.15) translateX(2px);
    filter: drop-shadow(0 2px 4px rgba(230, 57, 70, 0.3));
}

.admin-dropdown a span {
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
}

.admin-dropdown a:first-child {
    padding-top: 1.4rem;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.admin-dropdown a:last-child {
    border-bottom: none;
    padding-bottom: 1.4rem;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.admin-dropdown a:hover {
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0.05) 50%, transparent 100%);
    color: var(--color-red);
    padding-left: 1.6rem;
    transform: translateX(2px);
}

.admin-dropdown a:active {
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.08) 50%, transparent 100%);
    transform: translateX(1px) scale(0.98);
}

/* Badge pour les éléments importants */
.admin-dropdown a[href*="scanner"] {
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.05) 0%, transparent 100%);
}

.admin-dropdown a[href*="scanner"]:hover {
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.12) 0%, rgba(230, 57, 70, 0.05) 50%, transparent 100%);
}

/* Raccourcis clavier */
.menu-shortcut {
    margin-left: auto;
    background: rgba(230, 57, 70, 0.1);
    color: var(--color-red);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    min-width: 24px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.admin-dropdown a:hover .menu-shortcut {
    background: var(--color-red);
    color: white;
    border-color: var(--color-red);
    transform: scale(1.1);
}

/* Divider */
.admin-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 0.5rem 1rem;
}

/* Style spécial pour déconnexion */
.admin-menu-logout {
    color: #dc3545 !important;
}

.admin-menu-logout:hover {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 50%, transparent 100%) !important;
    color: #c82333 !important;
}

.admin-menu-logout::after {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%) !important;
}

.admin-menu-logout svg {
    color: #dc3545;
}

.admin-menu-logout:hover svg {
    transform: scale(1.15) translateX(2px) rotate(-5deg);
    filter: drop-shadow(0 2px 4px rgba(220, 53, 69, 0.3));
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .admin-btn,
    .admin-login-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
        border-radius: 12px;
    }
    
    .admin-btn span,
    .admin-login-btn span {
        display: none;
    }
    
    .admin-dropdown {
        position: fixed;
        top: 70px;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        min-width: auto;
        max-width: none;
        transform: none;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        animation: slideUpFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .admin-dropdown::before {
        display: none;
    }
    
    .admin-dropdown a {
        padding: 1.3rem 1.4rem;
        font-size: 1rem;
        gap: 1rem;
    }
    
    .admin-dropdown a:hover {
        padding-left: 1.6rem;
        transform: translateX(0);
    }
    
    .admin-dropdown a svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .admin-btn,
    .admin-login-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .admin-btn svg,
    .admin-login-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .admin-dropdown {
        top: 60px;
        left: 0.5rem;
        right: 0.5rem;
        border-radius: 12px;
        max-height: calc(100vh - 80px);
    }
    
    .admin-dropdown a {
        padding: 1.1rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Page de connexion mobile */
    .container {
        padding: 1rem 0.75rem;
    }
    
    .container header {
        margin-bottom: 2rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .group-name {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .container .registration-form {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .container .registration-form h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gray-dark) 0%, var(--color-black) 100%);
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 57, 70, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero-logo-container {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
    border-radius: 20px;
    overflow: hidden;
    display: inline-block;
}

.hero-logo {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 20px !important;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-title-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-red);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.cta-button.primary {
    background: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.cta-button.primary:hover {
    background: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.cta-button.secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--color-red);
    color: var(--color-white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0%, rgba(245, 245, 245, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.about-content {
    display: grid;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.about-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-intro strong {
    color: var(--color-red);
    font-weight: 700;
    font-size: 1.3rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-red);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Rallies Section */
.rallies-section {
    padding: 8rem 0;
    background: var(--color-white);
}

.rallies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.rally-card-large {
    display: block;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.rally-card-large:hover:not(.already-registered) {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-red);
}

.rally-card-large.already-registered {
    opacity: 0.7;
    cursor: not-allowed;
    border-color: #28a745;
}

.rally-card-large.already-registered:hover {
    transform: none;
}

.already-registered-badge {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.already-registered-badge span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rally-checkbox {
    display: none;
}

.rally-checkbox:checked + .rally-image-container .rally-overlay {
    opacity: 1;
}

.rally-checkbox:checked + .rally-image-container .rally-checkmark-large {
    opacity: 1;
    transform: scale(1);
}

.rally-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--color-gray-lighter);
}

.rally-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rally-card-large:hover .rally-image {
    transform: scale(1.05);
}

.rally-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(230, 57, 70, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rally-checkmark-large {
    width: 64px;
    height: 64px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.rally-card-content-large {
    padding: 1.5rem;
}

.rally-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.rally-info-large {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rally-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rally-info-item svg {
    flex-shrink: 0;
    color: var(--color-red);
    margin-top: 2px;
    margin-right: 0.75rem;
}

.rally-date-short {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.rally-time {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rally-description-large {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-red-dark));
    border-radius: 2px;
}

.form-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Registration Section */
.registration-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-red), var(--color-red-dark), var(--color-red));
}

.registration-form-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.registration-form {
    background: var(--color-white);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.registration-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-red), #ff6b6b, var(--color-red));
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--color-red);
    border-radius: 2px;
    opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s ease;
    background: #fafafa;
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #ccc;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.08), 0 4px 12px rgba(230, 57, 70, 0.1);
}

.form-hint {
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.25rem;
    padding-left: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-hint::before {
    content: '💡';
    font-size: 0.75rem;
}

.passengers-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.passenger-field {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.passenger-select {
    width: 100%;
}

.plate-input {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.1rem !important;
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%) !important;
    border: 2px dashed #ccc !important;
}

.plate-input:focus {
    border-style: solid !important;
    background: #fff !important;
}

.checkbox-group {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    border-radius: 14px;
    border: 1px solid #e8e8e8;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.6;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--color-red);
    flex-shrink: 0;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-red) 0%, #c1121f 50%, var(--color-red-dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: var(--color-white);
    border: none;
    padding: 1.35rem 2rem;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.35), 0 4px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(230, 57, 70, 0.45), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

/* Success Message */
.success-message {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--success-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.success-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.success-close-btn:hover {
    background: #f0f0f0;
    color: var(--text-primary);
    transform: rotate(90deg);
}

.success-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.success-content h3 {
    color: var(--success-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.success-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.success-note {
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

/* Footer */
.main-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 1rem 0 0.5rem;
}

.footer-logo {
    width: 80px;
    height: auto;
    object-fit: cover;
    border-radius: 16px !important;
    display: block;
}

/* Page de connexion (login.html) */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--color-gray-dark) 0%, var(--color-black) 100%);
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 500px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 16px !important;
    display: block;
    object-fit: cover;
}

.group-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.container main {
    width: 100%;
    max-width: 500px;
}

.container .registration-form {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.container .form-group {
    margin-bottom: 1.5rem;
}

.container .form-group input {
    width: 100%;
    box-sizing: border-box;
}

.container .submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Logo général (pour login.html et autres) */
.logo {
    border-radius: 16px !important;
    display: block;
    object-fit: cover;
}

.logo-container {
    border-radius: 16px;
    overflow: hidden;
    display: inline-block;
}

.logo-container img,
.hero-logo-container img {
    border-radius: 16px !important;
    display: block;
    object-fit: cover;
}

/* Tous les logos avec bgroupe76.png */
img[src="bgroupe76.png"],
img[src*="bgroupe76.png"] {
    border-radius: 16px !important;
    display: block;
    object-fit: cover;
}

/* Logo dans la navigation */
.nav-logo img {
    border-radius: 12px !important;
    display: block;
}

/* Logo dans le footer */
.footer-brand img {
    border-radius: 16px !important;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-red);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-red-dark);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Sélecteur de type de participant */
.participant-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.type-option {
    cursor: pointer;
    display: block;
}

.type-option input[type="radio"] {
    display: none;
}

.type-card {
    padding: 1.75rem 1.5rem;
    border: 3px solid #e8e8e8;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    transition: all 0.3s ease;
}

.type-card::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all 0.3s ease;
}

.type-card.type-exposant::before {
    background: linear-gradient(90deg, var(--color-red), #ff6b6b);
}

.type-card.type-visiteur::before {
    background: linear-gradient(90deg, #4a90e2, #6ba3eb);
}

.type-option input[type="radio"]:checked + .type-card {
    transform: translateY(-4px) scale(1.02);
}

.type-option input[type="radio"]:checked + .type-card::after {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

.type-option input[type="radio"]:checked + .type-card.type-exposant {
    border-color: var(--color-red);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(230, 57, 70, 0.03) 100%);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.25), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.type-option input[type="radio"]:checked + .type-card.type-visiteur {
    border-color: #4a90e2;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.03) 100%);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.25), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.type-option input[type="radio"]:checked + .type-card.type-visiteur::after {
    background: #4a90e2;
    border-color: #4a90e2;
}

.type-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
    filter: grayscale(0.2);
}

.type-option input[type="radio"]:checked + .type-card .type-icon {
    transform: scale(1.15);
    filter: grayscale(0);
}

.type-label {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.type-option input[type="radio"]:checked + .type-card.type-exposant .type-label {
    color: var(--color-red);
}

.type-option input[type="radio"]:checked + .type-card.type-visiteur .type-label {
    color: #4a90e2;
}

.type-description {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.4;
}

.type-option:hover .type-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

/* Partners Section */
.partners-section {
    padding: 8rem 0;
    background: var(--color-white);
    position: relative;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.partner-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-red);
    box-shadow: var(--shadow-xl);
}

.partner-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
}

.partner-card:hover .partner-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.4);
}

.partner-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.partner-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    padding: 1rem 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.4);
    position: relative;
    overflow: hidden;
}

.partner-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.partner-link:hover::before {
    left: 100%;
}

.partner-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(188, 24, 136, 0.6);
}

.partner-link:active {
    transform: translateY(-1px) scale(1.02);
}

.partner-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.partner-link:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.partner-link span {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Logo Placeholder */
.logo-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 900;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.nav-logo .logo-placeholder {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.footer-logo + .logo-placeholder {
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-title-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .nav-link:not(.admin-btn):not(.admin-login-btn):not(.instagram-nav) {
        display: none;
    }
    
    .instagram-nav span {
        display: none;
    }
    
    .nav-logo-text {
        font-size: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .main-nav {
        padding: 0.75rem 0;
    }
    
    .hero-section {
        padding: 6rem 1.5rem 3rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .registration-form-container {
        padding: 0 1rem;
    }
    
    .registration-form {
        padding: 2rem 1.5rem;
    }
    
    /* Page de connexion tablette */
    .container {
        padding: 1.5rem 1rem;
    }
    
    .container .registration-form {
        padding: 2.5rem 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .registration-form {
        padding: 2rem 1.5rem;
    }
    
    .about-section {
        padding: 4rem 0;
    }
    
    .about-text {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 1rem;
    }
    
    .about-intro {
        font-size: 1.1rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .rallies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rally-image-container {
        height: 200px;
    }
    
    .rally-name-large {
        font-size: 1.25rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-logo-text {
        display: none;
    }
    
    .nav-logo-img {
        width: 32px;
        height: 32px;
    }
    
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .nav-link:not(.admin-btn):not(.admin-login-btn):not(.instagram-nav) {
        display: none;
    }
    
    .instagram-nav span {
        display: none;
    }
    
    .instagram-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .main-nav {
        padding: 0.75rem 0;
    }
    
    .hero-section {
        padding: 6rem 1rem 3rem;
    }
    
    .section-container {
        padding: 0 0.75rem;
    }
    
    .registration-form-container {
        padding: 0 0.75rem;
    }
    
    .registration-form {
        padding: 2rem 1.25rem;
    }
        display: none;
    }
    
    .hero-section {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .hero-title-main {
        font-size: 2rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .rallies-section {
        padding: 4rem 0;
    }
    
    .partners-section {
        padding: 4rem 0;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .partner-card {
        padding: 2rem 1.5rem;
    }
    
    .partner-icon {
        width: 80px;
        height: 80px;
    }
    
    .about-section {
        padding: 2.5rem 0;
    }
    
    .about-section::before {
        height: 100px;
    }
    
    .about-text {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        margin: 0 0.5rem;
        box-shadow: var(--shadow-md);
    }
    
    .about-intro {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .about-intro strong {
        font-size: 1.1rem;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .about-features {
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        box-shadow: var(--shadow);
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
        border-radius: 14px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .rallies-grid {
        gap: 1rem;
    }
    
    .rally-image-container {
        height: 180px;
    }
    
    .partners-section {
        padding: 3rem 0;
    }
    
    .partners-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .partner-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .partner-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
        border-radius: 16px;
    }
    
    .partner-card h3 {
        font-size: 1.25rem;
    }
    
    .partner-card p {
        font-size: 0.95rem;
    }
    
    .partner-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .partner-link svg {
        width: 20px;
        height: 20px;
    }
    
    .rally-card-content-large {
        padding: 1.25rem;
    }
    
    .registration-form-container {
        margin-top: 2rem;
    }
    
    .registration-form {
        padding: 1.5rem 1rem;
    }
}

/* Admin Page Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.admin-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(230, 57, 70, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-dark) 100%);
}

.admin-header h1 {
    color: var(--color-black);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-header h1::before {
    content: '🚗';
    font-size: 1.75rem;
}

.admin-header p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(230, 57, 70, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-dark) 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.15);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.participants-table {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.table-header {
    background: var(--color-black);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    font-size: 1.5rem;
}

.export-btn {
    background: var(--color-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: var(--color-red-dark);
    transform: translateY(-2px);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--color-gray-lighter);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: var(--color-gray-lighter);
}

tbody tr:last-child td {
    border-bottom: none;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Error Container */
.error-container {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--error-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.error-container.hidden {
    display: none;
}

.error-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--error-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.error-content h4 {
    color: var(--error-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.error-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-content li {
    color: var(--text-primary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.error-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Field Errors */
.field-error {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-height: 0;
}

.field-error.show {
    opacity: 1;
    transform: translateY(0);
    min-height: 1.5rem;
}

.field-error::before {
    content: '⚠';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--error-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--error-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.error-message svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .admin-container {
        padding: 1rem 0.75rem;
    }
    
    .admin-header {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.4rem;
    }
    
    .admin-header > div {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-header > div > a,
    .admin-header > div > button {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .participants-table {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        margin-bottom: 1rem;
    }
    
    .stats-container h2 {
        font-size: 1.2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .registration-form {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 0.75rem 0.5rem;
    }
    
    .admin-header {
        padding: 1rem 0.75rem;
    }
    
    .admin-header h1 {
        font-size: 1.2rem;
    }
    
    .admin-header p {
        font-size: 0.9rem;
    }
    
    .stats-container h2 {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}
