/*
 * LVL Child — custom.css
 * Design principal : navigation, hero, sections, footer
 * Structure des pages :
 *   FR / EN : Accueil | Chambres | Contact
 *   JA      : ホーム  | お部屋   | 観光 | Contact
 */


/* ═══════════════════════════════════════════════════
   VARIABLES GLOBALES
   ═══════════════════════════════════════════════════ */
:root {
  --lvl-cream:      #F7F2E8;
  --lvl-cream-alt:  #F2EAD8;
  --lvl-green:      #3A5C38;
  --lvl-green-dark: #2A4428;
  --lvl-stone:      #D6CDB8;
  --lvl-stone-mid:  #B8A890;
  --lvl-charcoal:   #2C2C2A;
  --lvl-muted:      #7A6E5C;
  --lvl-muted-lt:   #83765F;
  --lvl-gold:       #D4A84B;
  --lvl-red:        #C0392B;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:  'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --lvl-section-pad: clamp(48px, 8vw, 96px);
  --lvl-container:   1140px;
  --lvl-ease: 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   RESET MINIMAL
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ═══════════════════════════════════════════════════
   HEADER STATIQUE (.lvl-header)
   ═══════════════════════════════════════════════════ */
.lvl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lvl-cream);
  border-bottom: 1px solid var(--lvl-stone);
}
.lvl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--lvl-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  min-height: 72px;
}
.lvl-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lvl-header__logo { width: 48px; height: 48px; object-fit: contain; }
.lvl-header__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--lvl-charcoal);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.lvl-header__sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lvl-muted);
}

.lvl-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lvl-nav__link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lvl-muted);
  padding: 8px 12px;
  transition: color var(--lvl-ease);
}
.lvl-nav__link:hover,
.lvl-nav__link.is-active { color: var(--lvl-green); }

.lvl-lang {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.lvl-lang__item {
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--lvl-stone);
  border-radius: 2px;
  color: var(--lvl-muted);
  transition: background var(--lvl-ease), color var(--lvl-ease), border-color var(--lvl-ease);
  cursor: default;
}
a.lvl-lang__item { cursor: pointer; }
a.lvl-lang__item:hover { border-color: var(--lvl-green); color: var(--lvl-green); }
.lvl-lang__item.is-active {
  background: var(--lvl-green);
  color: var(--lvl-cream);
  border-color: var(--lvl-green);
}

.lvl-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.lvl-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--lvl-charcoal);
  transition: transform var(--lvl-ease), opacity var(--lvl-ease);
}

/* Bascule menu burger : 900px (la barre horizontale — 6 liens JA + langues —
   ne tient plus proprement en dessous). */
@media (max-width: 900px) {
  .lvl-burger { display: flex; }
  .lvl-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--lvl-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--lvl-stone);
    gap: 4px;
  }
  .lvl-nav.is-open { display: flex; }
  .lvl-lang { margin-left: 0; margin-top: 8px; }
}

/* Petits écrans : réduit la marque pour qu'elle cohabite avec le burger */
@media (max-width: 400px) {
  .lvl-header__logo { width: 40px; height: 40px; }
  .lvl-header__name { font-size: 15px; }
  .lvl-header__sub  { font-size: 9px; }
}

/* ═══════════════════════════════════════════════════
   FOOTER STATIQUE (.lvl-footer)
   ═══════════════════════════════════════════════════ */
.lvl-footer {
  background: var(--lvl-charcoal);
  color: var(--lvl-stone);
}

/* ═══════════════════════════════════════════════════
   BASE & TYPOGRAPHIE
   ═══════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

/* Zoom d'affichage global : desktop uniquement.
   Sur mobile / tablette (≤ 768px) on garde un rendu 1:1 — le zoom
   surdimensionnait le texte, les images et les sections pleine largeur,
   et faussait le calcul de hauteur du header en JS. */
@media (min-width: 769px) {
  html { zoom: 1.1; }
}

body {
  font-family: var(--font-body);
  background-color: var(--lvl-cream);
  color: var(--lvl-charcoal);
  font-size: 16px;
  line-height: 1.8;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--lvl-charcoal);
}

