/* ===================================
   STYLE MINIMALISTE MODERNE
   Inspiré Apple / Vercel
   =================================== */

/* --- VARIABLES GLOBALES --- */
:root {
    /* Dark Theme (défaut) */
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-card: #111111;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --text-tertiary: #666666;
    --accent: #0070F3;
    --accent-hover: #0761D1;
    --accent-light: rgba(0, 112, 243, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
    /* Light Theme - Plus de contraste */
    --bg-primary: #F5F5F5;
    --bg-secondary: #ECECEC;
    --bg-card: #FAFAFA;
    --border-color: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(0, 0, 0, 0.25);
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-tertiary: #757575;
    --accent: #0070F3;
    --accent-hover: #0761D1;
    --accent-light: rgba(0, 112, 243, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Curseur personnalisé désactivé */
.custom-cursor {
    display: none;
}

/* --- BOUTON DE THÈME FLOTTANT --- */
.theme-btn {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease, transform 0.3s ease;
}

.theme-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.icon-sun, .icon-moon {
    width: 18px;
    height: 18px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* --- MAIN CONTENT --- */
main {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- BENTO GRID --- */
.bento-grid-container {
    display: grid;
    gap: 24px;
    grid-auto-rows: auto;
}

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

.about-section {
    grid-template-columns: 1fr 2fr;
}

.medical-interests {
    grid-template-columns: 1.5fr 1fr;
}

/* --- CARTES --- */
.glassmorphism-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px 40px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.glassmorphism-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* --- TYPOGRAPHIE --- */
h2.title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

p.subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- SECTION HERO (PROFIL) --- */
.main-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

/* --- PASSIONS --- */
.passions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.passion-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.passion-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.passion-item:hover {
    color: var(--text-primary);
}

.passion-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

/* --- À PROPOS --- */
.about-text {
    justify-content: center;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* --- PARCOURS PROFESSIONNEL (TIMELINE VERTICALE) --- */
.professional-journey {
    display: flex;
    flex-direction: column;
}

.timeline-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 32px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-event {
    position: relative;
    padding: 20px 0;
    transition: all 0.2s ease;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 28px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.timeline-event:hover::before,
.timeline-event.current::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.timeline-event.objective::before {
    border-color: var(--text-tertiary);
    background: transparent;
}

.event-year {
    display: block;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 600;
}

.event-title {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

.event-title small {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

/* --- EXPERTISE --- */
.custom-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.custom-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-list li:last-child {
    border-bottom: none;
}

.custom-list li:hover {
    color: var(--text-primary);
    padding-left: 8px;
}

.custom-list li::before {
    content: "→";
    color: var(--accent);
    font-size: 1.25rem;
    margin-right: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-list li:hover::before {
    opacity: 1;
}

/* Liste d'expertise avec icônes */
.expertise-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
}

.expertise-list li::before {
    display: none;
}

.expertise-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.expertise-list li:hover .expertise-icon {
    color: var(--accent);
    transform: scale(1.15) rotate(5deg);
}

.expertise-list li span {
    flex: 1;
}

/* --- CONTACT --- */
.contact-card {
    display: flex;
    flex-direction: column;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
}

/* LinkedIn Button */
.social-links {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: #0077B5;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.linkedin-btn svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
    transition: transform 0.3s ease;
}

.linkedin-btn:hover {
    background: #005582;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.linkedin-btn:hover svg {
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 60px 32px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* --- ANIMATIONS AU SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    main {
        margin-top: 60px;
        padding: 0 24px;
        gap: 32px;
    }

    .hero-section,
    .about-section,
    .medical-interests {
        grid-template-columns: 1fr;
    }

    .theme-btn {
        top: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }

    .glassmorphism-card {
        padding: 36px 28px;
    }

    h2.title {
        font-size: 2.25rem;
    }

    p.subtitle {
        font-size: 1.125rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .about-text p {
        font-size: 1rem;
    }

    .timeline-track {
        padding-left: 28px;
    }

    .timeline-track::before {
        left: 6px;
    }

    .timeline-event::before {
        left: -24px;
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 600px) {
    main {
        margin-top: 50px;
        padding: 0 20px;
        gap: 24px;
    }

    .bento-grid-container {
        gap: 20px;
    }

    .theme-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .glassmorphism-card {
        padding: 28px 20px;
    }

    h2.title {
        font-size: 2rem;
    }

    p.subtitle {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.8rem;
        margin-bottom: 24px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .custom-list li,
    .expertise-list li {
        font-size: 1rem;
        padding: 16px 0;
    }

    .expertise-icon {
        width: 20px;
        height: 20px;
    }

    .passion-items {
        gap: 18px;
    }

    .passion-item {
        font-size: 0.95rem;
    }

    .linkedin-link {
        font-size: 0.95rem;
        padding: 12px 24px;
    }

    .event-title {
        font-size: 0.95rem;
    }

    .event-year {
        font-size: 0.8rem;
    }

    .contact-intro {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .submit-btn {
        font-size: 0.95rem;
        padding: 12px 28px;
    }

    .social-links {
        margin-top: 24px;
        padding-top: 24px;
    }
}

/* Très petits écrans (smartphones en portrait) */
@media (max-width: 400px) {
    main {
        margin-top: 40px;
        padding: 0 16px;
        gap: 20px;
    }

    .bento-grid-container {
        gap: 16px;
    }

    .theme-btn {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .icon-sun, .icon-moon {
        width: 16px;
        height: 16px;
    }

    .glassmorphism-card {
        padding: 24px 16px;
        border-radius: 12px;
    }

    h2.title {
        font-size: 1.75rem;
    }

    p.subtitle {
        font-size: 0.95rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .timeline-track {
        padding-left: 24px;
    }

    .timeline-track::before {
        left: 4px;
    }

    .timeline-event::before {
        left: -22px;
        width: 6px;
        height: 6px;
    }

    .custom-list li,
    .expertise-list li {
        font-size: 0.95rem;
        padding: 14px 0;
    }

    .expertise-icon {
        width: 18px;
        height: 18px;
    }

    .contact-intro {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 11px 12px;
    }

    .form-group label {
        font-size: 0.9rem;
        left: 12px;
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 11px 24px;
    }

    .social-links {
        margin-top: 20px;
        padding-top: 20px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}
