/* ==========================================================================
   PAGE HOME - SOURCE UNIQUE DES STYLES
   Tous les styles de la page d'accueil sont contrôlés depuis ce fichier.
   Chargé uniquement sur la page d'accueil (resources/views/frontend/home.blade.php).
   Contenu enveloppé dans .page-home pour cibler uniquement cette page.
   Pour modifier l'apparence de la page d'accueil, éditer UNIQUEMENT ce fichier.
   ========================================================================== */

/* Design professionnel et épuré - Page Home */
/* Palette: Bleu foncé #003B66 | Turquoise #01A6C7 | Gris clair #F5F7FA | Blanc */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ========== Header (déplacé depuis livewire/frontend/includes/header.blade.php) ========== */
.header {
    box-shadow: 0 4px 30px rgba(1, 166, 199, 0.15);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}
.header-topbar {
    background: #01A6C7 !important;
    padding: 0.05rem 0 !important;
    height: auto !important;
    min-height: auto !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.header-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.075);
    pointer-events: none;
}
.contact__list li {
    margin-right: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    z-index: 2;
}
.contact__list li i {
    color: white !important;
    font-size: 0.65rem !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.12rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}
.header-topbar .contact__list li > i {
    color: white !important;
    font-size: 0.65rem !important;
}
.contact__list li a {
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.contact__list li a:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.social-icons {
    display: flex;
    gap: 0.35rem;
    position: relative;
    z-index: 2;
}
.social-icons li a {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.6rem;
}
.social-icons li a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}
.navbar {
    background: white;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(1, 166, 199, 0.1);
    padding: 0.05rem 0;
    min-height: auto;
}
.navbar-brand {
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 65px;
    max-height: 65px;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}
.navbar-brand:hover img {
    filter: brightness(1.15) contrast(1.15);
}
.navbar-nav {
    gap: 1rem;
}
.nav__item-link {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}
.nav__item-link.active {
    color: white !important;
    background: #01A6C7;
    box-shadow: 0 2px 8px rgba(1, 166, 199, 0.2);
}

/* Step1 modal layering fix: keep popup above all UI blocks */
#bed_protector_overlay,
.bed-protector-overlay,
.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 199990 !important;
}

#bed_protector_modal,
#bed_protector_modal.modal,
.modal.show {
    position: fixed !important;
    inset: 0 !important;
    z-index: 200000 !important;
}

#bed_protector_modal .modal-dialog,
#bed_protector_modal .modal-content {
    z-index: 200001 !important;
}


/* ========== Fin Header ========== */
.pt-5,.py-5{padding-top:3rem!important}
:root {
    --belesch-dark: #003B66;
    --belesch-turquoise: #01A6C7;
    --belesch-gray: #F5F7FA;
    --belesch-white: #ffffff;
    --belesch-shadow: rgba(0, 59, 102, 0.08);
    --belesch-shadow-hover: rgba(0, 59, 102, 0.12);
}

/* Vidéo About - lecture inline */
.about-layout2 .video-banner-inline {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.about-layout2 .video-banner-inline video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* About section - couleurs et typo */
.about-layout2 .heading__title,
.about-layout2 .heading__desc {
    font-family: 'Montserrat', sans-serif;
    color: var(--belesch-dark);
}
.about-layout2 .about__text {
    background: var(--belesch-white) !important;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px var(--belesch-shadow);
    border: 1px solid rgba(0,59,102,0.06);
}
.about-layout2 .text__content .heading__desc {
    color: var(--belesch-dark);
}

/* Typographie - Montserrat (priorité sur style.css) */
.wrapper,
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.6;
    color: var(--belesch-dark);
}

/* Carrousel principal - Design professionnel */
.slider {
    position: relative;
    overflow: hidden;
}

.slide-item {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: var(--belesch-dark);
}

.slide-item .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: var(--belesch-dark);
}

.slide-item .bg-img img {
    display: block;
}

.slide-item .bg-img img[src=""],
.slide-item .bg-img img:not([src]) {
    display: none;
}

.slide-item .bg-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,59,102,0.92) 0%, rgba(1,166,199,0.25) 100%);
    z-index: 2;
}

.slide-item .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* Arabe (RTL): inverser horizontalement l'image du banner */
.rtl-layout .slide-item .bg-img img {
    transform: scaleX(-1) !important;
    transform-origin: center center;
}

.rtl-layout .slider .slick-slide .bg-img img {
    transform: scaleX(-1) !important;
}

.slide-item .container {
    position: relative;
    z-index: 15;
}

.slide__content {
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 20;
    backdrop-filter: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Arabe: placer le bloc texte du banner a gauche */
.rtl-layout .slider .slide-item .row {
    direction: ltr !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
}

.rtl-layout .slider .slide-item .col-xl-7 {
    display: flex !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.rtl-layout .slider .slide-item .slide__content {
    width: min(560px, 100%) !important;
    margin: 0 !important;
}

.rtl-layout .slider .slide-item .slide__title,
.rtl-layout .slider .slide-item .slide__desc {
    text-align: left !important;
}

.slide__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--belesch-white);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.slide__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    font-weight: 500;
    background: rgba(255,255,255,0.12);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Section contact - Design professionnel */
.contact-info {
    background: var(--belesch-gray);
    padding: 3rem 0;
    border-top: 1px solid rgba(0,59,102,0.06);
    border-bottom: 1px solid rgba(0,59,102,0.06);
}

.contact-box {
    background: var(--belesch-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--belesch-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,59,102,0.08);
    height: 100%;
}

.contact-box:hover {
    box-shadow: 0 8px 28px var(--belesch-shadow-hover);
    border-color: var(--belesch-turquoise);
}

.contact__icon {
    background: var(--belesch-turquoise);
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact__icon i {
    color: var(--belesch-white);
    font-size: 1.25rem;
}

.contact__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--belesch-dark);
    margin-bottom: 0.5rem;
}

