/* --- VARIABLES & RESET --- */
:root {
    --primary: #2563eb;       /* Bleu pro */
    --primary-dark: #1e40af;
    --secondary: #ec4899;     /* Rose créatif */
    --dark: #0f172a;          /* Couleur sombre principale */
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    padding-bottom: 90px; /* Espace pour les boutons flottants sur mobile */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background-color: #e0e7ff;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 40px;
    width: 100%;
}

/* Logo Modification: Collé et même couleur sombre */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark); /* Même couleur que Vizhion avant */
    letter-spacing: -0.5px; /* Pour coller les lettres */
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
    font-size: 1rem;
}

.nav-link:hover { color: var(--primary); }

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0; /* Réduction padding mobile */
    background: radial-gradient(circle at 50% 50%, #eff6ff 0%, #fff 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--primary-dark);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: rotate(0deg);
}

/* --- SERVICES GRID --- */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e7ff, #fae8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background-color: var(--light);
    color: var(--gray);
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* --- SHOWCASE --- */
.showcase {
    padding: 80px 0;
    background-color: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(12px, 2vw, 30px);
    padding-bottom: 20px;
}

.portrait-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #e2e8f0;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
}

.portrait-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.ai-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portrait-card:hover .ai-image {
    transform: scale(1.05);
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 80px 0;
}

.contact-box {
    background: var(--dark);
    border-radius: 20px;
    padding: 60px 20px;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.contact-info h3 { font-size: 2rem; margin-bottom: 15px; }
.contact-info p { color: #94a3b8; margin-bottom: 40px; font-size: 1.1rem; }

.direct-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link-card {
    background: rgba(255,255,255,0.1);
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    min-width: 220px;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
}

.contact-link-card:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.contact-link-card:hover i, .contact-link-card:hover span {
    color: var(--dark);
}

.contact-link-card i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-link-card span {
    font-weight: 600;
    color: var(--white);
}

/* --- FLOATING BUTTONS --- */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    align-items: flex-end;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.float-btn:hover {
    transform: scale(1.1) translateX(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.float-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
}

.float-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.btn-whatsapp { background-color: #25D366; }
.btn-phone { background-color: var(--primary); }
.btn-email { background-color: #EA4335; }

@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.floating-actions { animation: slideIn 0.8s ease-out 1s backwards; }

/* --- FOOTER --- */
footer {
    background-color: var(--white);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    color: var(--gray);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    /* Navigation Mobile */

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding-bottom: 20px;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Cacher le bouton "Appeler" du menu sur mobile pour gagner de la place */
    nav .btn-primary {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Mettre l'image en haut sur mobile pour l'effet visuel immédiat */
    .hero-image {
        order: -1; 
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr; /* 1 seule colonne */
    }
    
    .service-card {
        padding: 25px;
    }

    /* Contact Mobile */
    .direct-links {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-link-card {
        width: 100%;
        justify-content: center;
    }

    /* Floating Buttons Mobile */
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .float-btn::before { display: none; } /* Pas de tooltip au toucher */
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    .contact-box { padding: 40px 15px; }
    .contact-link-card { padding: 15px; }
    
    /* Responsive Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .portrait-card { border-radius: 8px; }
}

@media (max-width: 380px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .portrait-card { border-radius: 8px; }
}

@media (min-width: 600px) and (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- EMOTIONAL CTA SECTION --- */
.emotional-cta {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.emotional-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.emotional-cta i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.emotional-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emotional-cta p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.6;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
