/* ============================================================
   Via Vai — style.css
   Design system principal (index.html)
   Refonte — OKLCH + typographie à 2 familles
   ============================================================ */

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

:root {
  /* Surfaces */
  --bg:      oklch(0.97 0.008 55);   /* near-white, teinté terra */
  --white:   #FFFDF9;

  /* Terracotta — couleur dominante */
  --terra:   #C4622D;
  --terra-d: #8B3A1A;
  --terra-l: #E8956B;

  /* Encre */
  --ink:     #1C1309;
  --ink-m:   #3D2B1A;
  --ink-s:   #6B4E35;

  /* Sable (sections sombres) */
  --sand:    #F2EAD8;
  --sand-d:  #DDD0B8;

  /* Or */
  --gold:    #B8922A;
  --gold-l:  #D4AF5A;

  /* Typographie — 2 familles seulement */
  --fd: 'Playfair Display', Georgia, serif;
  --fs: 'DM Sans', system-ui, sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fs);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  transition: background .45s var(--ease), box-shadow .45s var(--ease);
}
nav.solid {
  background: oklch(0.97 0.008 55 / 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(196, 98, 45, .12);
}

.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--fd); font-size: 1.6rem; font-weight: 600;
  color: var(--white); letter-spacing: .02em;
  transition: color .4s; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
nav.solid .nav-logo { color: var(--terra-d); text-shadow: none; }
.nav-logo-img { height: 36px; width: auto; display: block; }

.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--fs); font-size: .75rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.82); transition: color .25s;
}
nav.solid .nav-links a { color: var(--ink-s); }
.nav-links a:hover, nav.solid .nav-links a:hover { color: var(--terra); }

.nav-btn {
  font-family: var(--fs); font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1.4rem; border-radius: 2px;
  border: 1.5px solid rgba(255,255,255,.45); color: var(--white);
  transition: all .25s; cursor: pointer;
  display: flex; align-items: center; gap: .5rem;
}
nav.solid .nav-btn { border-color: var(--terra); color: var(--terra); }
.nav-btn:hover { background: var(--terra); border-color: var(--terra); color: var(--white); }
.nav-btn:active { transform: scale(.97); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); transition: background .3s;
}
nav.solid .burger span { background: var(--ink); }

/* ── MOBILE MENU ── */
.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(28,19,9,.97);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mob-menu.open { display: flex; }
.mob-x {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; font-size: 1.6rem;
  color: var(--sand); cursor: pointer; padding: .4rem;
}
.mob-menu a {
  font-family: var(--fd); font-size: 2.2rem; font-style: italic;
  color: var(--sand); transition: color .25s;
}
.mob-menu a:hover { color: var(--terra-l); }

/* ── HERO ── */
#hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--ink);
}
.hero-par {
  position: absolute; inset: -10%;
  background: url('../../public/images/lieu/entry2.jpeg') center/cover no-repeat;
  opacity: .42; will-change: transform;
}
.hero-vign {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(28,19,9,.25) 0%, rgba(28,19,9,.75) 100%);
}
.hero-content { position: relative; text-align: center; padding: 0 1.5rem; max-width: 860px; }
.hero-tag {
  font-family: var(--fs); font-size: .7rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--terra-l);
  margin-bottom: 1.8rem; opacity: 0;
  animation: fup .8s var(--ease) .4s forwards;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.hero-tag::before, .hero-tag::after {
  content: ''; flex: 1; max-width: 60px;
  height: 1px; background: var(--terra-l); opacity: .5;
}
.hero-h1 {
  font-family: var(--fd);
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 700; color: var(--white); line-height: .95;
  letter-spacing: -.02em; margin-bottom: .8rem;
  overflow: hidden; text-wrap: balance;
}
.hero-h1 .char {
  display: inline-block; opacity: 0; transform: translateY(100%);
  animation: charIn .6s var(--ease) forwards;
}
.hero-sub {
  font-family: var(--fd); font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.4rem); color: rgba(242,234,216,.75);
  margin-bottom: 3rem; opacity: 0;
  animation: fup .9s var(--ease) 1.1s forwards; letter-spacing: .04em;
}
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fup .9s var(--ease) 1.3s forwards;
}
.cta-p {
  font-family: var(--fs); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 2.4rem; background: var(--terra); color: var(--white);
  border: 1.5px solid var(--terra); border-radius: 2px; cursor: pointer;
  transition: all .25s; display: inline-flex; align-items: center; gap: .5rem;
}
.cta-p:hover { background: var(--terra-d); border-color: var(--terra-d); transform: translateY(-2px); }
.cta-p:active { transform: scale(.97); }
.cta-g {
  font-family: var(--fs); font-size: .78rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 2.4rem; background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 2px; cursor: pointer;
  transition: all .25s; display: inline-flex; align-items: center; gap: .5rem;
}
.cta-g:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.cta-g:active { transform: scale(.97); }
.hero-down {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  opacity: 0; animation: fup .9s var(--ease) 1.6s forwards;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.hero-down-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: pulse 2s ease-in-out infinite;
}
.hero-down span {
  font-family: var(--fs); font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4);
}

