:root {
    --bg: #f5f2ed; /* Beige papier */
    --paper-texture: #efece6;
    --text-main: #2d3436;
    --text-dim: #636e72;
    --accent: #2d5a27; /* Vert sapin technique */
    --accent-light: #e8f0e7;
    --border: #d1ccc0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    /* Petit effet de grain papier */
    background-image: radial-gradient(var(--paper-texture) 0.5px, transparent 0.5px);
    background-size: 10px 10px;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 30px;
}

header {
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 30px;
    margin-bottom: 50px;
}

h1 {
    font-size: 2.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 5px;
}

.intro {
    margin-top: 25px;
    font-size: 1.15rem;
    max-width: 700px;
    color: var(--text-main);
}

h2 {
    font-size: 1.4rem;
    text-transform: uppercase;
    background: var(--text-main);
    color: var(--bg);
    display: inline-block;
    padding: 2px 15px;
    margin-top: 50px;
    letter-spacing: 1px;
}

.project-card {
    border: 1px solid var(--border);
    padding: 30px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 3px 3px 0px var(--border);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.project-header h3 {
    margin: 0;
    color: var(--accent);
    font-size: 1.5rem;
}

.tag {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: bold;
}

.impact-highlight {
    background-color: var(--accent-light);
    border-left: 5px solid var(--accent);
    padding: 15px;
    margin: 20px 0;
    font-weight: 500;
}

.impact-highlight strong {
    color: var(--accent);
    font-size: 1.2rem;
}

.image-container {
    margin-top: 20px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 5px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(10%) contrast(95%); /* Adoucit les photos pour le thème beige */
}

.caption {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stack-box {
    border: 1px solid var(--border);
    padding: 15px;
}

.stack-box h4 {
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--accent);
}

.stack-box ul {
    list-style: square;
    padding-left: 18px;
    margin: 0;
    font-size: 0.95rem;
}

footer {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 2px solid var(--text-main);
}

.contact-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
}

.contact-item a:hover {
    background: var(--accent-light);
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .container { padding: 30px 15px; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 10px;
    box-shadow: 2px 2px 0px var(--border);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Pour que toutes les images aient la même taille */
    filter: sepia(5%);
}

.gallery-desc {
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 1.2;
    color: var(--text-dim);
}
