/* ============================================
   DISCIPLINE.CSS - Page disciplines
   ============================================ */

.disciplines-container {
    flex: 1;
    padding: 3rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.disciplines-header {
    text-align: center;
    margin-bottom: 3rem;
}

.disciplines-header h1 {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.disciplines-header h1 i {
    color: var(--color-primary);
    margin-right: 0.75rem;
}

.disciplines-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Grille des disciplines */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Carte discipline */
.discipline-card {
    background-color: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discipline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image de la carte */
.card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.discipline-card:hover .card-image img {
    transform: scale(1.1);
}

/* Overlay avec bouton play */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discipline-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: #e0a800;
    transform: scale(1.1);
}

/* Contenu de la carte */
.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--color-black);
    margin-bottom: 0.75rem;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content .btn {
    width: 100%;
}

.card-content .btn i {
    margin-right: 0.5rem;
}

/* Modales vidéos */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-dialog {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #e0a800 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    margin: 0;
    font-size: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-close::before {
    content: "×";
}

.modal-body {
    padding: 0;
}

.ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .disciplines-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .disciplines-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .disciplines-container {
        padding: 2rem 1rem;
    }
    
    .disciplines-header {
        margin-bottom: 2rem;
    }
    
    .disciplines-header h1 {
        font-size: 1.75rem;
    }
    
    .disciplines-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 200px;
    }
    
    .modal-dialog {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .disciplines-header h1 {
        font-size: 1.5rem;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}