/* ── REVEAL ANIMATIONS ── */
.rv  { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.rvl { opacity: 0; transform: translateX(-45px);           transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rvr { opacity: 0; transform: translateX(45px);            transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.on, .rvl.on, .rvr.on { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ── SECTIONS — layout ── */
.sl  { background: var(--bg);    color: var(--ink);  padding: clamp(5rem,9vw,8rem) clamp(1.25rem,5vw,4rem); }
.sd  { background: var(--ink-m); color: var(--sand); padding: clamp(5rem,9vw,8rem) clamp(1.25rem,5vw,4rem); }
.ss  { background: var(--sand);  color: var(--ink);  padding: clamp(5rem,9vw,8rem) clamp(1.25rem,5vw,4rem); }
.st  { background: var(--terra-d); color: var(--sand); padding: clamp(3rem,5vw,4.5rem) clamp(1.25rem,5vw,4rem); }
.wrap { max-width: 1200px; margin: 0 auto; }

/* Label discret (eyebrow) — utilisé avec parcimonie */
.sec-label {
  font-family: var(--fs); font-size: .68rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--terra); display: block; margin-bottom: .6rem;
}
.sd .sec-label { color: var(--terra-l); }

.sec-h {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
  text-wrap: balance;
}
.sec-hi { font-style: italic; font-weight: 400; color: var(--ink-s); }
.sd .sec-hi { color: rgba(242,234,216,.65); }

/* ── À PROPOS ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: 3.5rem;
}
.card-3d {
  transform-style: preserve-3d; cursor: pointer;
  position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(28,19,9,.15); transition: box-shadow .4s;
}
.card-3d:hover { box-shadow: 0 32px 80px rgba(28,19,9,.22); }
.card-3d img {
  width: 100%; height: 520px; object-fit: cover;
  border-radius: 4px; display: block; transition: transform .1s linear;
}
.card-3d-shine {
  position: absolute; inset: 0; border-radius: 4px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0%, transparent 65%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card-3d:hover .card-3d-shine { opacity: 1; }
.about-badge {
  position: absolute; bottom: -1.25rem; right: -1.25rem;
  background: var(--terra); color: var(--white);
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border: 3px solid var(--bg); z-index: 2;
  box-shadow: 0 8px 24px rgba(196,98,45,.4);
}
.badge-n { font-family: var(--fd); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.badge-t { font-family: var(--fs); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.about-text { padding-top: 1rem; }
.about-body {
  font-family: var(--fs); font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.85; color: var(--ink-s); margin: 1.25rem 0;
}
.pills { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.pill {
  font-family: var(--fs); font-size: .72rem; letter-spacing: .06em;
  padding: .45rem 1rem; border: 1px solid rgba(196,98,45,.28);
  border-radius: 2px; color: var(--terra-d); background: rgba(196,98,45,.06);
  display: flex; align-items: center; gap: .4rem; transition: all .2s;
}
.pill:hover { background: rgba(196,98,45,.12); border-color: rgba(196,98,45,.5); }

/* ── STATS ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1200px; margin: 0 auto; text-align: center; gap: 2rem;
}
.stat-n { font-family: var(--fd); font-size: clamp(2.4rem,4vw,3.2rem); font-weight: 700; line-height: 1; display: block; }
.stat-l { font-family: var(--fs); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: .4rem; display: block; }

/* ── SECTION VALEURS (remplace features grid) ── */
.values-section {
  background: var(--bg);
  padding: clamp(4rem,7vw,6rem) clamp(1.25rem,5vw,4rem);
  border-top: 1px solid rgba(196,98,45,.1);
  border-bottom: 1px solid rgba(196,98,45,.1);
}
.values-list {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column;
}
.values-item {
  display: flex; align-items: baseline; gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid rgba(28,19,9,.08);
}
.values-item:last-child { border-bottom: none; }
.values-term {
  font-family: var(--fd); font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 600; color: var(--ink); min-width: 220px; flex-shrink: 0;
  letter-spacing: -.01em;
}
.values-def {
  font-family: var(--fs); font-size: clamp(.9rem, 1.2vw, 1rem);
  color: var(--ink-s); line-height: 1.75; max-width: 55ch;
}

/* ── GALERIE ── */
.gal-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 300px; gap: 8px; margin-top: 3rem;
}
.gal-item { overflow: hidden; border-radius: 4px; position: relative; cursor: pointer; }
.gal-item:first-child { grid-row: 1 / 3; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-item:hover img { transform: scale(1.04); }
.gal-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,19,9,.68), transparent 45%);
  opacity: 0; transition: opacity .35s;
  display: flex; align-items: flex-end; padding: 1.25rem;
}
.gal-item:hover .gal-ov { opacity: 1; }
.gal-cap { font-family: var(--fd); font-style: italic; font-size: .95rem; color: var(--sand); letter-spacing: .03em; }