.contact__desc {
    color: var(--belesch-dark);
    opacity: 0.85;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Section packages - Style seniorcare-box.de */
.mainBox-custom {
    background: linear-gradient(180deg, var(--belesch-dark) 0%, #01A6C7 100%) !important;
    padding: 3.5rem 0;
    position: relative;
}

.mainBox-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(1,166,199,0.15) 0%, transparent 55%);
    pointer-events: none;
}

.mainBox-custom .heading {
    position: relative;
    z-index: 2;
}

.mainBox-custom .heading__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.mainBox-custom .heading__title {
    font-family: 'Montserrat', sans-serif;
    color: var(--belesch-white);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Titre section paquets : une seule ligne, sans scroll — la taille s’adapte à la largeur */
#pflege-paketen .packages-heading-wrap {
    overflow: visible;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 0.25rem 0.35rem;
}

#pflege-paketen .packages-heading-wrap .heading__title {
    white-space: nowrap;
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(0.55rem, 2.8vw, 1.65rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Taille de base pour une bonne lisibilité sans zoom */
.mainBox-custom {
    font-size: 1rem;
}

.mainBox-custom .row {
    margin-left: 2rem;
    margin-right: 2rem;
}

.mainBox-custom .row > [class*="col-"] {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 3 boîtes par ligne sur la page d'accueil */
.mainBox-custom .row {
    display: flex;
    flex-wrap: wrap;
}

.mainBox-custom .row > .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.mainBox-custom .package-col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mainBox-custom .package-box {
    width: 100%;
    max-width: 320px;
    min-width: 280px;
    margin: 0 auto;
}




.mainBox-custom .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.container
{
    width:100%;
    padding-right:15px;
    padding-left:15px;
    margin-right:auto;
    margin-left:auto
}

.mainBox-custom .boxes .btn {
    margin-top: 0.45rem;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.boxes .btn {
    margin-top: 0.5rem;
}

.mainBox-custom .boxes {
    background: var(--belesch-white);
    border-radius: 16px;
    padding: 1.25rem 1.25rem;
    box-shadow: 0 10px 40px var(--belesch-shadow);
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 59, 102, 0.06);
}

/* Même hauteur pour toutes les BeleschBox (comme la plus grande, ex. box 6) */
.mainBox-custom .boxes.package-box:not(.assemble-custom-box) .content-style {
    flex-grow: 1;
}

.mainBox-custom .boxes:hover {
    box-shadow: 0 20px 50px var(--belesch-shadow-hover);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(1, 166, 199, 0.3);
    transition: all 0.35s ease;
}

.mainBox-custom .boxes h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--belesch-turquoise);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mainBox-custom .img-style {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px var(--belesch-shadow);
    height: 100px;
    min-height: 100px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--belesch-gray);
}

/* Carte Curebox zusammenstellen - même taille que les BeleschBox */
.mainBox-custom .assemble-custom-box {
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.mainBox-custom .assemble-custom-box {
    animation-delay: 0.6s;
}
.mainBox-custom .assemble-custom-box .assemble-custom-content {
    flex-grow: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
}
.mainBox-custom .assemble-custom-box .assemble-custom-content p {
    font-size: 0.85rem;
}

.mainBox-custom .assemble-custom-box .btn {
    pointer-events: none;
}

/* Wide custom box card (matches provided reference layout) */
.mainBox-custom .package-col-custom-wide {
    margin-top: 0.4rem;
}
.mainBox-custom .assemble-custom-box-wide {
    width: min(100%, 1100px);
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 31, 66, 0.08);
    border: 1px solid rgba(0, 59, 102, 0.08);
    text-decoration: none;
    color: inherit;
}
.mainBox-custom .assemble-custom-box-wide:hover {
    transform: translateY(-2px);
}
.mainBox-custom .assemble-custom-box-wide__media {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 1rem 0.4rem;
}
.mainBox-custom .assemble-custom-box-wide__img {
    width: min(100%, 420px);
    height: auto;
    display: block;
}
.mainBox-custom .assemble-custom-box-wide__content {
    text-align: center;
    padding: 0.3rem 2rem 1.2rem;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}
.mainBox-custom .assemble-custom-box-wide__eyebrow--top {
    margin: 0.9rem 0 0 1.1rem;
}
.mainBox-custom .assemble-custom-box-wide__eyebrow {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a3a2c7;
    margin-bottom: 0.35rem;
}
.mainBox-custom .assemble-custom-box-wide__title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.65rem, 2.1vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    background: none;
    -webkit-text-fill-color: initial;
    color: #263760;
}
.mainBox-custom .assemble-custom-box-wide__desc {
    margin: 0;
    color: #6d7284;
    font-size: 1.05rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .mainBox-custom .assemble-custom-box-wide {
        min-height: 0;
        padding: 1rem 0.8rem 1.2rem;
    }
    .mainBox-custom .assemble-custom-box-wide__content {
        padding: 0.75rem 1rem 0.25rem;
    }
    .mainBox-custom .assemble-custom-box-wide__eyebrow {
        font-size: 0.75rem;
    }
}

