/*
 * Modernisation visuelle de la page d'accueil uniquement.
 * Les feuilles de style communes et les autres pages restent inchangées.
 */
body.landing {
  --home-primary: #022620d3;
  --home-primary-solid: #022620;
  --home-ink: #17312d;
  --home-muted: #53635f;
  --home-surface: #ffffff;
  --home-soft: #f2f6f4;
  --home-accent: #dcebe4;
  background: #f7f9f8;
  color: var(--home-ink);
  font-size: 12pt;
  line-height: 1.7;
}
body.landing p { color: var(--home-muted); margin-bottom: 1.1em; }
body.landing strong, body.landing b { color: var(--home-ink); }
body.landing h2, body.landing h3, body.landing h4 {
  color: var(--home-primary-solid);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
body.landing h2 { font-size: clamp(1.65rem, 2.3vw, 2.35rem); margin-bottom: .65em; }
body.landing h3 { font-size: 1.35rem; margin: .8em 0 .45em; }
body.landing a { transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease; }

/* Navigation */
body.landing #header {
  background: #022620d3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 25, 20, .16);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
body.landing #header.alt {
  background: #022620d3;
  height: 4.2em;
  line-height: 4.2em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
}
body.landing #header.alt nav { background: transparent; top: 0; }
body.landing #header nav > ul > li { margin-left: .85em; }
body.landing #header nav > ul > li > a {
  color: #f7fbf9;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  padding: .55em .65em;
  border-radius: 7px;
}
body.landing #header nav > ul > li > a:hover {
  background: rgba(255,255,255,.12);
  color: #fff !important;
}
body.landing #header h1 {
  left: 1rem;
  top: 0;
  height: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  position: absolute;
  z-index: 2;
}
body.landing #header h1 .image.logo { display: inline-flex; align-items: center; width: auto; max-width: none; height: inherit; }
body.landing #header .image.logo img { display: block; max-height: 3.25em; width: auto; max-width: 100%; vertical-align: middle; object-fit: contain; }
body.landing #header nav { z-index: 1; }

/* Hero : photographie plus présente, sans grande zone vide */
body.landing #banner {
  min-height: 0;
  height: clamp(350px, 45vw, 610px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  isolation: isolate;
  background-color: var(--home-primary-solid);
  background-position: center 48%;
  background-size: cover;
}
body.landing #banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2,38,32,.08) 20%, rgba(2,38,32,.72) 100%);
}
body.landing #banner .container { width: 100%; padding: 0 2rem 2.4rem; }
body.landing #banner .container > p { display: none; }
body.landing #banner header { margin: 0; }
body.landing #banner header h2,
body.landing #banner header h3,
body.landing #banner header p { color: #fff; }

/* Les wrappers respirent sans accumuler de grandes marges */
body.landing .wrapper { padding: 2.25em 0; }
body.landing #intro {
  padding: 0;
  min-height: 46px;
  background: #022620d3;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
body.landing #intro .container { display: none; }
body.landing #main { padding: 2.25rem 0 3.5rem; background: #f7f9f8; }
body.landing #main > .container { max-width: 1240px; }
body.landing #main .container > section { margin-top: 2.2rem; padding-top: 2.2rem; border-top: 1px solid #dce5e1; }
body.landing #main .container > section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.landing #main .row { row-gap: 1.25rem; }

/* Hébergements : introduction lisible puis grille de cartes homogènes */
body.landing #main section.features { margin: 0; padding: 0; border: 0; }
body.landing #main section.features + section.features { margin-top: 2.8rem; }
body.landing #main section.features > .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
}
body.landing #main section.features > .row > [class*="u"] {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  min-width: 0;
}
body.landing #main section.features > .row > .intro {
  grid-column: 1 / -1;
  padding: 0 0 .2rem;
}
body.landing #main section.features > .row > div:has(> .intro) { grid-column: 1 / -1; }
body.landing #main section.features > .row > div:has(> section) > section {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: .9rem .9rem 1rem;
  background: var(--home-surface);
  border: 1px solid #e3ebe7;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(12, 45, 36, .045);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
