/* ===========================================
   SECTION DROIT - STYLES SPÉCIFIQUES
   (mêmes classes/structure que Agronomie pour cohérence)
   =========================================== */

/* Hero Section Droit */
.hero-droit {
    background: linear-gradient(135deg, rgba(241, 222, 222, 0.85) 0%, rgba(40, 40, 40, 0.85) 100%),
                url('./PHOTO\ STAGE\ BAC2\ 1\ UTM\ INFO/droit30.jpeg') center/cover;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: scroll;
}

.hero-droit-content {
    max-width: 900px;
    animation: fadeInDown 0.8s ease;
}

.hero-droit-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-droit-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Section Présentation Droit */
.droit-presentation {
    padding: 4rem 0;
    background-color: #f8f9fa;
    border-bottom: 3px solid #ffc107;
}

.droit-presentation h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #003d7a;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Section Filières */
.filieres {
    padding: 5rem 0;
    background-color: white;
}

.filieres h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #003d7a;
    margin-bottom: 4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.filieres h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #0056b3);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.filieres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.filiere-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.filiere-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #0056b3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.filiere-card:hover {
    border-color: #ffc107;
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.15);
}

.filiere-card:hover::before {
    transform: scaleX(1);
}

.filiere-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.filiere-card h3 {
    font-size: 1.6rem;
    color: #003d7a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.filiere-card .description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.filiere-details {
    display: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 61, 122, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.filiere-details.active {
    display: block;
    animation: slideDown 0.4s ease;
}

.filiere-details h4 {
    color: #003d7a;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.filiere-details ul {
    list-style: none;
    padding: 0;
}

.filiere-details li {
    color: #555;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.filiere-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}

.btn-details {
    background: linear-gradient(135deg, #003d7a, #0056b3);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 61, 122, 0.3);
    background: linear-gradient(135deg, #0056b3, #003d7a);
}

/* Section Débouchés */
.debouches {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.02) 0%, rgba(0, 86, 179, 0.02) 100%);
}

.debouches h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #003d7a;
    margin-bottom: 4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.debouches h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #0056b3);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.debouches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.debouche-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 5px solid #ffc107;
}

.debouche-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.debouche-item h3 {
    color: #003d7a;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.debouche-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Section Admission */
.admission {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.admission h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #003d7a;
    margin-bottom: 3rem;
    font-weight: 700;
}

.admission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.admission-box {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #0056b3;
    transition: all 0.3s ease;
}

.admission-box:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.admission-box h3 {
    color: #003d7a;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.admission-box ul {
    list-style: none;
    padding: 0;
}

.admission-box li {
    padding: 0.8rem 0;
    padding-left: 1.8rem;
    color: #555;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.admission-box li:last-child {
    border-bottom: none;
}

.admission-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Section Contact */
.contact-poly {
    padding: 5rem 0;
    background: white;
}

.contact-poly h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #003d7a;
    margin-bottom: 3rem;
    font-weight: 700;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.05), rgba(0, 86, 179, 0.05));
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #ffc107;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-item h4 {
    color: #003d7a;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-droit {
        padding: 5rem 1rem;
        min-height: 350px;
    }

    .hero-droit-content h1 {
        font-size: 2rem;
    }

    .hero-droit-content p {
        font-size: 1.1rem;
    }

    .filieres h2,
    .debouches h2,
    .admission h2,
    .contact-poly h2 {
        font-size: 1.8rem;
    }

    .filiere-card {
        padding: 2rem;
    }

    .filiere-icon {
        font-size: 2.5rem;
    }

    .filiere-card h3 {
        font-size: 1.3rem;
    }

    .navbar ul {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-droit {
        padding: 3rem 1rem;
        min-height: 250px;
    }

    .hero-droit-content h1 {
        font-size: 1.5rem;
    }

    .hero-droit-content p {
        font-size: 1rem;
    }

    .filieres-grid,
    .debouches-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .filiere-card {
        padding: 1.5rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

