* {
    box-sizing: border-box;
}

body {
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Navbar */
    .navbar {
        transition: all 0.3s ease;
        background-color: rgba(44, 62, 80, 0.9);
    }


    
    .navbar.scrolled {
        background-color: var(--primary-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

/* Réduction de la hauteur de la navbar */
header {
  padding-top: 0.25rem;   /* 4px */
  padding-bottom: 0.25rem;
}

.navbar-logo {
  height: 20px;  /* logo légèrement plus petit pour équilibrer */
  width: auto;
}

    
/* Animation */
@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

    .floating {
        animation: floating 3s ease-in-out infinite;
    }
    
    @keyframes floating {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-15px); }
        100% { transform: translateY(0px); }
    }

        .pulse {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }

/* === Apparition simple (fade + montée) === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.option-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease-out;
}

.option-card.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp .6s ease-out;
}


/* Hover doux sur les options (déjà présent, on renforce un peu) */
.option-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.12);
}

/* Lightbox : taille + anim (déjà partiellement présent) */
.lightbox-image {
  animation: fadeInZoom 0.25s ease-out;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox-counter {
  position: absolute;
  bottom: 10px;
  right: 16px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.875rem;
}

/* Petit pulse sur la carte "POPULAIRE" (déjà présent) */
.pulse { animation: pulse 2s infinite; }


.before-after-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.before-after-img {
    width: 100%;
    display: block;
}

.before-after-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid rgba(255, 255, 255, 0.7);
}

.before-after-handle {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.before-after-handle i {
    color: #1e40af;
}

/* Animation pour les cartes de forfaits */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-card:hover {
    animation: float 2s ease-in-out infinite;
}

/* Effet de vague */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave .shape-fill {
    fill: #1E3A8A;
}