h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.1; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; }
h3 { font-size: clamp(20px, 3vw, 26px); }

/* Titres de section avec ligne décorative */
.lvl-section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.lvl-section-heading h2 {
  font-style: italic;
  margin-bottom: 8px;
}
.lvl-section-heading p {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lvl-muted-lt);
  margin: 0;
}
.lvl-section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--lvl-green);
  margin: 12px auto 0;
}


/* ═══════════════════════════════════════════════════
   HEADER & NAVIGATION (Astra override)
   ═══════════════════════════════════════════════════ */

/* Barre principale */
.site-header,
.ast-primary-header-bar {
  background-color: var(--lvl-cream) !important;
  border-bottom: 1px solid var(--lvl-stone) !important;
  padding: 0 !important;
}

/* Logo */
.custom-logo-link img,
.custom-logo {
  height: 56px;
  width: auto;
}
.ast-site-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-title {
  font-family: var(--font-serif) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--lvl-charcoal) !important;
  letter-spacing: 0.03em;
}
.site-description {
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--lvl-muted) !important;
}

/* Liens du menu */
.ast-nav-menu > li > a,
.main-navigation a {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--lvl-muted) !important;
  padding: 8px 12px !important;
  transition: color var(--lvl-ease);
}
.ast-nav-menu > li > a:hover,
.ast-nav-menu > li.current-menu-item > a {
  color: var(--lvl-green) !important;
}

/* Sélecteur de langue (Polylang) */
.lang-item a,
.pll-parent-menu-item a {
  font-size: 10px !important;
  padding: 3px 8px !important;
  border: 1px solid var(--lvl-stone) !important;
  border-radius: 2px !important;
  color: var(--lvl-muted) !important;
}
.lang-item.current-lang a {
  background: var(--lvl-green) !important;
  color: var(--lvl-cream) !important;
  border-color: var(--lvl-green) !important;
}

/* Menu mobile */
.ast-mobile-nav-wrap {
  background: var(--lvl-cream) !important;
}


/* ═══════════════════════════════════════════════════
   HERO — PAGE ACCUEIL / HOME / ホーム
   Classe à ajouter sur la section via Astra Builder
   ou un bloc Gutenberg Full Width
   ═══════════════════════════════════════════════════ */

.lvl-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--lvl-green); /* fallback si pas de photo */
  overflow: hidden;
}

.lvl-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lvl-hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: opacity;
}
.lvl-hero__slides img.is-active { opacity: 1; }

.lvl-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 25, 20, 0.1) 0%,
    rgba(30, 25, 20, 0.5) 100%
  );
  pointer-events: none;
}

.lvl-hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 clamp(24px, 6vw, 80px) clamp(48px, 8vw, 80px);
  max-width: var(--lvl-container);
  margin: 0 auto;
  width: 100%;
}

.lvl-hero__logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}

.lvl-hero h1 {
  color: var(--lvl-cream);
  font-style: italic;
  margin-bottom: 8px;
}

.lvl-hero__sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.75);
  margin-bottom: 28px;
}

.lvl-hero__cta {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--lvl-cream);
  color: var(--lvl-cream);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--lvl-ease), color var(--lvl-ease);
}
.lvl-hero__cta:hover {
  background: var(--lvl-cream);
  color: var(--lvl-charcoal);
}

/* Badge Gîtes de France (coin haut droit) : masqué — le logo figure déjà sur l'accueil */
.lvl-hero__badge { display: none; }

/* Invite au scroll (bas, centré) */
.lvl-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  background: transparent;
  border: 1px solid rgba(247, 242, 232, 0.55);
  border-radius: 50%;
  color: var(--lvl-cream);
  cursor: pointer;
  padding: 0;
  animation: lvl-hero-scroll-bounce 2.2s ease-in-out infinite;
  transition: border-color var(--lvl-ease), background var(--lvl-ease);
}
.lvl-hero__scroll:hover {
  border-color: var(--lvl-cream);
  background: rgba(247, 242, 232, 0.12);
}
.lvl-hero__scroll svg { width: 16px; height: 16px; }

@keyframes lvl-hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .lvl-hero__scroll { animation: none; }
}


