/* style2.css - Design ultra-simpliste et minimaliste */
:root {
    --color-bg: #FFFFFF;
    --color-primary: #000000; /* Noir classique */
    --color-secondary: #555555; /* Gris */
    --color-text: #222222;
    --color-text-light: #555555;
    --color-border: #DDDDDD;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: normal;
}
a { text-decoration: none; color: #0000EE; }
a:hover { text-decoration: underline; }

/* Top Header */
.top-header {
    background-color: #FFFFFF;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--color-border);
}

.top-header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header .logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.header-titles {
    text-align: center;
    flex: 1;
    padding: 0 2rem;
}

.header-titles h1 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.header-titles .subtitle {
    color: var(--color-text-light);
    font-size: 1rem;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.header-photo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: #f4f4f6;
    border: 1px solid var(--color-border);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.lang-switch a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lang-switch a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.lang-switch .lang-active {
    color: var(--color-primary);
    font-weight: 700;
}

.lang-switch .lang-sep {
    color: #bbb;
    font-weight: 400;
}

.sidebar-lang-item {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    list-style: none;
}

/* Page Wrapper */
.page-wrapper {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-nav {
    position: sticky;
    top: 2rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.8rem;
}

.sidebar-nav a {
    display: block;
    color: var(--color-primary);
    font-size: 1.05rem;
    text-decoration: none;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    font-weight: bold;
    text-decoration: none;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

.section {
    display: none;
}
.section.active-section {
    display: block;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    text-decoration: none;
}
.btn:hover {
    background-color: var(--color-bg-light);
    text-decoration: none;
}

/* Biography */
.bio-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.bio-text {
    flex: 1;
}
.bio-text p {
    margin-bottom: 1.2rem;
    text-align: justify;
}
.bio-image img {
    max-width: 250px;
    border: 1px solid var(--color-border);
}

/* Timeline */
.timeline-group { margin-bottom: 2.2rem; }
.company-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.company-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background-color: #ffffff;
    padding: 2px;
    flex-shrink: 0;
}
.timeline-group-title {
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 0;
}
.timeline-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-border);
}
.timeline-date {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.2rem;
}
.timeline-role {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}
.timeline-item p {
    font-size: 0.95rem;
}

/* Expertise */
.expertise-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.expertise-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
}
.expertise-card h3::before {
    content: "• ";
}

/* Formations */
.formations-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.formation-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}
.formation-year {
    color: var(--color-text-light);
    min-width: 90px;
    padding-top: 2px;
}
.formation-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background-color: #ffffff;
    padding: 2px;
    flex-shrink: 0;
}
.formation-details h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}
.sub-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2.2rem 0 1.2rem;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.4rem;
}
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.cert-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--color-border);
    gap: 1.5rem;
}
.cert-card:last-child {
    border-bottom: none;
}
.cert-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}
.cert-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background-color: #ffffff;
    padding: 2px;
    flex-shrink: 0;
}
.cert-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.cert-issuer {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
}
.cert-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.cert-skill-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--color-text);
}
.cert-verify-link {
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-primary);
    background: #fafafa;
    transition: all 0.2s ease;
}
.cert-verify-link:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
    border-color: #000;
}
.certifications {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.cert-badge {
    border: 1px solid var(--color-border);
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
    background: #fbfbfb;
    border-radius: 3px;
}

/* Interventions */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.video-card {
    position: relative;
}
.video-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    text-decoration: none;
}
.video-thumbnail {
    position: relative;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.video-card a:hover .video-thumbnail img {
    transform: scale(1.04);
    opacity: 0.9;
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(204, 0, 0, 0.92);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    font-family: var(--font-body);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.video-card a:hover .video-play-btn {
    background: #cc0000;
}
.video-info {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    font-family: var(--font-body);
    margin: 0;
    transition: color 0.2s ease;
}
.video-card a:hover .video-title {
    color: #cc0000;
}
.video-meta {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
    font-style: italic;
}

/* Papiers & Articles */
.papers-list {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-bottom: 2rem;
}
.paper-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.paper-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}
.paper-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #f0f4fa;
    color: #1e429f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0dcf0;
}
.paper-content {
    flex: 1;
}
.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}
.paper-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-body);
}
.paper-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: #f4f4f5;
    color: var(--color-text-light);
    white-space: nowrap;
    border: 1px solid var(--color-border);
}
.paper-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 0.6rem;
}
.paper-abstract {
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 0.9rem;
}
.paper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.paper-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-primary);
    background: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.paper-download-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    text-decoration: none;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.gallery-grid img:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Auteur */
