:root {
    /* --- COULEURS PRINCIPALES --- */
    --primary: #ff1796;
    --primary-rgb: 255, 23, 150; /* Utilisé pour les transparences (rgba) */
    --secondary: #3ad0ff;
    --gold: #ffbb00;
    
    /* --- COULEURS TEXTE --- */
    --text-main: #ffffff;
    --text-muted: #b0b8c1;

    --green: #00ff7f;
    
    /* --- ARRIERE-PLANS --- */
    --bg-dark: #0f1013;
    --bg-card: rgba(30, 32, 40, 0.6);
    --bg-nav: rgba(15, 16, 19, 0.85);
    --bg-input: rgba(0, 0, 0, 0.3);
    --bg-input-focus: rgba(0, 0, 0, 0.5);
    --bg-accent-low: rgba(var(--primary-rgb), 0.15); /* Fond rose très léger */
    --bg-accent-low-green: rgba(0, 255, 0, 0.15); /* Fond vert très léger */
    
    /* --- DEGRADÉS --- */
    --gradient-text: linear-gradient(to right, var(--primary), var(--secondary));
    --gradient-section: linear-gradient(180deg, transparent, rgba(255,255,255,0.02), transparent);
    
    /* --- EFFETS & BORDURES --- */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-border-light: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glow-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
    --backdrop: blur(10px);
    --transition: all 0.3s ease;
    
    /* --- DIMENSIONS & FONTS --- */
    --radius: 16px;
    --max-width: 1200px;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .btn { font-family: var(--font-heading); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Utilities */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.accent { color: var(--primary); }
.section { padding: 80px 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
.bg-alt { background: var(--gradient-section); }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: var(--backdrop);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.logo { font-size: 1.5rem; font-weight: bold; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:hover { color: var(--primary); }
.btn-nav {
    background: var(--primary); padding: 0.5rem 1.5rem; border-radius: 50px;
    color: white ; transition: var(--transition);
}
.btn-nav:hover { box-shadow: var(--glow-shadow); }
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding-top: 80px;
}
.hero-content { text-align: center; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-visual { position: relative; width: 250px; height: 250px; margin: 0 auto 30px; }
.avatar-img { 
    width: 100%; height: 100%;
    position: relative; z-index: 2; 
}
.glow-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 260px; height: 260px; 
    background: var(--primary); 
    border-radius: 50%; filter: blur(40px); opacity: 0.4; z-index: 1;
}

.hero h1 { 
    font-size: 3.5rem; margin: 10px 0; 
    background: var(--gradient-text); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.dynamic-text-wrapper { font-size: 1.2rem; color: var(--secondary); margin-bottom: 20px; font-family: var(--font-heading); }
.description { margin: 20px auto; color: var(--text-muted); max-width: 600px; }

.hero-btns { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }
.socials { margin-top: 30px; font-size: 1.5rem; display: flex; gap: 20px; justify-content: center; }
.socials a:hover { transform: translateY(-5px); color: var(--primary); }

/* Buttons */
.btn { padding: 0.5em 1em; border-radius: 16px; font-weight: bold; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--glow-shadow); border: 2px solid transparent}
.btn-outline { border: 2px solid var(--primary); color: white; background: transparent;}
.btn:hover { transform: scale(1.05); }


/* Services Generic */
.services-wrapper { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.service-box {
    flex: 1; min-width: 280px; background: var(--bg-card); padding: 40px;
    border-radius: var(--radius); border: var(--glass-border); transition: var(--transition);
    /* Flex alignment pour les textes longs */
    text-align: left; display: flex; flex-direction: column; justify-content: flex-start;
}
.service-box:hover { transform: translateY(-5px); border-color: var(--secondary); }
.icon-box { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; border-left: 2px solid rgba(255,255,255,0.1); }
.timeline-item { margin-bottom: 40px; padding-left: 30px; position: relative; }
.timeline-dot {
    position: absolute; left: -6px; top: 5px; width: 10px; height: 10px;
    background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary);
}
.timeline-date { font-size: 0.9rem; color: var(--secondary); margin-bottom: 10px; font-family: var(--font-heading); font-weight: bold; }
.timeline-content { 
    background: var(--bg-card); padding: 20px; border-radius: 10px; border: var(--glass-border); 
    transition: var(--transition);
}
.timeline-content:hover { border-color: var(--primary); transform: translateX(5px); }
.timeline-content h3 { color: white; margin-bottom: 5px; }
.timeline-content p { font-size: 0.95rem; color: var(--text-muted); }

/* Contact Form */
.glass-form {
    max-width: 600px; margin: 0 auto; background: var(--bg-card); padding: 40px;
    border-radius: var(--radius); border: var(--glass-border);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; 
    background: var(--bg-input); 
    border: var(--glass-border);
    border-radius: 8px; color: white; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { 
    outline: none; border-color: var(--primary); background: var(--bg-input-focus); 
}
#form-status { margin-top: 15px; font-weight: bold; text-align: center; }

footer { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: 0.9rem; border-top: var(--glass-border); margin-top: 50px;}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-visual { width: 180px; height: 180px; }
    .glow-circle { width: 190px; height: 190px; }
    
    .nav-links {
        position: fixed; top: 60px; right: -100%; width: 100%; height: calc(100vh - 60px);
        background: var(--bg-dark); flex-direction: column; justify-content: center; transition: var(--transition);
        border-left: var(--glass-border);
    }
    .nav-links.active { right: 0; }
    .mobile-toggle { display: block; }
    .glass-form { padding: 20px; }
    .service-header { flex-direction: column; gap: 10px; }
}

/* --- NEW SERVICES STYLES --- */

.category-title {
    text-align: left;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    border-bottom: var(--glass-border);
    padding-bottom: 10px;
    width: 100%;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: var(--glass-border-light);
    padding-bottom: 10px;
}

.service-header h4 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.price-tag {
    background: var(--bg-accent-low-green);
    color: var(--green);
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    white-space: nowrap;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.service-meta {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: auto; 
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Style spécial pour la box "Gros Concept" (RGB TILT EFFECT) */
.highlight-box {
    /* Base style */
    background: rgba(20, 20, 25, 0.95); /* Plus opaque pour cacher le centre du RGB */
    border: none; /* On enlève la bordure classique car on a le RGB */
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    
    /* 3D Transform Setup */
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* L'animation des couleurs */
@keyframes rgb-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* La couche RGB derrière */
.highlight-box::after {
    content: "";
    background: linear-gradient(45deg,
        #ff0000 0%, 
        #ff9a00 10%,
        #d0de21 20%,
        #4fdc4a 30%, 
        #3fdad8 40%,
        #2fc9e2 50%, 
        #1c7fee 60%, 
        #5f15f2 70%, 
        #ba0cf8 80%, 
        #fb07d9 90%, 
        #ff0000 100%
    );
    background-size: 300% 300%; /* Pour permettre le mouvement */
    position: absolute;
    inset: -3px; /* Dépasse de 3px */
    border-radius: var(--radius);
    
    /* Effets visuels */
    filter: blur(8px);
    z-index: -1; /* Derrière la carte */
    transform: translateZ(-1px); /* Profondeur 3D */
    
    /* Animation */
    animation: rgb-flow 6s linear infinite;
    transition: opacity 0.3s ease; /* Transition douce si besoin */
}

/* AU SURVOL : L'arrière-plan RGB (bordure) devient DORÉ */
.highlight-box:hover::after {
    background: linear-gradient(45deg, #FFD700, #FFC107, #FFB300, #FFD700);
    background-size: 200% 200%;
    animation: none; /* On arrête l'animation RGB ou on la remplace si on veut */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); /* Lueur dorée supplémentaire */
}

/* On s'assure que le contenu est bien devant */
.highlight-box > * {
    transform: translateZ(20px); /* Le texte flotte un peu */
}

/* OVERRIDE: Le glare reste BLANC (lumière pure) */
.highlight-box .js-tilt-glare-inner {
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%) ;
}

/* La carte elle-même devient DORÉE au survol */
.highlight-box {
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* NOUVEAU : Calque doré invisible par défaut pour transition fluide */
.highlight-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius);
    
    /* 
       LAYER 1 (Au-dessus) : Le Spotlight BLANC qui suit la souris 
       LAYER 2 (En-dessous) : La matière OR (Gold)
    */
    background: 
        radial-gradient(
            circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(255, 255, 255, 0.8) 0%, 
            transparent 50%
        ),
        linear-gradient(135deg, #e6a800 0%, #ffcc33 100%);
    
    opacity: 0; /* Invisible */
    transition: opacity 0.4s ease;
    z-index: 0; /* Juste au-dessus du fond gris */
}

.highlight-box:hover::before {
    opacity: 1; /* Apparaît en fondu */
}

/* On garde les effets de bordure/ombre sur la boite principale */
.highlight-box:hover {
    box-shadow: 0 0 30px #e6a800, inset 0 0 20px rgba(255, 255, 255, 0.5);
    border: 1px solid #fff;
}

/* Le texte passe en NOIR */
.highlight-box:hover h4, 
.highlight-box:hover .service-desc, 
.highlight-box:hover .service-meta {
    color: #2e1c00;
    text-shadow: none;
    /* On s'assure que le texte reste bien au-dessus du fond doré */
    position: relative; 
    z-index: 2;
}

/* OVERRIDE: Le prix garde son vert éclatant avec un fond vert sombre et un GLOW */
.highlight-box:hover .price-tag {
    background-color: #2e1c00;
    color: #e6a800;
    box-shadow: 0 0 15px #e6a800; /* Green Glow */
    position: relative;
    z-index: 2;
}

/* Section Options */
.options-container {
    margin-top: 50px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.option-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.option-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 3px;
}

.option-item strong {
    color: white;
    display: block;
    margin-bottom: 5px;
}

.option-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- PORTFOLIO CAROUSEL 3D --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 480px; /* Augmenté pour laisser la place au titre */
    margin: 40px auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.video-card {
    position: absolute;
    top: 0;
    width: 60%; 
    /* On retire le style visuel d'ici pour le mettre sur le wrapper */
    background: transparent;
    border: none;
    box-shadow: none;
    
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Flex pour aligner video + titre */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nouveau conteneur pour l'iframe (le cadre visuel) */
.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    background: black;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    transition: none; 
}

/* Le TITRE sous la vidéo */
.video-title {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary); /* Rose */
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0; /* Invisible par défaut */
    text-align: center;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

/* Animation d'apparition */
@keyframes fadeTitle {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Déclencheur : Uniquement quand la carte est au CENTRE */
.pos-center .video-title {
    animation: fadeTitle 3s ease forwards;
}

/* POSITION: CENTRE */
.pos-center {
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 10;
    opacity: 1;
    filter: none;
}
/* Le wrapper prend le style "actif" */
.pos-center .video-wrapper {
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3);
    border-color: var(--primary);
}

/* POSITION: GAUCHE */
.pos-left {
    left: 20%;
    transform: translateX(-50%) scale(0.8);
    z-index: 5;
    opacity: 0.6;
    filter: grayscale(80%) brightness(0.7);
    cursor: pointer;
}

/* POSITION: DROITE */
.pos-right {
    left: 80%;
    transform: translateX(-50%) scale(0.8);
    z-index: 5;
    opacity: 0.6;
    filter: grayscale(80%) brightness(0.7);
    cursor: pointer;
}

/* Hover Effects sur les côtés */
.pos-left:hover, .pos-right:hover {
    opacity: 0.8;
    filter: grayscale(50%) brightness(0.9);
    z-index: 6;
}
.pos-left:hover .video-wrapper, .pos-right:hover .video-wrapper {
    border-color: var(--secondary);
}

/* Désactiver interactions sur iframes de côté */
.pos-left iframe, .pos-right iframe {
    pointer-events: none;
}
/* Overlay visuel */
.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 20;
    background: transparent;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
    .carousel-container {
        height: auto;
        flex-direction: column;
        gap: 40px; /* Plus d'espace pour les titres */
        align-items: center;
    }
    
    .video-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        left: auto;
        transform: none;
        opacity: 1;
        filter: none;
        cursor: default;
    }
    
    /* Sur mobile, on affiche les titres tout le temps */
    .video-title {
        opacity: 1;
        font-size: 1.2rem;
        margin-top: 10px;
    }
    
    .pos-center .video-title {
        animation: none; /* Pas d'anim sur mobile */
    }

    .pos-left iframe, .pos-right iframe {
        pointer-events: auto;
    }

    /* Ordre visuel */
    .pos-center { order: 1; }
    .pos-left { order: 2; }
    .pos-right { order: 3; }

    .desktop-only-hint { display: none; }
}
