/* VARIABLES ET BASE */
:root {
    --main-color: #55B3C9;
    --dark: #1a1a1a;
    --light: #f4f7f8;
    --white: #ffffff;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body { background-color: var(--white); color: var(--dark); line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.small { max-width: 600px; }

/* NAVIGATION */
.navbar {
    background: rgba(255, 255, 255, 0.7); /* Blanc très transparent */
    backdrop-filter: blur(10px);          /* L'effet de flou (glasse opaque) */
    -webkit-backdrop-filter: blur(10px); /* Compatibilité Safari */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Ligne noire très fine et discrète */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LOGO     */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%; /* Prend toute la hauteur de la navbar */
}

/* Style de l'image du logo */
.logo-img {
    /* Ajuste cette valeur selon la hauteur de ta navbar */
    height: 35px; 
    
    /* Garde les proportions */
    width: auto; 
    
    /* Sécurité pour ne pas déformer */
    object-fit: contain; 
    
    /* Espace optionnel si ton logo est trop collé à gauche */
    margin-right: 15px; 
    
    /* Transition douce si tu ajoutes un effet au survol plus tard */
    transition: transform 0.3s ease;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* Logo légèrement plus petit sur mobile */
    }
}

.nav-links { display: flex; list-style: none; align-items: center; gap: 25px; }

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-nav {
    background: var(--main-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
}

/* HERO SECTION */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1520340356584-f9917d1eea6f?w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 { font-size: clamp(2rem, 8vw, 4rem); margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.cta-main {
    padding: 15px 35px;
    background: var(--main-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--main-color);
    margin: 10px auto;
}

/* WORK GRID */
.work { padding: 80px 0; }
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.work-item { border-radius: 10px; overflow: hidden; height: 350px; }
.work-item img, .work-item video {
    width: 100%; height: 100%; object-fit: cover;
}

/* BANNER HOW IT WORKS */
/* SECTION GLOBALE : Plus petite et aérée */
.how-it-works {
    background-color: #55B3C9; /* Ton bleu */
    padding: 40px 0; /* Réduction de la hauteur de la section */
}

/* GRILLE : On utilise Flexbox pour garder tout sur une ligne */
.steps-grid {
    display: flex;
    justify-content: center; /* Centre les 3 blocs */
    align-items: stretch;
    gap: 60px; /* Espace entre les blocs sur PC */
    max-width: 1200px; /* Largeur max réduite pour que la section soit plus "compacte" */
    margin: 0 auto;
    padding: 0 0px;
}

/* LES CARTES : Plus petites */
.step {
    flex: 1; /* Les 3 prennent la même place */
    background: white;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 0; /* Empêche le débordement sur petit écran */
}

.step i {
    font-size: 1.8rem; /* Icônes un peu plus petites */
    color: #55B3C9;
    margin-bottom: 10px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.step p {
    font-size: 0.85rem; /* Texte plus discret */
    color: #666;
    line-height: 1.3;
}

/* --- AJUSTEMENT MOBILE (CÔTE À CÔTE) --- */
@media (max-width: 768px) {
    .how-it-works {
        padding: 20px 10px; /* Encore plus fin sur mobile */
    }

    .steps-grid {
        gap: 8px; /* Espace minime pour que ça tienne sur un écran de téléphone */
    }

    .step {
        padding: 15px 5px; /* Très compact */
    }

    .step i {
        font-size: 1.3rem; /* Icônes miniatures */
    }

    .step h3 {
        font-size: 0.8rem; /* Titre très petit pour éviter les retours à la ligne */
    }

    /* On cache le texte sur mobile pour garder uniquement l'essentiel (icône + titre) */
    .step p {
        display: none; 
    }
}
/* OFFERS */
.offers { padding: 80px 0; background: var(--light); }
.offers-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.offer-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.offer-card.featured {
    border: 2px solid var(--main-color);
    transform: scale(1.05);
    position: relative;
}

.tag {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--main-color); color: white; padding: 4px 15px;
    border-radius: 20px; font-size: 0.8rem; font-weight: bold;
}

.price { font-size: 1.8rem; font-weight: 800; color: var(--main-color); margin: 20px 0; }
.offer-card ul { list-style: none; margin-bottom: 30px; text-align: left; }
.offer-card ul li { margin-bottom: 10px; font-size: 0.9rem; }
.offer-card ul li::before { content: "✓ "; color: var(--main-color); font-weight: bold; }

.btn-offer {
    display: block; padding: 12px; border: 2px solid var(--main-color);
    color: var(--main-color); text-decoration: none; border-radius: 5px; font-weight: 700;
}

.featured .btn-offer { background: var(--main-color); color: white; }

/* CONTACT */
.contact { padding: 80px 0; }
.form-group { margin-bottom: 15px; }
input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem;
}
.btn-submit {
    width: 100%; padding: 15px; background: var(--dark); color: white;
    border: none; border-radius: 5px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: var(--main-color); }

/* FOOTER */
footer { text-align: center; padding: 40px; background: var(--dark); color: white; opacity: 0.8; }

/* ANIMATION */
section { opacity: 0; transform: translateY(30px); transition: 0.8s all ease-out; }
section.show { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .hero { height: 60vh; }
    .offer-card { width: 100%; transform: none !important; }
}
.comparisons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur PC */
    gap: 20px; /* Un peu moins d'espace pour que ça tienne bien */
    margin-top: 40px;
}

