/* ==================== VARIABLES ==================== */
:root {
    --bg: #F8F6F3;
    --text: #2C2C2C;
    --text-light: #4A4A4A;
    --text-muted: #7A7A7A;
    --border: #DDD8D0;
    --accent: #1A1A1A;
}

/* ==================== RESET ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Playfair Display', serif; background: var(--bg); color: var(--text); font-weight: 400; line-height: 1.7; }

/* ==================== NAV ==================== */
nav { position: fixed; top: 0; width: 100%; background: var(--bg); padding: 1.5rem 2rem; display: flex; justify-content: center; gap: 1.5rem; z-index: 100; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--text); font-family: 'Source Sans 3', sans-serif; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
nav a:hover { color: var(--text-muted); }
nav a.active { color: var(--accent); font-weight: 500; }

/* ==================== MAIN ==================== */
main { max-width: 800px; margin: 0 auto; padding: 7rem 2rem 4rem; }

/* ==================== TYPO ==================== */
h1 { font-size: 2.4rem; font-weight: 400; margin-bottom: 0.5rem; text-align: center; }
h2 { font-size: 1.8rem; font-weight: 400; margin: 3rem 0 1.5rem; }
h3 { font-size: 1.3rem; font-weight: 400; margin: 2.5rem 0 1rem; color: var(--text-light); }
h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.3rem; }
p { margin-bottom: 1.2rem; font-size: 1.05rem; }
a { color: var(--text); }

.intro { font-style: italic; color: var(--text-light); margin-bottom: 2rem; font-size: 1.2rem; text-align: center; }

