#slider .carousel-item{
    min-height: unset;
}

#slider {
   border-radius: 0px;
   margin-bottom: 0 !important;
}

/* ── Variables ── */
:root {
    --navy: #0a2342;
    --blue: #1B4FD8;
    --sky: #0ea5e9;
    --light: #F8FAFC;
    --border: #E2E8F0;
    --text-muted: #64748b;
}

/* ── Hero ── */
.wrapper-slider-home { position: relative; }
.home-hero-carousel .carousel-item { position: relative; }
.home-hero-carousel .carousel-item img {
    height: 540px;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}
.home-hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, rgba(10,35,66,0.85) 0%, rgba(27,79,216,0.55) 55%, rgba(14,165,233,0.25) 100%); */
    z-index: 1;
}
.home-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 7%;
    z-index: 10;
    pointer-events: none;
}
.home-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
    width: fit-content;
    letter-spacing: 0.04em;
}
.home-hero-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 14px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
    letter-spacing: -0.025em;
    max-width: 620px;
}
.home-hero-sub {
    color: rgba(255,255,255,0.80);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 480px;
    line-height: 1.6;
}
.home-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    pointer-events: all;
}
.home-hero-btn-primary {
    background: var(--blue);
    color: #fff !important;
    border-radius: 10px;
    padding: 13px 26px;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(27,79,216,0.4);
}
.home-hero-btn-primary:hover {
    background: #1641b0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27,79,216,0.45);
}
.home-hero-btn-secondary {
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.38);
    color: #fff !important;
    border-radius: 10px;
    padding: 13px 26px;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(6px);
    transition: all .2s;
}
.home-hero-btn-secondary:hover {
    background: rgba(255,255,255,0.22);
}
.home-hero-carousel .carousel-indicators { z-index: 15; }
.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next { z-index: 15; }

/* ── Stats strip ── */
.home-stats {
    background: #fff;
    box-shadow: 0 4px 28px rgba(10,35,66,0.10);
    position: relative;
    z-index: 20;
}
.home-stats-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 22px 0;
}
.home-stat-item {
    text-align: center;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-stat-icon {
    width: 44px; height: 44px;
    background: #EEF2FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.home-stat-icon .material-icons { color: var(--blue); font-size: 1.3rem; }
.home-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 2px;
}
.home-stat-label {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Section header ── */
.home-section {
    padding: 56px 0;
}
.home-section-header {
    margin-bottom: 36px;
}
.home-section-tag {
    display: inline-block;
    background: #EEF2FF;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 50px;
    margin-bottom: 10px;
}
.home-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.home-section-sub {
    color: var(--text-muted);
    font-size: 0.94rem;
    max-width: 500px;
    line-height: 1.6;
}

/* ── Destination cards ── */
.home-dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.home-dest-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(10,35,66,0.09);
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
}
.home-dest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(10,35,66,0.14);
}
.home-dest-img {
    height: 175px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--blue));
}
.home-dest-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .32s;
}
.home-dest-card:hover .home-dest-img img { transform: scale(1.06); }
.home-dest-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(10,35,66,0.68) 100%);
}
.home-dest-img-label {
    position: absolute;
    bottom: 14px; left: 16px;
    z-index: 2;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.home-dest-img-badge {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    background: rgba(255,255,255,0.92);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--navy);
}
.home-dest-body {
    padding: 16px 18px 4px;
    flex: 1;
}
.home-dest-hotel-list {
    list-style: none;
    padding: 0; margin: 0;
}
.home-dest-hotel-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #F1F5F9;
    gap: 8px;
}
.home-dest-hotel-list li:last-child { border-bottom: none; }
.home-dest-hotel-list li a {
    color: #334155;
    font-size: 0.82rem;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s;
}
.home-dest-hotel-list li a:hover { color: var(--blue); }
.home-dest-price-tag {
    background: #DCFCE7;
    color: #16a34a;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.home-dest-footer {
    padding: 12px 18px 18px;
}
.home-dest-see-all {
    display: block;
    text-align: center;
    background: #F8FAFC;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 9px 0;
    text-decoration: none !important;
    transition: all .18s;
}
.home-dest-see-all:hover {
    background: #EEF2FF;
    border-color: var(--blue);
}

/* ── Vols CTA ── */
.home-vols-cta {
    background: var(--light);
    padding: 0 0 56px;
}
.home-vols-card {
    background: linear-gradient(135deg, #0a2342 0%, #1B4FD8 60%, #0ea5e9 100%);
    border-radius: 22px;
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.home-vols-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/G%3E%3C/svg%3E");
}
.home-vols-card-text { position: relative; z-index: 1; }
.home-vols-card-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.home-vols-card-text p {
    color: rgba(255,255,255,0.78);
    margin: 0;
    font-size: 0.95rem;
}
.home-vols-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.home-vols-badge {
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    backdrop-filter: blur(4px);
}
.home-vols-btn {
    background: #fff;
    color: var(--blue) !important;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}
.home-vols-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

/* ── Features ── */
.home-features {
    background: #fff;
    padding: 56px 0;
}
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.home-feature-card {
    background: var(--light);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 28px 24px;
    transition: border-color .2s, box-shadow .2s;
}
.home-feature-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 6px 24px rgba(27,79,216,0.10);
}
.home-feature-icon {
    width: 52px; height: 52px;
    background: #EEF2FF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.home-feature-icon .material-icons { color: var(--blue); font-size: 1.6rem; }
.home-feature-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.home-feature-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
    margin: 0;
}

/* ── About ── */
.home-about {
    background: var(--light);
    padding: 56px 0;
}
.home-about-text p {
    color: #475569;
    line-height: 1.78;
    font-size: 0.94rem;
    margin-bottom: 14px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .home-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .home-hero-carousel .carousel-item img { height: 380px; display: block; }
    .home-hero-title { font-size: 1.7rem; }
    .home-hero-overlay { padding: 0 5%; }
    .home-dest-grid { grid-template-columns: 1fr; }
    .home-features-grid { grid-template-columns: 1fr; }
    .home-vols-card { padding: 28px 24px; }
    .home-stats-inner { gap: 0; }
    .home-stat-item { width: 50%; }
}

/* Fix mobile : boutons qui débordent + espace résiduel */
@media (max-width: 576px) {
    .home-hero-carousel .carousel-item img { height: 340px; display: block; }
    .home-hero-tag { margin-bottom: 10px; }
    .home-hero-title { font-size: 1.45rem; margin-bottom: 8px; }
    .home-hero-sub { display: none; }
    .home-hero-btn-primary,
    .home-hero-btn-secondary { padding: 10px 18px; font-size: 0.84rem; }
}

/* Supprime l'espace entre le slider et la section stats */
.wrapper-slider-home { margin-bottom: 0; line-height: 0; }
.wrapper-slider-home .home-hero-overlay { line-height: normal; }
.home-hero-carousel .carousel-inner { line-height: 0; }
.home-hero-carousel .carousel-item img { display: block; }


/* Correction du problème de superposition et ajout de l'effet fondu */
.home-hero-carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.home-hero-carousel.carousel-fade .carousel-item.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* Empêche le décalage vers le bas */
.home-hero-carousel .carousel-inner {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* min-height: 540px; Aligné sur la hauteur de vos images */
}

.carousel-control-next, .carousel-control-prev {
    max-width: 100px;
}
