/*
 Theme Name: Kadence Child
 Theme URI: https://agence-dclik.fr
 Description: MASTER UNIFIED V8.1 - 2026 SEO & INP OPTIMIZED
 Author: Agence Dclik
 Template: kadence
 Version: 8.1.0
*/

/* =========================================
   1. GLOBAL : FOND DÉGRADÉ & PERFORMANCE
   ========================================= */
html, body {
    background: linear-gradient(to bottom, #0f0f0f 0%, #14276D 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff;
    font-display: swap; /* Optimisation LCP */
}

/* Force transparence Kadence pour structure plate  */
#wrapper, .site, .site-container, .site-inner, .content-container, .site-content, 
.entry-content, .entry-content-wrap, .content-area, [class*="inner-column"], 
.site-header-row, .site-footer-row-container {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

:root {
    --bg-card: rgba(15, 23, 42, 0.6);
    --primary: #04E391;
    --secondary: #bc6ff1;
    --text-main: #FFFFFF;
    --text-muted: #d0d0e0;
    --border-light: rgba(255, 255, 255, 0.1);
    --radius: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. HEADER & HERO NEBULA
   ========================================= */
.nebula-hero-fullscreen {
    position: relative; width: 100vw; min-height: 85vh;
    left: 50%; right: 50%; margin-left: -50vw !important; margin-right: -50vw !important;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    z-index: 10; background: transparent !important;
}

#nebula-canvas { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 0; pointer-events: none; 
}

.nebula-split-container { 
    display: grid; 
    grid-template-columns: 1fr 450px; 
    gap: 4rem; 
    align-items: center; 
    width: 100%; 
    max-width: 1200px; 
    padding: 0 2rem; 
    position: relative; 
    z-index: 100; 
}

.nebula-title { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.outline-text { 
    color: transparent; 
    -webkit-text-stroke: 1px #ffffff; 
}

/* GEO Snippet styling (40-60 mots) [cite: 119] */
.geo-description { 
    font-size: 1.15rem; 
    line-height: 1.6; 
    color: rgba(255, 255, 255, 0.85) !important; 
    max-width: 600px;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
}

/* =========================================
   3. VIDÉO ACCUEIL & BOUTONS (FIX PLAY/MUTE)
   ========================================= */
.phone-frame {
    position: relative; width: 100%; max-width: 320px; aspect-ratio: 9 / 16;
    border-radius: 40px; overflow: hidden; border: 6px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); background: #000;
}

.video-controls-glass {
    position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 20px; padding: 12px 25px;
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px);
    border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 200;
}

/* Correction Boutons : Remplacement SVG manquant par Masques CSS [cite: 33] */
.glass-btn { 
    background: none; border: none; cursor: pointer; color: white; 
    display: flex; align-items: center; justify-content: center; 
    min-width: 44px; min-height: 44px; /* Thumb-friendly [cite: 69] */
    transition: var(--transition-smooth);
}

.glass-btn:hover { transform: scale(1.1); color: var(--primary); }

.glass-btn.play-btn::before {
    content: ""; width: 24px; height: 24px; background-color: currentColor;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5v14l11-7z'/></svg>") no-repeat center;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5v14l11-7z'/></svg>") no-repeat center;
}

.glass-btn.mute-btn::before {
    content: ""; width: 24px; height: 24px; background-color: currentColor;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z'/></svg>") no-repeat center;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z'/></svg>") no-repeat center;
}

/* =========================================
   4. BENTO GRID & PORTFOLIO [cite: 65]
   ========================================= */
.dc-portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}

.dc-project-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-light); 
    border-radius: var(--radius); 
    overflow: hidden; 
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px); 
}

/* Scroll-Driven Animation Native [cite: 63] */
@supports (animation-range: entry) {
    .dc-project-card {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 20% cover 30%;
    }
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   5. EEAT & PREUVE SOCIALE [cite: 42, 47]
   ========================================= */
.dclik-google-review-box { 
    display: inline-flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px; 
    background: var(--bg-card) !important; 
    border: 1px solid var(--border-light); 
    padding: 20px 40px; 
    border-radius: 16px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); 
    backdrop-filter: blur(10px); 
}

.glass-badge { 
    position: absolute; bottom: 30px; right: -20px; 
    background: rgba(15, 1, 34, 0.85); 
    backdrop-filter: blur(10px); 
    padding: 15px 20px; 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.15); 
    animation: floatBadge 4s ease-in-out infinite; 
}

@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================
   6. RESPONSIVE & ACCESSIBILITÉ
   ========================================= */
@media (max-width: 960px) {
    .nebula-hero-fullscreen { height: auto; padding: 80px 0; }
    .nebula-split-container { grid-template-columns: 1fr; text-align: center; }
    .nebula-col-video { order: -1; margin-bottom: 20px; display: flex; justify-content: center; }
    .phone-frame { max-width: 280px; }
    .geo-description { margin: 0 auto; }
}

/* Désactivation des animations si l'utilisateur préfère réduire le mouvement (Accessibilité) */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* =========================================
   RECONSTRUCTION DU CONFIGURATEUR DCLIK
   ========================================= */

#dclik-wrapper .dc-configurator {
    padding: 100px 0;
    background: transparent !important;
}

/* Titre avec dégradé et hiérarchie claire */
#dclik-wrapper .dc-configurator h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 40px;
    letter-spacing: -1px;
}

/* Grille Bento responsive */
#dclik-wrapper .dc-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Cartes avec effet Glassmorphism et Elevation */
#dclik-wrapper .dc-choice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

/* État Hover : Simulation de profondeur (Z-axis) */
#dclik-wrapper .dc-choice-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* État Actif (Sélectionné) */
#dclik-wrapper .dc-choice-card.active {
    background: rgba(4, 227, 145, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(4, 227, 145, 0.2);
}

#dclik-wrapper .dc-choice-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

#dclik-wrapper .dc-choice-card.active h4 {
    color: var(--primary);
}

/* Bouton CTA Premium : Thumb-friendly (>44px) */
#dclik-wrapper .btn-dclik {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    background: var(--primary);
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    min-height: 54px; /* Respect des normes de conversion 2026 [cite: 17, 69] */
    box-shadow: 0 10px 25px rgba(4, 227, 145, 0.3);
    text-transform: none;
}

#dclik-wrapper .btn-dclik:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(4, 227, 145, 0.5);
    filter: brightness(1.1);
}