/* ═══════════════════════════════════════════════════
   SECTION BIENVENUE (Accueil)
   ═══════════════════════════════════════════════════ */

.lvl-welcome {
  background: var(--lvl-cream);
  padding: var(--lvl-section-pad) clamp(24px, 6vw, 80px);
}

.lvl-welcome__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  max-width: var(--lvl-container);
  margin: 0 auto;
}

.lvl-welcome__text { padding-right: 48px; }
.lvl-welcome__divider { background: var(--lvl-stone); }
.lvl-welcome__info { padding-left: 48px; }

.lvl-welcome__kana {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lvl-muted-lt);
  margin-bottom: 16px;
}

.lvl-booking-widget {
  margin-top: 10px;
  border: 1px solid var(--lvl-stone);
  border-radius: 2px;
  background: var(--lvl-cream);
  overflow: hidden;
}
.lvl-booking-widget iframe { display: block; width: 100%; }
.lvl-booking-widget__note {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--lvl-muted);
}

.lvl-info-block { margin-bottom: 24px; }
.lvl-info-block__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lvl-muted-lt);
  margin-bottom: 4px;
}
.lvl-info-block__value { font-size: 14px; }
.lvl-info-block__value a {
  color: var(--lvl-green);
  text-decoration: none;
}

/* Tags (Japonais, Parking, Wi-Fi…) */
.lvl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lvl-tag {
  font-size: 10px;
  padding: 4px 12px;
  border: 1px solid var(--lvl-stone);
  color: var(--lvl-muted);
  border-radius: 2px;
}
a.lvl-tag--link {
  color: var(--lvl-green-dark);
  border-color: var(--lvl-green-dark);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
a.lvl-tag--link:hover {
  background: var(--lvl-green-dark);
  color: var(--lvl-cream) !important;
}
a.lvl-tag--link:hover img {
  filter: brightness(0) invert(1);
}

/* Bloc infos autonome (bas des pages d'accueil, hors .lvl-welcome__grid) :
   enveloppé dans <section class="lvl-welcome"> pour récupérer les marges de
   page. Ici on lui donne une grille souple plutôt qu'une pile pleine largeur. */
.lvl-welcome > .lvl-welcome__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 40px;
  max-width: var(--lvl-container);
  margin: 0 auto;
  padding-left: 0;
}
.lvl-welcome > .lvl-welcome__info .lvl-info-block {
  margin-bottom: 0;
  min-width: 0;
}
.lvl-welcome > .lvl-welcome__info .lvl-info-block__value {
  overflow-wrap: anywhere;
}

/* Responsive bienvenue */
@media (max-width: 768px) {
  .lvl-welcome__grid {
    grid-template-columns: 1fr;
  }
  .lvl-welcome__divider { display: none; }
  .lvl-welcome__text { padding-right: 0; margin-bottom: 32px; }
  .lvl-welcome__info { padding-left: 0; }
}


/* ═══════════════════════════════════════════════════
   PAGE CHAMBRES — FR: Chambres / EN: Rooms / JA: お部屋
   ═══════════════════════════════════════════════════ */

.lvl-rooms-section {
  background: var(--lvl-cream-alt);
  padding: var(--lvl-section-pad) clamp(24px, 6vw, 80px);
}

.lvl-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  max-width: var(--lvl-container);
  margin: 0 auto;
  /* Pas de fond : les cases vides d'une rangée incomplète prennent la couleur de la section */
}

/* Carte chambre */
.lvl-room-card {
  background: var(--lvl-cream);
  padding: 32px 28px;
}
.lvl-room-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 20px;
  cursor: zoom-in;
}

/* Lightbox — agrandissement au clic */
.lvl-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1000;
}
.lvl-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lvl-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lvl-lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--lvl-cream);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.lvl-room-card__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 2px;
}
.lvl-room-card__sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lvl-muted-lt);
  margin-bottom: 12px;
}
.lvl-room-card__desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--lvl-muted);
  margin-bottom: 16px;
}
.lvl-room-card__price {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--lvl-green);
}
.lvl-room-card__price small {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--lvl-muted-lt);
}

