/*
  ═══════════════════════════════════════════════════════════════════════════
  Domaine des Sources — style « immersif plein écran » (démo fictive)
  ───────────────────────────────────────────────────────────────────────────
  Un site réalisé par Webastide — Création de sites web · webastide.fr
  Antoine Lachaize · © 2026 Webastide
  ───────────────────────────────────────────────────────────────────────────
  Parti pris : la photo occupe tout l'écran, texte élégant posé dessus,
  panneaux plein cadre qui défilent. Ambiance événementiel haut de gamme.
  Feuille de style autonome (ne dépend pas du socle).
  ═══════════════════════════════════════════════════════════════════════════
*/

:root {
  --encre:   #2A2622;
  --encre-2: #6E655C;
  --creme:   #F6F1E9;
  --or:      #B08D57;   /* Doré discret — unique accent */
  --or-fonce:#967542;
  --serif:   'Marcellus', Georgia, serif;
  --sans:    'Inter', -apple-system, Arial, sans-serif;
  --largeur: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  color: var(--encre); background: var(--creme);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 40px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #16110C; color: #fff; padding: 10px 18px;
  font-size: .85rem; font-weight: 600; border-radius: 4px; transition: top .25s;
}
.skip:focus { top: 16px; }

.label { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--or); }
.label--clair { color: rgba(255,255,255,.75); }

/* Boutons */
.btn {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; padding: 16px 38px; transition: background .3s, color .3s, transform .3s; cursor: pointer;
}
.btn--or { background: var(--or); color: #fff; }
.btn--or:hover { background: var(--or-fonce); transform: translateY(-2px); }
.btn--ligne { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn--ligne:hover { background: #fff; color: var(--encre); }

/* ── Navigation transparente ──────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, padding .4s; }
.nav__inner { max-width: var(--largeur); margin: 0 auto; padding: 30px 40px; display: flex; align-items: center; justify-content: space-between; }
.nav.est-defile { background: rgba(20,16,12,.82); backdrop-filter: blur(8px); }
.nav.est-defile .nav__inner { padding-top: 18px; padding-bottom: 18px; }
.nav__logo { font-family: var(--serif); font-size: 1.6rem; color: #fff; letter-spacing: .03em; }
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__menu a:not(.nav__cta) { font-size: .82rem; letter-spacing: .08em; color: rgba(255,255,255,.85); transition: color .2s; position: relative; }
.nav__menu a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--or); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.nav__menu a:not(.nav__cta):hover { color: #fff; }
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid rgba(255,255,255,.5); padding: 10px 20px; color: #fff; transition: background .25s, color .25s; }
.nav__cta:hover { background: #fff; color: var(--encre); }
.nav__burger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 110; }
.nav__burger span { position: absolute; left: 0; height: 2px; width: 100%; background: #fff; transition: .3s; }
.nav__burger span:nth-child(1) { top: 0; } .nav__burger span:nth-child(2) { top: 10px; } .nav__burger span:nth-child(3) { top: 20px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ── Panneaux plein écran ─────────────────────────────────────────── */
.panneau {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 120px 24px; overflow: hidden;
  background-color: #16110C;  /* fond sombre immédiat : le texte blanc reste lisible avant l'image */
  background-size: cover; background-position: center; background-attachment: fixed;
}
.panneau::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,16,12,.5), rgba(20,16,12,.6)); }
.panneau--hero { background-image: url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1600&q=75'); }
.panneau--ambiance { background-image: url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?auto=format&fit=crop&w=1600&q=80'); }
.panneau--lieu { background-image: url('https://images.unsplash.com/photo-1505236858219-8359eb29e329?auto=format&fit=crop&w=1600&q=80'); }
.panneau__inner { position: relative; z-index: 2; max-width: 780px; }
.panneau h1, .panneau h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
.panneau h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin: 24px 0 22px; }
.panneau h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 22px 0 20px; }
.panneau p { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 34px; }
.panneau__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 20px; }
.hero-scroll::after { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px; background: #fff; border-radius: 2px; animation: descend 1.6s infinite; }
@keyframes descend { 0% { opacity: 0; transform: translate(-50%, -4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 8px); } }

/* Bande claire (respiration entre les photos) */
.bande { padding: 120px 0; text-align: center; }
.bande--blanc { background: #fff; }
.bande__titre { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; margin: 18px 0 24px; }
.bande__intro { max-width: 60ch; margin: 0 auto 50px; color: var(--encre-2); font-size: 1.1rem; }

/* Chiffres clés */
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.stats li { border-top: 1px solid color-mix(in srgb, var(--or) 40%, transparent); padding-top: 18px; }
.stats__k { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--encre); }
.stats__k small { font-size: .9rem; color: var(--or); }
.stats__l { display: block; margin-top: 8px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-2); }

