/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* BASE — MOBILE FIRST */
body {
    font-family: 'Lato', sans-serif;
    background: #f6f6f6;
    color: #222;
    line-height: 1.6;
}

/* HERO */
header {
    text-align: center;
    padding: 40px 16px 24px; /* MOBILE */
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; /* MOBILE */
    margin: 0;
}

header p {
    margin-top: 8px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #555;
}

.hero {
    height: 24vh;
    background: url("img/hero2.jpg") center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-content {
    width: 100%;
    padding: 50px 20px 50px;
    background: linear-gradient(
        to bottom,
        rgba(5, 182, 252, 0.272),
        rgba(2, 172, 39, 0.432)
    );
    color: #fff;
    position: relative;
    z-index: 2;
}

/* overlay to dim hero background image */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65); /* increased opacity to make hero.jpg less visible */
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
}

.hero p {
    margin-top: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

/* SECTIONS */
.sections {
    padding: 40px 20px;
    display: grid;
    gap: 30px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}

.card:active {
    transform: scale(0.98);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 22px;
    border: 1px solid #222;
    border-radius: 30px;
    text-decoration: none;
    color: #222;
    font-size: 0.9rem;
    transition: 0.2s;
}

.card a:hover {
    background: #222;
    color: #fff;
}

/* RESPONSIVE — TABLET / Desktop */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .sections {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact centré sous les 3 blocs */
    .contact-card {
        grid-column: 2;
    }

    header {
        padding: 80px 20px 40px;
    }

    header h1 {
        font-size: 3rem;
    }

    header p {
        font-size: 1.2rem;
    }
}

/* CONTACT CARD */
.contact-card {
    grid-column: 1 / -1; /* prend toute la largeur de la grille */
    max-width: 500px;
    margin: 0 auto; /* CENTRÉ SOUS LES 3 BLOCS */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left; /* IMPORTANT pour captcha à gauche */
}

.contact-form label {
    font-size: 0.85rem;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.9rem;
}

.contact-form textarea {
    resize: vertical;
}

/* CAPTCHA ALIGNÉ À GAUCHE */
.captcha {
    display: flex;
    justify-content: flex-start;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* RGPD */
.rgpd {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

/* BOUTON */
.contact-form button {
    margin-top: 10px;
    align-self: center;
    padding: 10px 30px;
    border-radius: 30px;
    border: 1px solid #222;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    color: #222;
    font-weight: normal;
}

.contact-form button:hover {
    background: #222;
    color: #fff;
}