body.landing #main section.features > .row > div:has(> section) > section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(12,45,36,.10);
}
body.landing #main .image.fit { display: block; overflow: hidden; border-radius: 9px; }
body.landing #main .image.fit img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
  transition: transform .35s ease;
}
body.landing #main .image.fit:hover img { transform: scale(1.035); }
/* Panoramas : conserver le ratio natif et éviter tout recadrage ou agrandissement forcé. */
body.landing #main .box.alt .image.fit img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transform: none;
}
body.landing #main .box.alt .image.fit:hover img { transform: none; }
body.landing #main .pool-panorama {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
}
body.landing #main .pool-panorama img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
body.landing #main .icon-bullets { margin: .25rem 0 .75rem; padding-left: 0; }
body.landing #main .icon-bullets li { margin-bottom: .3rem; line-height: 1.5; color: var(--home-muted); }
/* Avantages des gîtes et chambres : trois éléments sur une ligne */
body.landing #main .intro-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: .85rem;
  margin-top: .8rem;
}
body.landing #main .intro-benefits li {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  margin: 0;
  padding: .8rem;
  background: #fff;
  border: 1px solid #e3ebe7;
  border-radius: 12px;
  color: var(--home-ink);
  font-size: .94rem;
  line-height: 1.35;
}
body.landing #main .intro-benefits li img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
body.landing #main .intro-benefits li strong { display: block; }
body.landing #main .venue-benefits li { font-size: .9rem; }
body.landing #main .venue-benefits li img { flex-basis: 44px; width: 44px; height: 44px; }
body.landing #main .actions { margin-top: auto; padding-top: .5rem; }
body.landing .button {
  background: var(--home-primary);
  border: 1px solid var(--home-primary);
  border-radius: 8px;
  color: #fff !important;
  height: auto;
  min-height: 2.8em;
  line-height: 1.3;
  padding: .8em 1.2em;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-size: .88rem;
  box-shadow: 0 4px 10px rgba(2,38,32,.12);
}
body.landing .button:hover {
  background: #145247;
  border-color: #145247;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Sections éditoriales et activités */
body.landing #main .center > section,
body.landing #main .container > section:not(.features) {
  min-width: 0;
}
body.landing #main .center > section {
  padding: clamp(1.1rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid #e3ebe7;
  border-radius: 14px;
}
body.landing #main blockquote {
  border-left: 4px solid #7da897;
  border-radius: 0 10px 10px 0;
  background: #fff;
  color: #43534e;
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
}
body.landing #main .box.alt { padding: 0; }
body.landing #main .box.alt .row { gap: .8rem; }
body.landing #main .icon img { object-fit: contain; }
body.landing #footer {
  background: var(--home-primary-solid);
  color: #e5efeb;
  padding: 3.5rem 0 1.5rem;
}
body.landing #footer h3 { color: #fff; }
body.landing #footer a { color: #f2f8f5; }
body.landing #footer a:hover { color: #b8e0cf !important; }
body.landing #footer .copyright { border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.25rem; }

/* Navigation mobile générée par le thème */
body.landing #navPanel { background: #022620; }
body.landing #navPanel .link { color: #f3f8f5; border-top-color: rgba(255,255,255,.13); }
body.landing #navButton .toggle:before {
  background: #022620;
  color: #fff;
  border-radius: 7px;
}

/* Tablettes */
@media screen and (max-width: 980px) {
  body.landing #header.alt { height: 3.7em; line-height: 3.7em; }
  body.landing #header nav > ul > li { margin-left: .25em; }
  body.landing #main section.features > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.landing #main section.features > .row > div:has(> section) > section { padding: .75rem; }
  body.landing #main .container > section { margin-top: 1.8rem; padding-top: 1.8rem; }
}
@media screen and (max-width: 736px) {
  body.landing #header.alt { display: none; }
  body.landing #banner { height: 390px; background-position: center; }
  body.landing #banner .container { padding: 0 1.1rem 1.4rem; }
  body.landing #main { padding: 1.5rem 1rem 2.5rem; }
  body.landing .wrapper { padding: 1.5rem 0; }
  body.landing #main section.features > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  body.landing #main section.features > .row > div:has(> section) > section { padding: .6rem; border-radius: 11px; }
  body.landing #main h2 { font-size: 1.6rem; }
  body.landing #main h3 { font-size: 1.1rem; }
  body.landing #main .icon-bullets li { font-size: .88rem; }
  body.landing #main .intro-benefits { gap: .55rem; }
  body.landing #main .intro-benefits li { flex-direction: column; align-items: flex-start; padding: .7rem; gap: .45rem; }
  body.landing #main .intro-benefits li img { flex-basis: 40px; width: 40px; height: 40px; }
  body.landing #main .venue-benefits li { font-size: .78rem; }
  body.landing #footer { padding: 2.5rem 1rem 1rem; }
}
@media screen and (max-width: 460px) {
  body.landing #banner { height: 320px; }
  body.landing #main section.features > .row { grid-template-columns: 1fr; }
  body.landing #main section.features > .row > div:has(> .intro) { grid-column: 1; }
  body.landing #main section.features > .row > div:has(> section) > section { padding: .85rem; }
  body.landing #main .intro-benefits { grid-template-columns: 1fr; }
  body.landing #main .intro-benefits li { flex-direction: row; align-items: center; }
}


