/* ============================================
   VARIABLES & BASE STYLES - Design Apple
   ============================================ */
:root {
    --primary-color: #007AFF;
    --primary-dark: #0051D5;
    --secondary-color: #5856D6;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --background: #ffffff;
    --background-alt: #f5f5f7;
    --background-dark: #fbfbfd;
    --border-color: #d2d2d7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION - Barre fixe épurée
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--background-alt);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--background-alt);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.urgence-btn {
    background: var(--primary-color);
    color: white !important;
    font-weight: 500;
}

.urgence-btn:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION - Refonte épurée
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    text-align: left;
    background-color: #000;
    color: #fff;
}

/* Overlay pour lisibilité */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Vidéo + fallback */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none; /* activée sur grands écrans */
}

/* Contenu principal */
.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: left;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    font-weight: 400;
    max-width: 480px;
}

/* Badge Nouveaux Patients */
.new-patients-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #30d158;
}

/* Actions principales */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: var(--transition);
    min-width: 0;
}

.hero-btn-main {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.hero-btn-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

/* Bouton principal (OneDoc) */
.hero-btn-primary {
    background: #ffffff;
    border-color: #ffffff;
}

.hero-btn-primary .hero-btn-main {
    color: var(--text-primary);
}

.hero-btn-primary .hero-btn-sub {
    color: var(--text-secondary);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Bouton secondaire (appel) */
.hero-btn-ghost {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-btn-ghost:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
}

/* Bloc autres professionnels */
.hero-secondary {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-secondary-title {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
}

.hero-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
}

.hero-secondary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-secondary-name {
    font-size: 13px;
}

.hero-secondary-phone {
    font-size: 13px;
    text-decoration: none;
}

.hero-secondary-name,
.hero-secondary-phone {
    color: rgba(255, 255, 255, 0.95);
}

.hero-secondary-phone:hover {
    text-decoration: underline;
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; top: 8px; }
    50%      { opacity: 0.5; top: 18px; }
}

/* ============================================
   BUTTONS GÉNÉRIQUES
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* ============================================
   SECTIONS GÉNÉRALES
   ============================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--background-alt);
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

/* Carrousel photos */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--background-alt);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.team-info {
    padding: 32px;
}

.team-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-role {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.team-languages {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--background-alt);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.team-languages i {
    color: var(--primary-color);
    font-size: 18px;
}

.team-languages span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.team-appointment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.team-appointment-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.team-appointment-btn i {
    font-size: 16px;
}

#full {
    background: var(--background-alt);
    color: var(--text-primary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 48px !important;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ============================================
   HORAIRES SECTION
   ============================================ */
.horaires-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.horaires-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.horaires-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.horaires-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.horaire-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--background-alt);
    border-radius: var(--radius-sm);
    gap: 20px;
}

.horaire-item.closed {
    opacity: 0.5;
}

.jour {
    font-weight: 500;
    color: var(--text-primary);
    flex-shrink: 0;
    min-width: 140px;
}

.heure {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: right;
    line-height: 1.5;
}

.horaires-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
}

.info-box h4 {
    font-size: 22px;
    margin-bottom: 16px;
}

.info-box p {
    margin-bottom: 24px;
    opacity: 0.95;
}

.info-box .btn-primary {
    background: white;
    color: var(--primary-color);
}

.info-box .btn-primary:hover {
    background: var(--background-alt);
}

/* URGENCES */
.info-box-secondary {
    background: var(--background-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.info-box-secondary h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-box-secondary p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
}

.urgence-numbers-small {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.urgence-link {
    display: block;
    padding: 12px 20px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.urgence-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card h3 i {
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-dark);
}

/* Google Maps Container */
.map-container {
    background: white;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   FORM STYLES
   ============================================ */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group label i {
    color: var(--primary-color);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 16px;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 14px;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer a i {
    font-size: 14px;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 13px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile & petites tablettes */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 20px 0;
        gap: 0;
    }

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

    .nav-link {
        padding: 16px;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 16px 20px;
        min-height: 100vh;
        background-image: url('images/outside/vertical-01.avif');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    .hero-video {
        display: none;
    }

    .hero-content {
        text-align: left;
        padding: 0;
    }

    .hero-subtitle {
        font-size: 15px;
        max-width: none;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .team-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .horaires-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .horaire-item {
        flex-direction: column;
        gap: 8px;
    }

    .jour {
        min-width: auto;
    }

    .heure {
        text-align: left;
    }

    .contact-form-container {
        padding: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .map-container {
        height: 250px;
    }

    .team-languages {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .hero {
        padding: 70px 12px 16px;
        background-image: url('images/outside/vertical-02.avif');
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-secondary-grid {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .nav-container {
        height: 56px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .nav-logo img {
        height: 32px;
    }
}

/* Tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        background-image: url('images/outside/paysage-02.avif');
        background-size: cover;
        background-position: center;
    }

    .hero-video {
        display: none;
    }
}

/* Grands écrans - vidéo active */
@media (min-width: 1025px) {
    .hero {
        background-image: none;
        background-color: #000;
    }

    .hero-video {
        display: block;
    }
}