/**
 * ====================================================================
 * COMPONENTS COMPLÉMENTAIRES
 * ====================================================================
 */

/* ====================================================================
   LIGHTBOX GALERIE
   ==================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-2xl);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.lightbox-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* ====================================================================
   LOADER / SPINNER
   ==================================================================== */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

/* ====================================================================
   NOTIFICATIONS / TOAST
   ==================================================================== */
.notification {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 300px;
    transform: translateX(400px);
    transition: var(--transition);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #4caf50;
}

.notification.error {
    border-left: 4px solid var(--primary);
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: var(--transition);
}

.notification-close:hover {
    opacity: 1;
}

/* ====================================================================
   CARTES AUTRES DISCIPLINES
   ==================================================================== */
.autres-disciplines {
    background: var(--gray);
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.discipline-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.discipline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.discipline-card.jujitsu {
    border-top-color: #2196f3;
}

.discipline-card.aikido {
    border-top-color: #4caf50;
}

.discipline-card.taiso {
    border-top-color: #ff9800;
}

.discipline-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.discipline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.discipline-card p {
    color: var(--gray-dark);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.discipline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.discipline-link:hover {
    gap: 12px;
}

/* ====================================================================
   ÉQUIPE / PROFESSEURS
   ==================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md);
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.member-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.member-grade {
    background: var(--gold);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.member-bio {
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 0.85rem;
}

/* ====================================================================
   CONTACT & MAPS
   ==================================================================== */
.contact-section {
    background: var(--gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: var(--space-lg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-content h4 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.info-content p {
    color: var(--gray-dark);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ====================================================================
   FORMULAIRE
   ==================================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-md);
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-error {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--primary);
}

/* ====================================================================
   BADGES & LABELS
   ==================================================================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-gold {
    background: var(--gold);
    color: var(--dark);
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: #4caf50;
    color: white;
}

/* ====================================================================
   RESPONSIVE MOBILE
   ==================================================================== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        height: 300px;
    }

    .notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        min-width: auto;
        padding: 1rem 1.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .member-photo {
        width: 120px;
        height: 120px;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-content img {
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .form-textarea {
        min-height: 100px;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
        padding: 1.5rem;
    }

    .modal h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .notification {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}