/* ==========================================
   VARIABLES & BASE
========================================== */
:root {
    --bleu-primary: #173F8A;
    --bleu-dark: #0F2D5E;
    --bleu-chiffres: #1a3b75;
    --orange-accent: #F39C12;
    --rouge-esprit: #E63946;
    --blanc: #FFFFFF;
    --noir: #000000;
    --gris-clair: #F8F9FA;
    --gris-text: #555555;
    --font-titres: 'Montserrat', sans-serif;
    --font-corps: 'Georgia', serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-primary { color: var(--bleu-primary); }
.text-white { color: var(--blanc); }
.text-orange { color: var(--orange-accent); }

/* ==========================================
   HERO BANNER
========================================== */
.hero-banner {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: url('../assets/INPHB.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--blanc);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(23, 63, 138, 0.9) 0%, rgba(15, 45, 94, 0.8) 100%);
}

.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-content h1 { font-family: var(--font-titres); font-size: 4rem; font-weight: 700; margin-bottom: 10px; }
.hero-content .subtitle { font-size: 1.5rem; margin-bottom: 20px; font-weight: 400; }

/* ✅ UN ESPRIT EN ROUGE ET GRAS */
.hero-content .slogan {
    font-family: var(--font-corps);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 40px;
    color: var(--blanc);
    line-height: 1.4;
}

.hero-content .esprit-text {
    display: inline-block;
    font-family: var(--font-titres);
    font-size: 3.2rem;
    font-weight: 900;
    font-style: normal;
    color: var(--rouge-esprit);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-left: 10px;
    text-shadow: 0 4px 20px rgba(230, 57, 70, 0.6);
    animation: pulseRed 2s ease-in-out infinite;
    position: relative;
}

.hero-content .esprit-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rouge-esprit), transparent);
    animation: slideUnderline 2s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 4px 20px rgba(230, 57, 70, 0.6);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 6px 30px rgba(230, 57, 70, 0.9);
    }
}

@keyframes slideUnderline {
    0%, 100% { transform: scaleX(0.5); opacity: 0.5; }
    50% { transform: scaleX(1); opacity: 1; }
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 12px 30px; border-radius: 5px; text-decoration: none;
    font-family: var(--font-titres); font-weight: 600; transition: all 0.3s;
    display: inline-block;
}
.btn-primary { background: var(--blanc); color: var(--bleu-primary); }
.btn-primary:hover { background: var(--orange-accent); color: var(--blanc); }
.btn-outline { border: 2px solid var(--blanc); color: var(--blanc); }
.btn-outline:hover { background: var(--blanc); color: var(--bleu-primary); }

.animate-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   2. CHIFFRES
========================================== */
.chiffres-section {
    background: var(--bleu-chiffres);
    padding: 80px 0;
    color: var(--blanc);
    text-align: center;
}

.chiffres-header { margin-bottom: 60px; }
.chiffres-header h2 { font-family: var(--font-titres); font-size: 2.8rem; margin-bottom: 15px; }
.chiffres-header p { font-size: 1.1rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }

.chiffres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.chiffre-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 20px;
    transition: transform 0.3s;
}
.chiffre-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); }

.icon-box {
    width: 70px; height: 70px;
    background: rgba(243, 156, 18, 0.2);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.icon-box i { font-size: 2rem; color: var(--orange-accent); }

.chiffre-card .number { font-family: var(--font-titres); font-size: 3.5rem; font-weight: 700; margin-bottom: 10px; }
.chiffre-card .label { font-size: 1rem; opacity: 0.9; line-height: 1.4; }

/* ==========================================
   3. ACTUALITÉS - GRILLE STATIQUE (BELLES CARTES)
========================================== */
.actualites-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    position: relative;
    overflow: hidden;
}

