/*
Theme Name: WebZeen Theme
Theme URI: https://webzeen.fr
Author: WebZeen
Author URI: https://webzeen.fr
Description: Thème sur-mesure pour le blog Web et High Tech WebZeen.
Version: 1.0.0
Text Domain: wbztm
*/

/* 
 * Variables CSS globales pour un design moderne 
 * Placées ici pour que tu puisses facilement les modifier
 */
:root {
    /* Palette Premium & Expressive (Base Newsroom + Apple Event Accents) */
    --wz-bg-light: #f5f5f7;
    --wz-card-bg: #ffffff;
    --wz-text-main: #1d1d1f;
    --wz-text-muted: #86868b;
    --wz-black: #000000;

    /* Les Accents de Personnalité : Dégradé vibrant (Style Apple Event / Vision Pro) */
    --wz-gradient-accent: linear-gradient(135deg, #FF2E93 0%, #FF8A00 50%, #FFD600 100%);
    --wz-gradient-tech: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);

    /* Typographies */
    --wz-font-sans: 'Inter', system-ui, sans-serif;
    --wz-font-heading: 'Lexend', system-ui, sans-serif;

    /* Box shadows organiques et profondes */
    --wz-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --wz-shadow-card-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);

    /* Transitions fluides */
    --wz-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--wz-font-sans);
    font-size: 1rem;
    color: var(--wz-text-main);
    background-color: var(--wz-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Un fond très subtil pour casser le gris plat */
    background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, transparent 80%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--wz-font-heading);
    font-weight: 800;
    /* Plus lourd, plus affirmé */
    color: var(--wz-text-main);
    letter-spacing: -0.03em;
    /* Plus resserré pour un look éditorial tech */
}

a {
    color: var(--wz-text-main);
    text-decoration: none;
    transition: var(--wz-transition);
}

/* Sur-Header */
.wz-topbar {
    font-family: var(--wz-font-sans);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Glassmorphic Premium */
.site-header {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar-brand {
    font-family: var(--wz-font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.05em;
    color: #0f172a !important;
    /* Bleu très foncé presque noir */
    display: inline-block;
}

.site-header .navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Espacement propre entre les items */
}

.site-header .nav-link,
.site-header .navbar-nav a {
    color: var(--wz-text-muted) !important;
    font-family: var(--wz-font-heading) !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .navbar-nav a:hover,
.site-header .navbar-nav .current-menu-item>a {
    color: var(--wz-text-main) !important;
}

/* Petit indicateur de survol chic sous le lien */
.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--wz-text-main);
    transition: width 0.3s ease;
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
    width: 100%;
}

/* Style pour le bouton hamburger sur mobile */
.navbar-toggler {
    border: none;
    color: var(--wz-text-main);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(29, 29, 31, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Bouton de recherche */
.wz-search-toggle {
    transition: var(--wz-transition);
    opacity: 0.7;
}

.wz-search-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Sur-Header & Header positionnement pour la barre de recherche */
#masthead {
    position: relative;
    z-index: 1040;
}

/* Section Titres */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    margin-top: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--wz-gradient-tech);
    border-radius: 2px;
}

/* Cartes avec Micro-interactions */
.wz-hero-card {
    border-radius: 32px;
    box-shadow: var(--wz-shadow-card);
    transition: var(--wz-transition);
    transform: translateZ(0);
    min-height: 500px;
    /* Grande zone d'impact */
}

.wz-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.wz-single-hero:hover {
    transform: none !important;
    box-shadow: var(--wz-shadow-card) !important;
}