/* Règles générales pour .boxes (autres sections) */
.boxes {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 158, 225, 0.1);
}

.boxes:hover {
    box-shadow: 0 12px 35px rgba(0, 158, 225, 0.15);
    transform: translateY(-5px);
    border-color: rgba(0, 158, 225, 0.3);
}

.boxes h3 {
    background: #01A6C7;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.img-style {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-style img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.mainBox-custom .content-style {
    flex-grow: 1;
    min-height: 0;
}

.mainBox-custom .content-style ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mainBox-custom .content-style li {
    padding: 0.18rem 0;
    border-bottom: 1px solid rgba(0,59,102,0.06);
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.3;
}

.content-style {
    flex-grow: 1;
}

.content-style ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-style li {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,59,102,0.06);
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.3;
}

.mainBox-custom .content-style li:last-child {
    border-bottom: none;
}

.mainBox-custom .content-style li.package-line {
    align-items: flex-start;
}

.mainBox-custom .package-line__content {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.mainBox-custom .package-line__content .package-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
}

.mainBox-custom .content-style li.package-line--ar {
    direction: rtl;
    justify-content: space-between;
    text-align: right;
}

.mainBox-custom .content-style li.package-line--ar i {
    margin-left: 0.35rem;
    margin-right: 0;
    flex: 0 0 auto;
}

.mainBox-custom .content-style li.package-line--ar .package-line__content {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0.75rem;
}

.mainBox-custom .content-style li.package-line--ar .package-name {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.mainBox-custom .content-style li.package-line--ar .package-quantity {
    min-width: 82px;
    text-align: left;
    direction: ltr;
    white-space: nowrap;
}

.mainBox-custom .content-style li i {
    color: var(--belesch-turquoise);
    margin-right: 0.45rem;
    font-size: 0.7rem;
    margin-top: 0.08rem;
    flex: 0 0 auto;
    line-height: 1;
}

.mainBox-custom .content-style li strong {
    color: var(--belesch-dark);
    font-weight: 600;
}

.mainBox-custom .content-style li strong.package-quantity {
    color: var(--belesch-turquoise) !important;
    min-width: 0;
    margin-right: 0.25rem;
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
}

.content-style li:last-child {
    border-bottom: none;
}

.content-style li i {
    color: var(--belesch-turquoise);
    margin-right: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.content-style li strong {
    color: var(--belesch-dark);
    font-weight: 600;
}

.content-style li strong.package-quantity {
    color: var(--belesch-turquoise) !important;
    min-width: 5rem;
    margin-right: 0.6rem;
    display: inline-block;
    flex-shrink: 0;
}

/* Boutons professionnels modernisés */
.btn__primary, .btn__secondary {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn__primary {
    font-family: 'Montserrat', sans-serif;
    background: var(--belesch-turquoise);
    color: var(--belesch-white);
    box-shadow: 0 4px 20px rgba(1, 166, 199, 0.35);
}

.btn__primary:hover {
    background: var(--belesch-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 59, 102, 0.35);
}

.btn__secondary {
    font-family: 'Montserrat', sans-serif;
    background: var(--belesch-white);
    color: var(--belesch-turquoise);
    border: 2px solid var(--belesch-turquoise);
    box-shadow: 0 4px 16px var(--belesch-shadow);
}

.btn__secondary:hover {
    background: var(--belesch-turquoise);
    color: var(--belesch-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 166, 199, 0.3);
}

/* Bouton principal Assemble Curebox */
.btn__secondary.btn-lg {
    background: var(--belesch-white);
    color: var(--belesch-turquoise);
    border: 3px solid var(--belesch-white);
    box-shadow: 0 8px 28px var(--belesch-shadow);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn__secondary.btn-lg:hover {
    background: var(--belesch-turquoise);
    color: var(--belesch-white);
    border-color: var(--belesch-turquoise);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 158, 225, 0.4);
}

/* ========== Animations visibles ========== */
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Entrée des éléments au chargement */
.fade-in {
    opacity: 0;
    animation: slideUpFade 0.75s ease-out forwards;
}
.mainBox-custom .package-box.package-box-delay-0 { animation-delay: 0s; }
.mainBox-custom .package-box.package-box-delay-1 { animation-delay: 0.1s; }
.mainBox-custom .package-box.package-box-delay-2 { animation-delay: 0.2s; }
.mainBox-custom .package-box.package-box-delay-3 { animation-delay: 0.3s; }
.mainBox-custom .package-box.package-box-delay-4 { animation-delay: 0.4s; }
.mainBox-custom .package-box.package-box-delay-5 { animation-delay: 0.5s; }

/* Hero : titre et description avec délai */
.slide-item .slide__content {
    animation: slideInLeft 0.9s ease-out 0.2s both;
}
.slide-item .slide__title {
    animation: slideInLeft 0.8s ease-out 0.35s both;
}
.slide-item .slide__desc {
    animation: slideUpFade 0.8s ease-out 0.5s both;
}

/* Section éligibilité (flyer) — directement sous le slider */
.eligibility-flyer-section {
    background: #39d3c4;
    padding: 3.5rem 0 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.eligibility-flyer-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 2vw + 0.65rem, 1.65rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}
.eligibility-flyer-heading__plain {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 59, 102, 0.12);
}
.eligibility-flyer-heading__accent {
    color: #003b66;
    font-weight: 700;
}
.eligibility-flyer-row {
    align-items: stretch;
}
.eligibility-flyer-card {
    display: flex;
    flex-direction: column;
    background: var(--belesch-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 59, 102, 0.1);
    border: 1px solid rgba(0, 59, 102, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.eligibility-flyer-card:hover {
    box-shadow: 0 12px 40px rgba(0, 59, 102, 0.14);
    transform: translateY(-3px);
}
.eligibility-flyer-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, rgba(1, 166, 199, 0.12) 0%, rgba(0, 59, 102, 0.08) 100%);
    overflow: hidden;
}
.eligibility-flyer-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.eligibility-flyer-card__img--person {
    transform: scale(1.16);
    transform-origin: center center;
}
.eligibility-flyer-card__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(1, 166, 199, 0.2) 0%, rgba(0, 59, 102, 0.12) 100%);
    color: var(--belesch-turquoise);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
}
.eligibility-flyer-card__body {
    padding: 1.35rem 1.5rem 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.eligibility-flyer-card__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--belesch-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.eligibility-flyer-card__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--belesch-dark);
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Cartes étapes (feature-box-card) */
.beleschbox-features-section .feature-box-card {
    opacity: 0;
    animation: slideUpFade 0.7s ease-out forwards;
}
.beleschbox-features-section .col-lg-3:nth-child(1) .feature-box-card { animation-delay: 0.1s; }
.beleschbox-features-section .col-lg-3:nth-child(2) .feature-box-card { animation-delay: 0.2s; }
.beleschbox-features-section .col-lg-3:nth-child(3) .feature-box-card { animation-delay: 0.3s; }
.beleschbox-features-section .col-lg-3:nth-child(4) .feature-box-card { animation-delay: 0.4s; }

