/* ========================
   BASE & TYPOGRAPHIE
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    color: #333;
    background-color: #fdfdf8;
}

h1, h2, h3 {
    font-family: 'Georgia', serif;
    color: #2c4a2e;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================
   NAVIGATION
======================== */
header {
    background-color: #2c4a2e;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: #f5f0e8;
    font-size: 1.4rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: #f5f0e8;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #c8e6c9;
}

/* ========================
   HERO
======================== */
#hero {
background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
            url('../images/hero.jpg') center/cover no-repeat;
            
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-contenu h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-contenu p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.bouton {
    background-color: #2c4a2e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.bouton:hover {
    background-color: #4a7c4e;
}

/* ========================
   GROUPES DE GÎTES
======================== */
#cote-champ {
    padding: 5rem 2rem;
    background-color: #fdfdf8;
}

#escale-normande {
    padding: 5rem 2rem;
    background-color: #f0f4f0;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-desc {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================
   GRILLE GÎTES
======================== */
.grille-gites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.carte-gite {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.carte-gite:hover {
    transform: translateY(-5px);
}

.carte-contenu {
    padding: 1.5rem;
}

.carte-contenu h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.carte-contenu p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.bouton-small {
    display: inline-block;
    margin-top: 1rem;
    background-color: #2c4a2e;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.bouton-small:hover {
    background-color: #4a7c4e;
}

/* ========================
   CARROUSEL
======================== */
.carrousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #ddd;
}

.carrousel-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carrousel-img.active {
    opacity: 1;
    pointer-events: auto;
}

.btn-gauche,
.btn-droite {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-gauche { left: 8px; }
.btn-droite { right: 8px; }

.btn-gauche:hover,
.btn-droite:hover {
    background-color: rgba(0,0,0,0.7);
}

.points {
    position: absolute;
    bottom: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.point.active {
    background-color: white;
}

/* ========================
   LOCALISATION
======================== */
#localisation {
    background-color: #f0f4f0;
    padding: 5rem 2rem;
    text-align: center;
}

#localisation p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* ========================
   CONTACT
======================== */
#contact {background-color: #f0f4f0;
    padding: 5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

#contact p {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

#formulaire {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#formulaire input,
#formulaire select,
#formulaire textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    background-color: #fdfdf8;
}

#formulaire textarea {
    height: 150px;
    resize: vertical;
}

#formulaire button {
    background-color: #2c4a2e;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#formulaire button:hover {
    background-color: #4a7c4e;
}

/* ========================
   FOOTER
======================== */
footer {
    background-color: #2c4a2e;
    color: #f5f0e8;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    line-height: 2;
}

/* ========================
   RESPONSIVE MOBILE
======================== */
@media (max-width: 768px) {
    .hero-contenu h1 {
        font-size: 2rem;
    }

    nav ul {
        display: none;
    }

    .grille-gites {
        grid-template-columns: 1fr;
    }
}
/* ========================
   LIGHTBOX
======================== */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

#lightbox-fermer {
    position: absolute;
    top: 1rem; right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

#lightbox-fermer:hover {
    color: #ccc;
}

#lightbox-gauche,
#lightbox-droite {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#lightbox-gauche { left: 1.5rem; }
#lightbox-droite { right: 1.5rem; }

#lightbox-gauche:hover,
#lightbox-droite:hover {
    background-color: rgba(255,255,255,0.3);
}

/* ========================
   QUI SOMMES-NOUS
======================== */
#qui-sommes-nous {
    padding: 5rem 2rem;
    background-color: #f0f4f0;
}

.qui-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.qui-photo img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.qui-texte h2 {
    text-align: left;
    margin-bottom: 1.2rem;
}

.qui-texte p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .qui-inner {
        flex-direction: column;
        text-align: center;
    }

    .qui-texte h2 {
        text-align: center;
    }
}
/* ========================
   DISTANCES
======================== */
#localisation {
    padding: 5rem 2rem;
    background-color: #fdfdf8;
    text-align: center;
}

#localisation .section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    color: #555;
}

.distances-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.distance-card {
    background: white;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-top: 3px solid #2c4a2e;
    transition: transform 0.3s;
}

.distance-card:hover {
    transform: translateY(-4px);
}

.distance-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.distance-ville {
    font-size: 0.95rem;
    font-weight: bold;
    color: #2c4a2e;
    margin-bottom: 4px;
}

.distance-km {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 4px;
}

.distance-temps {
    font-size: 0.9rem;
    color: #4a7c4e;
    font-weight: bold;
}

@media (max-width: 768px) {
    .distances-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.form-label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: -0.5rem;
    font-family: 'Georgia', serif;
}