/* Bloc "Étage privatif" — pleine largeur */
.lvl-room-card--featured {
  grid-column: 1 / -1;
  background: var(--lvl-green);
  padding-bottom: 32px;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.35);
  width: 98%;
  justify-self: start;
  position: relative;
  z-index: 2;
  margin-bottom: -20px;
  overflow: hidden;
}
.lvl-room-card--featured .lvl-room-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 24px;
  display: block;
}
.lvl-room-card--featured > div {
  padding: 0 36px;
}
.lvl-room-card--featured .lvl-room-card__name,
.lvl-room-card--featured .lvl-room-card__desc {
  color: var(--lvl-cream);
}
.lvl-room-card--featured .lvl-room-card__sub {
  color: rgba(247, 242, 232, 0.6);
}
.lvl-room-card--featured .lvl-cta {
  color: var(--lvl-cream);
  border-color: rgba(247, 242, 232, 0.5);
}

@media (max-width: 768px) {
  .lvl-room-card--featured {
    width: 100%;
    margin-bottom: 0;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35);
  }
  .lvl-room-card--featured > div { padding: 0 24px; }
  .lvl-room-card--featured .lvl-room-card__image { height: 200px; }
}


/* ═══════════════════════════════════════════════════
   PAGE TOURISME — JA: 観光  (page unique japonaise)
   ═══════════════════════════════════════════════════ */

.lvl-tourisme-section {
  background: var(--lvl-cream);
  padding: var(--lvl-section-pad) clamp(24px, 6vw, 80px);
}

.lvl-tourisme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: var(--lvl-container);
  margin: 0 auto;
}

.lvl-spot-card {
  border: 1px solid var(--lvl-stone);
  overflow: hidden;
  align-self: start;
  transition: transform var(--lvl-ease), box-shadow var(--lvl-ease);
}
.lvl-spot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44, 44, 42, 0.1);
}
.lvl-spot-card__image {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lvl-spot-card:hover .lvl-spot-card__image {
  transform: scale(1.06);
}
.lvl-spot-card__body { padding: 16px 18px; }
.lvl-spot-card__name {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 4px;
}
.lvl-spot-card__dist {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lvl-green);
}
.lvl-spot-card__train {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--lvl-muted);
  margin-top: 2px;
}
.lvl-spot-card__desc {
  font-size: 12px;
  color: var(--lvl-muted);
  margin-top: 8px;
  line-height: 1.8;
}
.lvl-spot-card__ot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lvl-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--lvl-ease), color var(--lvl-ease);
}
.lvl-spot-card__ot:hover {
  color: var(--lvl-green-dark);
  border-bottom-color: currentColor;
}
.lvl-spot-card__ot svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.lvl-spot-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
}
.lvl-spot-card__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lvl-gold);
}
.lvl-spot-card__label svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.lvl-atout__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lvl-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--lvl-ease), color var(--lvl-ease);
}
.lvl-atout__link:hover {
  color: var(--lvl-green-dark);
  border-bottom-color: currentColor;
}
.lvl-atout__link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════
   PAGE CONTACT — commune FR / EN / JA
   ═══════════════════════════════════════════════════ */

.lvl-contact-section {
  background: var(--lvl-cream-alt);
  padding: var(--lvl-section-pad) clamp(24px, 6vw, 80px);
}

.lvl-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--lvl-container);
  margin: 0 auto;
  align-items: start;
}

.lvl-contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.lvl-contact-info__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lvl-muted-lt);
  min-width: 80px;
  padding-top: 2px;
}
.lvl-contact-info__value { font-size: 14px; }
.lvl-contact-info__value a {
  color: var(--lvl-green);
  text-decoration: none;
}

/* Formulaire de contact (CF7 ou WPForms) */
.wpcf7,
.wpforms-container {
  background: var(--lvl-cream);
  padding: 32px;
  border: 1px solid var(--lvl-stone);
}

.wpcf7 label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lvl-muted-lt);
  margin-bottom: 6px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--lvl-stone);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--lvl-charcoal);
  transition: border-color var(--lvl-ease);
  margin-bottom: 16px;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-bottom-color: var(--lvl-green);
}

