/* Variables de couleur */
:root {
    /* Couleurs primaires - Nuances de Bleu Clair */
    --primary-50: #f0f7ff;
    --primary-100: #e0effe;
    --primary-200: #bae0fd;
    --primary-300: #7cc8fb;
    --primary-400: #38aef9;
    --primary-500: #0e91e9;
    /* Bleu principal clair et vif */
    --primary-600: #0274ca;
    --primary-700: #035ca4;
    --primary-800: #074e86;
    --primary-900: #0c426f;

    /* Couleurs secondaires - Utilisées pour les accents ou alertes légères */
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-500: #64748b;

    /* Neutres - Fond blanc et textes grisés */
    --neutral-50: #ffffff;
    /* Fond pur pour le thème blanc */
    --neutral-100: #fcfcfc;
    --neutral-200: #f1f1f1;
    --neutral-300: #e0e0e0;
    --neutral-400: #b0b0b0;
    --neutral-500: #707070;
    --neutral-600: #555555;
    --neutral-700: #333333;
    --neutral-800: #1a1a1a;
    --neutral-900: #0a0a0a;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    color: var(--neutral-700);
    line-height: 1.5;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: white;
    transition: all 0.3s;
}

/* Typographie */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.pl-1 {
    padding-left: 1em;
}

.list-decimal {
    list-style: decimal;
}

.list-disc {
    list-style: disc;
}


/* Utilitaires de mise en page */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-12>*+* {
    margin-top: 3rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.text-start {
    text-align: left;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--neutral-500);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-end;
    font-size: 0.875rem;
}

nav a {
    transition: all 0.3s ease-in-out;
    color: #141414;
}

nav a:hover:not(.active) {
    color: var(--primary-900);
}

nav a.active {
    color: var(--primary-900);
    font-weight: 600;
}

.floating-button {
    position: fixed;
    display: flex;
    gap: 0.5em;
    align-items: center;
    right: 0rem;
    bottom: 10em;
    z-index: 100;
    background-color: rgba(12, 66, 111, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 0.875rem;
    transition: all 0.3s;
    border-style: solid;
    border-color: var(--primary-900);
    border-right: none;
}

.footer-logo {
    height: 8em;
    width: 8em;
    margin-bottom: 1em;
}

.footer-logo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Logo */
.logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 7rem;
    width: 7rem;
}

.logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Bannière */
.banner {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.section-heading {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    text-align: center;
    color: var(--neutral-500);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--neutral-700);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--neutral-600);
    max-width: 48rem;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-900);
    color: white;
    padding: 4rem 0;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-500);
}

.footer-text {
    color: var(--neutral-300);
    font-size: 0.875rem;
}

.footer-link {
    color: var(--neutral-300);
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--secondary-300);
}

.footer-icon {
    color: var(--primary-400);
    margin-right: 0.75rem;
}


.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-800);
    color: var(--neutral-400);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom a {
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--secondary-300);
}

.text-left {
    text-align: left;
}

/* Responsive */
@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:items-start {
        align-items: flex-start;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
    }

    .md\:w-1\/2 {
        width: 50%;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom>*:first-child {
        margin-bottom: 0;
    }
}

/* Utilitaires divers */
.text-white {
    color: white;
}

.bg-white {
    background-color: white;
}

.bg-neutral-50 {
    background-color: var(--neutral-50);
}

.bg-neutral-100 {
    background-color: var(--neutral-100);
}

.bg-primary-50 {
    background-color: var(--primary-50);
}

.bg-primary-100 {
    background-color: var(--primary-100);
}

.bg-primary-500 {
    background-color: var(--primary-500);
}

.bg-primary-600 {
    background-color: var(--primary-600);
}

.bg-primary-700 {
    background-color: var(--primary-700);
}

.bg-primary-800 {
    background-color: var(--primary-800);
}

.bg-primary-900 {
    background-color: var(--primary-900);
}

.bg-secondary-100 {
    background-color: var(--secondary-100);
}

.bg-secondary-400 {
    background-color: var(--secondary-400);
}

.bg-secondary-500 {
    background-color: var(--secondary-500);
}

.text-primary-300 {
    color: var(--primary-300);
}

.text-primary-400 {
    color: var(--primary-400);
}

.text-primary-500 {
    color: var(--primary-500);
}

.text-primary-600 {
    color: var(--primary-600);
}

.text-primary-700 {
    color: var(--primary-700);
}

.text-primary-900 {
    color: var(--primary-900);
}

.text-secondary-300 {
    color: var(--secondary-300);
}

.text-secondary-400 {
    color: var(--secondary-400);
}

.text-secondary-500 {
    color: var(--secondary-500);
}