/* Ajustements complémentaires demandés pour la page d'accueil */
/* Image éditoriale arrondie, dans le même style que les autres photos */
body.landing #main .rounded-photo {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
body.landing #main .rounded-photo img {
  display: block;
  border-radius: inherit;
}

/* Services proposés : chaque prestation est présentée dans une carte */
body.landing #main .service-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
  margin: .4rem 0 1rem;
  padding: 0;
}
body.landing #main .service-benefits li.icon {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  margin: 0;
  padding: .85rem;
  background: #fff;
  border: 1px solid #e3ebe7;
  border-radius: 12px;
  color: var(--home-ink);
  line-height: 1.45;
  box-shadow: 0 3px 12px rgba(12, 45, 36, .045);
}
body.landing #main .service-benefits li.icon img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
body.landing #main .service-benefits li.icon p {
  min-width: 0;
  margin: 0;
  color: var(--home-muted);
}
body.landing #main .service-benefits li.icon p.align-justify {
  text-align: left;
}

/* La piscine retrouve son format de bannière panoramique, sans recadrage */
body.landing #main .image.fit.pool-panorama {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 1.5rem;
}
body.landing #main .image.fit.pool-panorama img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1600 / 399;
  object-fit: contain;
  object-position: center;
  transform: none;
}
body.landing #main .image.fit.pool-panorama:hover img {
  transform: none;
}

@media screen and (max-width: 736px) {
  body.landing #main .service-benefits li.icon {
    gap: .65rem;
    padding: .7rem;
  }
  body.landing #main .service-benefits li.icon img {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}


/* Navigation corrigée : barre uniforme, logo visible et liens centrés
   dans les deux états (avant et après défilement). */
body.landing #header,
body.landing #header.alt,
body.landing #header.alt.reveal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 4.2em !important;
  line-height: 4.2em !important;
  box-sizing: border-box !important;
  background: #022620d3 !important;
  background-color: #022620d3 !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 8px 28px rgba(0,25,20,.16) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000 !important;
}
body.landing #header h1,
body.landing #header.alt h1 {
  display: block !important;
  position: absolute !important;
  left: .85rem !important;
  top: 0 !important;
  height: 4.2em !important;
  line-height: 4.2em !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 3 !important;
}
body.landing #header h1 > a {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  padding: 0 !important;
  line-height: 1 !important;
}
body.landing #header h1 .image.logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3.05em !important;
  height: 3.05em !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.landing #header .image.logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.22);
  transform-origin: center;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.landing #header nav,
body.landing #header.alt nav {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 4.2em !important;
  line-height: 4.2em !important;
  margin: 0 !important;
  padding: 0 5.5em !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: transparent !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2 !important;
}
body.landing #header nav > ul {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  white-space: nowrap !important;
}
body.landing #header nav > ul > li {
  display: inline-block !important;
  margin: 0 .45em !important;
  padding: 0 !important;
}
body.landing #header nav > ul > li > a {
  line-height: 1.3 !important;
}
@media screen and (max-width: 980px) {
  body.landing #header,
  body.landing #header.alt,
  body.landing #header.alt.reveal { height: 3.7em !important; line-height: 3.7em !important; }
  body.landing #header h1,
  body.landing #header.alt h1 { height: 3.7em !important; line-height: 3.7em !important; }
  body.landing #header h1 .image.logo { width: 2.7em !important; height: 2.7em !important; }
  body.landing #header nav,
  body.landing #header.alt nav { height: 3.7em !important; line-height: 3.7em !important; padding: 0 4.7em !important; }
  body.landing #header nav > ul > li { margin: 0 .2em !important; }
}
@media screen and (max-width: 736px) {
  /* Le thème utilise son panneau mobile ; la barre desktop est masquée comme auparavant. */
  body.landing #header.alt { display: none !important; }
}

/* Alignement des coordonnées de contact (e-mail et réseaux sociaux) */
body.landing #footer .row > div:nth-child(2) ul.labeled-icons li {
  display: flex !important;
  align-items: center !important;
  gap: .65em;
  min-width: 0;
}
body.landing #footer .row > div:nth-child(2) ul.labeled-icons li > h3.icon {
  flex: 0 0 2.2em;
  width: 2.2em;
  min-width: 2.2em;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  line-height: 1.5em;
}
body.landing #footer .row > div:nth-child(2) ul.labeled-icons li > h3.icon:before {
  margin: 0 !important;
  line-height: inherit;
}
body.landing #footer .row > div:nth-child(2) ul.labeled-icons li > a {
  display: block;
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(.68rem, .95vw, .95rem);
  letter-spacing: 0;
}
@media screen and (max-width: 980px) {
  body.landing #footer .row > div:nth-child(2) ul.labeled-icons li > a {
    font-size: clamp(.62rem, 1.5vw, .85rem);
  }
}
