/* --- Variables et Reset --- */
:root {
    --bg-color: #0d0d0d;
    --text-color: #f4f4f4;
    --accent-color: #d4af37; /* Une touche dorée discrète pour le côté pro/élégant */
    --nav-bg: rgba(13, 13, 13, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Défilement fluide lors du clic sur le menu */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Typographie Générale --- */
h1, h2, h3 {
    font-weight: 600;
}
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
a {
    text-decoration: none;
    color: var(--text-color);
}

/* --- Barre de Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--nav-bg);
    z-index: 1000;
    border-bottom: 1px solid #222;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.logo span {
    color: var(--accent-color);
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: var(--accent-color);
}

/* --- Section Accueil (Hero) --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Image de fond sombre pour l'accueil */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/id/1050/1920/1080') no-repeat center center/cover;
}
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* --- Section Portfolio --- */
.portfolio-section {
    padding: 100px 5%;
}
.gallery {
    display: grid;
    /* Création d'une grille auto-adaptative (Masonry style simplifié) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(30%);
}
.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* --- Section À propos --- */
.about-section {
    padding: 100px 5%;
    background-color: #111;
}
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}
.about-text {
    flex: 1;
}
.about-text p {
    margin-bottom: 1.5rem;
    color: #aaa;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Section Contact --- */
.contact-section {
    padding: 100px 5%;
    text-align: center;
}
.contact-section p {
    margin-bottom: 3rem;
    color: #aaa;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: var(--text-color);
    font-family: inherit;
    border-radius: 4px;
}
.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: #050505;
    color: #555;
    font-size: 0.9rem;
}

/* --- Responsive Design (Mobiles & Tablettes) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    nav ul {
        margin-top: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .about-container {
        flex-direction: column-reverse;
    }
}