/* ============================================================
   Clinique Nyota ya Asubuyi — Style Clinic
   Police : Poppins | Couleurs : #1B2C51, #007bff, #28a745
   ============================================================ */

/* ---------- Variables globales ---------- */
:root {
    --nyota-dark:    #1B2C51;
    --nyota-blue:    #0d6efd;
    --nyota-green:   #1f9d68;
    --nyota-light:   #e8f4fd;
    --nyota-gray-bg: #f8f9fa;
    --nyota-text:    #333333;
    --nyota-muted:   #6c757d;
    --shadow-card:   0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover:  0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ---------- Reset & Corps ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--nyota-text);
    background: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--nyota-dark);
    color: #ffffff;
    font-size: 0.85rem;
    height: 40px;
    display: flex;
    align-items: center;
}

.top-bar a {
    color: #ffffff;
}

.top-bar a:hover {
    color: var(--nyota-blue);
}

.top-bar i {
    margin-right: 6px;
}

/* ---------- Navbar ---------- */
.navbar-clinic {
    background: #ffffff;
    transition: all 0.3s ease;
    padding: 14px 0;
    border-bottom: 1px solid rgba(13, 110, 253, 0.05);
}

.navbar-clinic.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.navbar-clinic .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.navbar-clinic .navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-clinic .navbar-brand img {
    height: 48px;
    transition: filter 0.3s ease;
}

.navbar-clinic .brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(27, 44, 81, 0.15));
}

.navbar-clinic .navbar-brand:hover .brand-logo {
    filter: drop-shadow(0 4px 8px rgba(13, 110, 253, 0.3));
}

.navbar-clinic .navbar-brand span {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--nyota-dark);
    letter-spacing: -0.5px;
}

/* Navbar toggler en bleu */
.navbar-clinic .navbar-toggler {
    border-color: var(--nyota-blue);
    color: var(--nyota-blue);
}

.navbar-clinic .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.navbar-clinic .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230d6efd' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu items */
.navbar-clinic .navbar-nav {
    gap: 0;
}

/* Onglets admin dans navbar */
.navbar-clinic .navbar-nav.gap-1 {
    gap: 4px;
}

.navbar-clinic .navbar-nav.gap-1 .nav-link {
    font-size: 0.88rem;
    padding: 8px 14px !important;
}

@media (max-width: 1199px) {
    .navbar-clinic .navbar-nav.gap-1 .nav-link {
        font-size: 0.82rem;
        padding: 6px 10px !important;
    }
}

.navbar-clinic .nav-item {
    position: relative;
}

