/* Réinitialisation et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* Styles de la barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar .logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    letter-spacing: 2px;
}

.navbar .logo span {
    font-size: 0.8rem;
    color: #aaa;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ccc;
}

/* Section d'accueil (Hero) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/hero.jpg') center/cover no-repeat;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 100%);
    pointer-events: none;
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeIn 2s ease-out;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}



.hero-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #fff;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

/* Conteneur général pour les sections */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 50px;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
}

/* Section À propos */
.about p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Réalisations / Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item {
    overflow: hidden;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Section Contact */
.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #222;
    border: none;
    color: #fff;
    border-bottom: 2px solid #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #ccc;
}

footer {
    background: #111;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animation au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