.wz-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.wz-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dégradé sombre pour que le texte blanc soit lisible sur n'importe quelle image */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.wz-hero-card .hero-title {
    font-family: var(--wz-font-heading);
    letter-spacing: -0.04em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wz-hero-card .hero-badge {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wz-hero-card:hover .hero-badge {
    background: var(--wz-gradient-accent);
    border-color: transparent;
}

.wz-card {
    background-color: var(--wz-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    /* Plus rond */
    overflow: hidden;
    box-shadow: var(--wz-shadow-card);
    transition: var(--wz-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    /* Hardware acceleration */
}

.wz-card-link {
    color: inherit;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Le conteneur d'image pour l'effet de zoom */
.wz-card-img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.wz-card .card-img-top {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px 24px 0 0;
    display: block;
}

.wz-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--wz-shadow-card-hover);
}

.wz-card:hover .card-img-top {
    transform: scale(1.05);
    /* Zoom subtil au survol */
}

.wz-card .card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.category-badge {
    font-family: var(--wz-font-heading);
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    align-self: flex-start;
    transition: var(--wz-transition);
}

.wz-card .category-badge {
    background: var(--wz-bg-light);
    color: var(--wz-text-main);
}

.wz-card:hover .category-badge {
    background: var(--wz-gradient-accent);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 46, 147, 0.3);
}

.wz-card .card-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wz-card .card-text {
    color: var(--wz-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
}

/* Ligne de Topics (Catégories) */
.wz-topics-nav::-webkit-scrollbar {
    height: 4px;
}

.wz-topics-nav::-webkit-scrollbar-track {
    background: transparent;
}

.wz-topics-nav::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 4px;
}

.wz-topics-nav .nav-link {
    font-family: var(--wz-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--wz-transition);
}

.wz-topics-nav .nav-link.active {
    background-color: var(--wz-text-main) !important;
    color: white !important;
}

.wz-topics-nav .nav-link.hover-accent:hover {
    color: var(--wz-text-main) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Pagination SEO Friendly */
.wz-pagination {
    margin-top: 2rem;
}

.wz-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.wz-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background-color: white;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    color: var(--wz-text-main);
    font-weight: 600;
    text-decoration: none;
    transition: var(--wz-transition);
}

.wz-pagination .page-numbers:hover {
    border-color: var(--wz-text-main);
    background-color: #f5f5f7;
}

.wz-pagination .page-numbers.current {
    background-color: var(--wz-text-main);
    color: white;
    border-color: var(--wz-text-main);
}

.wz-pagination .next.page-numbers,
.wz-pagination .prev.page-numbers {
    padding: 0 15px;
}

/* Fil d'Ariane (Breadcrumbs Yoast) */
.wz-breadcrumbs {
    font-family: var(--wz-font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.wz-breadcrumbs a {
    color: var(--wz-text-main);
    text-decoration: none;
    transition: var(--wz-transition);
}

.wz-breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.wz-breadcrumbs .breadcrumb_last {
    color: var(--wz-text-muted);
    font-weight: 400;
}

.wz-breadcrumbs span.breadcrumb_separator {
    margin: 0 0.5rem;
    color: #d2d2d7;
    font-size: 0.8rem;
}

/* Single Post (Immersive) */
.single-post-container {
    background-color: var(--wz-bg-light);
    color: var(--wz-text-main);
    min-height: 100vh;
    padding-bottom: 5rem;
}

.single-post-container h1,
.single-post-container .entry-title {
    color: var(--wz-text-main);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Ajout d'une touche de couleur sur l'article simple */
.single-post-container .entry-title::before {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--wz-gradient-tech);
    border-radius: 3px;
    margin: 0 auto 2rem auto;
}

.single-post-container .text-muted {
    color: #a1a1a6 !important;
}

/* Style pour les images dans l'article pour qu'elles flottent joliment */
.single-post-container .post-thumbnail {
    position: relative;
    padding: 2rem 0;
}

.single-post-container .post-thumbnail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    background: var(--wz-gradient-accent);
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
}

.single-post-container .post-thumbnail img {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styles Éditoriaux (Newsroom) */
.wz-chapo {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--wz-text-muted);
    border-left: 4px solid var(--wz-text-main);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.entry-content>p:first-of-type::first-letter {
    font-family: var(--wz-font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.8;
    float: left;
    margin: 0.1rem 0.5rem 0 0;
    background: var(--wz-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.entry-content blockquote {
    font-family: var(--wz-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    padding: 2rem 3rem;
    margin: 3rem 0;
    border-radius: 24px;
    background: white;
    box-shadow: var(--wz-shadow-card);
    position: relative;
    border-left: 4px solid var(--wz-text-main);
}

.entry-content blockquote p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* Bloc Auteur */
.wz-author-block {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wz-author-block .author-avatar img {
    border: 3px solid white;
}

/* Sidebar Articles */
.wz-sidebar .widget {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wz-sidebar .widget-title {
    color: var(--wz-text-main);
    font-family: var(--wz-font-heading);
    letter-spacing: -0.02em;
}

/* Nav Précédent / Suivant (Cartes Images) */
.wz-nav-card {
    min-height: 140px;
    transition: var(--wz-transition);
    text-decoration: none;
}

.wz-nav-card .wz-nav-bg img {
    transition: transform 0.8s ease;
}

.wz-nav-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.wz-nav-card:hover .wz-nav-bg img {
    transform: scale(1.05);
}

.wz-nav-card .wz-nav-overlay {
    transition: background-color 0.3s ease;
}

.wz-nav-card:hover .wz-nav-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.wz-nav-card .wz-nav-content h4,
.wz-nav-card .wz-nav-content span {
    color: #ffffff !important;
}

.wz-nav-card .wz-nav-content h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Footer (Fat Footer) */
.site-footer {
    background-color: transparent !important;
    border-top: none;
    font-size: 0.9rem;
    font-family: var(--wz-font-heading);
    color: var(--wz-text-main);
    padding: 4rem 0 2rem 0;
}

.site-footer .widget-title {
    font-family: var(--wz-font-heading);
    letter-spacing: -0.02em;
    color: var(--wz-text-main);
}

.site-footer .widget ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.site-footer .widget ul li {
    margin-bottom: 0.75rem;
}

.site-footer .widget ul li a {
    color: var(--wz-text-muted);
    transition: var(--wz-transition);
}

.site-footer .widget ul li a:hover {
    color: var(--wz-text-main);
    padding-left: 4px;
    /* Petit effet de glissement élégant */
}

.site-footer .border-top {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Zone Commentaires (WordPress Native) */
#respond {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--wz-shadow-card);
    margin-top: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-reply-title {
    font-family: var(--wz-font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.comment-notes,
.logged-in-as {
    color: var(--wz-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

#commentform .comment-form-comment label,
#commentform .comment-form-author label,
#commentform .comment-form-email label,
#commentform .comment-form-url label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--wz-text-main);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    background-color: var(--wz-bg-light);
    color: var(--wz-text-main);
    font-family: var(--wz-font-sans);
    transition: var(--wz-transition);
    margin-bottom: 1.5rem;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
    outline: none;
    border-color: var(--wz-text-main);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

#commentform .form-submit {
    margin-top: 1rem;
    margin-bottom: 0;
}

#commentform input[type="submit"] {
    background-color: var(--wz-text-main);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: var(--wz-font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--wz-transition);
}

#commentform input[type="submit"]:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Liste des commentaires existants */
.comment-list {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.comment-list .comment {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--wz-text-muted);
    margin-bottom: 1rem;
}

/* Base styles / Utils */
.wz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilitaires Survol / SEO Links */
.hover-opacity {
    transition: var(--wz-transition);
}

.hover-opacity:hover {
    opacity: 0.7;
}

.group-hover img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.group-hover:hover img {
    transform: scale(1.08);
}

.group-hover h4 {
    transition: color 0.3s ease;
}

.group-hover:hover h4 {
    color: #0072FF !important;
}