.navbar-clinic .nav-link {
    color: var(--nyota-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px !important;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navbar-clinic .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nyota-blue), #0056b3);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-clinic .nav-link:hover,
.navbar-clinic .nav-link.active {
    color: var(--nyota-blue);
}

.navbar-clinic .nav-link:hover::after,
.navbar-clinic .nav-link.active::after {
    width: 30px;
}

/* Dropdown (sous-menu) */
.navbar-clinic .dropdown-menu {
    background: #ffffff;
    border: 1px solid #dbe7f2;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    min-width: 180px;
    animation: dropdownIn 0.2s ease forwards;
}

.navbar-clinic .dropdown-menu.show {
    animation: dropdownIn 0.2s ease forwards;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-clinic .dropdown-item {
    color: var(--nyota-dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-clinic .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--nyota-blue);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.navbar-clinic .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--nyota-blue);
    padding-left: 24px;
}

.navbar-clinic .dropdown-item:hover::before {
    transform: scaleY(1);
}

.navbar-clinic .dropdown-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

.navbar-clinic .dropdown-divider {
    margin: 8px 0;
    border-color: #e3edf7;
}

/* ---------- Boutons globaux ---------- */
.btn-appointment {
    background: linear-gradient(135deg, var(--nyota-blue) 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-appointment:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.4);
}

.btn-appointment.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-appointment.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-primary-clinic {
    background: var(--nyota-blue);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary-clinic:hover {
    background: #0069d9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.btn-outline-clinic {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 30px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-outline-clinic:hover {
    background: #ffffff;
    color: var(--nyota-dark);
}

/* ---------- Hero Carousel ---------- */
.hero-carousel .carousel-item {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(27, 44, 81, 0.85) 0%, rgba(27, 44, 81, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 20, 44, 0.05) 0%, rgba(9, 20, 44, 0.42) 100%);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
    padding: 0;
    bottom: auto;
}

.hero-carousel .hero-content {
    max-width: 640px;
}

.hero-carousel .hero-subtitle {
    color: #7db8ff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.hero-carousel .hero-title {
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-carousel .hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Animation d'apparition */
.hero-carousel .carousel-item.active .hero-subtitle {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-carousel .carousel-item.active .hero-title {
    animation: fadeInUp 0.8s 0.15s ease both;
}

.hero-carousel .carousel-item.active .hero-desc {
    animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-carousel .carousel-item.active .hero-buttons {
    animation: fadeInUp 0.8s 0.45s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
}

.hero-carousel .carousel-indicators .active {
    background: var(--nyota-blue);
}

/* ---------- Titres de section ---------- */
.section-heading {
    margin-bottom: 50px;
}

.section-heading .badge-label {
    display: inline-block;
    background: var(--nyota-light);
    color: var(--nyota-blue);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.section-heading h2 {
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--nyota-dark);
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--nyota-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

.section-heading.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Service Cards ---------- */
.service-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e3edf7;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card .service-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    background: var(--nyota-light);
}

.service-card .service-card-img-placeholder {
    width: 100%;
    height: 210px;
    background: var(--nyota-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nyota-blue);
    font-size: 3rem;
}

.service-card .service-card-body {
    padding: 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--nyota-light);
    color: var(--nyota-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.service-card .icon-circle img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.service-card:hover .icon-circle {
    background: var(--nyota-blue);
    color: #ffffff;
}

.service-card h5 {
    font-weight: 600;
    color: var(--nyota-dark);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--nyota-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ---------- Section Expertise ---------- */
.expertise-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 28px 22px;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e3edf7;
}

.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.expertise-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--nyota-light);
    color: var(--nyota-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.expertise-card:hover .icon-circle {
    background: var(--nyota-blue);
    color: #ffffff;
}

.expertise-card h5 {
    font-weight: 600;
    color: var(--nyota-dark);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.expertise-card p {
    color: var(--nyota-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------- Section À Propos ---------- */
.about-section .about-img {
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-card);
    width: 100%;
    height: 100%;
    min-height: 350px;
}

.about-section .about-content h2 {
    font-weight: 700;
    color: var(--nyota-dark);
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-section .about-content p {
    color: var(--nyota-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.about-section .check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.about-section .check-list li {
    padding: 8px 0;
    font-size: 1rem;
    color: var(--nyota-text);
    display: flex;
    align-items: center;
}

.about-section .check-list li i {
    color: var(--nyota-blue);
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---------- Chiffres / Stats ---------- */
.stats-section {
    background: var(--nyota-dark);
    color: #ffffff;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nyota-blue);
    display: block;
}

.stat-item .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--nyota-blue) 0%, #0056b3 100%);
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
}

.cta-section h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.footer-clinic {
    background: var(--nyota-dark);
    color: #c5d0de;
    padding: 60px 0 0;
}

.footer-clinic h5 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.footer-clinic p,
.footer-clinic a {
    color: #a8b8cc;
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-clinic a:hover {
    color: var(--nyota-blue);
}

.footer-clinic .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #7a8ea3;
}

.footer-clinic .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #a8b8cc;
    margin-right: 8px;
    transition: all 0.3s;
}

.footer-clinic .social-links a:hover {
    background: var(--nyota-blue);
    color: #ffffff;
}

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: transform 0.3s, box-shadow 0.3s;
}

.wa-float:hover {
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* ---------- Utilitaires ---------- */
.bg-gray {
    background: var(--nyota-gray-bg);
}

.text-blue {
    color: var(--nyota-blue);
}

.text-green {
    color: var(--nyota-green);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        height: 70vh;
        min-height: 420px;
    }

    .hero-carousel .hero-title {
        font-size: 1.8rem;
    }

    .hero-carousel .carousel-caption {
        padding: 0 20px;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        height: auto;
        padding: 8px 0;
        font-size: 0.8rem;
    }

    .hero-carousel .carousel-item {
        height: 60vh;
        min-height: 380px;
    }

    .hero-carousel .hero-title {
        font-size: 1.5rem;
    }

    .hero-carousel .hero-desc {
        font-size: 0.92rem;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .about-section .about-img {
        min-height: 250px;
        margin-bottom: 30px;
    }
}

/* ---------- Blog Cards ---------- */
.blog-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e3edf7;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-card .blog-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    background: var(--nyota-light);
}

.blog-card .blog-card-img-placeholder {
    width: 100%;
    height: 210px;
    background: var(--nyota-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nyota-blue);
    font-size: 3rem;
}

.blog-card .blog-card-body {
    padding: 24px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .blog-card-meta {
    font-size: 0.8rem;
    color: var(--nyota-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-card .blog-card-meta i {
    color: var(--nyota-blue);
    margin-right: 4px;
}

.blog-card h5 {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--nyota-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--nyota-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 0;
}

.blog-card .blog-card-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-card .blog-read-more {
    color: var(--nyota-blue);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s, color 0.3s;
}

.blog-card .blog-read-more:hover {
    color: #0056b3;
    gap: 10px;
}

/* Textarea dans input-group : icone alignee en haut */
.input-group > textarea.form-control {
    resize: vertical;
}

.input-group .input-group-text.align-top {
    align-self: flex-start;
    padding-top: 10px;
}


.input-group-text {
    background: var(--nyota-light);
    border-color: #d7e3f1;
    color: var(--nyota-blue);
    font-size: 0.95rem;
    min-width: 42px;
    justify-content: center;
}

.input-group .form-control,
.input-group .form-select {
    border-color: #d7e3f1;
    padding-left: 12px !important;
    background-image: none !important;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    border-color: #84b8ff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    z-index: 3;
}

.input-group .form-control:focus ~ .input-group-text,
.input-group-text:has(+ .form-control:focus) {
    border-color: #84b8ff;
    color: var(--nyota-blue);
}

/* Bouton oeil (toggle mot de passe) en bleu */
.password-toggle {
    border-color: #d7e3f1;
    background: var(--nyota-light);
    color: var(--nyota-blue);
    border-left: none;
}

.password-toggle:hover {
    background: var(--nyota-blue);
    color: #ffffff;
    border-color: var(--nyota-blue);
}

/* Champs obligatoires */
.required-star {
    color: #dc3545;
    margin-left: 3px;
}

/* ---------- Toast notifications ---------- */
.nyota-toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.nyota-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.7s forwards;
    pointer-events: auto;
    max-width: 480px;
    min-width: 280px;
}

.nyota-toast-success {
    background: #def9ec;
    color: #0a6643;
    border: 1px solid #98e6c5;
}

.nyota-toast-error {
    background: #ffe4e8;
    color: #9f1f2d;
    border: 1px solid #f4adb8;
}

.nyota-toast-info {
    background: var(--nyota-light);
    color: #185b9b;
    border: 1px solid #a8cff5;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

/* ---------- Bouton chargement ---------- */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.82;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ---------- Alertes avec icone ---------- */
.alert-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    font-size: 0.93rem;
}

.alert-with-icon i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---------- Force de mot de passe ---------- */
.pwd-strength-bar {
    height: 4px;
    border-radius: 4px;
    background: #e3edf7;
    margin-top: 6px;
    overflow: hidden;
}

.pwd-strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}

.pwd-hint {
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ---------- Pages Auth ---------- */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 15%, rgba(13, 110, 253, 0.2), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(13, 110, 253, 0.14), transparent 35%),
        linear-gradient(145deg, #f6fbff 0%, #edf5fb 55%, #f9fdff 100%);
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-shell {
    width: min(1080px, 100%);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(12, 56, 93, 0.18);
    background: #ffffff;
}

.auth-brand {
    background: linear-gradient(170deg, var(--nyota-dark) 0%, #15356f 55%, #0d6efd 100%);
    color: #ffffff;
    padding: 42px 34px;
    height: 100%;
    position: relative;
}

.auth-brand-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 4px;
}

.auth-brand::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -80px;
    bottom: -80px;
    background: rgba(255, 255, 255, 0.11);
}

.auth-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.auth-brand p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.auth-brand .auth-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 14px;
}

.auth-brand .auth-point i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
}

.auth-card {
    padding: 38px 34px;
}

.auth-card h2 {
    color: var(--nyota-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-card .auth-muted {
    color: var(--nyota-muted);
    margin-bottom: 24px;
}

.auth-card .form-label {
    font-weight: 600;
    color: var(--nyota-dark);
}

.auth-card .form-control,
.auth-card .form-select,
.portal-card .form-control,
.portal-card .form-select,
.portal-card textarea {
    border-radius: 10px;
    border: 1px solid #d7e3f1;
    padding: 10px 12px;
    box-shadow: none;
}

/* ---------- Icones automatiques pour tous les formulaires ---------- */
.auth-card .form-control,
.auth-card .form-select,
.portal-card .form-control,
.portal-card .form-select,
.portal-card textarea,
#formPaiement .form-control,
#formPaiement .form-select,
#formMomo .form-control,
#formMomo .form-select {
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    padding-left: 38px;
}

/* Evite le double affichage si le champ est deja dans un input-group */
.input-group > .form-control,
.input-group > .form-select,
.input-group > textarea {
    background-image: none !important;
    padding-left: 12px !important;
}

.auth-card input.form-control[type='text'],
.portal-card input.form-control[type='text'],
#formPaiement input.form-control[type='text'],
#formMomo input.form-control[type='text'] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.5'%3E%3Cpath d='M2.5 12.5h11'/%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M4 3.5h8'/%3E%3C/svg%3E");
}

.auth-card input.form-control[type='email'],
.portal-card input.form-control[type='email'],
#formPaiement input.form-control[type='email'],
#formMomo input.form-control[type='email'] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.4'%3E%3Crect x='1.5' y='3' width='13' height='10' rx='1.5'/%3E%3Cpath d='M2 4l6 4 6-4'/%3E%3C/svg%3E");
}

.auth-card input.form-control[type='password'],
.portal-card input.form-control[type='password'],
#formPaiement input.form-control[type='password'],
#formMomo input.form-control[type='password'] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.5'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5 7V5.8A3 3 0 0 1 8 3a3 3 0 0 1 3 2.8V7'/%3E%3C/svg%3E");
}

.auth-card input.form-control[type='date'],
.portal-card input.form-control[type='date'],
#formPaiement input.form-control[type='date'],
#formMomo input.form-control[type='date'] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.4'%3E%3Crect x='2' y='3' width='12' height='11' rx='1.5'/%3E%3Cpath d='M5 1.8V4M11 1.8V4M2 6h12'/%3E%3C/svg%3E");
}

.auth-card input.form-control[type='time'],
.portal-card input.form-control[type='time'],
#formPaiement input.form-control[type='time'],
#formMomo input.form-control[type='time'] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.4'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M8 4.5V8l2.5 1.5'/%3E%3C/svg%3E");
}

.auth-card input.form-control[type='number'],
.portal-card input.form-control[type='number'],
#formPaiement input.form-control[type='number'],
#formMomo input.form-control[type='number'] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.5'%3E%3Cpath d='M3 5h10M3 8h10M3 11h10'/%3E%3C/svg%3E");
}

.auth-card input.form-control[type='tel'],
.portal-card input.form-control[type='tel'],
#formPaiement input.form-control[type='tel'],
#formMomo input.form-control[type='tel'] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.4'%3E%3Crect x='4' y='1.8' width='8' height='12.4' rx='1.6'/%3E%3Ccircle cx='8' cy='11.8' r='0.7'/%3E%3C/svg%3E");
}

