:root{
    --primary:#0B5D7A;          /* bleu médical profond */
    --secondary:#14A3A6;        /* turquoise ophtalmo */
    --accent:#36D1A5;           /* vert santé */
    --soft:#F2FBFC;             /* fond clinique */
    --dark:#072B36;
}
body{ 
    font-family:'Poppins',sans-serif; 
    color:#1b2b34; 
    overflow-x: hidden !important;
    padding-top:90px;
}
.topbar{ background:#eef7f9; font-size:14px; }
.navbar{ background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.06); }
.navbar-brand{ color:var(--primary)!important; font-weight:700; }
.nav-link{ font-weight:500; }

.hero{
    position:relative;
    min-height:85vh;
    display:flex;
    align-items:center;
    color:white;
    overflow:hidden;
}

/* vraie image */
.hero-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    z-index:-2;
}

/* overlay médical */
.hero-overlay{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 20% 20%, rgba(20,163,166,.45), transparent 40%),
        linear-gradient(rgba(7,43,54,.65), rgba(7,43,54,.45));
    z-index:-1;
}

.hero h1{ font-weight:700; }
.hero .row{
    margin-left:0;
    margin-right:0;
}
.hero .container{
    padding-left:20px;
    padding-right:20px;
}
.btn-primary{ background:linear-gradient(135deg,var(--secondary),var(--accent)); border:none; }
.btn-primary:hover{ opacity:.9; }

.section-title{ font-weight:700; color:var(--primary); }
.card-premium{ border:none; border-radius:20px; box-shadow:0 12px 35px rgba(0,0,0,.08); }
.icon-box{ width:70px; height:70px; border-radius:18px; background:var(--soft); display:flex; align-items:center; justify-content:center; font-size:30px; color:var(--secondary); }

#team img { 
    width: 220px;
    height: 220px;
    max-width:100%;
}
.card{
    overflow:hidden;
}
.stats{ background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; }
.stats h3{ font-weight:700; }

