/* =========================================================
   COULEURS
========================================================= */

:root {
    --vert: #526b55;
    --vert-fonce: #304735;
    --beige: #f4efe5;
    --beige-clair: #faf8f3;
    --terre: #a86f4d;
    --or: #e5d3ae;
    --texte: #333333;
    --blanc: #ffffff;
    --ombre: 0 15px 40px rgba(0,0,0,0.10);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texte);
    background: var(--beige-clair);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

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


/* =========================================================
   HEADER
========================================================= */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    color: white;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
}

.logo span {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: var(--or);
}

.btn-contact {
    background: white;
    color: var(--vert-fonce);
    padding: 11px 20px;
    border-radius: 30px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 720px;

    background:
        linear-gradient(
            rgba(36,57,40,0.60),
            rgba(36,57,40,0.45)
        ),
        url("images/gite-etape-compostelle.jpg") center/cover no-repeat;

    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 150px 30px 100px;
    color: white;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.10);
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: 76px;
    line-height: 1.05;
    max-width: 800px;
    margin-bottom: 25px;
}

.hero p {
    max-width: 650px;
    font-size: 20px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.button-primary {
    background: white;
    color: var(--vert-fonce);
}

.button-secondary {
    border: 1px solid white;
    color: white;
}

.button:hover {
    transform: translateY(-3px);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 100px 30px;
}

.container {
    max-width: 1150px;
    margin: auto;
}

.section-label {
    color: var(--terre);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

h2 {
    font-family: Georgia, serif;
    color: var(--vert-fonce);
    font-size: 50px;
    line-height: 1.15;
    margin-bottom: 25px;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.intro-text p {
    margin-bottom: 20px;
}

.intro-photo {
    min-height: 450px;
    border-radius: 5px 80px 5px 80px;

    background:
        linear-gradient(
            rgba(50,70,50,0.10),
            rgba(50,70,50,0.10)
        ),
        url("images/gite-compostelle-convivial.jpg") center/cover no-repeat;

    box-shadow: var(--ombre);
}


/* =========================================================
   GALERIE
========================================================= */

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.galerie-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.4s;
}

.galerie-item:hover img {
    transform: scale(1.05);
}

.galerie-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 18px 12px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    background: linear-gradient(transparent, rgba(36,57,40,0.75));
}


/* =========================================================
   INFORMATIONS
========================================================= */

.info-section {
    background: var(--beige);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.info-card {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.info-icon {
    display: inline-block;
    background: var(--vert);
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
}

.info-card h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: var(--vert-fonce);
    margin-bottom: 10px;
}


/* =========================================================
   TARIFS
========================================================= */

.prices {
    background: var(--vert-fonce);
    color: white;
}

.prices h2 {
    color: white;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.price-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 28px 20px;
    text-align: center;
}

.price {
    font-family: Georgia, serif;
    font-size: 36px;
    color: var(--or);
    font-weight: bold;
}

.price-card h3 {
    margin: 10px 0;
    font-size: 17px;
}

.price-card p {
    font-size: 13px;
    opacity: 0.8;
}


/* =========================================================
   REPAS
========================================================= */

.meal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.meal-photo {
    min-height: 480px;
    border-radius: 80px 5px 80px 5px;

    background:
        linear-gradient(
            rgba(60,50,40,0.08),
            rgba(60,50,40,0.08)
        ),
        url("images/gite-etape-compostelle-petit-dejeuner.jpg") center/cover no-repeat;

    box-shadow: var(--ombre);
}

.meal-list {
    list-style: none;
    margin-top: 25px;
}

.meal-list li {
    padding: 13px 0;
    border-bottom: 1px solid #ddd;
}

.meal-list li:before {
    content: "+";
    color: var(--terre);
    font-weight: bold;
    margin-right: 12px;
}


/* =========================================================
   HORAIRES
========================================================= */

.schedule {
    background: #eee9dd;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 45px;
}

.schedule-card {
    background: white;
    text-align: center;
    padding: 30px 15px;
    border-radius: 15px;
}

.schedule-card strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 25px;
    color: var(--vert-fonce);
}

.schedule-card span {
    font-size: 13px;
    color: #777;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.service {
    background: white;
    padding: 18px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--terre);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background:
        linear-gradient(
            rgba(48,71,53,0.94),
            rgba(48,71,53,0.94)
        ),
        url("images/gite-etape-compostelle-jardin-exterieur.jpg") center/cover no-repeat;

    color: white;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact-text {
    max-width: 650px;
    margin: 0 auto 35px;
}

.phone {
    font-family: Georgia, serif;
    font-size: 34px;
    color: var(--or);
    display: inline-block;
    margin: 15px 0 30px;
}

.address {
    opacity: 0.85;
    margin-bottom: 30px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #26382a;
    color: rgba(255,255,255,0.7);
    padding: 30px;
    text-align: center;
    font-size: 13px;
}

footer strong {
    color: white;
}


/* =========================================================
   TABLETTE
========================================================= */

@media screen and (max-width: 900px) {

    nav {
        gap: 15px;
    }

    .intro,
    .meal {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .price-grid {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr 1fr;
    }

    .galerie-grid {
        grid-template-columns: 1fr 1fr;
    }

    .intro-photo,
    .meal-photo {
        min-height: 350px;
    }

    .hero h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 42px;
    }
}


/* =========================================================
   TELEPHONE
========================================================= */

@media screen and (max-width: 650px) {

    .navbar {
        padding: 18px 20px;
    }

    .logo img {
        height: 60px;
    }

    nav.desktop-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        padding: 120px 22px 70px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 17px;
    }

    .section {
        padding: 70px 20px;
    }

    .info-grid,
    .price-grid,
    .schedule-grid,
    .services,
    .galerie-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 36px;
    }

    .intro-photo,
    .meal-photo {
        min-height: 300px;
    }

    .phone {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* =========================================================
   TRES PETITS ECRANS
========================================================= */

@media screen and (max-width: 400px) {

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    h2 {
        font-size: 31px;
    }

    .section {
        padding: 55px 18px;
    }

}


/* =========================================================
   MENU MOBILE : DETAILS NATIF ET ACCESSIBLE
========================================================= */

.mobile-menu {
    display: none;
    position: relative;
    margin-left: auto;
}

.mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::marker { content: ''; }
.mobile-menu summary:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

.menu-icon { display: flex; flex-direction: column; gap: 4px; }
.menu-icon span { display: block; width: 21px; height: 2px; background: currentColor; }

.mobile-menu nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(280px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 12px;
    background: var(--vert-fonce);
    box-shadow: var(--ombre);
}

.mobile-menu nav a {
    padding: 12px;
    border-radius: 6px;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible { background: rgba(255,255,255,0.12); color: white; }
.mobile-menu nav .btn-contact { margin-top: 5px; text-align: center; color: var(--vert-fonce); }
.mobile-menu nav .btn-contact:hover,
.mobile-menu nav .btn-contact:focus-visible { background: var(--or); color: var(--vert-fonce); }

@media screen and (max-width: 650px) {
    .mobile-menu { display: block; }
}