.auth-card select.form-select,
.portal-card select.form-select,
#formPaiement select.form-select,
#formMomo select.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.5'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"), var(--bs-form-select-bg-img, none);
    background-position: 12px center, right 0.75rem center;
    background-size: 16px 16px, 16px 12px;
}

.auth-card textarea.form-control,
.portal-card textarea.form-control,
#formPaiement textarea.form-control,
#formMomo textarea.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23607a9a' stroke-width='1.4'%3E%3Cpath d='M3 4h10M3 8h10M3 12h7'/%3E%3C/svg%3E");
    background-position: 12px 12px;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus,
.portal-card .form-control:focus,
.portal-card .form-select:focus,
.portal-card textarea:focus {
    border-color: #84b8ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.btn-clinic-main {
    background: linear-gradient(135deg, var(--nyota-blue), #0a58ca);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 18px;
}

.btn-clinic-main:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* ---------- Portails (Admin/Medecin/Patient) ---------- */
.portal-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f3f8ff 0%, #edf3ff 100%);
    color: #18324d;
}

.portal-wrap {
    max-width: 1240px;
    margin: 32px auto;
    padding: 0 16px;
}

.portal-topbar {
    background: #ffffff;
    border: 1px solid #dce7f2;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(12, 64, 102, 0.08);
    padding: 14px 18px;
    margin-bottom: 18px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #d6e3f0;
    background: #ffffff;
    padding: 2px;
}