.wpcf7 input[type="submit"] {
  background: var(--lvl-green);
  color: var(--lvl-cream);
  border: none;
  padding: 12px 32px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--lvl-ease);
}
.wpcf7 input[type="submit"]:hover {
  background: var(--lvl-green-dark);
}

@media (max-width: 768px) {
  .lvl-contact-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* ═══════════════════════════════════════════════════
   BANDE DE CHIFFRES (Accueil)
   ═══════════════════════════════════════════════════ */

.lvl-stats {
  background: var(--lvl-stone);
  padding: 27px clamp(24px, 2vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.lvl-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lvl-stats__item > :first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}
.lvl-stats__num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--lvl-green-dark);
}
.lvl-stats__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--lvl-muted);
}

@media (max-width: 600px) {
  .lvl-stats { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════
   CTA BANDE (bas de page Accueil)
   ═══════════════════════════════════════════════════ */

.lvl-cta-band {
  background: var(--lvl-cream-alt);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.lvl-cta-band h2 {
  font-style: italic;
  margin-bottom: 4px;
  background: linear-gradient(
    90deg,
    var(--lvl-charcoal) 0%,
    var(--lvl-charcoal) 40%,
    var(--lvl-gold) 50%,
    var(--lvl-charcoal) 60%,
    var(--lvl-charcoal) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: lvl-shimmer 9s linear infinite;
}

@keyframes lvl-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.lvl-cta-band p {
  font-size: 13px;
  color: var(--lvl-muted);
  margin: 0;
}


/* ═══════════════════════════════════════════════════
   BOUTONS GÉNÉRIQUES
   ═══════════════════════════════════════════════════ */

.lvl-cta,
.wp-block-button__link {
  display: inline-block;
  padding: 12px 32px;
  background: var(--lvl-green);
  color: var(--lvl-cream) !important;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--lvl-green);
  cursor: pointer;
  transition: background var(--lvl-ease), color var(--lvl-ease);
}
.lvl-cta:hover,
.wp-block-button__link:hover {
  background: transparent;
  color: var(--lvl-green) !important;
}

.lvl-cta--ghost {
  background: transparent;
  color: var(--lvl-green) !important;
}
.lvl-cta--ghost:hover {
  background: var(--lvl-green);
  color: var(--lvl-cream) !important;
}


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.site-footer,
.ast-footer-area {
  background: var(--lvl-charcoal) !important;
  color: var(--lvl-stone) !important;
}

.lvl-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px clamp(24px, 6vw, 80px);
  max-width: var(--lvl-container);
  margin: 0 auto;
}

.lvl-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lvl-footer__logo { width: 36px; height: 36px; opacity: 0.7; }

.lvl-footer__name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  color: var(--lvl-stone);
}
.lvl-footer__address {
  font-size: 11px;
  color: var(--lvl-muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.lvl-footer__links {
  display: flex;
  gap: 20px;
}
.lvl-footer__links a {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lvl-muted) !important;
  text-decoration: none;
  transition: color var(--lvl-ease);
}
.lvl-footer__links a:hover { color: var(--lvl-stone) !important; }


/* ═══════════════════════════════════════════════════
   ANIMATIONS — APPARITION AU SCROLL
   ═══════════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }


/* ═══════════════════════════════════════════════════
   RESPONSIVE GÉNÉRAL
   ═══════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .lvl-rooms-grid { gap: 1px; }
}

@media (max-width: 600px) {
  .lvl-hero__badge { display: none; }
  .lvl-cta-band { flex-direction: column; text-align: center; }
  /* Sans le zoom desktop, on remonte légèrement les petits corps de texte
     pour garder une lecture confortable sur mobile. */
  .lvl-room-card__desc { font-size: 14px; }
  .lvl-spot-card__desc { font-size: 13px; }
  .lvl-spot-card__name { font-size: 19px; }
}


/* ═══════════════════════════════════════════════════
   ① BLOCS IMAGE ↔ TEXTE ALTERNÉS
   Usage Gutenberg : ajouter la classe .lvl-split
   sur un bloc "Médias et texte" (natif WP)
   ═══════════════════════════════════════════════════ */

.lvl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
}