/* ==================== CITATIONS ==================== */
.citation { max-width: 900px; margin: 1.5rem auto; text-align: center; padding: 0 1rem; }
.citation p { font-style: italic; font-size: 1rem; color: #8B7355; margin-bottom: 0.5rem; }
.citation span { font-family: 'Source Sans 3', sans-serif; font-size: 0.75rem; color: #6B5B45; }

/* ==================== À PROPOS ==================== */
.about-photos { display: flex; justify-content: center; gap: 2rem; margin: 2rem 0; }
.about-photos img { width: 200px; height: 250px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.about-text { max-width: 600px; margin: 0 auto 3rem; text-align: center; font-size: 1.1rem; line-height: 1.9; }
.about-highlight { font-weight: 600; font-style: italic; margin-top: 2rem; display: block; }

/* ==================== CARDS GRID - 4 colonnes ==================== */
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.card { background: #EFECE7; border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem; text-align: center; }
.card .emoji { font-size: 1.8rem; margin-bottom: 0.8rem; }
.card h3 { margin-bottom: 0.4rem; color: var(--text); font-size: 0.95rem; }
.card p { color: var(--text-light); font-size: 0.8rem; margin-bottom: 0; }

/* ==================== CARDS GRID - 3 colonnes ==================== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }

/* ==================== PARCOURS ==================== */
.parcours-title { text-align: center; margin-bottom: 1rem; }
.parcours-subtitle { text-align: center; font-family: 'Source Sans 3', sans-serif; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2rem; }

/* ==================== TIMELINE ==================== */
.timeline { max-width: 500px; margin: 0 auto 3rem; position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2rem; top: 0.4rem; width: 7px; height: 7px; background: var(--text); border-radius: 50%; transform: translateX(-3px); }
.timeline-date { font-family: 'Source Sans 3', sans-serif; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.3rem; letter-spacing: 0.03em; }
.timeline-content p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0; }

/* ==================== TSPT ==================== */
.tspt-header-images { display: flex; justify-content: center; gap: 1rem; margin: 2rem 0; }
.tspt-header-images img { width: 150px; height: 150px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.tspt-content { max-width: 600px; margin: 0 auto; }
.tspt-definition { font-size: 1.1rem; margin-bottom: 2rem; }
.tspt-symptom { margin-bottom: 1rem; color: var(--text-light); }
.tspt-note { margin-top: 2rem; font-style: italic; color: var(--text-muted); font-size: 0.95rem; }
.tspt-source { margin-top: 1.5rem; font-family: 'Source Sans 3', sans-serif; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.05em; }

/* ==================== GALLERY ==================== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; margin: 2rem 0; }
.gallery img { width: 100%; height: 180px; object-fit: cover; cursor: zoom-in; transition: transform 0.3s; border-radius: 2px; }
.gallery img:hover { transform: scale(1.02); }

.hero-img { width: 100%; max-height: 350px; object-fit: cover; margin: 2rem 0; border-radius: 2px; cursor: zoom-in; }

/* ==================== DOCUMENTS GRID ==================== */
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.docs-grid img { width: 100%; height: auto; object-fit: contain; cursor: zoom-in; border-radius: 4px; border: 1px solid var(--border); }

/* ==================== PROJETS CARDS ==================== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.project-card { background: #EFECE7; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.project-card .emoji { font-size: 2rem; margin-bottom: 1rem; }
.project-card h3 { margin-bottom: 0.8rem; color: var(--text); }
.project-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

/* ==================== COLLABORATION ==================== */
.collab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.collab-box { background: #EFECE7; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.collab-box h3 { margin-bottom: 1rem; }
.collab-box ul { list-style: none; }
.collab-box li { padding: 0.5rem 0; color: var(--text-light); font-size: 0.95rem; }
.collab-box li::before { content: '→ '; color: var(--text-muted); }

/* ==================== IA LINES ==================== */
.ia-lines { text-align: center; margin: 2rem 0; }
.ia-lines p { margin-bottom: 0.5rem; font-size: 1.15rem; color: var(--text-light); }

/* ==================== CONTACT FORM ==================== */
.contact-form { max-width: 400px; margin: 2rem auto; }
.contact-form input { width: 100%; padding: 1rem; background: #EFECE7; border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-family: inherit; font-size: 1rem; margin-bottom: 1rem; }
.contact-form input::placeholder { color: var(--text-muted); }
.contact-form button { width: 100%; padding: 1rem; background: var(--text); color: var(--bg); border: none; border-radius: 4px; font-family: inherit; font-size: 1rem; cursor: pointer; }
.contact-form button:hover { background: var(--text-light); }
.contact-note { text-align: center; font-style: italic; color: var(--text); margin-top: 2rem; font-size: 1.3rem; }

/* ==================== LIGHTBOX ==================== */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 200; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 85%; max-height: 85%; object-fit: contain; }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 210; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 3rem; cursor: pointer; padding: 1rem; user-select: none; z-index: 210; }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-prev:hover, .lightbox-next:hover { color: #ccc; }

/* ==================== FOOTER ==================== */
footer { text-align: center; padding: 3rem; font-size: 0.75rem; color: var(--text-muted); font-family: 'Source Sans 3', sans-serif; border-top: 1px solid var(--border); margin-top: 3rem; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ==================== UTILS ==================== */
.fnac-link { display: block; text-align: center; margin: 1rem 0; font-family: 'Source Sans 3', sans-serif; font-size: 0.9rem; }
.highlight-text { font-weight: 600; font-style: italic; text-align: center; margin: 2rem auto; max-width: 500px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .docs-grid { grid-template-columns: 1fr; }
    .about-photos { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
    nav { gap: 0.6rem; padding: 1rem; }
    nav a { font-size: 0.6rem; }
    h1 { font-size: 1.8rem; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .collab-grid { grid-template-columns: 1fr; }
    .tspt-header-images { flex-wrap: wrap; }
    .cards-grid-4 { grid-template-columns: 1fr 1fr; }
    .citation { padding: 0 0.5rem; }
    .citation p { font-size: 0.9rem; line-height: 1.6; }
    .intro { font-size: 1rem; padding: 0 0.5rem; }
    main { padding: 6rem 1rem 3rem; }
    .timeline { padding-left: 1.5rem; }
    .timeline-item { padding-left: 1rem; }
}
