@font-face {
    font-family: 'eurostile';
    src: url(./asset/font/eurostile.TTF);
}
/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --primary-red: #e63946;
    --gray-bg: #fafafc;
    --gray-light: #f3f4f6;
    --gray-medium: #6b7280;
    --gray-dark: #1f2937;
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    --border-radius-card: 28px;
    --transition: all 0.25s ease;
}

body {
    font-family: 'eurostile';
    background: #fff;
    color: #111;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 2;
    background: transparent;
}


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ========== EN-TÊTE ========== */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== FILTRES ========== */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
}

/* ========== GRILLE NEWS ========== */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ========== CARTE ACTUALITÉ ========== */
.news-card {
    background: white;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

@media (min-width: 768px) {
    .news-card {
        flex-direction: row;
    }
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Zone image */
.news-image {
    flex: 1.2;
    min-height: 280px;
    background: #e5e7eb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.news-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.badge-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Zone contenu */
.news-content {
    flex: 2;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-medium);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.6rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-date::before {
    content: "📅";
    font-size: 0.85rem;
}

.news-type {
    background: var(--gray-light);
    padding: 2px 10px;
    border-radius: 30px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.news-title a {
    text-decoration: none;
    color: var(--primary-black);
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--primary-red);
}

.news-excerpt {
    color: #2d2d2d;
    line-height: 1.5;
}

/* Boutons CTA */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0.25rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    background: white;
    border: 1px solid #ddd;
    color: var(--gray-dark);
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn i {
    font-size: 1rem;
    color: inherit;
}
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-black);
    border-color: var(--primary-black);
    color: white;
}

.btn-primary:hover {
    background: #2c2c2c;
    transform: scale(0.97);
}

.btn:hover {
    background: var(--gray-light);
    border-color: #aaa;
}

/* Fun fact */
.fun-fact {
    background: #fef9e3;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
    border-left: 3px solid var(--primary-red);
    margin-top: 0.3rem;
}

/* Réseaux sociaux */
.social-share {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.social-share a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.2s;
}

.social-share a:hover {
    color: var(--primary-black);
}

.share-btn {
    background: #f3f4f6;
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--gray-dark);
}

.share-btn:hover {
    background: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
    transform: translateY(-2px);
}

/* ========== PIED DE PAGE ========== */
footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeef2;
    color: #6c757d;
    font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .news-content {
        padding: 1.2rem;
    }
    
    .btn {
        padding: 5px 14px;
        font-size: 0.8rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MODAL VIDÉO ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-red);
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        height: 90vh;
        width: 98%;
    }
    
    .close-modal {
        right: 10px;
        top: 10px;
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        height: 85vh;
        width: 100%;
    }
    
    .close-modal {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        right: 5px;
        top: 5px;
    }
}

/* ========== MODAL DE PARTAGE ========== */
.share-modal-content {
    width: 95%;
    max-width: 500px;
    height: auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    flex-direction: column;
    gap: 1.5rem;
}

.share-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin: 0;
    margin-top: -1rem;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--gray-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-dark);
    gap: 0.75rem;
}

.share-option i {
    font-size: 1.5rem;
    color: var(--primary-black);
}

.share-option:hover {
    background: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
    transform: translateY(-2px);
}

.share-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 640px) {
    .share-modal-content {
        width: 90%;
        padding: 1.5rem;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .share-option {
        flex-direction: row;
        gap: 1rem;
    }
    
    .share-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
}

.news-card {
    animation: fadeIn 0.5s ease-out;
}