html {
  scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin-top: 60px;
    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: 10px;
    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::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    /* max-width: 800px; */
    width: 100%;
    padding: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hero-text-1 {
    text-align: center;
}

.hero-text-2 {
    align-self: flex-end; /* Aligns this div to the right */
    text-align: right; /* Aligns text inside to the right */
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    text-decoration: none;
}

.hero h3 {
    font-size: 1.5rem;
    font-style: italic;
    margin: 0.5rem 0;
    text-decoration: none;
}

.hero-text-1 h3 {
    text-align: center;
}

.hero-text-2 h3 {
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {

    .hero-content {
        padding: 4.2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero h3 {
        font-size: 1.1rem;
    }

    .hero-text-2 {
        align-self: center; /* Center on mobile for better readability */
        text-align: center;
    }
}

@media (max-width: 315px) {

    .hero-content {
        padding: 4.2rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .hero h3 {
        font-size: 0.9rem;
    }

    .hero-text-2 {
        align-self: center; /* Center on mobile for better readability */
        text-align: center;
    }
}




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

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

.header-title {
    padding-top: 80px;
    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;
}

/* La Maison - Improved CSS (Retains flex layout, no box shadows) */

.maison-gallery-text {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    gap: 20px;
    box-sizing: border-box;
}

.description-cadre-maison {
    flex: 1;
    padding: 0 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

/*gallery*/

.gallery-section { 
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 40px;
}


.gallery {
 margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  height: fit-content;
  /* width: 80%; */
  max-width: 700px;
  height: fit-content;
  max-height: 525px; /* Fixed height for the gallery */
  /* background-color: #f5f5f5; */
}

.gallery-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.gallery-description {
  text-align: left;
  margin-bottom: 20px;
  max-width: 400px;
}


.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%; /* Ensure track fills gallery height */
}

.gallery-slide {
  height: fit-content;
  max-height: 550px;
  min-width: 100%;
  /* box-sizing: border-box; */
  display: flex;
  align-items: center;
  justify-content: center;
    overflow: hidden;
}

.gallery-slide img {
  width: auto;
  max-width: 100%;
  max-height: 525px; /* Enforce max height for images */
  /* height: auto; */
  display: block;
  object-fit: contain; /* Maintain aspect ratio without cropping */
  margin: 0 auto; /* Center images horizontally */
    z-index: 2;
}

/* Navigation buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav.prev {
  left: 5%;
}

.gallery-nav.next {
  right: 5%;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .gallery-section {
        padding: 0 20px;
    }

    .gallery-container {
        flex-direction: column;
    }

    .gallery {
        max-height: 350px;
    }


  .gallery-nav {
    width: 30px;
    height: 30px;
    font-size: 14px;
    padding: 8px;
  }

  .gallery-nav.prev {
    left: 2%;
  }

  .gallery-nav.next {
    right: 2%;
  }
}

@media (max-width: 480px) {
  .gallery-description {
    font-size: 14px;
  }

  .gallery-slide img {
    max-height: 300px; /* Optional: Reduce max height further on small 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;
    min-width: 120px; /* Ensure buttons are touch-friendly */
}

.carousel-1, .carousel-2 {
    background: transparent;
    color: black;
    border: solid 1px black;
}

.carousel-1-active,.carousel-2-active {
    background-color: #f6c437;
}


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

/* La Table */
.hero-image {
    width: 100%;
    height: auto; /* Ensures the image maintains its aspect ratio */
    object-fit: cover; /* Prevents stretching */
    max-height: 400px; /* Optional: Limits the height for better proportions */
    margin-bottom: 2rem; /* Adds space below the hero image */
}

.section {
    padding: 2rem; /* Adds padding around the entire section */
    max-width: 1200px; /* Optional: Limits the width for better readability */
    margin: 0 auto; /* Centers the section */
}

.marine-repas {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Increases gap for better spacing */
    align-items: center; /* Centers items on small screens */
}

@media (min-width: 768px) {
    .marine-repas {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start; /* Aligns items to the top */
        gap: 4rem; /* Increases gap for better spacing on larger screens */
    }
}

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

@media (min-width: 768px) {
    .marine-repas-text {
        max-width: 500px;
    }
}
.marine-repas-image {
    display: none ; /* Hidden by default (mobile) */
  
}

@media (min-width: 768px) {
    .marine-repas-image {
        display: block;
        max-width: 40%;
        height: auto;
    }
}


/* Contact section styling */
.table-icones-contact {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem; /* Adds space above the contact section */
}

/* .table-icones-contact a,
.table-icones-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
} */

/* Horizontal rule styling */
.marine-repas-text hr {
    border: 0;
    height: 2px;
    background: #f6c437;
    margin: 1.5rem 0; /* Adds space above and below the hr */
}

/* La région */
/* #region {
    max-width: 1200px;
} */

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


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

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

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

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

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

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

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

section .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 Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.address-map {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

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


.contact-image {
    max-width: 340px;
}

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

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



.contact-info-box {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* .contact-info-image {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #e6b427;
    width: 100%;
} */

.contact-info-box h3  {
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 1.4rem;
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.contact-info-box h4 {
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
}

.contact-info-box p {
    margin-bottom: 15px;
    line-height: 1.6;
}

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

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


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

.access-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

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

.access-map-container h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-decoration: underline;
    text-decoration-color: #f6c437;
}

.map-access {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.map-container {
    height: 350px;
    width: 100%;
    max-width: 600px;
    border: 1px solid #e0e0e0;
    margin-top: 0;
}
.leaflet-bar {
    display: none;
}

/* Stack map-access and map-container vertically on mobile */
@media (max-width: 768px) {
    .map-access {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info-box {
        flex-direction: column;
    }

    .access-list {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .map-container {
        width: 100%;
        max-width: 100%;
    }
}


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

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-left: 0; /* Ensure no left margin */
    padding-left: 0; /* Ensure no left padding */
}

.platform-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background-color: #f6c437;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: auto;
    margin-left: 0; /* Ensure no left margin */
}



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


.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');
}

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

}




/* 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 Section Improvements */
.footer-contact {
    margin-bottom: 10px;
}

.footer-contact h3 {
    color: #8b7355;
    font-size: 1.6rem;
    margin-bottom: 12px;
    text-decoration: underline;
    text-decoration-color: #f6c437;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-contact address {
    font-style: normal;
    margin-bottom: 18px;
    line-height: 1.7;
    color: #5a4a42;
    font-size: 1rem;
}

.contact-methods-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.contact-methods-footer p {
    margin: 0;
    font-size: 1rem;
    color: #5a4a42;
    display: flex;
    align-items: center;
}

.contact-methods-footer a {
    color: #8b7355;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 5px;
}

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

/* .social-links {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

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

.social-links img {
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.social-links a:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


.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-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%;
}

.leaflet-control {
    display: none;
}



