@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --bg-primary: #FAF6F1;
    --bg-card: #F0EAE2;
    --text-primary: #2C2420;
    --text-secondary: #7A6E65;
    --text-muted: #A89E95;
    --accent: #C4654A;
    --accent-hover: #A8503A;
    --border: #E2D9CF;
    --font-display: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

::selection { background: var(--accent); color: var(--bg-primary); }

.projet-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
}

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-link:hover { color: var(--accent-hover); }

.projet-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.projet-context {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.projet-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.projet-tech span {
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(196, 101, 74, 0.1);
    color: var(--accent);
    border: 1px solid rgba(196, 101, 74, 0.25);
}

.projet-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.projet-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.projet-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.projet-content strong { color: var(--text-primary); }

.screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.screenshots.single {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshots img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
}

.screenshots img:hover { transform: scale(1.02); }

.screenshot-caption {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.4rem;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 32, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 36, 32, 0.08);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.feature-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

.projet-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lang-btn {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .projet-header { padding: 4rem 1.2rem 2rem; }
    .projet-header h1 { font-size: 1.8rem; }
    .projet-content { padding: 0 1.2rem 3rem; }
    .screenshots { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .lang-btn {
        top: 1rem;
        right: 1.2rem;
    }
}