* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
    background: #ffffff;
}

/* =========================
   HEADER
   ========================= */

header {
    background: #3D8529;
    color: #ffffff;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 28px;
    color: #ffffff !important;
}

nav a {
    color: #ffffff !important;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;

    padding: 40px;
    text-align: center;
}

.hero-text h2 {
    font-size: 40px;
    color: #ffffff !important;
}

.hero-text p {
    color: #ffffff !important;
}

/* =========================
   BOUTONS
   ========================= */

.button {
    display: inline-block;
    background: #64C23A;
    color: #ffffff !important;
    padding: 12px 25px;
    text-decoration: none;
    margin-top: 20px;
}

.button:hover {
    background: #5a3518;
    color: #ffffff !important;
}

/* =========================
   SECTIONS
   ========================= */

section {
    padding: 50px 8%;
}

/* =========================
   INTRO
   ========================= */

.intro {
    background: #ffffff;
    color: #222222;
}

.intro h2 {
    color: #222222 !important;
}

.intro > p {
    color: #222222 !important;
}

/* =========================
   CARTES
   ========================= */

.cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    padding: 25px;
    background: #5A3825;
    color: #ffffff !important;
    border-radius: 8px;
}

/* Texte des cartes TOUJOURS BLANC */
.card h3 {
    color: #ffffff !important;
}

.card h4 {
    color: #ffffff !important;
}

.card p {
    color: #ffffff !important;
}

.card a {
    color: #ffffff !important;
}

.card img {
    width: 100%;
}

/* =========================
   GALERIE
   ========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* =========================
   FORMULAIRE
   ========================= */

.formulaire {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input,
textarea,
select {
    padding: 12px;
    border: 1px solid #ccc;
}

/* =========================
   BOUTON FORMULAIRE
   ========================= */

button {
    background: #64C23A;
    color: #ffffff;
    border: none;
    padding: 15px;
    cursor: pointer;
}

/* =========================
   CONTACT
   ========================= */

.contact {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.map-placeholder {
    height: 250px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   UN PROJET ?
   ========================= */

.contact-box {
    background: #ffffff;
    color: #222222 !important;
    text-align: center;
    padding: 60px 20px;
}

.contact-box h2 {
    color: #222222 !important;
    margin: 0 0 15px 0;
}

.contact-box p {
    color: #222222 !important;
    margin: 0 0 25px 0;
}

.contact-box .button {
    background: #64C23A;
    color: #ffffff !important;
}

/* =========================
   FOOTER
   ========================= */

footer {
    background: #222222;
    color: #ffffff !important;
    text-align: center;
    padding: 20px;
}

footer p {
    color: #ffffff !important;
}

/* =========================
   SUPPRESSION DES ANCIENNES
   REGLES DE TEXTE BLANC
   ========================= */

/* Les sections normales restent noires */
.intro h1,
.intro h2,
.intro p {
    color: #222222 !important;
}

/* Les cartes restent blanches */
.card,
.card h3,
.card h4,
.card p,
.card a {
    color: #ffffff !important;
}

/* Le hero reste blanc */
.hero-text,
.hero-text h1,
.hero-text h2,
.hero-text h3,
.hero-text p {
    color: #ffffff !important;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    header {
        flex-direction: column;
    }

    nav {
        margin-top: 20px;
    }

    nav a {
        display: block;
        margin: 10px;
    }

    .hero {
        height: 400px;
    }

    .hero-text {
        width: 90%;
        padding: 25px;
    }

    .hero-text h2 {
        font-size: 25px;
    }

    .cards {
        flex-direction: column;
    }

    .card {
        min-width: 100%;
    }
}