/* Disciplines Page Styles */

.disciplines-page {
    background: #f9f9f9;
}

/* Hero Section */
.disciplines-hero {
    background: linear-gradient(135deg, #d70f20 0%, #005b85 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.disciplines-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.disciplines-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.disciplines-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.disciplines-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Discipline Sections */
.discipline-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gaf-section {
    background: white;
}

.gam-section {
    background: #f9f9f9;
}

.discipline-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.discipline-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.discipline-icon {
    font-size: 3rem;
    filter: grayscale(0.2);
}

.discipline-header::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d70f20, transparent);
    position: absolute;
    bottom: -20px;
    left: 0;
    border-radius: 2px;
}

.discipline-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

.discipline-intro p {
    margin-bottom: 15px;
}

/* Agres Grid */
.agres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* GAF: 2 colonnes centrées */
.gaf-section .agres-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 50px auto 0;
}

.agres-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gam-section .agres-card {
    background: white;
}

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

.agres-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.agres-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.agres-card:hover .agres-image img {
    transform: scale(1.1);
}

.agres-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.agres-card:hover .agres-overlay {
    opacity: 1;
}

.agres-name {
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    background: white;
    position: relative;
}

.agres-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d70f20, #005b85);
    border-radius: 2px;
}

/* GAF specific styling */
.gaf-section .agres-card:hover {
    border: 2px solid rgba(215, 15, 32, 0.3);
}

.gaf-section .agres-name {
    color: #d70f20;
}

/* GAM specific styling */
.gam-section .agres-card:hover {
    border: 2px solid rgba(0, 91, 133, 0.3);
}

.gam-section .agres-name {
    color: #005b85;
}

.gam-section .agres-name::before {
    background: linear-gradient(90deg, #005b85, #d70f20);
}

/* Responsive */
@media (max-width: 768px) {
    .disciplines-hero h1 {
        font-size: 2rem;
    }
    
    .disciplines-subtitle {
        font-size: 1.1rem;
    }
    
    .discipline-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .discipline-header h2 {
        font-size: 1.8rem;
    }
    
    .discipline-icon {
        font-size: 2.5rem;
    }
    
    .agres-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .gaf-section .agres-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .agres-image {
        height: 220px;
    }
    
    .agres-name {
        font-size: 1.1rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .agres-grid {
        grid-template-columns: 1fr;
    }
}
