/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier', serif;
    line-height: 1.6;
    color: black;
    background-color: #f9f7f4;
}

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

a:hover {
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

h2 {
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

/* Header and Navigation */
header.nav-bar {
    background-color: #f6c437;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-brand p {
    margin: 0;
    color: black;
    font-size: 0.9rem;
    font-weight: normal;
}

.nav-brand p:first-child {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Navigation menu for desktop */
.nav-menu ul {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: black;
    font-weight: normal;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #8b7355;
}

/* Hamburger menu for mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: black;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem;
    }
    .nav-menu ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f6c437;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .nav-menu ul.show {
        display: flex;
    }
    .nav-menu li {
        text-align: center;
        padding: 0.5rem 0;
    }
    .nav-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    background-image: url('./public/images/chene_jaune.jpeg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
}

.text-intro {
    margin: auto;
    padding: 80px 0;
    max-width: 1200px;
}

/* General Section Styles */
.section {
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px; /* Added padding for smaller screens */
}

.header-title {
    padding-left: 1rem;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.header-subtitle {
    padding-left: 1rem;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2rem;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: justify;
}

.section img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* La Maison */
.gallery-slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-slideshow-image {
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    width: 100%; /* Ensure images scale to container width */
}

.maison-exterieur {
    display: none;
}

.cursor {
    cursor: pointer;
}

/* Improved touch targets for prev/next buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    color: black;
    font-weight: bold;
    font-size: 24px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.caption-container {
    padding: 2px 8px;
    color: black;
}

#maison-exterieur-caption, #maison-interieur-caption {
    text-align: center;
}

.slide-show-thumbnails {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 5px;
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
    padding: 10px 0;
    scrollbar-width: thin;
}

.thumbnail-image {
    flex: 0 0 100px; /* Fixed width for thumbnails */
    height: 100px;
    overflow: hidden;
    min-width: 100px; /* Prevent shrinking */
}

.thumbnail-image-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.active, .thumbnail-image-image:hover {
    opacity: 1;
}

.description-cadre-maison {
    margin: 80px 0;
    padding: 0 20px; /* Added padding for smaller screens */
}

/* Les Chambres Section */
.chambre {
    margin-bottom: 4rem;
    padding: 0 20px; /* Added padding for smaller screens */
}

.chambres-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .chambres-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .chambre-photo:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    .chambre-photo:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
}

.chambre-description, .chambre-description-deux {
    padding: 15px;
}

.chambre-description h3, .chambre-description-deux h3 {
    margin-top: 0;
    color: #333;
}

.chambre-description p, .chambre-description-deux p {
    margin-bottom: 0;
    color: #666;
}

.chambre-photo, .chambre-photo-deux {
    overflow: hidden;
}

.chambre-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-informatif-chambres {
    margin: 80px 0;
    padding: 0 20px; /* Added padding for smaller screens */
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px; /* Added padding for smaller screens */
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-1, .carousel-2 {
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 5px;
    min-width: 120px; /* Ensure buttons are touch-friendly */
}

.carousel-1 {
    background: #f6c437;
    color: black;
}

.carousel-2 {
    background: #008080;
    color: white;
}

.carousel-1:hover, .carousel-2:hover {
    background: lightgrey;
}

/* La Table */
.hero-image {
    width: 100%;
}

.marine-repas {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .marine-repas {
        flex-direction: row;
        justify-content: space-between;
        gap: 80px;
    }
}

.marine-repas-text {
    max-width: 100%;
}

@media (min-width: 768px) {
    .marine-repas-text {
        max-width: 500px;
    }
}

.marine-repas-image {
    width: 100%;
}

@media (min-width: 768px) {
    .marine-repas-image {
        width: 40%;
    }
}

.table-icones-contact {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 16px;
}

.table-icones-contact a, .table-icones-contact p {
    display: flex;
    gap: 8px;
}

/* La région */
#region {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

#region h3 {
    margin-top: 20px;
}


#region .content-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    #region .content-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
    }
}

#region .content-flex .text {
    flex: 1;
    max-width: 100%;
}