/* Prestations / avis en 3 cartes */
.presta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.presta__carte { background: #fff; padding: 40px 34px; box-shadow: 0 20px 50px rgba(42,38,34,.08); transition: transform .35s, box-shadow .35s; }
.presta__carte:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(42,38,34,.14); }
.bande--blanc .presta__carte, .presta__carte.avis { box-shadow: 0 20px 50px rgba(42,38,34,.06); }
.presta__carte .num { font-family: var(--serif); font-size: 2.4rem; color: var(--or); display: block; margin-bottom: 14px; }
.presta__carte h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 12px; }
.presta__carte p { color: var(--encre-2); font-size: .97rem; }
.avis__note { color: var(--or); font-size: 1.05rem; letter-spacing: 3px; }
.avis__txt { margin: 14px 0 16px; }

/* Galerie des espaces */
.espaces { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 300px; gap: 18px; }
.espaces__item { position: relative; overflow: hidden; }
.espaces__item:first-child { grid-row: span 2; }
.espaces__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.espaces__item:hover img { transform: scale(1.06); }
.espaces__item figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 30px 22px 18px; color: #fff; font-family: var(--serif); font-size: 1.25rem; background: linear-gradient(transparent, rgba(20,16,12,.7)); text-align: left; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; align-items: center; }
.contact h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 10px; }
.contact p, .contact address { font-style: normal; color: var(--encre-2); margin-bottom: 22px; line-height: 1.9; }
.contact a { color: var(--or); }
.contact__map iframe { width: 100%; height: 360px; border: 0; }

/* Pied */
.pied { background: #16110C; color: rgba(255,255,255,.7); padding: 60px 0; text-align: center; }
.pied__logo { font-family: var(--serif); font-size: 1.8rem; color: #fff; margin-bottom: 12px; }
.pied a { color: var(--or); }
.pied small { display: block; margin-top: 20px; font-size: .8rem; color: rgba(255,255,255,.45); }
.pied__credit { margin-top: 16px; font-size: .82rem; color: rgba(255,255,255,.55); }
.pied__credit strong { color: var(--or); font-weight: 600; }

/* Apparition */
.reveal { opacity: 1; }
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.js-anim .reveal.est-visible { opacity: 1; transform: none; }

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .panneau { background-attachment: scroll; }  /* le "fixed" rame sur mobile */
  .nav__burger { display: block; }
  .nav__menu {
    position: fixed; inset: 0; background: rgba(20,16,12,.97);
    flex-direction: column; justify-content: center; gap: 32px;
    transform: translateX(100%); transition: transform .4s;
  }
  .nav__menu.est-ouvert { transform: none; }
  .nav__menu a:not(.nav__cta) { font-size: 1.3rem; }
  .presta, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .espaces { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .espaces__item:first-child { grid-row: span 1; grid-column: span 2; }
  .wrap, .nav__inner { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 520px) {
  .espaces { grid-template-columns: 1fr; }
  .espaces__item:first-child { grid-column: span 1; }
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js-anim .reveal { opacity: 1; transform: none; }
  .hero-scroll::after { animation: none; }
}
