/*
Theme Name: VAYA
Theme URI: https://vaya.agency
Author: VAYA Agency
Author URI: https://vaya.agency
Description: Thème WordPress moderne avec design glassmorphism et animations 3D pour agence digitale
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vaya
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    background-color: #050507;
    color: white;
    overflow-x: hidden;
    cursor: default;
    font-family: 'Inter', sans-serif;
}



/* --- LOGO : rotation de l'étoile au survol --- */
.logo-link .logo-star {
    transform-origin: 40.6px 40.6px;
    transition: transform 0.8s ease-in-out;
}
.logo-link:hover .logo-star {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .logo-link .logo-star {
        transition: none;
    }
    .logo-link:hover .logo-star {
        transform: none;
    }
}

/* --- LOGOS MARQUEE (Carrousel logos clients) --- */
.group-marquee {
    overflow: hidden;
}

.animate-marquee {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    align-items: center;
    animation: vaya-marquee var(--vaya-marquee-duration, 80s) linear infinite;
    will-change: transform;
}


@keyframes vaya-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-marquee {
        animation: none !important;
        transform: none !important;
    }



}

/* --- CLIENT LOGOS: blanc par défaut, couleur au survol --- */
.client-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto; /* évite le shrink */
    overflow: hidden;
    width: 9rem;
    max-width: 9rem;
    opacity: 0.45;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (min-width: 768px) {
    .client-logo {
        width: 11rem;
        max-width: 11rem;
    }
}

.client-logo:hover {
    opacity: 1;
    transform: none;
}

.client-logo__img {
    height: 2rem;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Rend le logo "blanc" (approx) via filtre. Au hover, on revient aux couleurs originales. */
    filter: grayscale(1) brightness(0) invert(1);
    transition: filter 0.25s ease;
}

.client-logo:hover .client-logo__img {
    filter: none;
}

.client-logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.25s ease;
}

.client-logo:hover .client-logo__text {
    color: rgba(255, 255, 255, 1);
}

@media (prefers-reduced-motion: reduce) {
    .client-logo,
    .client-logo__img,
    .client-logo__text {
        transition: none;
    }
}

/* Glassmorphism Class (Appliquée via JS au scroll) */
.glass-panel {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glass basique pour les cartes (reste fixe) */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.masonry-grid {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

@keyframes nebula-breath {
    0%, 100% {
        filter: drop-shadow(0 0 0px rgba(114, 171, 247, 0));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(114, 171, 247, 0.4));
        transform: scale(1.05);
    }
}

.hero-title-unified {
    background: linear-gradient(to bottom right, #72ABF7, #9DC4F4, #858AF1, #CFA2F4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: nebula-breath 6s ease-in-out infinite;
    line-height: 1.1;
}

.hover-reveal-img {
    position: fixed;
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8) translate(-50%, -50%);
    transition: 0.3s;
    z-index: 100;
}

@media (max-width: 767px) {
    .hover-reveal-img {
        display: none !important;
    }
}


.hover-reveal-img--hero {
    width: 120px;
    height: 108px;
}

.hover-reveal-img--about {
    width: 320px;
    height: 220px;
}


.manifesto-container {
    position: relative;
    z-index: 10;
}

.hover-reveal-link {
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    position: relative;
    background: linear-gradient(to right, #72ABF7, #9DC4F4, #858AF1, #CFA2F4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 20;
}

.tilt-card-container {
    perspective: 900px;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out;
}

.tilt-card:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.glow-blob {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(133, 138, 241, 0.12) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-line {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 0;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-line:focus {
    outline: none;
    border-bottom-color: #858AF1;
}

.input-label {
    position: absolute;
    top: 10px;
    left: 0;
    pointer-events: none;
    color: rgba(255,255,255,0.5);
    transition: 0.3s ease all;
    font-size: 1rem;
}

.input-line:focus ~ .input-label,
.input-line:valid ~ .input-label {
    top: -20px;
    font-size: 0.75rem;
    color: #858AF1;
}

.menu-open {
    transform: translateX(0) !important;
}

.animated-line {
    height: 6rem;
    animation: growLine 1.5s ease-out forwards;
    transform-origin: top;
}

@keyframes growLine {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        height: 6rem;
        opacity: 1;
    }
}

/* --- CARD DECK SCROLL ANIMATION --- */


/* --- CREATIVE FLOW (mobile sizing) --- */
@media (max-width: 767px) {
    .deck-container {
        height: 480px;
    }
    .card-scroll-item {
        width: 200px;
        height: 300px;
    }
}
.deck-container {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: hidden;
    opacity: 0.5;
    transition: opacity 0.1s ease-out;
}

.card-scroll-item {
    position: absolute;
    width: 240px;
    height: 360px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    border: none;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%) var(--deck-transform, translate(0,0));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
    cursor: pointer;
    filter: brightness(0.85);
    will-change: transform;
}

.card-scroll-item:hover {
    filter: brightness(1.1);
    transform: translate(-50%, -50%) var(--deck-transform, translate(0,0)) scale(1.03) !important;
    z-index: 50;
    border-color: rgba(255,255,255,0.6);
    transition: transform 0.3s ease-out, filter 0.3s ease;
}

/* --- POPUP AVATAR ANIMATION --- */
#chat-popup {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#chat-popup.popup-enter {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ========================================
   BLOG ARTICLE CONTENT STYLES
   ======================================== */

.entry-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.75;
}

/* Lead paragraph */
.entry-content p.lead,
.entry-content > p:first-of-type {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

/* Paragraphs */
.entry-content p {
    margin-bottom: 1.5rem;
}

/* Headings */
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.entry-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Links */
.entry-content a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: #c4b5fd;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content ul {
    list-style-type: none;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    border-radius: 50%;
}

.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
}

.entry-content ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.entry-content ol li::marker {
    color: #a78bfa;
    font-weight: 600;
}

/* Nested lists */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 0.5rem 0;
}

/* Tables */
.entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-content thead {
    background: rgba(167, 139, 250, 0.15);
}

.entry-content th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-content td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.entry-content tbody tr:last-child td {
    border-bottom: none;
}

.entry-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Blockquotes */
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(99, 102, 241, 0.05));
    border-left: 4px solid #a78bfa;
    border-radius: 0 12px 12px 0;
    font-style: normal;
}

.entry-content blockquote p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Strong / Bold */
.entry-content strong {
    color: #fff;
    font-weight: 600;
}

/* Code inline */
.entry-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e879f9;
}

/* Code blocks */
.entry-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Horizontal rule */
.entry-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 3rem 0;
}

/* Images */
.entry-content img {
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Special callout styles for emoji prefixed content */
.entry-content p:has(> strong:first-child) {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(167, 139, 250, 0.5);
    margin: 1.5rem 0;
}

/* Checklist styles */
.entry-content td:first-child:has(☐),
.entry-content td:last-child:has(☐) {
    text-align: center;
    font-size: 1.25rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .entry-content {
        font-size: 0.9375rem;
    }
    
    .entry-content p.lead,
    .entry-content > p:first-of-type {
        font-size: 1rem;
    }
    
    .entry-content h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }
    
    .entry-content h3 {
        font-size: 1.05rem;
    }
    
    .entry-content table {
        font-size: 0.8125rem;
    }
    
    .entry-content th,
    .entry-content td {
        padding: 0.625rem 0.75rem;
    }
    
    .entry-content blockquote {
        padding: 0.875rem 1rem;
    }
}