/* ── TÉMOIGNAGES (statiques — pas de slider) ── */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.testi-card {
  background: rgba(255,255,255,.055); border: 1px solid rgba(242,234,216,.1);
  border-radius: 4px; padding: 1.75rem 1.5rem;
  transition: border-color .3s, transform .3s;
}
.testi-card:hover { border-color: rgba(232,149,107,.35); transform: translateY(-4px); }
.stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.star { width: 13px; height: 13px; background: var(--gold-l); clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.star.e { background: rgba(212,175,90,.25); }
.testi-q {
  font-family: var(--fd); font-style: italic; font-size: 1rem;
  line-height: 1.75; color: rgba(242,234,216,.75);
  margin-bottom: 1.25rem;
}
.testi-auth { font-family: var(--fs); font-size: .76rem; letter-spacing: .04em; color: var(--terra-l); }

/* ── CONTACT SPLIT ── */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.cs-dark {
  background: var(--ink); padding: clamp(3rem,6vw,5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.cs-light {
  background: var(--sand); padding: clamp(3rem,6vw,5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid rgba(242,234,216,.07);
  font-family: var(--fs); font-size: .85rem; gap: 1rem;
}
.hours-day   { color: rgba(242,234,216,.55); }
.hours-time  { font-weight: 500; color: var(--sand); }
.hours-time.today { color: var(--terra-l); font-weight: 600; }
.cs-light .hours-row  { border-color: rgba(196,98,45,.1); }
.cs-light .hours-day  { color: var(--ink-s); }
.cs-light .hours-time { color: var(--ink); }
.cs-light .hours-time.today { color: var(--terra); }
.contact-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem 0; border-bottom: 1px solid rgba(242,234,216,.07);
  font-family: var(--fs); font-size: .85rem; color: rgba(242,234,216,.65);
}
.ci-icon { color: var(--terra-l); flex-shrink: 0; margin-top: 1px; }
.ci-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.contact-ctas { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.btn-terra {
  font-family: var(--fs); font-size: .76rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 1.5rem; background: var(--terra); color: var(--white);
  border: none; border-radius: 2px; cursor: pointer;
  text-align: center; transition: all .25s; display: block;
}
.btn-terra:hover { background: var(--terra-d); transform: translateY(-2px); }
.btn-terra:active { transform: scale(.97); }
.btn-out {
  font-family: var(--fs); font-size: .76rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 1.5rem; background: transparent; color: var(--terra);
  border: 1.5px solid rgba(196,98,45,.4); border-radius: 2px; cursor: pointer;
  text-align: center; transition: all .25s; display: block;
}
.btn-out:hover { border-color: var(--terra); background: rgba(196,98,45,.06); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--ink); padding: clamp(3.5rem,7vw,5.5rem) clamp(1.25rem,5vw,4rem) 2rem; }
.ft-wrap { max-width: 1200px; margin: 0 auto; }
.ft-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(242,234,216,.08);
}
.ft-logo-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.ft-logo-img  { height: 40px; width: auto; display: block; }
.ft-logo { font-family: var(--fd); font-size: 2.4rem; font-weight: 700; color: var(--white); }
.ft-tag  { font-family: var(--fs); font-size: .95rem; color: rgba(242,234,216,.45); line-height: 1.7; max-width: 280px; font-style: italic; }
.ft-head { font-family: var(--fs); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-l); margin-bottom: 1.25rem; }
.ft-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.ft-links a    { font-family: var(--fs); font-size: .84rem; color: rgba(242,234,216,.45); transition: color .25s; }
.ft-links a:hover { color: var(--terra-l); }
.ft-links span { font-family: var(--fs); font-size: .84rem; color: rgba(242,234,216,.28); }
.ft-bottom {
  padding-top: 1.5rem; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
}
.ft-copy { font-family: var(--fs); font-size: .73rem; color: rgba(242,234,216,.25); }
.ft-tel a { font-family: var(--fd); font-size: 1rem; color: var(--terra-l); }

/* ── KEYFRAMES ── */
@keyframes fup    { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes charIn { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes pulse  { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid     { grid-template-columns: 1fr; }
  .card-3d img    { height: 340px; }
  .about-badge    { right: .5rem; bottom: -1rem; }
  .values-item    { flex-direction: column; gap: .5rem; }
  .values-term    { min-width: auto; }
  .gal-grid       { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .gal-item:first-child { grid-row: auto; }
  .testi-grid     { grid-template-columns: 1fr; }
  .contact-split  { grid-template-columns: 1fr; }
  .stats-row      { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .ft-top         { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .burger              { display: flex; }
  .gal-grid            { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); }
  .gal-item:first-child { grid-row: auto; }
  .ft-top              { grid-template-columns: 1fr; }
  .hero-ctas           { flex-direction: column; align-items: center; }
  .cta-p, .cta-g       { width: 220px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .rvl, .rvr      { opacity: 1; transform: none; transition: none; }
  .hero-h1 .char       { animation: none; opacity: 1; transform: none; }
  .hero-par            { will-change: auto; }
  .card-3d:hover       { transform: none; }
  .hero-down-line      { animation: none; opacity: .6; }
}