.comparison-wrapper {
    width: 100%;
}

.slider-label {
    text-align: center;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #333;
}

.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Format légèrement vertical, idéal pour 3 colonnes */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* AFFICHAGES IMAGES AVANT/APRES */
.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Définit la forme du rectangle */
    overflow: hidden;
    border-radius: 12px;
    background-color: #eee; /* Gris clair en attendant l'image */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.img-after, .img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Sans ça, l'image fait 0px */
    height: 100%; /* Sans ça, l'image fait 0px */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.img-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0); /* Coupe l'image du dessus à moitié */
    border-right: 2px solid white;
}

.slider-bar {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: white;
    z-index: 8;
    transform: translateX(-50%);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #55B3C9; /* Ton bleu CWASH */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* Cache le curseur par défaut sur Chrome, Edge, Safari */
.slider-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px; /* Doit correspondre à la taille de ton bouton bleu */
    height: 40px;
    opacity: 0; /* On le rend invisible */
    cursor: ew-resize;
}

/* Cache le curseur par défaut sur Firefox */
.slider-bar::-moz-range-thumb {
    width: 40px;
    height: 40px;
    opacity: 0;
    cursor: ew-resize;
    border: none;
}

/* On s'assure que l'input lui-même est bien transparent */
.slider-bar {
    outline: none;
    background: transparent;
}
/* --- RESPONSIVE --- */

