@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #C41E3A;
    --secondary: #FF6B35;
    --accent: #FFD23F;
    --dark: #1a1a2e;
    --light: #ffffff;
    --gray: #6B7280;
    --gradient-1: linear-gradient(135deg, #C41E3A 0%, #FF6B35 100%);
    --gradient-2: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    --gradient-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FOND MODERNE ET PROPRE */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: 
        radial-gradient(circle at 20% 20%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #fafbfc 0%, #f1f3f5 50%, #fafbfc 100%);
    background-attachment: fixed;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Header ultra moderne */
header {
    background: var(--gradient-1);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 10px 40px rgba(196, 30, 58, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, white, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.main-nav a:hover,
.main-nav a.active {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Main Content */
main {
    padding: 3rem 0;
}

.intro {
    margin-bottom: 4rem;
}

.intro h2 {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -1px;
}

/* CARTES BLANCHES OPAQUES QUI CLAQUENT */
.intro-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.intro-content:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(196, 30, 58, 0.2);
}

.intro-content h3 {
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 2rem 0 1rem 0;
}

.intro-content h3:first-child {
    margin-top: 0;
}

.intro-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
    color: var(--gray);
    line-height: 1.8;
}

/* Criteria Grid CLINQUANT */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.criterion-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border-top: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.criterion-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 25px 70px rgba(196, 30, 58, 0.15),
        0 0 0 2px var(--primary);
    border-top-color: var(--primary);
}

.criterion-card h4 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.criterion-card ul {
    list-style: none;
}

.criterion-card li {
    padding-left: 2rem;
    margin-bottom: 0.9rem;
    position: relative;
    color: var(--gray);
    line-height: 1.6;
}

.criterion-card li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Ranking Section */
.ranking {
    margin-bottom: 4rem;
}

.ranking h2 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -1px;
}

/* Ranking Explanation CLINQUANTE */
.ranking-explanation {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    border-left: 6px solid var(--primary);
}

.ranking-explanation h3 {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.ranking-explanation h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 2rem 0 1.5rem 0;
}

.ranking-explanation p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray);
}

.ranking-explanation strong {
    color: var(--primary);
    font-weight: 700;
}

.criteria-details {
    margin: 2rem 0;
}

.criterion-detail {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    border-left: 5px solid var(--secondary);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.criterion-detail:hover {
    transform: translateX(8px);
    box-shadow: 
        0 12px 40px rgba(196, 30, 58, 0.12),
        0 0 0 2px var(--secondary);
}

.criterion-detail h5 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.criterion-detail p {
    color: var(--gray);
    line-height: 1.7;
}

.ranking-note {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent);
    font-style: italic;
    margin-top: 2rem;
    box-shadow: 
        0 8px 30px rgba(255, 210, 63, 0.15),
        0 0 0 1px rgba(255, 210, 63, 0.2);
}

/* School Cards ULTRA CLINQUANTES */
.school-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.school-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.school-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 30px 80px rgba(196, 30, 58, 0.20),
        0 0 0 2px var(--primary);
    border-color: var(--primary);
}

.school-card:hover::before {
    transform: scaleX(1);
}

.rank-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    z-index: 10;
}

.rank-1 {
    background: linear-gradient(135deg, #FFFBEA 5%, white 5%);
    border: 3px solid #FFD700;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    font-size: 1.4rem;
    padding: 1.2rem 2.5rem;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 15px 40px rgba(255, 215, 0, 0.7);
    }
}

.rank-2 {
    background: linear-gradient(135deg, #F5F5F5 5%, white 5%);
    border: 3px solid #C0C0C0;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #E8E8E8, #C0C0C0);
    color: #1a1a2e;
}

.rank-3 {
    background: linear-gradient(135deg, #FFEEE6 5%, white 5%);
    border: 3px solid #CD7F32;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B8722C);
}

.school-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
}

.school-card .description {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: justify;
}

.contact-info {
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: var(--primary);
    font-weight: 700;
    min-width: 130px;
}

.contact-item a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.contact-item a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-1);
    color: white;
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.3);
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.page-link {
    background: white;
    color: var(--primary);
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-link:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Top 5 Recap */
.top5-recap {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
    border-top: 6px solid var(--primary);
}

.top5-recap h2 {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
    text-align: center;
}

.recap-item {
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fafbfc 0%, white 100%);
    border-radius: 16px;
    border-left: 5px solid var(--secondary);
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

.recap-item:hover {
    transform: translateX(8px);
    box-shadow: 
        0 10px 35px rgba(196, 30, 58, 0.12),
        0 0 0 2px var(--secondary);
}

.recap-item h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.recap-item p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--gray);
}

.recap-item a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    margin-right: 2rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.recap-item a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Article Pages */
.article-content {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.article-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.article-content h3 {
    color: var(--primary);
    font-size: 1.9rem;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 800;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--gray);
}

/* Footer moderne avec signature */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d3a 100%);
    color: white;
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 500;
    font-size: 0.95rem;
}

.signature {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .intro h2,
    .ranking h2 {
        font-size: 2rem;
    }
    
    .school-card {
        padding: 2rem;
    }
    
    .rank-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1.5rem;
    }
    
    .article-content,
    .intro-content,
    .ranking-explanation {
        padding: 2rem;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
    }
}