.portal-title {
    color: var(--nyota-dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.portal-subtitle {
    color: #5f7389;
    margin-bottom: 0;
}

.portal-card {
    background: #ffffff;
    border: 1px solid #dbe7f2;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(9, 68, 106, 0.08);
    padding: 20px;
}

.portal-card table tbody tr td {
    vertical-align: middle;
}

.portal-card + .portal-card {
    margin-top: 16px;
}

.portal-card h2,
.portal-card h3 {
    color: var(--nyota-dark);
    font-weight: 700;
}

.portal-nav .nav-link {
    color: var(--nyota-dark);
    font-weight: 600;
}

.portal-nav .nav-link.active {
    color: #ffffff;
    background: var(--nyota-blue);
    border-color: var(--nyota-blue);
}

.portal-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--nyota-light);
    color: var(--nyota-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-chip {
    background: #ffffff;
    border: 1px solid #dbe7f2;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(9, 68, 106, 0.07);
    padding: 16px;
}

.stat-chip .value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nyota-dark);
}

.stat-chip .label {
    color: #63809b;
    font-size: 0.86rem;
}

.table thead th {
    white-space: nowrap;
}

.quick-link-card {
    display: block;
    background: #ffffff;
    border: 1px solid #dbe7f2;
    border-radius: 14px;
    padding: 18px;
    color: var(--nyota-dark);
    box-shadow: 0 10px 22px rgba(9, 68, 106, 0.08);
    transition: all 0.25s ease;
    height: 100%;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(9, 68, 106, 0.13);
    color: var(--nyota-blue);
}

