/* ==========================================================================
   RUNNING BOUST - STYLES CSS
   ========================================================================== */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   HEADER STANDARD (pour pages autres que home)
   ========================================================================== */

header {
    background: #2b4087;
    color: white;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Oswald', 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #ccc;
}

/* ==========================================================================
   HEADER OVERLAY (pour page home)
   ========================================================================== */

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 2rem;
}

.header-overlay-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-overlay .logo {
    width: 170px;
    height: 170px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 4px solid white;
    overflow: hidden;
    font-size: 12px;
    text-align: center;
    color: #333;
}

.header-overlay .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    transform: scale(1.1);
    background: rgba(59, 89, 152, 0.8);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

main {
    min-height: 60vh;
    padding: 3rem 0;
}

/* ==========================================================================
   HERO SECTION (page home)
   ========================================================================== */

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Oswald', 'Manrope', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2b4087;
    font-family: 'Oswald', 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.events {
    background: #f8f9fa;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.event-item:hover {
    transform: translateY(-5px);
}

.event-item.clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-image {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s;
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.event-info h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.event-overlay .event-date {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-overlay .event-description {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
}

.event-cta {
    text-align: center;
}

.event-item:hover .event-overlay {
    opacity: 1;
}

.event-item:hover .event-image {
    filter: grayscale(0.3) brightness(0.7);
}

.event-button {
    background: white;
    color: #2b4087;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.event-button:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.event-button.primary {
    background: #2b4087;
    color: white;
    border: 2px solid white;
}

.event-button.primary:hover {
    background: #1e3a6b;
}

/* Pastille de date sur les événements */
.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 2;
    border: 2px solid #2b4087;
}

.date-day {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2b4087;
    line-height: 1;
    font-family: 'Oswald', sans-serif;
}

.date-month {
    font-size: 0.75rem;
    color: #2b4087;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 2px 0;
}

.date-year {
    font-size: 0.7rem;
    color: #666;
    line-height: 1;
}

/* ==========================================================================
   PAGE ÉVÉNEMENT
   ========================================================================== */

.event-detail {
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #2b4087;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.event-header {
    margin-bottom: 3rem;
    background: none;
}

.event-header-content {
    background: none;
}

.event-image-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.event-main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.event-title {
    font-family: 'Oswald', 'Manrope', sans-serif;
    font-size: 2.5rem;
    color: #2b4087;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: none;
}

.event-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.event-dates i {
    color: #2b4087;
}

.event-summary {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
}

.event-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.event-main-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.event-description p {
    margin-bottom: 1.5rem;
}

.event-description h1,
.event-description h2,
.event-description h3,
.event-description h4,
.event-description h5,
.event-description h6 {
    color: #2b4087;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.event-description h1:first-child,
.event-description h2:first-child,
.event-description h3:first-child,
.event-description h4:first-child,
.event-description h5:first-child,
.event-description h6:first-child {
    margin-top: 0;
}

.event-description ul,
.event-description ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style-position: inside;
}

.event-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-actions,
.event-contact,
.event-navigation {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.event-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ff6b35;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.event-cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.event-past-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #6c757d;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    text-align: center;
}

.event-contact h3 {
    color: #2b4087;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: background 0.3s;
}

.contact-link:hover {
    background: #e9ecef;
    color: #2b4087;
}

.back-to-events {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2b4087;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-to-events:hover {
    color: #1e3a6b;
}

/* Responsive pour page événement */
@media (max-width: 768px) {
    .event-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-title {
        font-size: 2rem;
    }

    .event-main-image {
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .event-main-content,
    .event-actions,
    .event-contact,
    .event-navigation {
        padding: 1rem;
        margin: 0 -1rem;
        border-radius: 0;
    }

    .event-header {
        margin-bottom: 2rem;
    }

    .event-image-container {
        margin-left: -1rem;
        margin-right: -1rem;
    }
}

/* ==========================================================================
   PRÉSENTATION
   ========================================================================== */

.presentation {
    text-align: center;
}

.presentation p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #555;
}

.presentation .cta-container {
    margin-top: 2rem;
    text-align: center;
}

/* ==========================================================================
   GALERIE
   ========================================================================== */

.gallery {
    background: #f8f9fa;
}

.gallery-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-description p {
    margin-bottom: 0.5rem;
    color: #555;
}

.no-gallery,
.no-photos {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

/* Mosaïque de photos */
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 1rem;
    margin: 2rem 0;
}

.mosaic-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ddd;
}

.mosaic-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.mosaic-item:hover img {
    filter: brightness(0.8);
}

.mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-overlay i {
    color: white;
    font-size: 2rem;
}

/* Tailles variables pour effet mosaïque */
.mosaic-item[data-size="0"] {
    grid-row: span 1;
}

.mosaic-item[data-size="1"] {
    grid-row: span 2;
}

.mosaic-item[data-size="2"] {
    grid-row: span 1;
    grid-column: span 1;
}

.mosaic-item[data-size="3"] {
    grid-row: span 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-caption {
    display: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0,0,0,0.9);
}

/* Legacy styles pour compatibilité */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.photo-item {
    height: 200px;
    background: #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    position: relative;
    overflow: hidden;
}

.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #2b4087, #3f5ba9);
    opacity: 0.1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
    background: #2b4087;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.cta-button {
    background: #ff6b35;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    margin: 1rem auto;
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* ==========================================================================
   SPONSORS
   ========================================================================== */

.sponsors {
    background: #f8f9fa;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.sponsor-logo {
    height: 80px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    border: 2px solid #eee;
    transition: transform 0.3s;
    text-align: center;
    padding: 1rem;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    transform: scale(1.1);
    background: rgba(59, 89, 152, 0.8);
}

/* ==========================================================================
   FORMULAIRE D'ADHÉSION
   ========================================================================== */

.membership-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.membership-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

.membership-info {
    margin-bottom: 3rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.info-card h3 {
    color: #2b4087;
    font-family: 'Oswald', 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-info {
    font-size: 1.3rem;
    color: #2b4087;
    margin-bottom: 1.5rem;
}

.payment-info {
    margin-bottom: 1.5rem;
    color: #555;
}

.iban-info {
    background: #f1f3f4;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.iban-info code {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #333;
    letter-spacing: 1px;
}

.membership-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.membership-form-container h3 {
    color: #2b4087;
    font-family: 'Oswald', 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.membership-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2b4087;
    box-shadow: 0 0 0 3px rgba(43, 64, 135, 0.1);
}

.form-group input:user-invalid,
.form-group textarea:user-invalid {
    border-color: #dc3545;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark {
    background: #2b4087;
    border-color: #2b4087;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-text {
    color: #555;
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.submit-button {
    background: #ff6b35;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    font-family: 'Manrope', sans-serif;
}

.submit-button:hover:not(:disabled) {
    background: #e55a2b;
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* reCAPTCHA styles */
.recaptcha-group {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.g-recaptcha {
    transform: scale(1);
    transform-origin: 0 0;
}

/* Responsive reCAPTCHA */
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
        width: 308px;
        margin: 0 auto;
    }
    
    .recaptcha-group {
        overflow: hidden;
        width: 302px;
        margin: 1.5rem auto;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    /* Réduire le padding du container global sur mobile */
    .container {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .header-overlay {
        padding: 1rem;
    }

    .header-overlay-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-overlay .logo {
        width: 140px;
        height: 140px;
        font-size: 10px;
    }

    .header-overlay .social-links {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin-top: 0;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        padding-top: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    /* Événements - supprimer le fond gris, garder padding latéral */
    .events {
        background: transparent;
    }

    .events .container {
        padding: 0 1rem;
    }

    .events-container {
        gap: 1.5rem;
    }

    .event-overlay {
        gap: 1rem;
    }

    .event-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    /* Formulaire d'adhésion responsive - supprimer double margins et fond gris */
    .membership-section {
        background: transparent;
    }

    .membership-section .container {
        padding: 0 1rem;
    }

    .membership-form-container {
        padding: 1.5rem;
        margin: 0;
        border-radius: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        margin: 0;
        padding: 1.5rem;
        border-radius: 0;
    }

    .submit-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }

    /* Galerie responsive */
    .gallery .container {
        padding: 0 1rem;
    }

    .photo-mosaic {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-auto-rows: 150px;
        gap: 0.5rem;
    }

    .gallery-description {
        margin: 0 1rem 2rem;
        padding: 1rem;
    }

    .mosaic-item[data-size="1"] {
        grid-row: span 1;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-nav {
        padding: 0 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px 15px;
    }


    /* Page événement - supprimer margins latérales */
    .event-detail .container {
        padding: 0 1rem;
    }

    .event-main-content,
    .event-actions,
    .event-contact,
    .event-navigation {
        border-radius: 0;
    }
}