@media (min-width: 768px) {
    #region .content-flex .text {
        max-width: 800px;
    }
}

#region .content-flex .links {
    flex: 0 0 100%;
    margin-top: 0;
}

@media (min-width: 768px) {
    #region .content-flex .links {
        flex: 0 0 300px;
    }
}

#region .links {
    border-left: solid 4px #f6c437;
    padding-left: 8px;
}

#region .links a {
    display: block;
    margin: 5px 0;
}

/* Presse Section */
#presse {
    padding: 4rem 2rem;
    text-align: center;
}

.press-quotes {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.press-quote {
    padding: 2rem;
    border-radius: 8px;
}

.press-quote blockquote {
    font-style: italic;
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.press-quote blockquote p {
    margin: 0;
    padding: 0;
}

.press-quote cite {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-style: normal;
    font-weight: bold;

}

.press-logo {
    height: 30px;
    margin-right: 10px;
}

@media (min-width: 768px) {
    .press-quotes {
        flex-direction: row;
        gap: 2rem;
    }

    .press-quote {
        flex: 1;
    }
}

/*Contact*/

#contact .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

    /* .address-map, .contact-methods {
        padding: 25px;
        border-radius: 8px;
    } */

.address-map h3, .contact-info-box h3 {

    margin-bottom: 15px;
    font-size: 1.3rem;
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.address-map h4, .contact-info-box h4 {
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.access-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.access-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.access-list li::before {
    content: "•";
    color: #f6c437;
    position: absolute;
    left: 0;
}

.contact-methods {
    display: flex;
    flex-direction: column;

}

.contact-methods img {
   width: 300px;
}

@media (min-width: 768px) {
    .contact-methods {
       display: flex;
    flex-direction: row;
    justify-content: space-between;
    }
}

.contact-square-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.contact-info-box p {
    margin-bottom: 10px;
}

.contact-info-box a {
    text-decoration: none;
}

.contact-info-box a:hover {
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.map-container {
    height: 350px;
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #f6c437;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 120px;
}

.platform-link:hover {
    background-color: #e6b427;
    transform: translateY(-2px);
}

.platform-link span {
    display: flex;
    align-items: center;
}

.platform-link::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.platform-link[href*="airbnb"]::before {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/6/69/Airbnb_Logo_Bélo.svg');
}

.platform-link[href*="greengo"]::before {
    background-image: url('https://www.greengo.fr/favicon.ico');
}



/* Footer */
.site-footer {
    background-color: #f4f1e8;
    color: #5a4a42;
    padding: 40px 0 20px;
    border-top: 1px solid #e0ddd8;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-contact h3 {
    color: #8b7355;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.footer-contact address {
    font-style: normal;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-methods p {
    margin-bottom: 8px;
}

.contact-methods a {
    color: #8b7355;
    text-decoration: none;
}

.contact-methods a:hover {
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-links h4,
.footer-platforms h4,
.footer-newsletter h4,
.footer-access h4 {
    color: #8b7355;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #5a4a42;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8b7355;
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.platform-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.platform-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #f6c437;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 120px;
}

.platform-button:hover {
    background-color: #e6b427;
    transform: translateY(-2px);
}

.platform-button img {
    margin-right: 8px;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.footer-newsletter button {
    padding: 10px;
    background-color: #f6c437;
    color: #333;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #e6b427;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0ddd8;
}

.footer-access ul {
    list-style: none;
}

.footer-access li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.footer-access li::before {
    content: "•";
    color: #f6c437;
    position: absolute;
    left: 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    justify-content: center;
}

.legal-links a {
    color: #5a4a42;
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-links a:hover {
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.press-logos {
    text-align: center;
}

.press-logo-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f6c437;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #e6b427;
    transform: scale(1.05);
}

/* Responsive Design */
@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-legal {
        text-align: center;
    }
}

/* --- NEW: General Responsive Improvements --- */
/* Ensure all images are responsive and don't overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve touch targets for interactive elements */
button, a, .cursor {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
}

/* Prevent text zoom issues on mobile */
html {
    -webkit-text-size-adjust: 100%;
}
