﻿:root {
    --primary-color: #1a2a4b;
    --accent-color: #64ffda;
    --text-color: #f1f5f9;
    --bg-dark: #0f172a;
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans-font);
    line-height: 1.6;
    color: var(--text-color);
    background: #0f172a;
    overflow-x: hidden;
    min-height: 100vh;
}

.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)), url('assets/background_sea.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .name {
    font-family: var(--serif-font);
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
}

.logo .specialty {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.btn-contact {
    background: var(--accent-color);
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    opacity: 1 !important;
}

/* Sections */
section {
    padding: 6rem 0;
}

h1,
h2,
h3 {
    font-family: var(--serif-font);
}

.serif {
    font-style: italic;
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.dr-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    color: var(--accent-color);
}

#hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

#hero .highlight {
    color: white;
    font-family: var(--sans-font);
    font-weight: 300;
    opacity: 0.8;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-portrait {
    position: relative;
}

.portrait-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 0.7rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6);
    max-width: 320px;
    margin-left: auto;
}

.portrait-container img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: white;
    color: var(--bg-dark);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 1.5rem;
    color: white;
}

/* Glass Section */
.glass-section {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(30px);
    padding: 4rem 5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    max-width: 58%;
}

.glass-section h2 {
    font-size: 4rem;
    margin-bottom: 3rem;
}

.philosophy-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.15rem;
    font-weight: 300;
}

/* Robot Layout */
.robot-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.robot-visual img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Footer */
#main-footer {
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

@media (max-width: 968px) {

    .hero-layout,
    .philosophy-grid,
    .robot-layout {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .glass-section {
        padding: 3rem;
    }
}
/* Side-aligned sections */
#philosophie.container {
    display: flex;
    justify-content: flex-start;
}
#robotique.container {
    display: flex;
    justify-content: flex-end;
}

/* Robot layout stays two-column but narrower card */
.robot-layout {
    flex-direction: column;
    gap: 2rem;
}

.robot-visual img {
    width: 100%;
    border-radius: 20px;
    max-height: 280px;
    object-fit: cover;
}
/* ===== INNOVATION ROBOTIQUE - New large left image layout ===== */
#robotique {
    padding: 0;
}

.robot-new-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    min-height: 85vh;
    align-items: stretch;
}

.robot-image-left {
    position: relative;
    overflow: hidden;
}

.robot-image-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 0.5rem;
}

.robot-text-right {
    display: flex;
    align-items: center;
    padding: 5rem 4rem;
    justify-content: flex-end;
}

.glass-card-small {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(25px);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    max-width: 480px;
}

.glass-card-small h2 {
    font-family: var(--serif-font);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.glass-card-small p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .robot-new-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    min-height: 85vh;
    align-items: stretch;
}
    .robot-image-left { min-height: 300px; }
    .robot-text-right { padding: 2rem; justify-content: center; }
}
/* Hero Address */
.hero-address {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}
.hero-address svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-color);
}
.hero-address div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.address-clinic {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}
.address-detail {
    font-weight: 300;
    letter-spacing: 0.3px;
}
/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {

    section {
        padding: 3rem 0;
    }

    /* Glass section: full width, inside the screen */
    .glass-section {
        max-width: calc(100% - 2rem) !important;
        width: calc(100% - 2rem);
        padding: 1.8rem 1.4rem;
        border-radius: 18px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* CRITICAL: override the flex side-alignment for Philosophie and Robotique */
    #philosophie.container,
    #robotique.container {
        display: block !important;
        padding: 1.5rem 1rem;
    }

    /* Hero layout: stack portrait below text on mobile */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        padding: 2rem 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .portrait-container {
        max-width: 220px;
        margin: 0 auto;
    }

    .hero-address {
        justify-content: center;
        text-align: left;
    }

    .hero-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Expertise panel content padding */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .expertise-inner {
        padding: 5rem 1.5rem 2rem;
    }

    .expertise-title {
        font-size: 2.2rem;
    }

    .specialties-list {
        grid-template-columns: 1fr;
    }
}