/* Version inversée : texte à gauche, image à droite */
.lvl-split--reverse {
  direction: rtl;
}
.lvl-split--reverse > * {
  direction: ltr;
}

.lvl-split__image {
  position: relative;
  overflow: hidden;
  background: var(--lvl-green);
}
.lvl-split__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity;
}
.lvl-split__image img.is-active {
  opacity: 1;
}

/* Indicateurs de diapositive */
.lvl-split__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.lvl-split__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.3);
  border: 1px solid rgba(247, 242, 232, 0.55);
  padding: 0;
  cursor: pointer;
  transition: background 0.6s ease;
}
.lvl-split__dot.is-active {
  background: rgba(247, 242, 232, 0.88);
}

/* Mention "photo non contractuelle" */
.lvl-split__caption {
  position: absolute;
  bottom: 10px;
  right: 14px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: rgba(247, 242, 232, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.lvl-split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 90px) clamp(32px, 6vw, 72px);
  background: var(--lvl-cream);
}
.lvl-split--alt .lvl-split__body {
  background: var(--lvl-cream-alt);
}

.lvl-split__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lvl-green);
  margin-bottom: 14px;
}
.lvl-split__body h2 {
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.15;
}
.lvl-split__body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--lvl-muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

/* Bloc Gutenberg "Médias et texte" — override automatique */
.wp-block-media-text.lvl-split {
  gap: 0;
  grid-template-columns: 1fr 1fr;
}
.wp-block-media-text.lvl-split .wp-block-media-text__media {
  margin: 0;
}
.wp-block-media-text.lvl-split .wp-block-media-text__content {
  padding: clamp(40px, 7vw, 90px) clamp(32px, 6vw, 72px);
}

@media (max-width: 768px) {
  .lvl-split,
  .wp-block-media-text.lvl-split {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .lvl-split__image,
  .wp-block-media-text.lvl-split .wp-block-media-text__media {
    height: 260px;
  }
}


/* ═══════════════════════════════════════════════════
   ② GALERIE MOSAÏQUE
   Usage Gutenberg : ajouter la classe .lvl-mosaic
   sur un bloc "Galerie"
   ═══════════════════════════════════════════════════ */

.lvl-mosaic {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
}

/* 2 colonnes égales */
.lvl-mosaic--2 {
  grid-template-columns: 1fr 1fr;
}

/* 3 colonnes */
.lvl-mosaic--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* 2 + 1 : grande image à gauche, 2 petites empilées à droite */
.lvl-mosaic--featured {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.lvl-mosaic--featured .lvl-mosaic__item:first-child {
  grid-row: 1 / 3;
}

.lvl-mosaic__item {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.lvl-mosaic--featured .lvl-mosaic__item:first-child {
  aspect-ratio: auto;
}
.lvl-mosaic__item img,
.lvl-mosaic__item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.lvl-mosaic__item:hover img {
  transform: scale(1.05);
}

/* Override galerie Gutenberg */
.wp-block-gallery.lvl-mosaic {
  gap: 4px !important;
}
.wp-block-gallery.lvl-mosaic .wp-block-image {
  margin: 0 !important;
}
.wp-block-gallery.lvl-mosaic figure {
  height: 100%;
}

@media (max-width: 600px) {
  .lvl-mosaic--3 { grid-template-columns: 1fr 1fr; }
  .lvl-mosaic--featured {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .lvl-mosaic--featured .lvl-mosaic__item:first-child {
    grid-row: auto;
    aspect-ratio: 4/3;
  }
}


/* ═══════════════════════════════════════════════════
   ③ SECTION "6 ATOUTS"
   Usage : <section class="lvl-atouts">
             <div class="lvl-atout"> ... </div> × 6
           </section>
   ═══════════════════════════════════════════════════ */

.lvl-atouts {
  background: var(--lvl-cream);
  padding: var(--lvl-section-pad) clamp(24px, 6vw, 80px);
}

.lvl-atouts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  max-width: var(--lvl-container);
  margin: 0 auto;
}

.lvl-atout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.lvl-atout__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lvl-cream-alt);
  border: 1px solid var(--lvl-stone);
  color: var(--lvl-green);
  font-size: 22px;
  flex-shrink: 0;
}

.lvl-atout h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.lvl-atout p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--lvl-muted);
  margin: 0;
}

