/* ==========================================================================
   ZACKVISION.FR - STYLES PRINCIPAUX
   ========================================================================== */

/* --- 1. Variables & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;600;800&family=Orbitron:wght@700;900&display=swap');

:root {
    --bg-base: #050505;
    --bg-surface: #0a0a0c;
    --card-bg: rgba(20, 20, 25, 0.85);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-muted: #a0a0b0;
    --accent-red: #FF0000;
    --accent-darkred: #8B0000;
    --accent-clip: #DC2626;
    --whatsapp-green: #25D366;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Orbitron', sans-serif;
    --header-height: 85px;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 0, 0, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(220, 38, 38, 0.05), transparent 25%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. Header & Navigation --- */
.site-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-logo {
    width: 45px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.top-logo:hover {
    transform: scale(1.1);
}

/* --- 4. Layout: Bento Grid --- */
.bento-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-auto-rows: auto;
    gap: 20px;
    perspective: 1000px;
    margin: 20px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* --- 5. Composant: Cards --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) {
    .card:hover {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 30px 60px rgba(255, 0, 0, 0.15);
    }
}

/* Identité (Profil) */
.card-identity {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    justify-content: flex-start;
    align-items: stretch;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    gap: 0;
    padding: 0;
}

.profile-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
}

.profile-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 130px;
    background: linear-gradient(to top, rgba(14,14,18,1) 0%, transparent 100%);
    z-index: 1;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.card-identity-body {
    padding: 20px 25px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.brand-name {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #fff, #ffcccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-role {
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.brand-bio {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.95rem;
    max-width: 95%;
    text-align: left;
}

/* Boutons */
.btn-whatsapp { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    padding: 12px 24px; 
    background: var(--whatsapp-green); 
    color: white; 
    font-weight: 800; 
    border-radius: 12px; 
    transition: transform 0.2s, background 0.3s; 
    width: 100%; 
    margin-top: 15px;
}
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { 
    transform: translateY(-2px); 
    outline: 2px solid #fff; 
    outline-offset: 2px; 
}
.btn-whatsapp:active { transform: scale(0.98); }

.social-grid {
    display: flex; gap: 12px; margin-top: 20px; width: 100%; justify-content: center; flex-wrap: wrap;
}

.social-btn {
    width: 45px; height: 45px; border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.social-btn:hover, .social-btn:focus-visible {
    background: white; color: black; transform: translateY(-3px);
    outline: none;
}

/* VSL (Video) */
.card-vsl { grid-column: 2 / 3; grid-row: 1 / 2; padding: 0; border: 0; background: #000; }
.video-container { width: 100%; position: relative; padding-bottom: 56.25%; height: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--card-border); }
.video-overlay { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; font-weight: 700; color: #fff; z-index: 10; pointer-events: none; }
.video-container iframe, .video-container .yt-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.yt-placeholder {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://img.youtube.com/vi/rqUGMPMmwoE/maxresdefault.jpg');
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.yt-placeholder:hover {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://img.youtube.com/vi/rqUGMPMmwoE/maxresdefault.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.yt-placeholder i { 
    font-size: 4rem; 
    color: #fff; 
    text-shadow: 0 0 20px rgba(0,0,0,0.5); 
    transition: transform 0.3s; 
    opacity: 0.9;
}

.yt-placeholder:hover i { 
    transform: scale(1.1); 
    color: var(--accent-red);
    opacity: 1;
}

/* Services */
.card-services { grid-column: 2 / 3; grid-row: 2 / 3; }
.service-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; line-height: 1.1; }
.service-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }

.service-box {
    background: rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; margin-bottom: 15px; border-left: 3px solid var(--accent-red);
}
.service-box.brand { border-left-color: var(--accent-darkred); }
.service-box.dev { border-left-color: var(--accent-clip); }
.service-box h3 { color: #fff; margin-bottom: 8px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.service-box p { color: var(--text-muted); font-size: 0.95rem; }
.service-box ul { margin-top: 10px; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; }

/* À Propos */
.card-about { grid-column: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-list { list-style: none; margin-top: 15px; }
.about-list li { margin-bottom: 10px; color: var(--text-muted); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.about-list li::before { content: '✔'; color: var(--whatsapp-green); font-weight: bold; }

.process-step { background: rgba(255,255,255,0.03); padding: 15px 20px; border-radius: 12px; margin-bottom: 15px; border-left: 3px solid var(--accent-red); }
.process-step strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: 5px; }

/* Galerie */
.card-gallery { grid-column: 1 / 3; background: rgba(20, 20, 25, 0.6); }
.gallery-header { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
.gallery-filters { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.filter-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-weight: 600; transition: all 0.3s ease; }
.filter-btn:hover, .filter-btn:focus-visible, .filter-btn.active { background: var(--accent-red); color: #fff; border-color: var(--accent-red); outline: none; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-item { background: rgba(255, 255, 255, 0.03); border-radius: 16px; overflow: hidden; border: 1px solid var(--card-border); transition: transform 0.3s ease, border-color 0.3s ease; display: block; }
.project-img-container { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.project-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-overlay { position: absolute; inset: 0; background: rgba(220, 38, 38, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.project-overlay span { font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; color: white; background: #000; padding: 8px 16px; border-radius: 8px; }

.project-item:hover .project-overlay, .project-item:focus-visible .project-overlay { opacity: 1; }
.project-item:hover img, .project-item:focus-visible img { transform: scale(1.1); }
.project-item:hover, .project-item:focus-visible { transform: translateY(-5px); border-color: var(--accent-red); outline: none; box-shadow: 0 10px 20px rgba(255,0,0,0.1); }

.project-info { padding: 15px; }
.project-info h3 { font-size: 1rem; margin-bottom: 4px; color: #fff; }
.project-info p { font-size: 0.85rem; color: var(--text-muted); }

/* --- 6. Footer & Local SEO --- */
.site-footer {
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid var(--card-border);
    margin-top: 60px;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4 i { color: var(--accent-red); }

.footer-col p, .footer-col ul {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { transition: color 0.3s; }
.footer-col ul li a:hover, .footer-col ul li a:focus-visible { color: var(--accent-red); outline: none; }

.local-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.local-links a {
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.local-links a:hover {
    background: var(--accent-red);
    color: #white;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* --- 7. Responsive --- */
@media (max-width: 768px) {
    .site-header { padding: 15px 0; }
    .top-logo { width: 38px; }
    
    :root { --header-height: 70px; }
    
    .bento-container { 
        grid-template-columns: 1fr; 
        gap: 16px; 
        margin: 20px auto;
        padding: 0 16px;
    }
    
    .card { padding: 24px; border-radius: 20px; }
    
    .card-identity { padding: 0; }
    .profile-img-wrap { aspect-ratio: 1 / 1; }
    .card-identity-body { padding: 20px 20px 25px; }
    
    .brand-name { font-size: 1.6rem; }
    .brand-bio { font-size: 0.9rem; text-align: center; }
    
    .card-about { grid-template-columns: 1fr; gap: 24px; }
    
    .landing-hero { padding: 100px 20px 60px; }
    .landing-hero h1 { font-size: 2.2rem; line-height: 1.2; }
    
    .article-content { 
        padding: 30px 20px; 
        margin-top: -30px; 
        border-radius: 24px; 
    }
    
    .landing-section { margin: 40px auto; }
    .glass-tile { padding: 25px; }
    
    .pro-tip { 
        flex-direction: column; 
        gap: 15px; 
        padding: 20px; 
        text-align: center;
    }
    
    .cta-box { padding: 40px 20px; }
    
    .expert-block {
        flex-direction: column !format;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    
    .expert-photo {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .brand-name { font-size: 1.4rem; }
    .service-title { font-size: 1.4rem; }
    .social-btn { width: 42px; height: 42px; }
    .landing-hero h1 { font-size: 1.8rem; }
    .checklist { grid-template-columns: 1fr; }
}

/* --- UX/UI: Scrollbar & Accessibility --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
    border-left: 1px solid var(--card-border);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}
*:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 4px;
}
/* --- 8. Landing Pages & Articles (Premium V5) --- */
.landing-hero {
    width: 100%;
    padding: 60px 20px 80px;
    text-align: center;
    background: radial-gradient(circle at center, var(--accent-darkred) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    pointer-events: none;
}

.landing-hero h1 {
    font-family: var(--font-logo);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #ff8888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,0,0,0.2));
    letter-spacing: -1px;
}

.landing-section {
    width: 100%;
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.glass-tile {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    transition: all 0.4s ease;
}

.glass-tile:hover {
    border-color: var(--accent-red);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.1);
    transform: translateY(-5px);
}

.landing-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.landing-section h2::before {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

.pro-tip {
    background: linear-gradient(90deg, rgba(255,0,0,0.1), transparent);
    border-left: 4px solid var(--accent-red);
    border-radius: 0 16px 16px 0;
    padding: 30px;
    margin: 50px 0;
    display: flex;
    gap: 25px;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.checklist-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: 0.3s;
}

.checklist-item:hover {
    background: rgba(255,0,0,0.05);
    border-color: var(--accent-red);
}

.checklist-item i {
    color: var(--accent-red);
    font-size: 1.4rem;
    margin-top: 3px;
}

.cta-box {
    background: #000;
    border: 1px solid var(--accent-red);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(255,0,0,0.1);
}

.cta-box::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-red), transparent, var(--accent-red));
    z-index: -1;
    border-radius: 32px;
    opacity: 0.3;
}

.article-content {
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 60px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.city-grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.city-link {
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: 0.3s;
    text-align: center;
    border: 1px solid transparent;
}

.city-link:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: #fff;
    transform: scale(1.05);
}