/* CTA bouton section étapes */
.beleschbox-cta-btn {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.6s forwards;
}

/* Titre section BeleschBox */
.beleschbox-features-title {
    opacity: 0;
    animation: slideUpFade 0.6s ease-out 0.05s forwards;
}

/* Features Section - Réduction hauteur */
.feature-item {
    height: auto;
}

.feature__img {
    height: 180px;
    overflow: hidden;
}

.feature__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature__content {
    padding: 1rem;
}

/* BeleschBox Features Section - style seniorcare-box.de */
.beleschbox-features-section {
    padding: 4.5rem 0;
    background: var(--belesch-gray);
}

/* Cartes « étapes » : container un peu plus large que le défaut Bootstrap (1140px) */
@media (min-width: 1200px) {
    .beleschbox-features-section > .container {
        max-width: 1320px;
    }
}
@media (min-width: 1400px) {
    .beleschbox-features-section > .container {
        max-width: 1380px;
    }
}

.beleschbox-features-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--belesch-dark);
    letter-spacing: -0.02em;
}

.beleschbox-features-title .text-highlight {
    color: var(--belesch-turquoise);
}

.beleschbox-features-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--belesch-dark);
    opacity: 0.8;
    margin-bottom: 0;
}

.feature-box-card {
    display: flex;
    align-items: center;
    background: var(--belesch-white);
    border-radius: 16px;
    padding: 1.55rem 2.1rem;
    box-shadow: 0 4px 20px var(--belesch-shadow);
    color: inherit;
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    cursor: default;
    border: 1px solid rgba(0,59,102,0.04);
}

.feature-box-card:hover {
    box-shadow: 0 16px 40px var(--belesch-shadow-hover);
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(1,166,199,0.25);
}

.feature-box-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(1,166,199,0.12) 0%, rgba(0,59,102,0.06) 100%);
    color: var(--belesch-turquoise);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.25rem;
}

.feature-box-content {
    flex: 1;
    min-width: 0;
}

.feature-box-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--belesch-dark);
    margin-bottom: 0.3rem;
}

.feature-box-content p {
    font-size: 0.875rem;
    color: var(--belesch-dark);
    opacity: 0.8;
    margin-bottom: 0;
    line-height: 1.45;
}

.feature-box-arrow {
    color: rgba(0,59,102,0.25);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.feature-box-card .feature-box-arrow {
    color: rgba(0,59,102,0.25);
}

.beleschbox-cta-row {
    margin-top: 4rem;
}

.beleschbox-cta-btn {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--belesch-turquoise) 0%, #0088a8 100%);
    color: var(--belesch-white) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 24px rgba(1, 166, 199, 0.4);
    transition: all 0.35s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.beleschbox-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(1, 166, 199, 0.5);
    color: var(--belesch-white) !important;
    background: var(--belesch-dark);
}

.beleschbox-features-footer {
    font-size: 0.9rem;
    color: var(--belesch-dark);
    opacity: 0.7;
}

.beleschbox-features-footer .footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.beleschbox-features-footer .footer-item i {
    color: var(--belesch-turquoise);
    font-size: 0.8rem;
}

.beleschbox-features-footer .footer-sep {
    margin: 0 0.75rem;
    color: rgba(0,59,102,0.2);
}