/* Version fond vert foncé */
.lvl-atouts--dark {
  background: var(--lvl-charcoal);
}
.lvl-atouts--dark .lvl-atout__icon {
  background: rgba(247, 242, 232, 0.06);
  border-color: rgba(247, 242, 232, 0.15);
  color: var(--lvl-cream);
}
.lvl-atouts--dark .lvl-atout h3 {
  color: var(--lvl-cream);
}
.lvl-atouts--dark .lvl-atout p {
  color: var(--lvl-muted-lt);
}

@media (max-width: 768px) {
  .lvl-atouts__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}
@media (max-width: 480px) {
  .lvl-atouts__grid { grid-template-columns: 1fr; }
}

/* Variante 2 colonnes (ex : labels "Plus Beaux Villages" / "Village préféré") */
.lvl-atouts__grid--labels {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
}
@media (max-width: 480px) {
  .lvl-atouts__grid--labels { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════
   JA — lisibilité : Cormorant Garamond n'a pas de glyphes
   japonais, l'italique force donc un oblique synthétique
   sur le fallback Noto Sans JP (rendu flou / peu lisible).
   On désactive l'italique sur les pages japonaises.
   ═══════════════════════════════════════════════════ */
html[lang="ja"] .lvl-hero h1,
html[lang="ja"] .lvl-section-heading h2,
html[lang="ja"] .lvl-cta-band h2,
html[lang="ja"] .lvl-split__body h2 {
  font-style: normal;
}

/* FAQ */
.lvl-faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.lvl-faq__item {
  background: #fff;
  border: 1px solid var(--lvl-stone);
  padding: 0 24px;
}

.lvl-faq__item summary {
  cursor: pointer;
  padding: 20px 28px 20px 0;
  color: var(--lvl-green-dark);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.25;
  list-style: none;
  position: relative;
}

.lvl-faq__item summary::-webkit-details-marker { display: none; }
.lvl-faq__item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 17px;
  color: var(--lvl-gold);
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 300;
}
.lvl-faq__item[open] summary::after { content: '−'; }
.lvl-faq__item p {
  margin: -2px 0 22px;
  color: var(--lvl-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════
   PAGES LÉGALES (.lvl-legal) — mentions légales, confidentialité
═══════════════════════════════════════════════════ */
.lvl-legal__inner { max-width: 760px; margin: 0 auto; }
.lvl-legal h1 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(32px, 4vw, 44px); margin: 0 0 8px; color: var(--lvl-charcoal); }
.lvl-legal h2 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; margin: 36px 0 10px; color: var(--lvl-green); }
.lvl-legal p, .lvl-legal li { font-size: 14px; line-height: 1.9; color: var(--lvl-charcoal); }
.lvl-legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.lvl-legal a { color: var(--lvl-green); }
.lvl-legal__date { color: var(--lvl-muted) !important; font-size: 12px !important; }

/* ═══════════════════════════════════════════════════
   CALENDRIER DE RÉSERVATION (.lvl-booking) — widget Gîtes de France / itea
═══════════════════════════════════════════════════ */
.lvl-booking__frame { max-width: var(--lvl-container); margin: 0 auto; }
.lvl-booking__frame iframe { display: block; width: 100%; height: 440px; border: 0; background: #fff; } /* 2 mois côte à côte */
@media (max-width: 767px) {
  .lvl-booking__frame iframe { height: 820px; } /* 2 mois l'un sous l'autre */
}
.lvl-booking__frame iframe + iframe { margin-top: 24px; }
.lvl-booking__note { text-align: center; font-size: 12px; line-height: 1.8; color: var(--lvl-muted); max-width: 640px; margin: 16px auto 0; }
.lvl-booking__placeholder { border: 2px dashed var(--lvl-stone); padding: 48px 24px; text-align: center; font-size: 13px; color: var(--lvl-muted); }
.lvl-booking__note--later { font-size: 13px; color: var(--lvl-charcoal); }
.lvl-booking__note--later a { color: var(--lvl-green); }
