/* --- CONFIGURATION GENERALE --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Empêche le défilement horizontal */
    background-color: #0F172A;
}

.zappe-main-wrapper {
    width: 100%;
}

/* --- SECTION HERO PLEINE LARGEUR --- */
.zappe-hero {
    position: relative;
    width: 100vw;
    height: 70vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: url('https://zappe.fr/wp-content/uploads/2026/01/Gemini_Generated_Image_2k23tv2k23tv2k23.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.zappe-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.zappe-hero-text h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    color: #06B6D4; /* Cyan */
    margin: 0;
    font-weight: 900;
}

.zappe-hero-text h1 span { color: #fff; }

.zappe-hero-text p {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 10px;
}

/* --- SECTION CHAINES --- */
.zappe-channels {
    width: 100%;
    background: #0F172A;
    padding: 60px 0;
}

/* LE CONTENEUR : C'est ici qu'on limite la largeur sur Ordinateur */
.zappe-container {
    max-width: 1200px; /* Largeur max de la grille sur PC */
    margin: 0 auto;    /* Centre le bloc au milieu */
    padding: 0 20px;   /* Petite marge de sécurité pour pas que ça touche les bords */
}

.zappe-title {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-family: sans-serif;
}

/* Grille de logos */
.zappe-grid {
    display: grid;
    /* Sur PC, les logos s'adaptent à l'espace du container (1200px) */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.zappe-item {
    background: #1E293B;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px; /* Bords arrondis */
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.zappe-item img {
    max-width: 65%;
    height: auto;
}

.zappe-item:hover {
    background: #06B6D4;
    transform: translateY(-5px); /* Petit effet de soulèvement */
}

/* --- VERSION MOBILE : ON REPASSE EN PLEINE LARGEUR --- */
@media (max-width: 768px) {
    .zappe-container {
        padding: 0 10px; /* Moins de marge sur les côtés sur mobile */
    }

    .zappe-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Force le 3 par 3 */
        gap: 10px; /* Espacement réduit pour mobile */
    }

    .zappe-item {
        border-radius: 15px;
    }
}











/* --- PIED DE PAGE (FOOTER) --- */
.zappe-footer {
    background-color: #0F172A;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px 0;
    margin-top: 50px;
    width: 100%;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Style du Logo dans le Footer */
.footer-logo {
    font-size: 1.8rem;
    color: #06B6D4;
    margin-bottom: 15px;
    font-weight: 800;
}

.footer-logo span {
    color: #ffffff;
}

.footer-brand p {
    color: #94A3B8;
    line-height: 1.6;
    max-width: 320px;
    font-size: 0.95rem;
}

/* Réseaux Sociaux */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #1E293B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Couleurs au survol */
.social-icon.x:hover { background: #000; border-color: #fff; }
.social-icon.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-icon.instagram:hover { background: #E4405F; border-color: #E4405F; }
.social-icon.tiktok:hover { background: #000; border-color: #ff0050; box-shadow: 2px 0 #00f2ea; }
.social-icon.youtube:hover { background: #FF0000; border-color: #FF0000; }
.social-icon.snapchat:hover { background: #FFFC00; color: #000; border-color: #FFFC00; }

.social-icon:hover { transform: translateY(-3px); }

/* Menus de liens */
.footer-nav h4, .footer-legal h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul, .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li, .footer-legal li {
    margin-bottom: 12px;
}

.footer-nav a, .footer-legal a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover, .footer-legal a:hover {
    color: #06B6D4;
}

/* Bas du footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-nav, .footer-legal {
        margin-top: 20px;
    }
}






/* --- SECTION ACTUALITÉS --- */
.zappe-news {
    background: #0F172A; /* Même fond sombre */
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #1E293B;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #06B6D4;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

.news-content h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.news-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #06B6D4;
}

.news-content p {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 2px solid #06B6D4;
    padding-bottom: 2px;
}

/* Adaptation Mobile : 1 article par ligne */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}