/* Motifs décoratifs en fond */
.actualites-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(23, 63, 138, 0.05), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.actualites-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.05), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    font-family: var(--font-titres);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-family: var(--font-titres);
    font-size: 2.8rem;
    color: var(--noir);
    margin-bottom: 15px;
    font-weight: 700;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bleu-primary), var(--orange-accent));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-corps);
    font-size: 1.1rem;
    color: var(--gris-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ✅ GRILLE STATIQUE (3 colonnes) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* ✅ BELLES CARTES */
.news-card {
    background: var(--blanc);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(23, 63, 138, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(23, 63, 138, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(23, 63, 138, 0.2);
    border-color: var(--orange-accent);
}

/* Bordure animée au hover */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bleu-primary), var(--orange-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.news-card:hover::before {
    transform: scaleX(1);
}

/* Image avec overlay chic */
.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .card-image img {
    transform: scale(1.15) rotate(2deg);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(23, 63, 138, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.news-card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    width: 50px;
    height: 50px;
    background: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bleu-primary);
    text-decoration: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.news-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: var(--orange-accent);
    color: var(--blanc);
    transform: translateY(0) scale(1.1);
}

/* Badge */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blanc);
    font-family: var(--font-titres);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.badge-today { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.badge-masterclass { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.badge-partnership { background: linear-gradient(135deg, #3498db, #2980b9); }
.badge-event { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.badge-ceremony { background: linear-gradient(135deg, #f39c12, #e67e22); }

/* Corps de la carte */
.card-body {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    display: inline-block;
    font-family: var(--font-titres);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-body h3 {
    font-family: var(--font-titres);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--noir);
    line-height: 1.4;
    min-height: 50px;
    transition: color 0.3s ease;
}

.news-card:hover .card-body h3 {
    color: var(--bleu-primary);
}

.card-date {
    font-size: 0.85rem;
    color: var(--gris-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-titres);
}

.card-date i {
    color: var(--orange-accent);
    font-size: 0.9rem;
}

.btn-voir-plus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--bleu-primary);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-titres);
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-voir-plus::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-accent);
    transition: width 0.3s ease;
}

.btn-voir-plus:hover {
    color: var(--orange-accent);
    gap: 12px;
}

.btn-voir-plus:hover::after {
    width: 100%;
}

.btn-voir-plus i {
    transition: transform 0.3s ease;
}

.btn-voir-plus:hover i {
    transform: translateX(5px);
}

/* ==========================================
   4. SECTION DÉCOUVERTE ESCA
========================================== */
.decouverte-section {
    padding: 80px 20px;
    background: #FFFFFF;
    text-align: center;
}

.decouverte-container { max-width: 900px; margin: 0 auto; }

.decouverte-icon {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, #173F8A, #0F2D5E);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(23, 63, 138, 0.3);
}
.decouverte-icon i { font-size: 2.5rem; color: #FFFFFF; }

.decouverte-section h2 {
    font-family: var(--font-titres);
    font-size: 2.5rem;
    color: #173F8A;
    margin-bottom: 20px;
    font-weight: 700;
}

.decouverte-section p {
    font-family: var(--font-corps);
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-decouverte {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #173F8A, #0F2D5E);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-titres);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(23, 63, 138, 0.3);
}
.btn-decouverte:hover {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(243, 156, 18, 0.4);
}
.btn-decouverte i { transition: transform 0.3s ease; }
.btn-decouverte:hover i { transform: translateX(5px); }

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .chiffres-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .decouverte-section h2 { font-size: 1.8rem; }
    .decouverte-section p { font-size: 1rem; }
    
    /* Slogan responsive */
    .hero-content .slogan { font-size: 1.2rem; }
    .hero-content .esprit-text { 
        font-size: 2rem;
        letter-spacing: 2px;
        display: block;
        margin: 10px 0 0 0;
    }
    
    .card-image { height: 200px; }
    .card-body { padding: 20px; }
    .card-body h3 { font-size: 1rem; min-height: 45px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .decouverte-section h2 { font-size: 1.5rem; }
    .btn-decouverte { padding: 14px 30px; font-size: 0.95rem; }
    .section-title h2 { font-size: 1.8rem; }
}