/**
 * FLUENZR - DESIGN MODERNE & BRUT
 * ====================================
 * Un design minimaliste avec typographie forte
 * Couleur principale: Violet (--secondary-color)
 * Style: Moderne, épuré, asymétrique
 *
 * NOTE: Ce fichier utilise les variables CSS définies dans style.css
 */

/* ========================================
   1. HEADER & LOGO
   ======================================== */

.site-header {
    padding: var(--spacing-xl) 0;
    border-bottom: var(--border-width) solid #f0f0f0;
    background: var(--background-color);
}

.inside-header {
    display: flex;
    align-items: start;
    justify-content: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.site-logo img {
    height: auto;
    max-width: 250px !important;
    width: auto;
}

/* ========================================
   2. NAVIGATION
   ======================================== */
.nav-float-right #site-navigation {
    margin-left: 0;
}
.main-navigation {
    margin-left: 0;
}
.inside-header {
    max-width: 100vw!important;
}
.main-navigation .main-nav>ul {width: 95vw!important;
    justify-content: space-around;}
.nav-float-right #site-navigation {
    margin-left: 0!important;
}
.main-nav > ul {
    display: flex;
    flex-direction: row;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
    padding: 0;
}


/* personnalisation de home*/
.home-mosaic li.full-width.restructured {
    border: 15px solid var(--font-color);
}
.home-mosaic.wp-block-latest-posts.is-grid {
    min-width: 90vw!important;
}
.site-content .content-area {
    margin-left: 4vw;
    margin-right: 0px!important;
}
/* Styling du logo - qui est dans le ul.menu */
.main-nav .site-logo {
    display: block !important;
    margin-right: 0 !important;
    margin-bottom: var(--spacing-lg) !important;
}
.home-mosaic li.single-normal {
    border: 15px solid  var(--secondary-color);
}
.main-nav .site-logo img {
    display: block;
}

.main-nav li a {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none;
    color: var(--nav-text-color);
    position: relative;
    transition: var(--transition-normal);
    text-transform: uppercase !important;
    letter-spacing: 1.2px;
    display: block;
    padding: var(--spacing-md) 0;
    border-bottom: 10px solid transparent !important;
    text-align: right !important;
}

.main-nav li a:hover,
.main-nav li a:focus,
.main-nav li a:active,
.main-nav li.current-menu-item a {
    color: var(--nav-hover-color) !important;
    border-bottom: 10px solid var(--nav-border-hover) !important;
    background-color: transparent !important;
}

/* Override des styles GeneratePress */
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a {
    color: var(--nav-hover-color) !important;
    border-bottom-color: var(--nav-border-hover) !important;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--nav-active-color) !important;
    border-bottom-color: var(--nav-border-hover) !important;
}

/* ========================================
   3. HERO / ACCUEIL
   ======================================== */

body.home {
    background-color: var(--hover-color);
}

.entry-header {
    display: none !important;
}

/* ========================================
   4. MOSAÏQUE FLUENZR (ACCUEIL)
   ======================================== */

.home-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    padding: var(--spacing-3xl) var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

/* Carte standard (1x1) */
.home-mosaic li {
    background: var(--card-bg);
    border: var(--border-width) solid var(--card-border-color);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    transition: var(--card-transition);
    box-shadow: var(--card-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
}

.home-mosaic li:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 24px rgba(104, 64, 222, 0.12);
}

/* Image featured */
.home-mosaic .wp-block-latest-posts__featured-image {
    overflow: hidden;
    background: linear-gradient(135deg, rgba(104, 64, 222, 0.03), rgba(104, 64, 222, 0.02));
    aspect-ratio: 4/3;
    margin: 0;
    padding: 0;
}

.home-mosaic .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) ease;
}

.home-mosaic li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.05);
}

/* Contenu de la carte */
.home-mosaic .wp-block-latest-posts__post-title {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    color: var(--card-title-color);
    margin: var(--spacing-lg) var(--spacing-lg) var(--spacing-sm);
    text-decoration: none;
}

.home-mosaic li:hover .wp-block-latest-posts__post-title {
    color: var(--secondary-color);
}