.quick-link-card i {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.portal-help-note {
    border-left: 4px solid var(--nyota-blue);
    background: #eef4ff;
    color: #1a4d8f;
    border-color: #c9dbff;
}

.account-banner {
    background: linear-gradient(135deg, #163a75 0%, #0d6efd 62%, #0a58ca 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(12, 64, 102, 0.16);
}

.account-banner h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.account-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.info-card {
    background: #ffffff;
    border: 1px solid #dbe7f2;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(9, 68, 106, 0.08);
}

.info-card h3 {
    color: var(--nyota-dark);
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.info-card p {
    color: #5f7389;
    margin-bottom: 0;
}

.mini-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dce7f2;
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    box-shadow: 0 8px 18px rgba(9, 68, 106, 0.08);
}

.mini-profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.mini-profile-photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d7e3f1;
}

.profile-upload input[type="file"] {
    display: none;
}

.mini-profile .name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--nyota-dark);
    line-height: 1.1;
}

.mini-profile .meta {
    font-size: 0.74rem;
    color: #5f7389;
    line-height: 1.1;
}

.schedule-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.schedule-day {
    border: 1px solid #dce7f2;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    min-height: 132px;
}

.schedule-day h6 {
    font-size: 0.85rem;
    color: var(--nyota-dark);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.schedule-slot {
    font-size: 0.78rem;
    color: #1a608f;
    background: #e9f4ff;
    border: 1px solid #c6e1f8;
    border-radius: 999px;
    padding: 4px 9px;
    display: inline-flex;
    margin: 0 6px 6px 0;
    font-weight: 600;
}

.schedule-empty {
    font-size: 0.78rem;
    color: #8aa0b4;
}

/* ---------- Home : bande features ---------- */
.feature-strip {
    margin-top: -56px;
    position: relative;
    z-index: 4;
}

.feature-item {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(10, 52, 88, 0.12);
    border: 1px solid #e1ebf5;
    height: 100%;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(10, 52, 88, 0.16);
}

/* ---------- Badges statut rendez-vous ---------- */
.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
    font-weight: 700;
    padding: 6px 12px;
    border: 1px solid transparent;
}

.badge-status-pending {
    color: #8a6b00;
    background: #fff7d6;
    border-color: #f5e08c;
}

.badge-status-confirmed {
    color: #0a6643;
    background: #def9ec;
    border-color: #98e6c5;
}

