/* ============================================
   Clinique Claire Fontaine - Front-end Styles
   Blue medical theme
   ============================================ */

:root {
    --primary:       #0d4f8c;
    --primary-light: #1a73c1;
    --primary-dark:  #093a6a;
    --accent:        #00b4d8;
    --accent-dark:   #0096b7;
    --white:         #ffffff;
    --light-bg:      #f4f8fc;
    --text-dark:     #1a2332;
    --text-muted:    #6c757d;
    --border:        #dee2e6;
    --shadow:        0 4px 20px rgba(13,79,140,.1);
    --radius:        12px;
}

/* Fonts */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: #fff;
}

h1,h2,h3,h4,h5,h6,.fw-bold,.navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* Spacing utility */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-6 { padding-top: 5rem; }
.pb-6 { padding-bottom: 5rem; }

/* ===== TOPBAR ===== */
.topbar {
    background: var(--primary-dark) !important;
    font-size: 0.875rem;
}
.topbar a:hover { text-decoration: underline !important; }

/* ===== NAVBAR ===== */
.navbar {
    box-shadow: 0 2px 15px rgba(13,79,140,.08) !important;
    padding: .75rem 0;
}

.navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: .9rem;
    padding: .5rem .75rem !important;
    border-radius: 6px;
    transition: all .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(13,79,140,.07);
}
.navbar .dropdown-item.active { background: var(--primary); }
.navbar .dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius); }

/* Logo */
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 1.3rem; font-weight: 800; color: var(--primary); font-family: 'Montserrat', sans-serif; }
.logo-sub  { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.logo-text .logo-main.text-white { color: #fff; }
.logo-text .logo-sub.text-white-50 { color: rgba(255,255,255,.6); }

/* Language switcher */
.lang-switch { font-weight: 700 !important; }


/* ===== ABOUT HERO ===== */
.about-hero {
    position: relative;
    padding: 6rem 0 4rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(13,79,140,.85) 0%, rgba(26,115,193,.75) 100%),
        url('../images/bg-01.jpg') center / cover no-repeat;
}

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; height: 30vh; min-height: 550px; max-height: 850px; }
.hero-slider .carousel-item {
    height: 30vh; min-height: 550px; max-height: 850px;
    background-size: cover; background-position: center;
}
.carousel-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,79,140,.78) 0%, rgba(9,58,106,.55) 100%);
}
.carousel-caption-custom {
    position: absolute; inset: 0;
    display: flex; align-items: center;
}
.btn-outline-white {
    color: #fff; border: 2px solid rgba(255,255,255,.8); background: transparent;
}
.btn-outline-white:hover { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; }

/* ===== QUICK INFO BAR ===== */
.quick-info-bar { background: var(--primary) !important; }

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary); border-color: var(--primary);
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-light); border-color: var(--primary-light);
}
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; border-color: #fff; }
.btn-white:hover { background: var(--light-bg); color: var(--primary-dark); }

/* ===== SERVICE CARDS ===== */
.service-card { border: none; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(13,79,140,.15) !important; }
.service-img-wrap img { height: 200px; object-fit: cover; }
.service-icon-wrap {
    width: 56px; height: 56px; border-radius: 12px;
    background: rgba(13,79,140,.08);
    display: flex; align-items: center; justify-content: center;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.stat-box { transition: transform .2s; }
.stat-box:hover { transform: scale(1.03); }
.bg-accent { background: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }

/* ===== STEP BADGE ===== */
.step-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 4rem 0;
}
.bg-primary-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }

/* ===== BLOG CARDS ===== */
.blog-card { border: none; transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(13,79,140,.12) !important; }

/* ===== BADGE SOFT ===== */
.bg-primary-soft { background: rgba(13,79,140,.1) !important; }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark) !important; }
.footer-heading { text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.5); }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.contact-list li { margin-bottom: .6rem; font-size: .9rem; }
.contact-list a { color: rgba(255,255,255,.65); text-decoration: none; }
.contact-list a:hover { color: #fff; }
.border-white-10 { border-color: rgba(255,255,255,.1) !important; }

/* ===== SERVICE DETAIL ===== */
.service-content { font-size: 1.05rem; line-height: 1.8; }
.service-content h2,.service-content h3 { color: var(--primary); font-family: 'Montserrat',sans-serif; margin-top: 1.5rem; }

/* ===== APPOINTMENT CTA ===== */
.appointment-cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important; }

/* ===== FAQ ===== */
.accordion-button:not(.collapsed) { background: var(--primary); color: #fff; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(13,79,140,.25); }

/* ===== CONTACT ===== */
.contact-info-box { border-radius: var(--radius); }
iframe { border-radius: var(--radius); }

/* ===== CTA BAND ===== */
.cta-band { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important; }

/* ===== PROSE ===== */
.prose p { margin-bottom: 1rem; }
.prose ul,
.prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }


/* ===== SERVICE HERO ===== */
.service-hero {
    padding: 5rem 0 3rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(13,79,140,.85) 0%, rgba(26,115,193,.75) 100%),
        url('../images/bg-01.jpg') center / cover no-repeat;
}
.service-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-hero-badge {
    background: rgba(255,255,255,.2);
    font-size: .8rem;
}

/* ===== REVIEWS SLIDER ===== */
.reviews-slider {
    padding: 0 3rem;
}
.reviews-slider .carousel-control-prev,
.reviews-slider .carousel-control-next {
    width: 3rem;
    opacity: 1;
}
.reviews-slider .carousel-control-prev-icon,
.reviews-slider .carousel-control-next-icon {
    background-color: var(--bs-primary);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    background-size: 45%;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.reviews-indicators {
    position: static;
    margin-top: 2rem;
}
.reviews-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    opacity: .35;
}
.reviews-indicators .active {
    opacity: 1;
    width: 26px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .reviews-slider {
        padding: 0 1rem;
    }
    .reviews-slider .carousel-control-prev,
    .reviews-slider .carousel-control-next {
        display: none; /* on mobile, on garde juste les indicateurs */
    }
}



/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-slider, .hero-slider .carousel-item {
         height: 50vh; min-height: 150px;
    }
    .stats-grid { grid-template-columns: 1fr; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.8rem; }
    .topbar .d-none.d-md-inline { display: none !important; }
}

@media (max-width: 576px) {
     .hero-slider, .hero-slider .carousel-item { height: 50vh; }
    .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
}