/* Date */
.home-mosaic .wp-block-latest-posts__post-date {
    font-size: 0.85rem;
    color: var(--card-meta-color);
    margin: 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Excerpt */
.home-mosaic .wp-block-latest-posts__post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: var(--line-height-base);
    margin: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    flex: 1;
}

/* ========================================
   5. CARTES SPÉCIALES (WIDE & FULL-WIDTH)
   ======================================== */

/* Carte WIDE (2x1) */
.home-mosaic li.wide {
    grid-column: span 2;
}

/* Carte FULL-WIDTH (3x1) */
.home-mosaic li.full-width {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.home-mosaic li.full-width .wp-block-latest-posts__featured-image {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 0;
}

.home-mosaic li.full-width .full-width-content {
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-mosaic li.full-width .wp-block-latest-posts__post-title {
    font-size: 1.8rem;
    margin: 0 0 var(--spacing-md) 0;
}

.home-mosaic li.full-width .wp-block-latest-posts__post-excerpt {
    margin: 0;
    color: var(--text-muted);
}

/* Catégorie badge */
.post-category {
    display: inline-block;
    background-color: var(--category-bg) !important;
    color: var(--category-text);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 0;
    text-decoration: none;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-normal);
}

.post-category:hover {
    background-color: var(--secondary-color);
}

/* ========================================
   6. RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .home-mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .home-mosaic li.wide,
    .home-mosaic li.full-width {
        grid-column: span 2;
    }

    .home-mosaic li.full-width {
        display: flex;
        flex-direction: column;
    }

    .home-mosaic li.full-width .wp-block-latest-posts__featured-image {
        min-height: 250px;
    }

    .home-mosaic li.full-width .full-width-content {
        padding: var(--spacing-xl);
    }

    .main-nav > ul {
        gap: var(--spacing-lg);
    }

    .main-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .home-mosaic {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .home-mosaic li.wide,
    .home-mosaic li.full-width {
        grid-column: span 1;
    }

    .main-navigation {
        display: none;
    }

    .site-header {
        padding: var(--spacing-lg) 0;
    }

    .site-logo img {
        max-width: 180px;
    }

    .inside-header {
        padding: 0 var(--spacing-md);
    }
}

/* ========================================
   7. PAGES DE CATÉGORIES
   ======================================== */

.archive .entry-header,
.category .entry-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-dark));
    color: var(--font-color-light);
    padding: var(--spacing-3xl) var(--spacing-xl);
    text-align: left;
    border-bottom: 0;
    margin-bottom: var(--spacing-2xl);
}

.archive .entry-header h1,
.category .entry-header h1 {
    color: var(--font-color-light);
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.archive .entry-header .archive-meta,
.category .entry-header .archive-meta {
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
}

/* ========================================
   8. FOOTER
   ======================================== */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text-color);
    padding: var(--spacing-3xl) var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.site-info {
    background: var(--footer-bg);
    color: var(--footer-text-color);
    text-align: center;
    padding: var(--spacing-xl);
    border-top: var(--border-width) solid var(--border-color);
}

.site-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

/* ========================================
   9. UTILITAIRES
   ======================================== */

.wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-latest-posts li {
    margin-bottom: 0;
}

/* Retirer les styles par défaut des liens */
a {
    transition: var(--transition-normal);
}

/* Boutons */
button,
.button,
input[type="submit"] {
    background-color: var(--secondary-color);
    color: var(--font-color-light);
    border: 0;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: var(--font-weight-medium);
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-normal);
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background-color: var(--secondary-color-dark);
}

/* ========================================
   10. ANIMATIONS
   ======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-mosaic li {
    animation: slideInUp var(--transition-slow) ease-out both;
}

.home-mosaic li:nth-child(1) { animation-delay: 0.1s; }
.home-mosaic li:nth-child(2) { animation-delay: 0.2s; }
.home-mosaic li:nth-child(3) { animation-delay: 0.3s; }
.home-mosaic li:nth-child(4) { animation-delay: 0.4s; }
.home-mosaic li:nth-child(5) { animation-delay: 0.5s; }
.home-mosaic li:nth-child(6) { animation-delay: 0.6s; }
