/* =========================================================
   Le Moulin du Barthas – homepage test
   CSS indépendant : ne modifie pas les autres pages.
   ========================================================= */

:root {
  --green: #506b50;
  --green-dark: #3e553f;
  --blue: #577491;
  --sand: #eee7d8;
  --cream: #f8f5ee;
  --text: #30332f;
  --muted: #666b65;
  --white: #fff;
  --line: #ddd6c8;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 82px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 0 0 auto;
}

.brand-name {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--green-dark);
}

.brand-phone {
  margin-top: 4px;
  color: var(--blue);
  font-size: .92rem;
  font-weight: 600;
}

.language-links {
  display: flex;
  gap: 5px;
  margin-left: 2px;
}

.language-links img {
  width: 23px;
  height: auto;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  text-decoration: none;
  padding: 10px 9px;
  font-size: .92rem;
  line-height: 1.25;
  text-align: center;
  color: #454942;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.main-nav .nav-book {
  background: var(--green);
  color: #fff;
  border-radius: 3px;
  border-bottom: 0;
  margin-left: 5px;
}

.main-nav .nav-book:hover {
  background: var(--green-dark);
  color: #fff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 27px;
  height: 2px;
  margin: 5px 0;
  background: var(--green-dark);
}

.hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #777;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,28,21,.68), rgba(20,28,21,.18) 65%, rgba(20,28,21,.05));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin-left: max(24px, calc((100% - var(--max)) / 2 + 24px));
  padding: 70px 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--green); }

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 28px;
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  border-radius: 3px;
  transition: .2s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-light {
  background: #fff;
  color: var(--green-dark);
}

.btn-light:hover {
  background: var(--cream);
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--green-dark);
}

.section {
  padding: 78px 24px;
}

.narrow,
.section-heading,
.cards,
.split,
.feature-grid,
.photo-grid,
.ideas-grid,
.review-inner {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.narrow {
  max-width: 850px;
}

.intro {
  text-align: center;
}

.intro h2,
.section-heading h2,
.split-content h2,
.history h2,
.review h2,
.cta h2 {
  margin: 0 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--green-dark);
  line-height: 1.2;
}

.intro h2 { font-size: clamp(2rem, 4vw, 2.8rem); }

.intro p {
  max-width: 820px;
  margin: 0 auto 14px;
}

.section-soft {
  background: var(--cream);
}

.section-heading {
  text-align: center;
  max-width: 850px;
  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
}

.section-heading > p:last-child {
  color: var(--muted);
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stay-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.stay-card > a:first-child {
  display: block;
  overflow: hidden;
}

.stay-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}

.stay-card > a:first-child:hover img {
  transform: scale(1.025);
}

.stay-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stay-type {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: .84rem;
  font-weight: 700;
}

.stay-content h3 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.65rem;
}

.stay-content p {
  margin-top: 0;
  color: #555a54;
}

.text-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.video-section {
  background: var(--cream);
}

.video-wrap {
  width: min(960px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #ddd;
  overflow: hidden;
}

.video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.split-content {
  padding: 55px;
  background: var(--sand);
}

.split-content h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }

.split-content p {
  color: #4f544e;
}

.split-content .btn { margin-top: 10px; }

.nature .lead {
  max-width: 800px;
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  background: #fff;
  padding: 28px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sand);
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.feature-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 12px;
}

.feature-logo img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
}


.feature-grid h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 8px;
}

.photo-grid a {
  overflow: hidden;
  display: block;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.photo-grid a:hover img { transform: scale(1.03); }

.photo-grid .photo-large {
  grid-column: span 2;
  grid-row: span 2;
}

.history {
  text-align: center;
}

.history p {
  max-width: 820px;
  margin: 0 auto 15px;
}

.signature {
  margin-top: 25px !important;
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: 1.2rem;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.idea {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  text-decoration: none;
  background: #555;
}

.idea::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}

.idea img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  transition: transform .25s ease;
}

.idea:hover img { transform: scale(1.03); }

.idea span {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 17px;
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
}

.review-inner {
  text-align: center;
  max-width: 850px;
}

.review h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.review blockquote {
  margin: 0 auto 18px;
  color: #555a54;
  font-size: 1.05rem;
  font-style: italic;
}

.cta {
  padding: 76px 24px;
  background: var(--green-dark);
  color: #fff;
  text-align: center;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.cta .eyebrow { color: #dfe8d8; }

.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }

.cta p {
  max-width: 650px;
  margin: 0 auto 25px;
}

.map-section {
  background: #eee;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.site-footer {
  background: #c9a974;
  color: #fff;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 55px 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-grid a {
  display: block;
  margin: 5px 0;
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
}

.footer-grid a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 30px;
  border-top: 1px solid rgba(255,255,255,.4);
  text-align: center;
  font-size: .9rem;
}

.footer-bottom p { margin: 6px 0; }

.footer-bottom a {
  color: #fff;
  font-weight: 700;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

@media (max-width: 1050px) {
  .header-inner { padding-left: 18px; padding-right: 18px; }
  .main-nav a { padding-left: 6px; padding-right: 6px; font-size: .86rem; }
  .brand-name { font-size: 1.35rem; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 18px 15px;
    box-shadow: 0 5px 14px rgba(0,0,0,.08);
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav a {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  .main-nav .nav-book {
    margin: 7px 0;
    text-align: center;
  }
  .hero { min-height: 560px; }
  .cards { grid-template-columns: 1fr; max-width: 650px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-image img { min-height: 320px; max-height: 480px; }
  .split-content { padding: 42px 32px; }
  .ideas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .header-inner {
    padding: 10px 14px;
    gap: 9px;
  }
  .brand-name { font-size: 1.2rem; }
  .brand-phone { font-size: .83rem; }
  .language-links { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .hero {
    min-height: 540px;
    height: 540px;
    align-items: flex-end;
    background: #777;
  }
  .hero > img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center 45%;
  }
  .hero::after {
    background: linear-gradient(0deg, rgba(18,25,19,.78), rgba(18,25,19,.15) 75%);
  }
  .hero-overlay {
    width: 100%;
    margin: 0;
    padding: 45px 20px 35px;
  }
  .hero h1 { font-size: 2.25rem; }
  .hero-text { font-size: 1rem; margin: 16px 0 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .section { padding: 55px 18px; }
  .section-heading { margin-bottom: 28px; }
  .video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .video-wrap iframe {
    width: 100%;
    height: 100%;
  }
  .stay-content { padding: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { padding: 22px; }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 145px;
  }
  .photo-grid .photo-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .split-content { padding: 34px 22px; }
  .split-image img { min-height: 260px; }
  .ideas-grid { grid-template-columns: 1fr; }
  .idea, .idea img { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 40px; gap: 25px; }
  .footer-bottom { padding-left: 18px; padding-right: 18px; }
  .map-section iframe { height: 300px; }
  .to-top { width: 38px; height: 38px; right: 13px; bottom: 13px; }
}