/* Sur tablettes (on passe à 2 colonnes pour éviter que ce soit trop serré) */
@media (max-width: 1024px) {
    .comparisons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sur Mobile (1 seule colonne) */
@media (max-width: 768px) {
    .comparisons-grid {
        grid-template-columns: 1fr;
    }
    .comparison-container {
        aspect-ratio: 1 / 1; /* Format carré sur mobile pour prendre moins de place en hauteur */
    }
}

/* Le curseur (input range) */
.slider-bar {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%; height: 100%;
    background: transparent;
    z-index: 10;
    cursor: ew-resize;
    outline: none;
    top: 0; margin: 0;
}

/* Bouton visuel au milieu */
.slider-button {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; /* Laisse passer le clic vers l'input */
    z-index: 9;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.slider-line {
    position: absolute;
    left: 50%; top: 0;
    width: 2px; height: 100%;
    background: white;
    z-index: 8;
    pointer-events: none;
}

/* ANNIMATION DES PRIX */
.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation fluide */
    cursor: pointer;
}

/* Animation quand on passe la souris */
.offer-card:hover {
    transform: translateY(-10px); /* Soulève la carte de 10px */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Ombre plus profonde */
}

/* Effet spécial pour le bouton dans la carte survolée */
.offer-card:hover .btn-offer {
    background-color: #3d8fa1; /* Légère variation du bleu CWASH */
    transform: scale(1.05);
}

.btn-offer {
    transition: all 0.3s ease;
}

/* ANNIMATION DES PRIX POP AU SCROLL */
/* État initial : invisible et légèrement décalé vers le bas */
.offers-grid .offer-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* État quand la section est visible (classe ajoutée par ton JS) */
.offers.show .offer-card {
    opacity: 1;
    transform: translateY(0);
}

/* Petit effet de retard (delay) pour que les cartes popent l'une après l'autre */
.offers.show .offer-card:nth-child(1) { transition-delay: 0.1s; }
.offers.show .offer-card:nth-child(2) { transition-delay: 0.3s; }
.offers.show .offer-card:nth-child(3) { transition-delay: 0.5s; }

/* FOOTER */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Le bouton Mentions Légales */
.btn-legal {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-legal:hover {
    background: white;
    color: #333;
}

/* --- LA FENÊTRE MODALE --- */
/* L'arrière-plan noir */
.modal {
    display: none; 
    position: fixed;
    z-index: 10000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85) !important; /* Plus sombre */
}

/* La boîte de contenu */
.modal-content {
    /* ON FORCE L'OPACITÉ TOTALE */
    opacity: 1 !important;
    visibility: visible !important;
    
    /* LE FOND BLANC SANS AUCUNE TRANSPARENCE */
    background: #ffffff !important;
    background-color: #ffffff !important;
    
    /* LE TEXTE EN NOIR */
    color: #000000 !important;

    /* POSITIONNEMENT */
    position: relative;
    margin: 10vh auto !important; /* Descend la fenêtre de 10% de l'écran */
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    
    /* OMBRE ET CONTRASTE */
    box-shadow: 0 0 50px rgba(0, 0, 0, 1) !important;
    border: 1px solid #ddd;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.modal-body p { margin-bottom: 10px; }

.footer-btns {
    display: flex;
    gap: 15px; /* Espace entre les deux boutons */
    justify-content: center;
    margin-top: 10px;
}

/* Structure globale en deux colonnes */
.realisations-wrapper {
    display: flex;
    flex-direction: column; /* Mobile par défaut : l'un sous l'autre */
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}

/* La mini-grille des deux vidéos côte à côte */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 15px;
    width: 100%;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Le conteneur du Slider de photos */
.photo-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px; /* Aligné sur la taille de tes cartes offres */
}

.slider-image-container {
    width: 100%;
    height: 350px; /* Hauteur fixe pour éviter les sauts de page */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Style des petites flèches de navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: #55B3C9;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: -15px; } /* Dépasse légèrement à gauche */
.next-arrow { right: -15px; } /* Dépasse légèrement à droite */

/* --- VERSION PC (Écrans larges) --- */
@media (min-width: 768px) {
    .realisations-wrapper {
        flex-direction: row; 
        align-items: center; 
    }
    
    .videos-grid, .photo-slider {
        width: 50%; 
    }
    
    /* Correction de la déformation des vidéos */
    .video-box video {
        width: 100%;
        height: auto; 
        aspect-ratio: 9 / 16; 
        object-fit: cover; 
    }
    
    .slider-image-container {
        height: 470px; /* On donne une belle hauteur fixe à l'image sur PC pour s'aligner sur les vidéos */
    }
}
/* L'encadré global sous les offres */
.offer-callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff; /* Un fond sombre élégant qui tranche avec le blanc */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    margin-top: 40px; /* Espace par rapport à la grille du dessus */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* La petite icône de téléphone */
.callout-icon {
    font-size: 1.8rem;
    color: #55B3C9; 
    margin-bottom: 10px;
    animation: pulse 2s infinite; 
}

.offer-callout p {
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 600px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}

/* Le bouton d'appel */
.btn-callout {
    display: inline-block;
    background: #55B3C9; /* Ton code couleur */
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-callout:hover {
    background: #ffffff;
    color: #111111 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Animation discrète pour l'icône */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Adaptation Mobile */
@media (max-width: 480px) {
    .offer-callout {
        padding: 20px 15px;
        margin-top: 30px;
    }
    .offer-callout p {
        font-size: 1rem;
    }
    .btn-callout {
        width: 100%; /* Le bouton prend toute la largeur sur téléphone pour cliquer facilement */
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}
/* Style du bouton téléphone dans la nav */
.btn-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espace entre l'icône et le numéro */
    color: #333333; /* Couleur du texte (ajuste selon ton fond de nav, mets #ffffff si ta nav est sombre) */
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: rgba(85, 179, 201, 0.15); /* Bleu CWASH très léger (15% d'opacité) */
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-nav-phone i {
    color: #55B3C9; /* Ton bleu CWASH sur l'icône pour attirer l'œil */
    font-size: 0.95rem;
}

/* Effet au survol */
.btn-nav-phone:hover {
    background-color: rgba(85, 179, 201, 0.1); /* Léger fond bleu transparent au survol */
    color: #55B3C9;
}

/* --- Adaptation Mobile --- */
/* Masquer le bouton contact uniquement sur mobile */
@media (max-width: 768px) {
    .btn-contact, 
    .nav-links .btn-contact,
    .nav-links li:has(.btn-contact) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}