.testimonial{ background:#fff; border-radius:20px; padding:25px; box-shadow:0 8px 25px rgba(0,0,0,.07); }

.cta{ background:linear-gradient(135deg,var(--secondary),var(--accent)); color:#fff; border-radius:28px; }
.faq-item{ border-bottom:1px solid #e6eff2; padding:12px 0; }


.footer-medical{
    background: linear-gradient(135deg,#0f2a44,#0b5d5b);
    color:#eaf6ff;
}

.footer-title{
    font-weight:700;
    margin-bottom:15px;
    color:#ffffff;
}

.footer-text{
    font-size:14px;
    line-height:1.7;
}

.footer-links{
    list-style:none;
    padding:0;
}

.footer-links li{
    margin-bottom:8px;
}

.footer-links a{
    color:#d6e8f5;
    text-decoration:none;
    transition:0.3s;
}

.footer-links a:hover{
    color:#7be0d6;
    padding-left:5px;
}

.footer-contact,
.footer-hours{
    list-style:none;
    padding:0;
    font-size:14px;
}

.footer-contact li{
    margin-bottom:10px;
}

.footer-contact i{
    margin-right:8px;
    color:#7be0d6;
}

.footer-social a{
    display:inline-block;
    width:38px;
    height:38px;
    line-height:38px;
    text-align:center;
    border-radius:50%;
    background:#ffffff;
    color:#0b5d5b;
    margin-right:8px;
    transition:.3s;
}

.footer-social a:hover{
    background:#7be0d6;
    color:#08323a;
}

.footer-bottom{
    background:#081c2b;
    color:#bcd6e6;
    font-size:14px;
}


/* ====== FONT SMOOTH ====== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== GROUP ====== */
.form-group-premium{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:22px;
}

/* ====== LABEL ====== */
.label-premium{
    font-size:13px;
    font-weight:600;
    color:#5b6472;
    letter-spacing:.3px;
}

/* ====== INPUT BASE ====== */
.input-premium{
    width:100%;
    height:52px;
    padding:0 18px;
    border-radius:14px;
    border:1px solid #e6e8ee;
    background:linear-gradient(180deg,#ffffff,#fbfcff);
    font-size:15px;
    color:#1d2433;
    outline:none;
    transition:all .25s cubic-bezier(.4,0,.2,1);
    box-shadow:
        0 1px 2px rgba(16,24,40,.04),
        inset 0 1px 0 rgba(255,255,255,.8);
}

/* placeholder */
.input-premium::placeholder{
    color:#9aa3b2;
    font-weight:400;
}

/* ====== HOVER ====== */
.input-premium:hover{
    border-color:#d0d5dd;
    box-shadow:
        0 2px 6px rgba(16,24,40,.06),
        inset 0 1px 0 rgba(255,255,255,.9);
}

/* ====== FOCUS (LE PLUS IMPORTANT) ====== */
.input-premium:focus{
    border-color:#2563eb;
    background:#ffffff;
    box-shadow:
        0 0 0 4px rgba(37,99,235,.12),
        0 4px 14px rgba(37,99,235,.15);
    transform:translateY(-1px);
}

/* ====== TEXTAREA ====== */
.textarea-premium{
    height:120px;
    padding-top:14px;
    resize:vertical;
}

/* ====== SELECT ====== */
.select-premium{
    appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg fill='%236b7280' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.25 7.5L10 12.25L14.75 7.5'/></svg>");
    background-repeat:no-repeat;
    background-position:right 14px center;
    background-size:18px;
    cursor:pointer;
}

/* ====== DISABLED ====== */
.input-premium:disabled{
    background:#f3f4f6;
    color:#9aa3b2;
    cursor:not-allowed;
}

/* ====== ERROR (IMPORTANT POUR FORM VALIDATION) ====== */
.input-error{
    border-color:#ef4444 !important;
    box-shadow:0 0 0 4px rgba(239,68,68,.12) !important;
}

/* ====== SUCCESS ====== */
.input-success{
    border-color:#10b981 !important;
    box-shadow:0 0 0 4px rgba(16,185,129,.12) !important;
}

/* ===============================
   BOUTON PREMIUM SaaS
================================= */

/* =========================
   BUTTON PREMIUM (SaaS)
========================= */
.btn-premium{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    text-decoration: none !important;

    height:52px;
    padding:0 26px;

    border-radius:16px;
    border:none;

    background:linear-gradient(135deg,var(--secondary),var(--accent));
    color:#ffffff;

    font-size:15px;
    font-weight:600;
    letter-spacing:.3px;

    cursor:pointer;
    user-select:none;

    transition:all .25s cubic-bezier(.4,0,.2,1);

    box-shadow:
        0 10px 22px rgba(37,99,235,.35),
        inset 0 1px 0 rgba(255,255,255,.25);
}

/* effet lumière */
.btn-premium::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:linear-gradient(
        180deg,
        rgba(255,255,255,.35),
        rgba(255,255,255,0)
    );
    opacity:.6;
    pointer-events:none;
}

/* hover */
.btn-premium:hover{
    transform:translateY(-2px);
    box-shadow:
        0 14px 32px rgba(37,99,235,.45),
        inset 0 1px 0 rgba(255,255,255,.3);
}

/* active (click) */
.btn-premium:active{
    transform:translateY(0);
    box-shadow:
        0 6px 14px rgba(37,99,235,.35),
        inset 0 2px 6px rgba(0,0,0,.15);
}

/* focus accessibilité */
.btn-premium:focus{
    outline:none;
    box-shadow:
        0 0 0 4px rgba(37,99,235,.25),
        0 10px 22px rgba(37,99,235,.35);
}

/* =========================
   VARIANTS
========================= */

/* secondaire */
.btn-secondary{
    background:linear-gradient(135deg,#6b7280,#4b5563);
    box-shadow:
        0 10px 22px rgba(107,114,128,.35),
        inset 0 1px 0 rgba(255,255,255,.2);
}

/* danger */
.btn-danger{
    background:linear-gradient(135deg,#ef4444,#dc2626);
    box-shadow:
        0 10px 22px rgba(239,68,68,.35),
        inset 0 1px 0 rgba(255,255,255,.25);
}

/* =========================
   FULL WIDTH
========================= */
.btn-block{
    width:100%;
}

/* =========================
   DISABLED
========================= */
.btn-premium:disabled{
    opacity:.55;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}


/* Contact Page */
.page-header {
    background: linear-gradient(135deg, #ebfbff 0%, #d6f8ff 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #01016e 0%, #2d01a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

.contact-section {
    padding: 4rem 0;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info .contact-item i {
    font-size: 1.5rem;
    color: #062844;
    min-width: 30px;
}

.contact-info .contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.contact-info .contact-item p {
    color: #666;
    margin: 0;
}

/* Cards Premium */
.card-premium {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card-premium:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.1);
    transform: translateY(-2px);
}

.card-header-premium {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-premium {
    /* font-size: 1.3rem; */
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card-title-premium i {
    color: #062844;
}

.card-body-premium {
    padding: 2rem;
}

.text-primary { color: #14A3A6 !important; }

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: #ffffff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #063744 0%, #02c7fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: #fff;
}

/* ==== Galerie Images === */
.gallery-filters {
    background: #f8f9fc;
    padding: 2rem 0;
    border-bottom: 2px solid #e0e0e0;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #02abc5 0%, #57e7fd 100%);
    border-color: #02bfc5;
    color: #fff;
    transform: translateY(-2px);
}

/* Gallery */
.gallery-section {
    padding: 4rem 0;
    background: #fff;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item-front {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

.gallery-item-front.hidden {
    display: none;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-front:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-front:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: #fff;
    width: 100%;
}

.overlay-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.btn-view-image {
    background: linear-gradient(135deg,var(--secondary),var(--accent));
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    max-width: 600px;
    text-align: center;
}

.lightbox-caption h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #02b2c5 !important;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero{
        /* padding:80px 0 60px 0; */
        background-position:center top !important;
        min-height:70vh;

    }

    .hero h1{
        font-size:28px;
        line-height:1.3;
    }

    .hero .lead{
        font-size:15px;
    }

    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    .gallery-item{
        height:220px;
    }

}

@media (max-width: 991px){

    .navbar-collapse{
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        padding: 80px 25px;
        transition: right 0.3s ease-in-out;
        z-index: 9999;
        overflow-y: auto;
    }

    .navbar-collapse.show{
        right: 0;
    }

    .navbar-toggler{
        z-index: 10000;
        position: relative;
    }


    body.menu-open{
        overflow: hidden;
    }
    body { padding-top: 75px; }
}


html,body{
    overflow-x:hidden;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

section, header{
    overflow:hidden;
}
body.menu-open{
    overflow: hidden;
    touch-action: none;
}

/* navbar par défaut (sur le hero) */
.navbar{
    transition: all .35s ease;
    padding: 18px 0;
    background: transparent;
}

/* liens en mode transparent */
.navbar .nav-link{
    font-weight: 500;
    letter-spacing: .3px;
}

/* quand on scroll */
.navbar.scrolled{
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* couleur des liens après scroll */
.navbar.scrolled .nav-link{
    color: #0a3447 !important;
}

/* logo texte si tu en as un */
.navbar.scrolled .navbar-brand{
    color: #0a3447 !important;
}

.navbar-toggler{
    outline:none !important;
    box-shadow:none !important;
}

#nav-icon{
    font-size:28px;
    transition:.3s ease;
}

/* quand on scroll (navbar blanche) */
.navbar.scrolled #nav-icon{
    color:#0a3447;
}

.topbar{
    position:relative;
    z-index:1031;
}

.navbar{
    z-index:1030;
    transition: transform .35s ease, background .35s ease;

}

.btn-orange {
    border: none;
    border-radius: 14px !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}
.btn-orange:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);

}