/* Section Unsere Produkte - fond gris clair */
section.py-5.bg-light {
    background: var(--belesch-gray) !important;
    padding: 4rem 0 !important;
}
.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--belesch-dark);
    font-size: 2rem;
    letter-spacing: -0.02em;
}

/* Titre section produits : une seule ligne, centré */
.home-products-section .section-header {
    text-align: center;
    width: 100%;
}
.home-products-section .section-header h2 {
    display: inline-block;
    white-space: nowrap;
    /* Réduit légèrement sur petits écrans pour que la phrase tienne sur une ligne */
    font-size: clamp(0.65rem, 2.5vw + 0.38rem, 2rem);
    letter-spacing: -0.03em;
}

/* Produits : carrousel — cartes même hauteur */
.home-products-section .home-products-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}
.home-products-section .home-products-carousel .slick-slide {
    height: auto;
}
.home-products-section .home-products-carousel .slick-slide > div {
    height: 100%;
}
.home-products-section .service-item {
    height: 100%;
}
.home-products-section .service-item .modern-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.home-products-section .service-item .service__content {
    flex: 1 1 auto;
}

/* Arabic page: keep products carousel visible/stable */
.rtl-layout .home-products-carousel,
.rtl-layout .home-products-carousel .slick-list,
.rtl-layout .home-products-carousel .slick-track {
    direction: ltr !important;
}

.rtl-layout .home-products-carousel .slick-slide {
    float: left !important;
}

.rtl-layout .home-products-carousel .service__content {
    direction: rtl;
    text-align: right;
}

/* Features layout 2 - bandeau bleu foncé */
.features-layout2.bg-overlay-primary .bg-img::after,
.features-layout2.bg-overlay .bg-img::after {
    background: linear-gradient(135deg, var(--belesch-dark) 0%, rgba(1,166,199,0.4) 100%) !important;
}
.features-layout2 .heading__title {
    font-family: 'Montserrat', sans-serif;
    color: var(--belesch-white) !important;
}

/* Cartes produits (service-item) */
.service-item {
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--belesch-shadow);
    border: 1px solid rgba(0,59,102,0.06);
}
.service-item:hover {
    box-shadow: 0 12px 36px var(--belesch-shadow-hover);
}
.service-item:before {
    background-color: var(--belesch-turquoise);
}
.service-item .service__title {
    font-family: 'Montserrat', sans-serif;
    color: var(--belesch-dark);
}
.service-item .service__desc {
    color: var(--belesch-dark);
    opacity: 0.85;
}

/* Team section */
.team-layout2 .heading__title,
.team-layout2 .heading__desc {
    font-family: 'Montserrat', sans-serif;
    color: var(--belesch-dark);
}
.member {
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--belesch-shadow);
    border: 1px solid rgba(0,59,102,0.06);
}
.member:before {
    background-color: var(--belesch-turquoise);
}
.member .member__info .member__name a {
    color: var(--belesch-dark);
}
.member .member__info .member__name a:hover {
    color: var(--belesch-turquoise);
}
.member .member__info .member__job {
    color: var(--belesch-turquoise);
}
.member .member__info .member__desc {
    color: var(--belesch-dark);
    opacity: 0.85;
}

/* Headings génériques page home */
.heading .heading__title,
.heading__layout2 .heading__title {
    font-family: 'Montserrat', sans-serif;
    color: var(--belesch-dark);
}
.heading .heading__desc,
.heading__layout2 .heading__desc {
    font-family: 'Montserrat', sans-serif;
    color: var(--belesch-dark);
    opacity: 0.85;
}


.slider .slide__title {
    color: #01A6C7 !important;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-align: left;
}

.slider .slide__desc {
    text-align: left;
}

.slider .slide__content {
    text-align: left;
}

.slider .btn {
    margin-bottom: 10px;
}

.slider .slick-arrow,
.slider .slick-prev,
.slider .slick-next {
    display: none !important;
}

.slider .slide-item {
    padding: 30px 10px;
}

/* Service item styles depuis style.css */
.service-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 5px 83px 0 rgba(9, 29, 62, 0.05);
    transition: 0.4s;
}

.service-item:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: var(--belesch-turquoise);
    transition: 0.4s linear;
}

.service-item .service__content {
    padding: 40px;
}

.service-item .service__icon {
    color: var(--belesch-dark);
    font-size: 80px;
    line-height: 1;
    margin-bottom: 25px;
    transition: 0.3s linear;
    height: 290px;
}

.service-item .service__title {
    font-size: 24px;
    margin-bottom: 31px;
    transition: 0.3s linear;
}

.service-item .service__desc {
    font-size: 15px;
    margin-bottom: 32px;
    transition: 0.3s linear;
}

.service-item:hover {
    z-index: 5;
    box-shadow: 0 5px 83px 0 rgba(40, 40, 40, 0.12);
}

/* Feature item styles depuis style.css */
.feature-item {
    position: relative;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 5px 83px 0 rgba(9, 29, 62, 0.08);
    transition: 0.3s linear;
    border-radius: 13px;
}

.feature-item .feature__img {
    position: absolute;
    bottom: 40%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
}

.feature-item .feature__content {
    overflow: hidden;
    position: relative;
    padding: 37px 40px 35px;
}

