/* ============================================================
   LE MARQUET EN ARDÈCHE — Feuille de style principale
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --pierre:        #3D3830;
  --terre:         #7A5C3E;
  --terre-light:   #B8845A;
  --creme:         #F5F0E6;
  --creme-dark:    #EDE5D4;
  --mineral:       #5A5650;
  --mineral-light: #9A9288;
  --vert:          #4A6741;
  --vert-light:    #7A9E6E;
  --vert-pale:     #D4E4CC;
  --blanc:         #FDFAF5;
  --or:            #C9973A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(61,56,48,0.08);
  --shadow-md: 0 4px 20px rgba(61,56,48,0.12);
  --shadow-lg: 0 8px 40px rgba(61,56,48,0.16);

  --transition: 0.3s ease;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--blanc);
  color: var(--pierre);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--pierre); }
h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { margin-bottom: 1rem; color: var(--mineral); }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
strong { font-weight: 500; color: var(--pierre); }

/* ── UTILITIES ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--terre); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--terre); }

.text-center { text-align: center; }
.text-center .eyebrow { justify-content: center; }
.text-center .eyebrow::before { display: none; }
.text-center .eyebrow::after { content: ''; display: block; width: 24px; height: 1px; background: var(--terre); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--pierre); color: var(--creme); }
.btn-primary:hover { background: var(--terre); color: var(--creme); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--creme); border: 1px solid rgba(245,240,230,0.5); }
.btn-outline:hover { background: rgba(245,240,230,0.1); border-color: var(--creme); }
.btn-terre { background: var(--terre); color: var(--creme); }
.btn-terre:hover { background: var(--pierre); transform: translateY(-2px); }

/* ── NAVIGATION ──
   CORRECTION : fond sombre permanent en haut pour lisibilité
   quelle que soit la photo hero
── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: all var(--transition);
  background: linear-gradient(to bottom, rgba(20,16,12,0.75) 0%, rgba(20,16,12,0) 100%);
}

.nav.scrolled {
  background: var(--blanc);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display); font-size: 1.25rem; font-style: italic;
  color: var(--creme); transition: color var(--transition);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.nav.scrolled .nav-logo { color: var(--pierre); text-shadow: none; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }

.nav-links a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(245,240,230,0.95);
  transition: color var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.nav.scrolled .nav-links a { color: var(--mineral); text-shadow: none; }
.nav-links a:hover,
.nav.scrolled .nav-links a:hover { color: var(--terre); }

.nav-links .btn {
  padding: 8px 20px; font-size: 0.7rem;
  text-shadow: none;
  border-color: rgba(245,240,230,0.7);
}
.nav.scrolled .nav-links .btn {
  background: var(--pierre); color: var(--creme); border-color: var(--pierre);
}

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 1.5px; background: var(--creme); transition: all var(--transition);
}
.nav.scrolled .nav-burger span { background: var(--pierre); }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; inset: 0; background: var(--blanc);
  z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-display); font-size: 1.8rem; font-style: italic; color: var(--pierre); }
.nav-mobile a:hover { color: var(--terre); }
.nav-mobile-close { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--pierre); }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%; background-attachment: fixed;
}

.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,16,12,0.0) 0%,
    rgba(20,16,12,0.05) 40%,
    rgba(20,16,12,0.65) 100%
  );
}

.hero-content { position: relative; z-index: 2; padding: 0 0 5rem; width: 100%; }

.hero-content .container {
  display: grid; grid-template-columns: 1fr auto; align-items: flex-end; gap: 3rem;
}

.hero-text h1 { color: var(--creme); margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-text h1 em { font-style: italic; color: rgba(245,240,230,0.85); }
.hero-text p { color: rgba(245,240,230,0.85); font-size: 1.05rem; max-width: 50ch; margin-bottom: 2rem; }

.hero-badges { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(245,240,230,0.12); border: 1px solid rgba(245,240,230,0.3);
  backdrop-filter: blur(4px); padding: 6px 14px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(245,240,230,0.95);
}

.hero-widget {
  background: var(--blanc); padding: 2rem; min-width: 320px; box-shadow: var(--shadow-lg);
}
.hero-widget h3 { font-size: 1rem; margin-bottom: 1.25rem; color: var(--pierre); }

.widget-form { display: flex; flex-direction: column; gap: 0.75rem; }
.widget-field { display: flex; flex-direction: column; gap: 4px; }
.widget-field label {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mineral-light);
}
.widget-field input, .widget-field select {
  border: none; border-bottom: 1px solid var(--creme-dark);
  background: var(--creme); padding: 8px 10px; font-family: var(--font-body);
  font-size: 0.85rem; color: var(--pierre); outline: none;
  transition: border-color var(--transition); -webkit-appearance: none;
}
.widget-field input:focus, .widget-field select:focus { border-bottom-color: var(--terre); }
.widget-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── STATS BAR ── */
.stats-bar { background: var(--pierre); padding: 2.5rem 0; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
}
.stat-item { text-align: center; padding: 0 1.5rem; border-right: 1px solid rgba(245,240,230,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; color: var(--creme); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,230,0.45); }