.text-secondary-600 {
    color: var(--secondary-600);
}

.text-secondary-800 {
    color: var(--secondary-800);
}

.text-neutral-300 {
    color: var(--neutral-300);
}

.text-neutral-400 {
    color: var(--neutral-400);
}

.text-neutral-500 {
    color: var(--neutral-500);
}

.text-neutral-600 {
    color: var(--neutral-600);
}

.text-neutral-700 {
    color: var(--neutral-700);
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-bl-lg {
    border-bottom-left-radius: 0.5rem;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-neutral-100 {
    border-color: var(--neutral-100);
}

.border-primary-200 {
    border-color: var(--primary-200);
}

.border-primary-800 {
    border-color: var(--primary-800);
}

.border-neutral-200 {
    border-color: var(--neutral-200);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-inline: 0.5em;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-block: 0.5em;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-64 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pb-6 {
    padding-bottom: 1.5em;
}

.pb-16 {
    padding-bottom: 4rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-8 {
    margin-left: 2rem;
    margin-right: 2rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-32 {
    width: 8rem;
}

.w-full {
    width: 100%;
}

.w-42 {
    width: 15em;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.h-2 {
    height: 0.5rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-32 {
    height: 8rem;
}

.h-full {
    height: 100%;
}

.h-\[220px\] {
    height: 220px;
}

.h-\[500px\] {
    height: 500px;
}

.h-\[600px\] {
    height: 700px;
}

.h-\[700px\] {
    height: 43.75rem;
}

.min-h-vh {
    height: 100vh;
    min-height: 30rem;
}

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

.object-top {
    object-position: top;
}

.opacity-0 {
    opacity: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.grayscale {
    filter: grayscale(100%);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.hover\:bg-primary-100:hover {
    background-color: var(--primary-100);
}

.hover\:bg-primary-700:hover {
    background-color: var(--primary-700);
}

.hover\:bg-primary-50:hover {
    background-color: var(--primary-50);
}

.hover\:bg-primary-800:hover {
    background-color: var(--primary-800);
}

.hover\:text-primary-400:hover {
    color: var(--primary-400);
}

.hover\:text-primary-600:hover {
    color: var(--primary-600);
}

.hover\:text-secondary-300:hover {
    color: var(--secondary-300);
}

.hover\:text-secondary-400:hover {
    color: var(--secondary-400);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.transform {
    transform: translateZ(0);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.top-4 {
    top: 1rem;
}

.right-0 {
    right: 0;
}

.right-4 {
    right: 1rem;
}

.top-\-4 {
    top: -1rem;
}

.left-\-4 {
    left: -1rem;
}


.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.z-10 {
    z-index: 10;
}

/* Classes pour le layout */
.inline-flex {
    display: inline-flex;
}

.hidden {
    display: none;
}

.inline-block {
    display: inline-block;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-end {
    justify-content: flex-end;
}

.justify-around {
    justify-content: space-around;
}

.gap-4 {
    gap: 1rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

/* Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--primary-50), white);
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--primary-900), var(--neutral-900));
}

/* Opacities */
.opacity-75 {
    opacity: 0.75;
}

/* Ajout des classes pour les grid cols */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.col-span-1 {
    grid-column: span 1 / span 1;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.col-span-3 {
    grid-column: span 3 / span 3;
}

/* Tracking */
.tracking-\[\.5em\] {
    letter-spacing: .5em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Polices de caractères */
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

.font-noto {
    font-family: 'Noto Sans', sans-serif;
}

.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

/* Styles supplémentaires pour iframe */
iframe {
    border: 0;
}

/* Classes CSS pour les media queries spécifiques */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .md\:p-12 {
        padding: 3rem;
    }

    .md\:mb-0 {
        margin-bottom: 0;
    }

    .md\:items-start {
        align-items: flex-start;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:block {
        display: block;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.header-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    transition: all 0.15s ease-in-out;
    background: #fff;
}

.header-container.sticky {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.header-container.sticky nav {
    color: var(--neutral-700) !important;
}

.button {
    padding: 0.75em;
    background: var(--primary-900);
    color: #fff;
    border-radius: 0.5em 0 0.5em 0;
}

.image-container {
    height: 5em;
    width: 5em;
    border-radius: 100%;
    background-color: #fff;
    padding: 1em;
}

.image-container img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(0, 0, 0, 0.12);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* respect user preference */
@media (prefers-reduced-motion: reduce) {
    .spinner-ring {
        animation: none;
    }

    .doctor-card,
    .doctor-info,
    .doctor-initials,
    .gallery-item img,
    .gallery-overlay,
    .lightbox,
    .nav-menu li,
    .transition-all,
    .transition-colors,
    .transition-shadow,
    .transition-transform,
    .floating-button,
    .mobile-menu-button .bar {
        transition: none;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Médecin Profile Cards */
.doctor-cards-container {
    display: flex;
    width: 100%;
    height: 700px;
    overflow: hidden;
    margin: 3rem 0;
    gap: 0;
}

.doctor-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    transition: all 0.5s ease;
    margin: 0;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
}

.doctor-card:nth-child(1) {
    background-image: url('../assets/images/docteur_03.jpg'), linear-gradient(135deg, var(--primary-700), var(--primary-900));
}

.doctor-card:nth-child(2) {
    background-image: url('../assets/images/docteur_1.jpg'), linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.doctor-card:nth-child(3) {
    background-image: url('../assets/images/docteur_2.jpg'), linear-gradient(135deg, var(--primary-500), var(--primary-700));
}

.doctor-card:not(:last-child) {
    margin-right: 2px;
}

.doctor-card:hover {
    flex: 2;
}

.doctor-card:nth-child(1):hover {
    background-position: -200px;
}

.doctor-card:hover~.doctor-card {
    flex: 0.5;
}

.doctor-initials {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    background-color: rgba(12, 66, 111, 0.7);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-initials {
    opacity: 0;
    transform: translate(-50%, -100%);
}

.doctor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-info {
    transform: translateY(0);
}

.doctor-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.doctor-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    text-align: start;
}

.doctor-detail-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 0.5rem;
}

.doctor-detail-title {
    font-weight: 600;
    color: var(--secondary-500);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.doctor-detail-list {
    list-style-type: disc;
    padding-left: 1rem;
    font-size: 0.85rem;
}

@media screen and (max-width: 768px) {
    .doctor-cards-container {
        flex-direction: column;
        height: 200vh;
    }

    .doctor-card {
        flex: 1;
        height: 200px;
        margin-bottom: 1rem;
    }

    .doctor-card:hover {
        flex: 1;
    }

    .doctor-card:hover~.doctor-card {
        flex: 1;
    }

    .doctor-details {
        grid-template-columns: 1fr;
    }

    .logo-header {
        font-size: 1rem !important;
    }
}

/* Motif Cards — mirrors doctor-cards design */
.motif-cards-container {
    display: flex;
    width: 100%;
    height: 700px;
    overflow: hidden;
    margin: 0 0;
    gap: .125em;
    margin-bottom: .125em;
}

.motif-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    transition: all 0.5s ease;
    margin: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
}

.motif-card:not(:last-child) {
    /* margin-right: 2px; */
}

.motif-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.motif-card:hover::before {
    opacity: 0;
}

.motif-initials,
.motif-info {
    z-index: 2;
}

.motif-card:hover {
    flex: 2;
}

.motif-card:hover~.motif-card {
    flex: 0.5;
}

.motif-initials {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 1.25rem;
}

.motif-initials img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.motif-card:hover .motif-initials {
    opacity: 0;
    transform: translate(-50%, -100%);
}

.motif-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    text-align: left;
    max-height: 100%;
    overflow-y: auto;
}

.motif-card:hover .motif-info {
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .motif-cards-container {
        flex-direction: column;
        height: auto;
    }

    .motif-card {
        flex: none;
        height: 200px;
        margin-bottom: 1rem;
    }

    .motif-card:hover {
        flex: none;
    }

    .motif-card:hover~.motif-card {
        flex: none;
    }
}

/* Mobile menu styles */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 20;
    position: relative;
}

.mobile-menu-button .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-900);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-button.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-button.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

/* Media queries for mobile menu */
@media screen and (max-width: 1024px) {
    .mobile-menu-button {
        display: flex;
    }

    .header-container.sticky .mobile-menu-button .bar {
        background-color: var(--primary-900);
    }

    .footer-logo {
        width: fit-content;
        height: fit-content;
        font-size: 1.35rem
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.4s ease-in-out;
        z-index: 10;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        transition-delay: calc(0.1s * var(--i, 0));
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    nav a {
        color: var(--primary-900);
        font-size: 1.2rem;
    }

    .logo {
        height: 5rem;
        width: 5rem;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        height: 4rem;
        width: 4rem;
    }
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.gallery-filter {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary-200);
    border-radius: 9999px;
    background: transparent;
    color: var(--neutral-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gallery-filter:hover {
    border-color: var(--primary-500);
    color: var(--primary-700);
}

.gallery-filter.active {
    background-color: var(--primary-900);
    border-color: var(--primary-900);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 66, 111, 0.8), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item.hidden {
    display: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
}

.h-\[400px\] {
    height: 400px;
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    .gallery-item-tall {
        grid-row: span 1;
    }

    .h-\[400px\] {
        height: 250px;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
}