:root {
    --primary: #2563eb;
    --secondary: #ec4899;
    --dark: #0f172a;
    --white: #ffffff;
    --gray: #64748b;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: var(--dark);
}

.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; }


.container {
    max-width: 1600px; 
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- HEADER --- */
header {
    background: var(--white);
    padding: 15px 0; 
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px; 
}

.logo {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0; 
}

.back-btn, .whatsapp-btn {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    white-space: nowrap;
}
.back-btn:hover { color: var(--dark); }
.whatsapp-btn { color: var(--primary); }

/* --- INTRO --- */
.intro {
    text-align: center;
    padding: clamp(40px, 8vw, 80px) 20px; 
}

.intro h1 {
    font-size: clamp(1.8rem, 6vw, 3rem); 
    margin-bottom: 10px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro p {
    color: #64748b;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* --- GALERIE GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(12px, 2vw, 30px); 
    padding-bottom: 80px;
}

/* --- CARTE IMAGE --- */
.portrait-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; 
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #e2e8f0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.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);
}

/* --- LIGHTBOX / MODALE (COMPARAISON) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; /* Au dessus des boutons flottants */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.95); 
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.close:hover { color: var(--primary); background: rgba(255,255,255,0.2); }

/* Conteneur de la comparaison */
.comparison-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 90vh; /* Prend 90% de la hauteur */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.comp-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-side.after { border-left: 2px solid rgba(255,255,255,0.2); }

.comp-side img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #1e293b; 
}

/* Labels flottants */
.comp-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 10;
}

.label-before { background-color: rgba(100, 116, 139, 0.8); color: white; }
.label-after { background-color: var(--primary); color: white; box-shadow: 0 0 15px var(--primary); }

/* Animation */
@keyframes zoom { from {opacity:0; transform:scale(0.95);} to {opacity:1; transform:scale(1);} }
.comparison-container { animation-name: zoom; animation-duration: 0.3s; }

/* --- FLOATING BUTTONS (AJOUTÉ) --- */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999; /* En dessous de la modal (1000) */
    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;
    text-decoration: none;
}

.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; }

/* --- RESPONSIVE --- */

/* Responsive Modal */
@media (max-width: 768px) {
    .comparison-container {
        flex-direction: column; /* Empile les images sur mobile */
        height: 95vh;
    }
    .comp-side.after { border-left: none; border-top: 2px solid rgba(255,255,255,0.2); }
    .close { top: 10px; right: 15px; width: 40px; height: 40px; font-size: 30px; }

    /* Responsive Floating Buttons */
    .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 */
}

/* Responsive Grid */
@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); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive Button */
@media (max-width: 768px) {
    .btn-cta {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .intro {
        padding: clamp(30px, 8vw, 60px) 15px;
    }
    
    .intro h1 {
        font-size: clamp(1.4rem, 5vw, 2.5rem);
    }
    
    .intro p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 20px;
    }
    
    .btn-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-step {
        padding: 20px;
    }
}

@media (min-width: 1024px) {
    .btn-cta {
        padding: 16px 40px;
        font-size: 1.05rem;
    }
}

/* --- 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; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.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);
}

/* --- PROCESS SECTION --- */
.process-section {
    padding: 80px 20px;
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 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;
    font-weight: 800;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e2e8f0;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
    background-color: #f8fafc;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    color: var(--gray);
}