/* ── SECTION CONTENT ── */
.section-header { margin-bottom: 3.5rem; }
.section-header p { max-width: 55ch; margin-top: 1rem; font-size: 1.05rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 1rem auto 0; }

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--creme-dark); }
.feature-card { background: var(--blanc); padding: 2.5rem 2rem; transition: background var(--transition); }
.feature-card:hover { background: var(--creme); }
.feature-icon { width: 40px; height: 40px; color: var(--terre); margin-bottom: 1.25rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--pierre); }
.feature-card p { font-size: 0.9rem; line-height: 1.7; }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.two-col-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.two-col-img:hover img { transform: scale(1.03); }
.two-col-img::after { content: ''; position: absolute; bottom: -1rem; right: -1rem; width: 40%; height: 40%; border: 2px solid var(--vert-pale); z-index: -1; }
.two-col-text h2 { margin-bottom: 1.25rem; }
.two-col-text p { margin-bottom: 1.25rem; }

/* ── PROFILES ── */
.profiles-bg { background: var(--creme); }
.profiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.profile-card { background: var(--blanc); padding: 2rem 1.75rem; border-top: 2px solid var(--vert); transition: transform var(--transition), box-shadow var(--transition); }
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.profile-tag { display: inline-block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vert); background: var(--vert-pale); padding: 3px 10px; margin-bottom: 1rem; }
.profile-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.profile-card p { font-size: 0.88rem; }

/* ── REGION ── */
.region-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.region-list { list-style: none; margin-top: 1.5rem; }
.region-list li { display: flex; align-items: baseline; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--creme-dark); font-size: 0.9rem; }
.region-list li:last-child { border-bottom: none; }
.region-dist { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; color: var(--terre); min-width: 55px; line-height: 1; }

/* ── TESTIMONIALS ── */
.testimonials-bg { background: var(--pierre); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.testimonial-card { background: rgba(245,240,230,0.06); border: 1px solid rgba(245,240,230,0.1); padding: 2rem; }
.testimonial-stars { color: var(--or); font-size: 0.8rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: rgba(245,240,230,0.85); line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-author { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,230,0.4); }

/* ── CTA BANNER ── */
.cta-banner { background: var(--terre); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: var(--creme); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(245,240,230,0.75); max-width: 50ch; margin: 0 auto 2rem; }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--pierre); padding: 4rem 0 2rem; border-top: 1px solid rgba(245,240,230,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--creme); margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; color: rgba(245,240,230,0.45); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(245,240,230,0.6); margin-bottom: 0.5rem; }
.footer-contact-item a:hover { color: var(--terre-light); }
.footer-col-title { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,230,0.3); margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: rgba(245,240,230,0.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--terre-light); }
.footer-bottom { border-top: 1px solid rgba(245,240,230,0.08); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(245,240,230,0.25); margin: 0; }

/* ── PLATFORM BADGES ── */
.platform-badges { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.platform-badge { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border: 1px solid rgba(245,240,230,0.2); color: rgba(245,240,230,0.45); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: 10rem 0 5rem; background: var(--creme); border-bottom: 1px solid var(--creme-dark); }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { max-width: 60ch; font-size: 1.05rem; }

/* ── LODGIFY WIDGET ── */
.lodgify-wrapper { background: var(--creme); padding: 3rem; margin: 2rem 0; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-content .container { grid-template-columns: 1fr; }
  .hero-widget { display: none; }
  .hero-text h1 { font-size: 2.2rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(245,240,230,0.1); padding: 1.5rem; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(245,240,230,0.1); }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }
  .two-col-img::after { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .profiles-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 4rem 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
