/* =========================================================
   Page d'accueil – design premium « verre »
   À charger APRÈS style.css : assets/css/home.css
   ========================================================= */

.home-page {
    background: #f4f9fc;
    position: relative;
}

/* Fond maillé (mesh) discret sur toute la page */
.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 600px at 8% 12%, rgba(8, 127, 189, .13), transparent 60%),
        radial-gradient(800px 600px at 92% 35%, rgba(23, 169, 155, .12), transparent 60%),
        radial-gradient(900px 700px at 40% 100%, rgba(8, 127, 189, .09), transparent 60%),
        #f4f9fc;
}

/* ------------------------- HERO ------------------------- */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 680px;
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(5rem, 8vw, 7rem);
    color: #fff;
    background:
        linear-gradient(105deg, rgba(14, 26, 36, .80) 0%, rgba(16, 38, 52, .50) 45%, rgba(0, 0, 0, .06) 100%),
        url("../img/clinique5.jpg") center 55% / cover no-repeat;
}

/* Halos lumineux animés */
.home-hero .orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .25;
    animation: floatOrb 14s ease-in-out infinite alternate;
}
.home-hero .orb-1 { width: 380px; height: 380px; background: #17a99b; top: -80px; right: 8%; }
.home-hero .orb-2 { width: 320px; height: 320px; background: #087fbd; bottom: -100px; left: 12%; animation-delay: -6s; }

@keyframes floatOrb {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(30px, 40px, 0) scale(1.15); }
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .95rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.home-eyebrow i { color: #5eead4; }

.home-hero h1 {
    margin: 1.3rem 0 1.2rem;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
}
.home-hero h1 span {
    background: linear-gradient(90deg, #7fd8f5, #5eead4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.home-hero .lead-text {
    max-width: 560px;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, .84);
}

/* Boutons hero */
.btn-glass-light,
.btn-glass-solid {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-glass-solid {
    background: linear-gradient(135deg, #17a99b, #078f85);
    color: #fff;
    box-shadow: 0 12px 30px rgba(23, 169, 155, .4);
}
.btn-glass-solid:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 38px rgba(23, 169, 155, .5); }
.btn-glass-light {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.btn-glass-light:hover { color: #fff; background: rgba(255, 255, 255, .26); transform: translateY(-3px); }

/* Tuiles de verre du hero (colonne droite) */
.hero-tiles { display: grid; gap: 1rem; }

.glass-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 18px 45px rgba(4, 25, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    color: #fff;
    text-decoration: none;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s ease;
}
.glass-tile:nth-child(2) { margin-left: 1.6rem; }
.glass-tile:hover { color: #fff; transform: translateY(-4px) scale(1.01); background: rgba(255, 255, 255, .22); }

.glass-tile .tile-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(127, 216, 245, .35), rgba(94, 234, 212, .35));
    border: 1px solid rgba(255, 255, 255, .4);
}
.glass-tile h2 { margin: 0 0 .15rem; font-size: 1.05rem; font-weight: 800; color: #fff; }
.glass-tile p { margin: 0; font-size: .88rem; line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* ---------------- Bandeau de chiffres (chevauche le hero) ---------------- */
.stats-wrap { position: relative; z-index: 5; margin-top: -3.6rem; }

.stats-glass {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 1.4rem .6rem;
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 25px 60px rgba(20, 65, 91, .14);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
}
.stat { text-align: center; padding: .4rem .8rem; position: relative; }
.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0; top: 18%; bottom: 18%;
    width: 1px;
    background: linear-gradient(transparent, rgba(8, 127, 189, .25), transparent);
}
.stat-num {
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--rb-blue), var(--rb-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { font-size: .85rem; font-weight: 600; color: var(--rb-muted); }

/* ------------------------- SERVICES ------------------------- */
.home-section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }

.home-kicker {
    display: inline-block;
    margin-bottom: .6rem;
    padding: .3rem .8rem;
    border-radius: 99px;
    background: rgba(8, 127, 189, .09);
    color: var(--rb-blue-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.home-title {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 .8rem;
}
.home-intro { max-width: 720px; margin: 0 auto; color: var(--rb-muted); }

.gx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.7rem;
    overflow: hidden;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 14px 40px rgba(20, 65, 91, .07), inset 0 1px 0 #fff;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}
/* Reflet coloré au survol */
.gx-card::before {
    content: "";
    position: absolute;
    top: -60%; right: -40%;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 169, 155, .28), transparent 70%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.gx-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(8, 127, 189, .17), inset 0 1px 0 #fff; }
.gx-card:hover::before { opacity: 1; }

.gx-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 1.2rem;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--rb-blue), var(--rb-teal));
    box-shadow: 0 10px 22px rgba(8, 127, 189, .28);
}
.gx-card h3 {
    margin: 0 0 1rem;
    min-height: 3.1em;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--rb-ink);
}

.gx-contact {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: 1.1rem;
}
.gx-contact a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .8rem;
    border-radius: .8rem;
    background: rgba(239, 248, 252, .85);
    border: 1px solid rgba(8, 127, 189, .13);
    color: var(--rb-ink);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background .2s ease, color .2s ease;
}
.gx-contact a i { color: var(--rb-blue); }
.gx-contact a:hover { background: var(--rb-blue); color: #fff; }
.gx-contact a:hover i { color: #fff; }

.gx-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}
.gx-list li {
    position: relative;
    padding: .35rem 0 .35rem 1.6rem;
    color: var(--rb-muted);
    font-size: .93rem;
    line-height: 1.5;
}
.gx-list li::before {
    content: "\F26A"; /* bi-check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0; top: .38rem;
    color: var(--rb-teal);
}

.gx-card .btn-rb { margin-top: auto; width: 100%; }

/* ------------------------- ÉTAPES ------------------------- */
.flow-glass {
    padding: clamp(1.6rem, 4vw, 3rem);
    border-radius: 2rem;
    background:
        radial-gradient(500px 300px at 90% 0%, rgba(23, 169, 155, .35), transparent 70%),
        linear-gradient(135deg, #0b4d73, #087fbd);
    color: #fff;
    box-shadow: 0 28px 70px rgba(8, 104, 151, .25);
    position: relative;
    overflow: hidden;
}
/* Les colonnes deviennent flex pour que chaque tuile occupe toute la hauteur */
.flow-glass .row > [class*="col"] { display: flex; }

.flow-step {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    padding: 1.5rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.flow-step .num {
    font-family: "Manrope", sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .35);
}
.flow-step h3 { margin: .6rem 0 .4rem; font-size: 1.15rem; font-weight: 800; color: #fff; }
.flow-step p { margin: 0 0 1rem; font-size: .93rem; color: rgba(255, 255, 255, .82); }
.flow-step a { margin-top: auto; align-self: flex-start; color: #fff; font-weight: 700; text-decoration: none; }
.flow-step a:hover { text-decoration: underline; }

/* ------------------------- FAQ ------------------------- */
.faq-glass .accordion-item {
    margin-bottom: .9rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 1.2rem !important;
    background: rgba(255, 255, 255, .65);
    box-shadow: 0 8px 26px rgba(20, 65, 91, .06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.faq-glass .accordion-button {
    padding: 1.15rem 1.4rem;
    background: transparent;
    color: var(--rb-ink);
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    box-shadow: none;
}
.faq-glass .accordion-button:not(.collapsed) { color: var(--rb-blue-dark); background: rgba(8, 127, 189, .06); }
.faq-glass .accordion-button:focus { box-shadow: 0 0 0 4px rgba(8, 127, 189, .15); }
.faq-glass .accordion-body { color: #4c6579; padding: 1.1rem 1.4rem 1.4rem; }

/* ------------------------- CTA ------------------------- */
.cta-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border-radius: 1.8rem;
    background:
        radial-gradient(400px 220px at 100% 0%, rgba(94, 234, 212, .35), transparent 70%),
        linear-gradient(120deg, #0d638e, #0787b9);
    color: #fff;
    box-shadow: 0 22px 50px rgba(8, 104, 151, .22);
}
.cta-home h2 { margin: 0 0 .4rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.cta-home p { margin: 0; color: #e0f4fb; }

/* ------------------------- Apparition au scroll ------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .home-hero .orb { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------- Responsive ------------------------- */
@media (max-width: 991.98px) {
    .glass-tile:nth-child(2) { margin-left: 0; }
    .stats-glass { grid-template-columns: repeat(2, 1fr); row-gap: .8rem; }
    .stat + .stat::before { display: none; }
    .stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .home-hero { min-height: auto; padding-bottom: 5.5rem; }
    .gx-card h3 { min-height: 0; }
    .cta-home { flex-direction: column; align-items: flex-start; }
}
