/* --- RESET & BASES --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #111; color: white; overflow-x: hidden; cursor: none; }
html { scroll-behavior: smooth; }

/* --- CURSEUR VISEUR --- */
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 9999; }
.cursor-dot { width: 8px; height: 8px; background-color: white; }
.cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.5); transition: width 0.2s, height 0.2s, background-color 0.2s; }
body:hover .cursor-outline.hovered { width: 60px; height: 60px; background-color: rgba(91, 155, 213, 0.3); border-color: #5b9bd5; }

/* --- LOADER --- */
.loader-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #111; z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease-out; }
.loader-logo { width: 100px; height: 100px; border-radius: 50%; border: 4px solid white; animation: pulse 1.5s infinite; object-fit: cover; }
.loader-hidden { opacity: 0; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(255,255,255,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }}

/* --- HEADER --- */
header { position: absolute; top: 0; width: 100%; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; z-index: 100; }
.access-btn { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.4); border-radius: 12px; color: white; font-size: 1.2rem; transition: 0.3s; }
.access-btn:hover { background: white; color: #5b9bd5; transform: scale(1.1); }
.header-logo { height: 60px; width: 60px; object-fit: cover; border-radius: 50%; border: 2px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.header-logo:hover { transform: scale(1.1) rotate(5deg); }
.menu-toggle { font-size: 2rem; cursor: pointer; color: white; transition: 0.3s; }
.menu-toggle:hover { transform: scale(1.1); }

/* --- HERO SECTION (BLEU) --- */
.hero-section {
    position: relative; text-align: center; padding-top: 120px; padding-bottom: 120px;
    background: linear-gradient(135deg, #5b9bd5 0%, #4a90e2 100%) !important; 
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); z-index: 1;
}
.hero-text h1 { font-size: 5rem; font-weight: 900; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-text h3 { letter-spacing: 4px; font-weight: 600; opacity: 0.9; }

/* --- TÉLÉPHONES --- */
.phones-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; position: relative; z-index: 50; }
.phone { width: 220px; height: 450px; border: 8px solid #000; border-radius: 35px; overflow: hidden; background: black; transition: 0.4s; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone:hover { transform: scale(1.15) translateY(-20px); z-index: 100; border-color: white; }
.phone-center { transform: scale(1.1); z-index: 60; }
.phone-center:hover { transform: scale(1.25) translateY(-20px); z-index: 100; }
.phone-overlay { position: absolute; bottom: 20px; left: 0; width: 100%; text-align: center; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding-top: 40px; pointer-events: none; }

/* --- BANDE DÉFILANTE --- */
.marquee-strip { background: #000; padding: 25px 0; white-space: nowrap; overflow: hidden; border-top: 1px solid #333; border-bottom: 1px solid #333; margin-top: -60px; padding-top: 80px; }
.marquee-content { display: inline-block; animation: scroll 20s linear infinite; }
.marquee-content span { font-size: 3rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px #666; margin-right: 50px; }
.marquee-content span.highlight { color: #5b9bd5; -webkit-text-stroke: 0; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- MAP & SECTION (CORRECTION ICI) --- */
.about-section { padding: 80px 50px; background: #111; display:flex; justify-content:center; }
.about-container { max-width: 1000px; display:flex; gap:50px; align-items:center; }
.about-image img { width: 300px; border-radius: 20px; filter: grayscale(100%); transition: 0.3s; }
.about-image:hover img { filter: grayscale(0); }

.map-section { background: linear-gradient(135deg, #5b9bd5 0%, #4a90e2 100%); padding: 80px 20px; overflow:hidden; }
.map-container-global { max-width: 1200px; margin: 0 auto; display: flex; gap: 50px; align-items: center; }
.map-stats { flex: 1; } 

.interactive-map { 
    flex: 1.5; 
    position: relative; 
    display: flex; /* Assure que le contenu est bien géré */
    align-items: center;
}

/* LA CORRECTION POUR L'IMAGE DÉFORMÉE */
.map-image { 
    width: 100%; 
    height: auto !important; /* Force le respect des proportions */
    object-fit: contain; /* S'assure que l'image ne s'écrase pas */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number { font-size: 4rem; font-weight: 900; color: #111; display:block; }
.highlight-script { font-family: 'Georgia', serif; font-style: italic; color: #111; background: rgba(255,255,255,0.4); padding: 0 15px; border-radius: 50px; }
.stat-list p { font-size: 1.1rem; font-weight: bold; color: white; background: #111; display: inline-block; padding: 5px 15px; transform: skew(-10deg); margin-bottom: 30px; }

.map-pin { position: absolute; transform: translate(-50%, -50%); cursor: pointer; z-index: 10; }
.pin-logo { width: 40px; height: 40px; background: white; border-radius: 50%; padding: 4px; transition: 0.3s; border: 2px solid white; }
.pin-logo img { width: 100%; height: 100%; object-fit: contain; }
.map-pin:hover .pin-logo { transform: scale(1.4); border-color: #111; box-shadow: 0 0 15px rgba(0,0,0,0.3); }
.pin-tooltip { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%) translateY(10px); background: #111; color: white; padding: 8px 12px; border-radius: 8px; font-size: 0.8rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: 0.3s; pointer-events: none; }
.map-pin:hover .pin-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* --- PORTFOLIO --- */
.portfolio-section { padding: 100px 50px; background-color: #0a0a0a; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 900; margin-bottom: 40px; letter-spacing: 2px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.portfolio-item.wide { grid-column: span 2; }
.portfolio-item { position: relative; height: 300px; overflow: hidden; border-radius: 15px; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.item-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); transform: translateY(100px); transition: 0.3s; }
.item-overlay h3 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; color: white; }
.item-overlay p { color: #5b9bd5; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .item-overlay { transform: translateY(0); }

/* --- FILTRES --- */
.filters-container { text-align: center; margin-bottom: 40px; }
.filter-btn { background: transparent; border: 2px solid #333; color: white; padding: 10px 20px; margin: 0 5px; border-radius: 30px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.filter-btn:hover, .filter-btn.active { background: #5b9bd5; border-color: #5b9bd5; color: white; }

/* --- BANDEAU CTA --- */
.cta-banner { padding: 100px 20px; background: linear-gradient(135deg, #5b9bd5 0%, #4a90e2 100%); text-align: center; color: white; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.1; pointer-events: none; }
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-banner h2 { font-size: 3.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 30px; line-height: 1.1; text-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.cta-subtitle { font-size: 1.2rem; font-weight: 600; letter-spacing: 2px; opacity: 0.9; margin-bottom: 10px; display: block; }

/* LOGOS TAILLE FIXE */
.cta-logos { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 30px; 
    margin-bottom: 50px; 
    margin-top: 40px; 
}

.cta-logos img { 
    height: 60px; 
    width: auto; 
    max-width: 150px; 
    object-fit: contain; 
    opacity: 0.8; /* Légèrement transparent de base */
    transition: 0.3s; 
}

.cta-logos img:hover { 
    opacity: 1; /* Devient 100% visible au passage de la souris */
    transform: scale(1.1); /* Petit zoom sympa */
}

/* Bouton Noir du CTA */
.btn-cta-dark { display: inline-block; padding: 18px 45px; background: #111; color: white; font-weight: 900; text-decoration: none; font-size: 1.2rem; border-radius: 50px; transition: 0.3s; border: 2px solid #111; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-cta-dark:hover { background: white; color: #111; transform: translateY(-3px); }

/* --- FOOTER & BOUTONS --- */
footer { background-color: #000; padding: 50px 20px; text-align: center; border-top: 1px solid #222; }
.footer-logo { font-size: 2rem; font-weight: 900; margin-bottom: 10px; letter-spacing: 2px; }
.footer-socials a { color: white; font-size: 1.5rem; margin: 0 15px; transition: 0.3s; }
.footer-socials a:hover { color: #5b9bd5; }

.btn-rouge { display: inline-block; padding: 15px 30px; background-color: #5b9bd5; color: white; font-weight: bold; text-decoration: none; border-radius: 50px; transition: 0.3s; border: 2px solid #5b9bd5; }
.btn-rouge:hover { background-color: transparent; color: #5b9bd5; }
.btn-outline { display: inline-block; padding: 15px 40px; border: 2px solid white; color: white; font-weight: bold; text-decoration: none; border-radius: 50px; transition: 0.3s; }
.btn-outline:hover { background-color: white; color: black; }

/* --- MENU OVERLAY --- */
.overlay-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #0b1a2e; z-index: 99999; display: flex; flex-direction: column; justify-content: center; padding-left: 10%; transform: translateX(100%); transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); }
.overlay-menu.active { transform: translateX(0); }
.close-btn { position: absolute; top: 30px; right: 40px; font-size: 2.5rem; cursor: pointer; color: white; }
.menu-content a { display: block; color: white; font-size: 3rem; font-weight: 800; text-decoration: none; text-transform: uppercase; margin-bottom: 15px; transition: 0.3s; }
.menu-content a:hover { color: #5b9bd5; margin-left: 15px; }


/* =========================================
   NOUVEAU : TRANSITIONS & SYSTÈME FAVORIS
   ========================================= */

/* --- 1. TRANSITIONS DE PAGES (EFFET APP) --- */
body {
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.5s ease-in-out; /* Apparition douce */
}
body.loaded {
    opacity: 1; /* Visible quand chargé */
}

/* --- 2. SYSTÈME DE FAVORIS (COEURS) --- */
.photo-wrapper {
    position: relative;
    display: block;
}

.heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20; /* Au-dessus de l'image */
    transition: 0.3s;
    border: 2px solid transparent;
}

.heart-btn i {
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

.heart-btn:hover {
    background: white;
}
.heart-btn:hover i {
    color: #111;
}

/* État sélectionné (Rouge) */
.heart-btn.active {
    background: #d90429;
    border-color: #d90429;
    animation: heartPop 0.3s ease-out;
}
.heart-btn.active i {
    color: white;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- 3. BOUTON FLOTTANT "ENVOYER" --- */
#selection-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Caché en bas */
    background: #111;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 999;
    border: 2px solid #5b9bd5;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effet rebond */
}

#selection-bar.visible {
    transform: translateX(-50%) translateY(0); /* Visible */
}

#selection-count {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-send-sel {
    background: #5b9bd5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-send-sel:hover { background: white; color: #5b9bd5; }


/* --- SLIDER AVANT / APRÈS --- */
.comparison-section {
    padding: 80px 20px;
    background-color: #0e0e0e;
}

.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Hauteur du slider */
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid #333;
    cursor: col-resize; /* Curseur qui indique qu'on peut bouger */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.slider-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Empêche de glisser l'image elle-même */
}

/* Conteneur de l'image AVANT (celle qu'on coupe) */
.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Commence à la moitié */
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid #5b9bd5; /* Ligne bleue de séparation */
}

/* L'image AVANT doit faire la largeur TOTAL du conteneur parent pour ne pas être écrasée */
.image-before img {
    width: 1000px; /* Doit être égal au max-width du container ou géré par JS */
}

/* Les étiquettes Avant/Après */
.label-img {
    position: absolute;
    top: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    pointer-events: none;
}
.image-after .label-img { right: 20px; }
.image-before .label-img { left: 20px; }

/* La poignée (Handle) */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Commence au milieu */
    height: 100%;
    width: 40px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.handle-circle {
    width: 40px;
    height: 40px;
    background: #5b9bd5;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.handle-line {
    width: 2px;
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .slider-wrapper { height: 400px; }
}

/* --- POPUP CLIENT (E-COMMERCE) --- */
#client-popup { 
    display: none; position: fixed; z-index: 2000; top: 0; left: 0; 
    width: 100%; height: 100%; background: rgba(0,0,0,0.9); 
    justify-content: center; align-items: center; backdrop-filter: blur(5px);
}
.popup-content { 
    background: #1a1a1a; padding: 40px; border-radius: 15px; 
    max-width: 400px; width: 90%; text-align: center; 
    border: 2px solid #5b9bd5; box-shadow: 0 15px 30px rgba(0,0,0,0.5); position: relative; 
}
.popup-content h3 { color: white; margin-bottom: 10px; font-size: 1.5rem; text-transform: uppercase; }
.popup-content p { color: #aaa; margin-bottom: 25px; font-size: 0.9rem; }
.popup-close { position: absolute; top: 15px; right: 20px; color: white; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.popup-close:hover { color: #5b9bd5; transform: scale(1.2); }
.popup-input { 
    width: 100%; padding: 15px; margin-bottom: 15px; background: #333; 
    border: 1px solid #444; color: white; border-radius: 5px; font-size: 1rem;
}
.popup-input:focus { border-color: #5b9bd5; outline: none; }
.btn-confirm { 
    width: 100%; padding: 15px; background: #5b9bd5; color: white; 
    font-weight: 900; border: none; border-radius: 50px; cursor: pointer; transition: 0.3s; font-size:1.1rem;
}
.btn-confirm:hover { background: white; color: #5b9bd5; }

/* --- BOUTON RETOUR EN HAUT (JAUGE) --- */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.2);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

.progress-wrap svg.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Commence en haut */
}

.progress-wrap svg path {
    fill: none;
    stroke: #5b9bd5; /* Le bleu Sharko */
    stroke-width: 4;
    box-sizing: border-box;
    transition: all 200ms linear;
}

/* --- BOUTON POURBOIRE (TIP JAR) --- */
.btn-tip {
    display: inline-block; margin-top: 20px; padding: 15px 30px; 
    background: #ffb703; color: #111; font-weight: 900; 
    text-decoration: none; border-radius: 50px; border: 2px solid #ffb703; 
    transition: 0.3s; margin-left: 15px; box-shadow: 0 5px 15px rgba(255,183,3,0.3);
}
.btn-tip:hover { transform: scale(1.05); background: transparent; color: #ffb703; }

/* --- BOUTON EXPORT STORY INSTA --- */
.btn-story { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    color: white; padding: 15px 30px; border: none; border-radius: 50px; 
    font-size: 1.1rem; font-weight: 900; cursor: pointer; transition: 0.3s; 
    margin-top: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); display: block;
}
.btn-story:hover { transform: scale(1.05); filter: brightness(1.2); }

/* --- PRÉVISUALISATION CADRE MURAL --- */
#frame-modal {
    display: none; position: fixed; z-index: 3000; top: 0; left: 0; 
    width: 100%; height: 100%; 
    /* Effet Mur de Galerie avec Spot Lumineux */
    background: radial-gradient(circle at 50% 40%, #3a3a3a 0%, #111 80%); 
    justify-content: center; align-items: center; flex-direction: column;
}
.frame-container {
    position: relative;
    padding: 25px; /* Le Passe-partout (marie-louise) blanc */
    background: #fdfdfd;
    box-shadow: 
        0 0 0 15px #1a1a1a, /* Le Cadre noir épais */
        0 40px 60px rgba(0,0,0,0.8), /* L'ombre portée très douce sur le mur */
        inset 0 0 10px rgba(0,0,0,0.3); /* L'ombre interne du cadre */
    max-width: 85%;
    max-height: 65vh;
    transition: transform 0.3s ease;
}
.frame-container img {
    display: block;
    max-width: 100%;
    max-height: calc(65vh - 50px);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5); /* Profondeur de la photo */
}
.btn-close-frame { position: absolute; top: 20px; right: 40px; color: white; font-size: 3rem; cursor: pointer; z-index: 3005; transition: 0.3s; }
.btn-close-frame:hover { color: #ffb703; transform: scale(1.2); }

/* --- NOUVEAUX BOUTONS --- */
.btn-wall {
    background: #f1c40f; color: #111; padding: 15px 30px; border: none; border-radius: 50px; 
    font-size: 1.1rem; font-weight: 900; cursor: pointer; transition: 0.3s; 
    margin-top: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); display: block;
}
.btn-wall:hover { transform: scale(1.05); background: white; }

.btn-zip-sel {
    background: #2ecc71; border: 2px solid #2ecc71; color: white; 
    padding: 10px 20px; border-radius: 50px; font-weight: 900; 
    cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-zip-sel:hover { background: transparent; color: #2ecc71; }