.books-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.book-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.book-row .book-cover {
    flex: 0 0 120px;
}
.book-row .book-cover img {
    width: 100%;
    border: 1px solid var(--color-border);
}
.book-info h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}
.book-meta {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.book-info p {
    font-size: 0.95rem;
    text-align: justify;
}
.book-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.85rem;
}
.book-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-primary);
    background-color: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.book-link-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    text-decoration: none;
}
.book-link-btn svg {
    flex-shrink: 0;
}

/* Contact */
.contact-links {
    display: flex;
    gap: 1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 4rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.gallery-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}
.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}
.gallery-modal-close:hover,
.gallery-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive & Mobile Version */
@media (max-width: 900px) {
    .page-wrapper {
        flex-direction: column;
        padding: 0 1.25rem;
        margin: 1rem auto;
        gap: 1.5rem;
    }
    .top-header {
        padding: 1rem 1.25rem;
    }
    .top-header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .header-titles {
        padding: 0;
    }
    .header-titles h1 {
        font-size: 1.7rem;
    }
    .header-titles .subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    .header-photo img {
        width: 85px;
        height: 85px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }
    .sidebar {
        width: calc(100% + 2.5rem);
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        margin: 0 -1.25rem;
        padding: 0.6rem 1.25rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .sidebar-nav {
        position: static;
        padding: 0;
        margin: 0;
    }
    .sidebar-nav ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.4rem;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-nav ul::-webkit-scrollbar {
        display: none;
    }
    .sidebar-nav li {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .sidebar-nav a {
        padding: 0.4rem 0.85rem;
        border-radius: 20px;
        font-size: 0.88rem;
        background: #f2f2f3;
        color: var(--color-primary);
        transition: all 0.2s ease;
    }
    .sidebar-nav a.active, .sidebar-nav a:hover {
        background: var(--color-primary);
        color: #ffffff;
        text-decoration: none;
    }
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    .bio-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 1.5rem;
    }
    .bio-image {
        text-align: center;
    }
    .bio-image img {
        max-width: 220px;
        border-radius: 8px;
    }
    .book-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .book-info p {
        text-align: left;
    }
    .book-row .book-cover {
        flex: 0 0 auto;
        max-width: 140px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.6rem;
    }
    .gallery-grid img {
        height: 130px;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }
    .page-wrapper {
        padding: 0 1rem;
        margin: 0.5rem auto;
    }
    .top-header {
        padding: 0.8rem 1rem;
    }
    .sidebar {
        width: calc(100% + 2rem);
        margin: 0 -1rem;
        padding: 0.5rem 1rem;
    }
    .header-titles h1 {
        font-size: 1.45rem;
    }
    .header-titles .subtitle {
        font-size: 0.85rem;
    }
    .timeline-item {
        padding-left: 0.8rem;
    }
    .timeline-group-title {
        font-size: 1.15rem;
    }
    .timeline-role {
        font-size: 1rem;
    }
    .timeline-date {
        font-size: 0.82rem;
    }
    .cert-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .cert-main {
        gap: 0.75rem;
    }
    .cert-logo {
        width: 36px;
        height: 36px;
    }
    .cert-verify-link {
        align-self: flex-start;
        padding: 0.4rem 0.85rem;
    }
    .formation-item {
        gap: 0.8rem;
    }
    .formation-year {
        min-width: 70px;
        font-size: 0.82rem;
    }
    .formation-logo {
        width: 32px;
        height: 32px;
    }
    .contact-links {
        flex-direction: column;
    }
    .btn {
        text-align: center;
        width: 100%;
        padding: 0.75rem;
    }
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .gallery-modal-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }
}