.badge-status-rescheduled {
    color: #185b9b;
    background: #e4f2ff;
    border-color: #a8cff5;
}

.badge-status-cancelled {
    color: #9f1f2d;
    background: #ffe4e8;
    border-color: #f4adb8;
}

/* ---------- Animation d'entree (stagger) ---------- */
.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    animation: revealFadeUp 0.6s ease forwards;
}

.stagger-1 {
    animation-delay: 0.08s;
}

.stagger-2 {
    animation-delay: 0.16s;
}

.stagger-3 {
    animation-delay: 0.24s;
}

.stagger-4 {
    animation-delay: 0.32s;
}

.stagger-5 {
    animation-delay: 0.4s;
}

@keyframes revealFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--nyota-light);
    color: var(--nyota-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-item h6 {
    margin: 0 0 6px;
    color: var(--nyota-dark);
    font-weight: 700;
}

.feature-item p {
    margin: 0;
    color: var(--nyota-muted);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        border-radius: 18px;
    }

    .feature-strip {
        margin-top: 0;
    }

    .schedule-week {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Navbar responsive */
    .navbar-clinic .navbar-brand span {
        font-size: 1.1rem;
    }

    .navbar-clinic .collapse {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e3edf7;
    }

    .navbar-clinic .navbar-nav {
        gap: 0;
    }

    .navbar-clinic .nav-item {
        width: 100%;
    }

    .navbar-clinic .nav-link {
        padding: 12px 16px !important;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #f0f4f8;
    }

    .navbar-clinic .nav-link::after {
        display: none;
    }

    .navbar-clinic .nav-link.active,
    .navbar-clinic .nav-link:hover {
        background: #f8f9fa;
        border-left: 3px solid var(--nyota-blue);
        padding-left: 13px !important;
    }

    .navbar-clinic .dropdown-menu {
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.04);
        border: none;
        border-radius: 0;
    }

    .navbar-clinic .dropdown-item {
        padding: 10px 32px;
        border-bottom: 1px solid #f0f4f8;
    }

    .navbar-clinic .dropdown-item::before {
        display: none;
    }

    .navbar-clinic .dropdown-item:hover {
        padding-left: 32px;
    }

    .navbar-clinic .d-lg-flex {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .btn-appointment {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .schedule-week {
        grid-template-columns: 1fr;
    }
}

/* ---------- Logo Nyota — couleur dynamique ---------- */
.brand-logo {
    filter: drop-shadow(0 2px 6px rgba(27, 44, 81, 0.25));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.navbar-clinic:hover .brand-logo,
.brand-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(0, 123, 255, 0.4)) brightness(1.08);
    transform: scale(1.05);
}

.portal-brand-logo {
    filter: drop-shadow(0 2px 8px rgba(27, 44, 81, 0.3));
}

/* ---------- Médecins - Accueil ---------- */
.doctor-card-home {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e3edf7;
    box-shadow: 0 6px 22px rgba(0,0,0,.07);
    text-align: center;
    padding: 28px 20px 22px;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
}

.doctor-card-home:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

.doctor-home-avatar-wrap {
    margin-bottom: 14px;
}

.doctor-home-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--nyota-light);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.doctor-home-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nyota-dark) 0%, #1e4d8c 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    border: 3px solid var(--nyota-light);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.doctor-card-home h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--nyota-dark);
    margin-bottom: 6px;
}

.doctor-home-spec {
    font-size: .85rem;
    color: var(--nyota-blue);
    font-weight: 600;
    margin-bottom: 0;
}

/* ---------- Stat chip alerte ---------- */
.stat-chip-alert {
    border: 2px solid #dc3545 !important;
    animation: pulseAlert 1.5s ease-in-out infinite;
}

@keyframes pulseAlert {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,.3); }
    50%       { box-shadow: 0 0 0 8px rgba(220,53,69,0); }
}

/* ---------- Print : rapports & RDV ---------- */
@media print {
    .navbar,
    .portal-topbar,
    .portal-nav,
    .btn,
    .portal-card:not(#rapportsTable):not(#rdvTable) form {
        display: none !important;
    }

    body, .portal-body { background: #fff !important; }

    .portal-wrap {
        max-width: 100% !important;
        padding: 0 !important;
    }

    #rapportsTable,
    #rdvTable {
        font-size: 11pt;
    }
}