.feature-item .feature__icon {
    font-size: 50px;
    line-height: 1;
    color: var(--belesch-turquoise);
    margin-bottom: 20px;
    overflow: hidden;
}

.feature-item .feature__title {
    font-size: 18px;
    margin-bottom: 0;
}

.feature-item .feature__desc {
    font-size: 14px;
    line-height: 1.7;
}

.feature-item:hover {
    box-shadow: 0 5px 83px 0 rgba(9, 29, 62, 0.15);
}

.feature-item:hover .feature__img {
    bottom: 50%;
    opacity: 1;
}

.feature-item .feature__img img {
    border-radius: 13px;
}

/* Member/Team styles depuis style.css */
.member {
    border-radius: 8px;
    background-color: #fff;
    transition: 0.4s ease-in-out;
    position: relative;
    margin-bottom: 30px;
}

.member:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: var(--belesch-turquoise);
    transition: transform 0.4s linear;
    transition-delay: 0.3s;
    transform: scaleX(0);
}

.member .member__img {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.member .member__img img {
    transition: 0.9s;
}

.member .member__info {
    padding: 35px 40px;
}

.member .member__info .member__name {
    font-size: 21px;
    margin-bottom: 11px;
}

.member .member__info .member__name a {
    color: var(--belesch-dark);
}

.member .member__info .member__name a:hover {
    color: var(--belesch-turquoise);
}

.member .member__info .member__job {
    color: var(--belesch-turquoise);
    margin-bottom: 10px;
}

.member .member__info .member__desc {
    font-size: 15px;
    margin-bottom: 0;
}

.team-layout2 .member:hover:before {
    transform: scaleX(1);
}

.team-layout2 .slick-list {
    margin: -15px;
    overflow: visible;
}

.team-layout2 .slick-slide {
    margin: 15px;
    transition: 0.3s;
}

.team-layout2 .slick-slide:not(.slick-active) {
    opacity: 0;
    visibility: hidden;
}
.gallery .slick-slide,.m-slides-0 .slick-list,.m-slides-0 .slick-slide{margin:0}
.slick-list{margin:0 -10px}
.slick-slide{margin:0 10px}
.slick-slide,.team-layout1 .slick-slide,.team-layout2 .slick-slide,.work-process .slick-slide{
    margin:15px;
    -webkit-transition:.3s;transition:.3s
}
.align-v-h{
    display:-webkit-box!important;
    display:-ms-flexbox!important;
    display:flex!important;
    -webkit-box-pack:center!important;
    -ms-flex-pack:center!important;
    justify-content:center!important;
    -webkit-box-align:center!important;
    -ms-flex-align:center!important;
    align-items:center!important
}
.slick-slider{
    position:relative;
    display:block;
    box-sizing:border-box;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    -webkit-touch-callout:none;
    -khtml-user-select:none;
    -ms-touch-action:pan-y;
    touch-action:pan-y;
    -webkit-tap-highlight-color:transparent
  }
  .slick-slide{
    display:none;
    float:left;
    height:100%;
    min-height:1px}
    [dir=rtl] .slick-slide{float:right}
    .slick-slide img{display:block}
    .slick-slide.slick-loading img{display:none}
    .slick-slide.dragging img{pointer-events:none}
/* Testimonial styles depuis style.css */
.testimonial__title {
    font-size: 23px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.testimonial__meta {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.testimonial__meta .testimonial__thmb {
    margin-bottom: 16px;
}

.testimonial__meta.slick-current .testimonial__thmb {
    border: 2px solid var(--belesch-turquoise);
    background-color: var(--belesch-white);
}

.testimonial__meta-title {
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.testimonial__meta-desc {
    position: relative;
    z-index: 2;
    font-size: 13px;
    line-height: 1;
    margin-bottom: 0;
}
.pb-0,.py-0
{
    padding-bottom:0!important
}

.testimonial__thmb {
    cursor: pointer;
    width: 52px !important;
    height: 52px;
    padding: 4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: transparent;
    transition: 0.4s;
}

.testimonial__thmb img {
    display: block;
    border-radius: 50%;
    margin: auto;
}

.testimonials-layout2 .slider-nav {
    max-width: 550px;
}

.testimonials-layout2 .testimonial__meta {
    padding-top: 10px;
    display: flex;
    align-items: center;
}

.testimonials-layout2 .testimonial__meta .testimonial__thmb {
    position: relative;
    width: 65px !important;
    height: 65px;
    padding: 6px;
    margin-bottom: 0;
    margin-right: 15px;
}

/* Contact layout 3 styles depuis style.css */
.contact-panel {
    position: relative;
    z-index: 2;
    padding: 60px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 5px 83px 0 rgba(9, 29, 62, 0.1);
}

.contact-panel__desc {
    font-size: 15px;
    line-height: 25px;
}

.contact-layout3 .text__block {
    margin-top: 50px;
    padding-top: 45px;
    border-top: 2px solid rgba(231, 235, 239, 0.3);
}

.contact-layout3 .text__block .text__block-desc {
    font-size: 17px;
}

/* Gallery styles depuis style.css */
.gallery .slick-list {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.gallery .slick-arrow.slick-next {
    right: 0;
}

.gallery .slick-arrow.slick-prev {
    left: 0;
}

.pb-5,.py-5{padding-bottom:3rem!important}

/* Account Deleted Alert Styles */
.account-deleted-alert {
    background: #48bb78;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.account-deleted-alert .alert-content {
    display: flex;
    align-items: center;
}

.account-deleted-alert .alert-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.account-deleted-alert .alert-text {
    flex: 1;
}

.account-deleted-alert .alert-title {
    font-size: 1.2rem;
}

.account-deleted-alert .alert-message {
    font-size: 1rem;
}

.account-deleted-alert .close {
    color: #ffffff;
}

/* Contact Box Animation Delays */
.boxes-wrapper > .col-sm-12:nth-child(1) .contact-box.fade-in {
    animation-delay: 0.2s;
}

.boxes-wrapper > .col-sm-12:nth-child(2) .contact-box.fade-in {
    animation-delay: 0.4s;
}

.boxes-wrapper > .col-sm-12:nth-child(3) .contact-box.fade-in {
    animation-delay: 0.6s;
}

/* Packages Section Styles */
.package-col {
    margin-bottom: 0.5rem;
    display: flex !important;
    align-items: stretch !important;
}

/* Forcer toutes les boîtes de packages à avoir la même hauteur */
.mainBox-custom .package-col {
    display: flex !important;
    align-items: stretch !important;
    height: 100% !important;
}

.mainBox-custom .package-col .package-box,
.mainBox-custom .package-col .boxes.package-box {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 410px !important;
    margin: 0 auto !important;
    height: 100% !important;
    min-height: 100% !important;
    background: white !important;
    padding: 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
    border: 1px solid rgba(0, 59, 102, 0.08) !important;
}

/* La carte custom large doit prendre toute la ligne */
.mainBox-custom .package-col.package-col-custom-wide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}
.mainBox-custom .package-col.package-col-custom-wide .package-box,
.mainBox-custom .package-col.package-col-custom-wide .boxes.package-box {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 250px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* BeleschBox: uniform card height without internal scroll */
.mainBox-custom .package-col .boxes.package-box:not(.assemble-custom-box) {
    height: 350px !important;
    min-height: 350px !important;
}
.mainBox-custom .package-col .boxes.package-box:not(.assemble-custom-box) .content-style {
    flex-grow: 1;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mainBox-custom .package-col .boxes.package-box:not(.assemble-custom-box) .btn {
    margin-top: auto !important;
}

.package-col .package-box {
    width: 100% !important;
    height: 100% !important;
}

.content-style {
    flex-grow: 1;
}

.package-quantity {
    color: var(--belesch-turquoise) !important;
    white-space: nowrap;
}

/* Assemble Button Styles */
.assemble-btn-lg {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    padding: 1.2rem 3.5rem;
    background: var(--belesch-white);
    color: var(--belesch-turquoise);
    border: 3px solid var(--belesch-white);
    box-shadow: 0 8px 28px var(--belesch-shadow);
    font-weight: 600;
}

/* Steps Section Styles */
.steps-section {
    background: #F5F7FA;
}

.steps-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003B66;
}

.steps-heading span {
    color: #01A6C7;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.step-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 6rem;
    font-weight: 300;
    color: #F5F7FA;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-icon {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: -3rem auto 1.5rem;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.step-icon i {
    font-size: 3rem;
    color: #01A6C7;
}

.step-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: -2rem;
    padding-top: 3rem;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003B66;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    color: #003B66;
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
}
.slick-initialized .slick-slide{display:block}


/* Products Section Styles */
.product-image {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Team Section Styles */
.member__img img {
    height: 370px;
    object-fit: cover;
}

/* Testimonials Section Styles */
.testimonial__thmb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Section Styles */
.popup-gallery-item {
    display: block;
}

.gallery img {
    height: 200px;
    object-fit: cover;
}
section{
    padding-top:110px;
    padding-bottom:110px
       }

       img
       {
         vertical-align:middle;
         border-style:none
       }
       *,::after,::before
       {
         box-sizing:border-box
       }

       .testimonials-layout2 .testimonial__meta,
       .testimonials-layout3 .testimonial__meta{
           padding-top:10px;
           display:-webkit-box;
           display:-ms-flexbox;
           display:flex;-webkit-box-align:center;
           -ms-flex-align:center;
           align-items:center
       }
       .testimonial__meta{
        opacity:.5;
        -webkit-transition:opacity .3s;
        transition:opacity .3s
    }
    .pb-90{padding-bottom:90px!important}
    .pt-0,.py-0{padding-top:0!important}
    .contact-panel{
        position:relative;
        z-index:2;padding:60px;
        border-radius:20px;background-color:#fff;
        -webkit-box-shadow:0 5px 83px 0 rgba(9,29,62,.1);
        box-shadow:0 5px 83px 0 rgba(9,29,62,.1)
    }
    .mb-50{
        margin-bottom:50px!important
    }
    .mb-30{
        margin-bottom:30px!important
    }
    .form-group-icon+.form-control,.form-group-icon+select+.form-control
    {
        padding-left:45px
    }
    .form-control{
        display:block;
        width:100%;
        height:calc(1.5em + .75rem + 2px);
        padding:.375rem .75rem;
        font-size:1rem;
        font-weight:400;
        line-height:1.5;
        color:#495057;
        background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;
        border-radius:.25rem;
        transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out
      }
      button,input{overflow:visible}
      button,input,optgroup,select,textarea
      {
        margin:0;
        font-family:inherit;
        font-size:inherit;
        line-height:inherit
      }
      textarea.form-control
      {
          min-height:120px;
          padding-top:16px
      }
      textarea.form-control
      {
        border-radius:20px
    }
      textarea.form-control
      {
        height:auto
    }
      .bg-overlay-primary:before
                {
                    background-color:#01A6C7
                }


 .slider .slide__desc{
color:#283b6a;
font-size:17px;
line-height:1.5;
font-weight:700;
max-width:550px;
margin-bottom:30px
                }
.slider
{
    padding:0
}
.slider .slide-item
{
    height:calc(100vh - 165px);
    min-height:550px
}
.slider .slide__subtitle
{   color:#213360;display:block;
    font-size:16px;
    font-weight:700;
    margin-bottom:8px
}

                /* ======================================================
   RESPONSIVE MOBILE OPTIMISATION
   ====================================================== */

@media (max-width: 768px) {

    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    
    /* Supprimer hauteur fixe */
    .slider .slide-item {
        min-height: auto ;
        height: 30vh ;
        padding: 0 ;
    }

    /* Supprimer padding interne forcé */
    .slider .slide-item {
        padding: 60px 20px !important;
    }

    /* Image prend juste la hauteur du slider */
    .slider .slide-item .bg-img {
        height: 100% !important;
    }

    .slider .slide-item .bg-img img {
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .rtl-layout .slider .slide-item .bg-img img,
    .rtl-layout .slider .slick-slide .bg-img img {
        transform: scaleX(-1) !important;
    }

    /* Réduire le texte */
    .slider .slide__title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        text-align: left !important
    }

    .slider .slide__desc {
        font-size: 0.9rem !important;
        padding: 0.8rem !important;
        text-align: left !important;
    }

    /* Header */
    .navbar-brand img {
        height: 50px !important;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    /* Packages: 1 colonne sur mobile uniquement */
    .mainBox-custom .package-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Supprimer hauteur fixe sur mobile */
    .mainBox-custom .package-col .boxes.package-box:not(.assemble-custom-box) {
        height: auto !important;
    }

    /* Steps section */
    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        width: 100%;
        max-width: 400px;
    }

    /* Feature cards */
    .feature-box-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-box-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Team images */
    .member__img img {
        height: 250px !important;
    }

    /* Contact panel */
    .contact-panel {
        padding: 30px !important;
    }
}

/* ======================================================
   TABLET / IPAD HERO OPTIMISATION
   ====================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .slider .slide-item {
        min-height: 560px !important;
        height: 62vh !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .slider .slide-item .bg-img {
        height: 100% !important;
    }

    .slider .slide-item .bg-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        transform: scale(0.94) !important;
        transform-origin: center center !important;
    }

    /* Overlay plus léger pour garder l'image visible */
    .slider .slide-item .bg-img::after {
        background: linear-gradient(100deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.14) 42%, rgba(0,59,102,0.1) 100%) !important;
    }

    .slider .slide-item .container {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
    }

    .slider .slide__content {
        width: min(640px, 86vw) !important;
        max-width: 640px !important;
        padding: 0.95rem 1.15rem !important;
        border-radius: 14px !important;
    }

    .slider .slide__title {
        font-size: 2.2rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.6rem !important;
    }

    .slider .slide__desc {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        padding: 0.65rem !important;
    }
}

/* Petit écran téléphone */
@media (max-width: 576px) {

    .slide__title {
        font-size: 1.6rem !important;
    }

    .steps-heading {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .beleschbox-features-title {
        font-size: 1.6rem !important;
        text-align: center;
    }

    .contact-box {
        padding: 1rem !important;
    }

    .btn__primary,
    .btn__secondary {
        width: 100%;
        text-align: center;
    }
}

/* Fallback: keep hero visible if Slick init fails */
.slider .slick-slide {
    display: block !important;
}

/* ==========================
   Hero Banner Modern Centered
   ========================== */
.slider .slide-item .row {
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: 100%;
}

.slider .slide-item .col-xl-7 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.slider .slide-item .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.slider .slide__content {
    width: min(900px, 94vw) !important;
    text-align: left !important;
    padding: clamp(1rem, 2.2vw, 1.45rem) clamp(1rem, 2.4vw, 1.8rem) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.14) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 18px 44px rgba(0, 40, 80, 0.18) !important;
    backdrop-filter: blur(7px) saturate(120%);
    -webkit-backdrop-filter: blur(7px) saturate(120%);
    position: relative;
    overflow: hidden;
    animation: heroContentFloatIn 700ms ease-out both;
    margin: 0 !important;
}

.slider .slide__content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 45%, transparent 100%);
    transform: translateX(-120%);
    animation: heroShine 4.8s ease-in-out infinite;
    pointer-events: none;
}

.slider .slide__title,
.slider .slide__desc {
    text-align: left !important;
}

@keyframes heroContentFloatIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroShine {
    0%, 62% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@media (max-width: 768px) {
    .slider .slide__content {
        width: 70vw !important;
        max-width: 250px !important;
        padding: 0.5rem 0.65rem !important;
        border-radius: 10px !important;
    }

    .slider .slide__title {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.45rem !important;
    }

    .slider .slide__desc {
        font-size: 0.7rem !important;
        line-height: 1.35 !important;
        padding: 0.5rem !important;
        margin-bottom: 0 !important;
    }
}
