:root {
    /* Color Palette */
    --primary: #1A5F7A;
    /* Deep Medical Blue */
    --primary-light: #227C9D;
    --primary-dark: #113F51;
    --secondary: #17C3B2;
    /* Vibrant Teal/Mint */
    --accent: #FFCB77;

    --bg-main: #FAFAFA;
    --bg-light: #F0F4F8;
    --bg-white: #FFFFFF;

    --text-main: #2B2D42;
    --text-muted: #6C7A89;
    --text-light: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(26, 95, 122, 0.08);
    --shadow-lg: 0 20px 40px rgba(26, 95, 122, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Layout */
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Ajoute un espace au-dessus pour compenser la barre de navigation fixe */
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(23, 195, 178, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

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

.center {
    text-align: center;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-primary-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dr {
    color: var(--secondary);
}

.logo-white {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary-outline):hover {
    color: var(--primary);
}

.nav-links a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-outline):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* This will be replaced by the generated image if available, otherwise fallback gradient */
    background: url('assets/hero_bg.png') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.2) 100%);
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
    gap: 2rem;
}

.hero-content {
    max-width: 600px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(26, 95, 122, 0.08);
    max-width: 340px;
    animation: float 6s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-card-header {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
}

.hero-card-header i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.hero-card-list {
    list-style: none;
}

.hero-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.4;
}

.hero-card-list li:last-child {
    margin-bottom: 0;
}

.hero-card-list li i {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-top: 0.1rem;
    width: 20px;
    text-align: center;
}

.hero-card-list li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(23, 195, 178, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 2px solid var(--secondary);
    border-radius: 20px;
    z-index: -1;
}

/* Specialties Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:not(.disabled):hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--secondary);
}

.card.disabled {
    opacity: 0.7;
    background-color: transparent;
    border: 2px dashed #E0E0E0;
    box-shadow: none;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(23, 195, 178, 0.1);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:not(.disabled):hover .card-icon {
    background-color: var(--primary);
    color: var(--text-light);
}

/* Photos Section */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.photo-item {
    width: 100%;
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.photo-item p {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.photo-item.placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--bg-light), #E2E8F0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    border: 2px dashed #CBD5E1;
}

.photo-item.placeholder i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Location Section */
.location-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-info {
    padding: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 0.2rem;
}

.info-item strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.access-note {
    margin-top: 0.8rem;
    padding: 0.6rem 0.8rem;
    background-color: rgba(23, 195, 178, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 3px solid var(--secondary);
}

.access-note i {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 0;
}

.phone-link,
.address-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.phone-link:hover,
.address-link:hover {
    color: var(--secondary);
}

.future-feature {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.future-feature .feature-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.future-feature h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    font-family: var(--font-body);
}

.future-feature p {
    margin: 0;
    font-size: 0.9rem;
}

.location-map {
    height: 100%;
    min-height: 400px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.footer-links {
    text-align: right;
}

.footer-links p {
    color: rgba(255, 255, 255, 0.7);
}

.hospital-link a {
    color: var(--secondary);
    text-decoration: none;
}

.hospital-link a:hover {
    text-decoration: underline;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {

    .about-container,
    .location-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .location-container {
        display: flex;
        flex-direction: column-reverse;
    }

    .location-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 3rem;
    }

    .hero-card {
        width: 100%;
        max-width: 400px;
        animation: none;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 3rem;
    }

    .hero-card-list li {
        text-align: left;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    }
}

/* Booking Form Styles */
.booking-section {
    width: 100%;
    margin-top: 3rem;
}

.booking-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--secondary);
}

.form-step {
    transition: var(--transition);
}

.form-step.hidden {
    display: none;
}

.booking-form h4 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(23, 195, 178, 0.2);
}

.patient-type-group {
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    accent-color: var(--secondary);
    width: 1.2rem;
    height: 1.2rem;
}

.hidden-fields {
    display: none;
}

.hidden-fields.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
}

.form-actions.right {
    justify-content: flex-end;
}

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

.booking-notice {
    background-color: rgba(26, 95, 122, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
}

.booking-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.booking-message {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.booking-message.success {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #31C48D;
}

.booking-message.error {
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #F98080;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Business Card Styles */
.business-card-container {
    margin-top: 3.5rem;
    perspective: 1200px;
    display: flex;
    justify-content: flex-start;
}

.business-card {
    max-width: 450px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.15), -15px -15px 40px rgba(255, 255, 255, 0.6);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;
    transform: scale(0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.business-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 45px rgba(26, 95, 122, 0.25);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .patient-type-group {
        flex-direction: column;
        gap: 1rem;
    }

    .booking-card {
        padding: 1.5rem;
    }
}