/*
Theme Name: AECE
Author: Elinor Ifergan Bloch
Author URI: https://unikhorn.io
Description: Thème WordPress pour l'AECE
Version: 1.0
License: GPLv2 or later
Text Domain: ccfd2025
*/

/* AECE Custom Styles */

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Large display headings */
.hero-title, .display-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Navigation and UI elements */
.nav-text, .btn-text, .menu-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
}

/* Body text and descriptions */
.body-text, .description-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

/* Accent text and numbers */
.accent-text, .counter, .stats-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

nav {
    height: 80px;
    align-content: center;

    .logo-hd {
        max-height: 70px;
    }
}

main {
    padding-top: 80px;
}

/* =================================================================
   ÉVÉNEMENTS STYLES
   ================================================================= */

/* Event Header */
.event-header {
    background: linear-gradient(135deg, #a50a32 0%, #7a0726 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.event-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.event-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.event-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 2;
    font-weight: 400;
    margin-top: 10px;
}

/* Event Information Grid */
.event-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #a50a32;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(165,10,50,0.05) 0%, transparent 50%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(165,10,50,0.1);
    border-left-color: #7a0726;
}

.info-item:hover::before {
    transform: translateX(0);
}

.info-label {
    font-weight: 600;
    color: #a50a32;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.info-label::after {
    content: '✨';
    margin-left: 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Poster Section */
.poster-section {
    text-align: center;
    margin: 30px 0;
}

.poster-container {
    max-width: 400px;
    margin: 0 auto;
}

.event-poster {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.poster-placeholder {
    width: 300px;
    height: 400px;
    background: #e9ecef;
    border: 2px dashed #a50a32;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 10px;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Section Styles */
.section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    border-left: 4px solid #a50a32;
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(165,10,50,0.15);
}

.section-title {
    font-size: 2.2rem;
    color: #a50a32;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #a50a32;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    position: relative;
    text-align: center;
}

.section-title::before {
    content: '✨';
    margin-right: 15px;
    font-size: 1.3rem;
}

.section-title::after {
    content: '✨';
    margin-left: 15px;
    font-size: 1.3rem;
}

/* Competition Results */
.results-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.4rem;
    color: #a50a32;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-left: 4px solid #7a0726;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::before {
    content: '📊';
    font-size: 1.2rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #a50a32, transparent);
    border-radius: 2px;
}

.winners-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.winners-table th,
.winners-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.winners-table th {
    background: linear-gradient(135deg, #a50a32 0%, #7a0726 100%);
    color: white;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
}

.winners-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

.winners-table tr:hover {
    background: #f8f9fa;
}

.horse-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #a50a32;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(165,10,50,0.2);
}

.horse-photo:hover {
    transform: scale(1.1);
    border-color: #7a0726;
    box-shadow: 0 6px 15px rgba(165,10,50,0.3);
}

.photo-placeholder {
    width: 60px;
    height: 60px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.8rem;
    border: 2px solid #dee2e6;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(165,10,50,0.2);
}

.gallery-item::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(165,10,50,0.8);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Breeders List */
.breeders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.breeder-card {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #a50a32;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.breeder-card:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.breeder-name {
    font-weight: 600;
    color: #a50a32;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.breeder-name::after {
    content: '✨';
    margin-left: 8px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.document-card {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.document-card:hover {
    background: white;
    box-shadow: 0 12px 30px rgba(165,10,50,0.15);
    transform: translateY(-5px) scale(1.02);
    text-decoration: none;
    color: inherit;
    border-color: #a50a32;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(165,10,50,0.05) 0%, transparent 50%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.document-card:hover::before {
    transform: translateY(0);
}

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

.document-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.document-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.document-type {
    color: #a50a32;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.document-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.download-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #28a745;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.document-card:hover .download-icon {
    transform: translateY(-2px);
}

.document-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    font-size: 0.8rem;
    color: #6c757d;
}

.document-meta small {
    display: block;
    margin-bottom: 2px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-upcoming {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #8b6914;
    border: 2px solid #fdcb6e;
}

.status-ongoing {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: 2px solid #0984e3;
    animation: pulse-ongoing 2s infinite;
}

.status-completed {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    border: 2px solid #00a085;
}

.status-default {
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
    color: #555;
    border: 2px solid #bbb;
}

.status-icon {
    font-size: 1.1rem;
    animation: rotate 3s linear infinite;
}

@keyframes pulse-ongoing {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 0 rgba(116, 185, 255, 0.4); 
    }
    50% { 
        box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 8px rgba(116, 185, 255, 0); 
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-ongoing .status-icon {
    animation: rotate 2s linear infinite;
}

.status-upcoming .status-icon,
.status-completed .status-icon {
    animation: bounce 2s infinite;
}




/* Responsive Design */
@media (max-width: 1024px) {
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .status-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .event-title {
        font-size: 2rem;
    }
    
    .event-subtitle {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .winners-table {
        font-size: 0.9rem;
    }
    
    .winners-table th,
    .winners-table td {
        padding: 8px;
    }
    
    .horse-photo,
    .photo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        padding: 15px;
    }
    
    .breeders-list {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .section {
        padding: 25px;
    }
    
    .document-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .event-header {
        padding: 30px 0;
    }
    
    .event-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .poster-placeholder {
        width: 250px;
        height: 350px;
    }
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #a50a32 0%, #7a0726 100%);
}

/* Hero pattern overlay */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Navigation items */
.nav-item {
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #a50a32;
    transform: translateY(-2px);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    max-width: 100vw;
    overflow-x: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile fixes */
@media (max-width: 1024px) {
    nav {
        padding-left: 0;
        padding-right: 0;
    }
    
    nav .max-w-7xl {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    /* Ensure navigation doesn't overflow */
    nav {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        height: 80px;
    }
    
    /* Fix mobile menu positioning */
    .mobile-menu {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    /* Ensure main content takes full width */
    main {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
        padding-top: 80px;
        min-height: calc(100vh - 80px);
    }
    
    /* Hero section mobile fixes */
    .hero-bg {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - 80px) !important;
    }
    
    /* Prevent double scrollbars */
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    html {
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    /* Container fixes for mobile */
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Fix any potential scrollbar issues with sections */
    section {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
}


.hero-bg div.absolute.bottom-8 {
    z-index: 20 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Mobile viewport height fixes for small screens */
@media (max-height: 920px) and (max-width: 768px) {
    /* Compact hero section for small screens */
    .hero-bg {
        min-height: 100vh !important;
        padding: 1.5rem 0 !important;
    }
    
    /* Moderate logo size */
    .hero-bg img {
        width: 5rem !important;
        height: 5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Moderate title "AECE" */
    .hero-bg .hero-title {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.1 !important;
    }
    
    /* Moderate subtitle */
    .hero-bg .body-text {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    /* Hide description text on small screens */
    .hero-bg .description-text {
        display: none !important;
    }
    
    /* Moderate buttons */
    .hero-bg .btn-text,
    .hero-bg a {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Compact button container */
    .hero-bg .flex.flex-col {
        gap: 0.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Force show the arrow with more specific selectors */
    .hero-bg div.absolute.bottom-8 {
        display: block !important;
        visibility: visible !important;
        bottom: 1.5rem !important;
        opacity: 1 !important;
    }
    
    .hero-bg div.absolute.bottom-8 i {
        font-size: 1.5rem !important;
        display: inline-block !important;
        color: white !important;
    }
}

/* For screens below 768px width - bigger text */
@media (max-width: 768px) {
    .hero-bg {
        min-height: 100vh !important;
        padding: 2rem 0 !important;
    }
    
    /* Bigger logo for mobile */
    .hero-bg img {
        width: 6rem !important;
        height: 6rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Bigger title for mobile */
    .hero-bg .hero-title {
        font-size: 3.5rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.1 !important;
    }
    
    /* Bigger subtitle for mobile */
    .hero-bg .body-text {
        font-size: 1.25rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.4 !important;
    }
    
    /* Keep description hidden */
    .hero-bg .description-text {
        display: none !important;
    }
    
    /* Bigger buttons for mobile */
    .hero-bg .btn-text,
    .hero-bg a {
        padding: 1rem 1.75rem !important;
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Button container spacing */
    .hero-bg .flex.flex-col {
        gap: 0.75rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    /* Show arrow on mobile */
    .hero-bg div.absolute.bottom-8 {
        display: block !important;
        visibility: visible !important;
        bottom: 2rem !important;
        opacity: 1 !important;
    }
    
    .hero-bg div.absolute.bottom-8 i {
        font-size: 1.75rem !important;
        display: inline-block !important;
        color: white !important;
    }
}

/* Dropdown content */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.dropdown-content.active {
    max-height: 300px;
}

.events-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#btn-login, #btn-logout, #btn-member-area {
    line-height: 13px;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 12px;
}

/* Hero Section Background */
.hero-bg {
    background-image: url('img/intro.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: calc(100vh - 80px) !important;
}

/* Championship Section Background */
.championship-bg {
    background-image: url('img/beaucaire.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Footer Background */
.footer-bg {
    background-color: #a50a32 !important;
}

/* Custom overlay for better text readability */
.overlay-dark {
    background-color: rgba(0, 0, 0, 0.5);
}

.overlay-darker {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Glass effect for cards */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #a50a32 0%, #8a0b2c 50%, #7a0726 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.counter {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    min-width: 60px;
    letter-spacing: -0.01em;
}

/* Pulse animation for counter cards */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.stats-section .bg-white.bg-opacity-20 {
    transition: all 0.3s ease;
    animation: pulse 3s infinite;
}

.stats-section .bg-white.bg-opacity-20:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    animation: none;
}

/* Custom red theme colors - nouvelle palette plus douce */
:root {
    --primary-red: #a50a32;
    --dark-red: #7a0726;
    --footer-red: #a50a32;
    --accent-red: #dc2626; /* Rouge vif réservé pour les détails */
}

/* Classes utilitaires pour la couleur primaire AECE */
.text-aece-primary, .text-aece-primary-dark {
    color: #a50a32 !important;
}

.border-aece-primary {
    border-color: #a50a32 !important;
}

.bg-aece-primary {
    background-color: #a50a32 !important;
}

.bg-aece-primary-dark {
    background-color: #8a0829 !important;
}

.fill-aece-primary {
    fill: #a50a32 !important;
}

.hover\:text-aece-primary-dark:hover {
    color: #8a0829 !important;
}

.hover\:text-aece-primary:hover {
    color: #a50a32 !important;
}

/* Classes pour les dégradés avec couleur primaire AECE */
.from-aece-primary {
    --tw-gradient-from: #a50a32;
    --tw-gradient-from-position: 0%;
    --tw-gradient-to: #7a0726;
    --tw-gradient-to-position: 100%;
    --tw-gradient-stops: var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

/* Classes pour les rings avec couleur primaire AECE */
.ring-aece-primary {
    --tw-ring-offset-shadow: 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: 0 0 0 calc(2px + var(--tw-ring-offset-width)) rgba(165, 10, 50, 1);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

/* Event Stars Styles */
.event-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.event-stars .fas.fa-star {
    color: #fbbf24; /* Tailwind's yellow-400 */
    font-size: 0.875rem; /* 14px */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.event-stars .fas.fa-star:hover {
    color: #f59e0b; /* Tailwind's yellow-500 */
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-stars .fas.fa-star {
        font-size: 0.75rem; /* 12px on mobile */
    }
}

/* Special styling for single event page */
.text-4xl .event-stars .fas.fa-star,
.text-5xl .event-stars .fas.fa-star {
    font-size: 1.5rem; /* Larger stars for main titles */
}

@media (max-width: 768px) {
    .text-4xl .event-stars .fas.fa-star,
    .text-5xl .event-stars .fas.fa-star {
        font-size: 1.25rem; /* Slightly smaller on mobile */
    }
}

/* === CARTE DES ÉLEVEURS - MAP STYLES === */

/* Conteneur de la carte */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Cartes d'éleveurs */
.breeder-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.breeder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(165, 10, 50, 0.15);
}

/* Boutons de filtre événements */
.events-filter-btn {
    padding: 12px 24px;
    border-radius: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.events-filter-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.events-filter-btn.active {
    background: linear-gradient(135deg, #a50a32 0%, #7a0726 100%);
    color: white;
    border-color: #a50a32;
    box-shadow: 0 10px 25px rgba(165, 10, 50, 0.3);
}

.events-filter-btn.active:hover {
    background: linear-gradient(135deg, #7a0726 0%, #5a051e 100%);
    transform: translateY(-2px);
}

.events-filter-btn i {
    transition: transform 0.3s ease;
}

.events-filter-btn:hover i {
    transform: scale(1.1);
}

/* Ancien style de filtre général */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, #a50a32 0%, #7a0726 100%) !important;
    color: white !important;
}

/* Popup Leaflet */
.leaflet-popup-content {
    font-family: "Inter", sans-serif;
}

/* Champs de recherche */
.search-input {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #a50a32;
    box-shadow: 0 0 0 3px rgba(165, 10, 50, 0.1);
}

/* Marqueurs de carte avec logo personnalisé - styles forcés pour Leaflet */
.leaflet-marker-icon.custom-logo-icon,
.leaflet-div-icon.custom-logo-icon {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.custom-logo-marker {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 3px solid #a50a32 !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.custom-logo-marker:hover {
    transform: scale(1.1) !important;
    border-color: #7a0726 !important;
    box-shadow: 0 6px 20px rgba(165, 10, 50, 0.4) !important;
}

.logo-marker-img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* SVG du cheval avec couleur personnalisée */
.custom-logo-marker svg {
    fill: #a50a32 !important;
    width: 24px;
    height: 24px;
}

/* Force les styles pour les icônes Leaflet */
.leaflet-div-icon.custom-logo-icon {
    background: transparent !important;
    border: none !important;
}

.leaflet-div-icon .custom-logo-marker {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 3px solid #a50a32 !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
}

.leaflet-div-icon .custom-logo-marker:hover {
    transform: scale(1.1) !important;
    border-color: #7a0726 !important;
    box-shadow: 0 6px 20px rgba(165, 10, 50, 0.4) !important;
}

.leaflet-div-icon .logo-marker-img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}


.french-flag-overlay {
    position: absolute;
    top: 40px;
    z-index: 9;
    right: -50px;
    width: 230px;
    height: 40px;
    transform: rotate(225deg);
    display: flex;
    flex-direction: column;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.french-flag-overlay .stripe {
    flex: 1;
}

.french-flag-overlay .stripe.blue {
    background-color: #002395;
}

.french-flag-overlay .stripe.white {
    background-color: #ffffff;
}

.french-flag-overlay .stripe.red {
    background-color: #ed2939;
}

.img-event {
    width: 50%;
    top: 0px;
    right: 0px;
    height: 100%;
}

.img-event img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

.event-item-award {
    height: 250px;
}

/* Prix spéciaux français styles */
.french-special-section {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.french-header-banner {
    position: relative;
    background: linear-gradient(135deg, #002395 0%, #002395 33%, white 33%, white 66%, #ED2939 66%, #ED2939 100%);
    overflow: hidden;
}

.french-flag-stripes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    display: flex;
}

.french-flag-stripes .stripe-blue {
    flex: 1;
    background: #002395;
}

.french-flag-stripes .stripe-white {
    flex: 1;
    background: white;
}

.french-flag-stripes .stripe-red {
    flex: 1;
    background: #ED2939;
}

.french-title-container {
    background: rgba(0, 35, 149, 0.95);
    backdrop-filter: blur(10px);
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.french-prize-card {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
    linear-gradient(90deg, #002395 0%, white 50%, #ED2939 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.french-prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.french-ribbon {
    position: absolute;
    top: -2px;
    right: 20px;
    background: linear-gradient(135deg, #002395, #ED2939);
    color: white;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.tricolor-icon {
    width: 40px;
    height: 30px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tricolor-icon .icon-stripe {
    flex: 1;
}

.tricolor-icon .icon-stripe.blue {
    background: #002395;
}

.tricolor-icon .icon-stripe.white {
    background: white;
}

.tricolor-icon .icon-stripe.red {
    background: #ED2939;
}

.prize-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 250px;
    flex-wrap: nowrap;
}

.prize-content h3 {
    max-width: 180px;
}

/* === PAGES D'ÉLEVAGE - LIENS ET COULEURS === */

/* Force correct colors for elevage links in all breeder cards */
.breeder-card a {
    text-decoration: none !important;
}

.breeder-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.breeder-card h3 a:hover {
    color: #a50a32 !important; /* aece-primary */
}

/* Force correct colors for elevage links in popup content */
.leaflet-popup-content a {
    text-decoration: none !important;
}

.leaflet-popup-content a.text-white {
    color: white !important;
}

.leaflet-popup-content h3 a {
    color: inherit !important;
    text-decoration: none !important;
}