/* =========================================================
   Originart - feuille de style
   Atelier Cathy & Luc Tschupp, Vérossaz (VS)
   Style: naturel et chaleureux, bois et lumière d'atelier
   ========================================================= */

:root {
  /* Palette */
  --bg:        #f5efe5; /* parchemin */
  --bg-alt:    #ece2d2; /* parchemin plus profond */
  --cream:     #fcf9f3; /* cartes, surfaces claires */
  --ink:       #2a2420; /* brun presque noir, texte */
  --ink-soft:  #5b5046; /* texte secondaire */
  --bronze:    #a3702f; /* accent bois / or brûlé */
  --bronze-dk: #7c521f; /* accent foncé (hover) */
  --night:     #211b16; /* bandeaux sombres */
  --line:      rgba(42, 36, 32, 0.14);
  --line-soft: rgba(42, 36, 32, 0.08);
  --shadow:    0 18px 40px -22px rgba(42, 28, 16, 0.45);
  --shadow-sm: 0 8px 20px -14px rgba(42, 28, 16, 0.4);

  /* Typo */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Mulish", "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mesures */
  --wrap: 1180px;
  --radius: 4px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* ----------------------------- Reset --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* Petites majuscules d'accent */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--bronze);
  margin: 0 0 1rem;
  display: inline-block;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); }

/* ----------------------------- Boutons ------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.7em;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 1.5px solid var(--bronze);
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--bronze); color: #fff; }
.btn-primary:hover { background: var(--bronze-dk); border-color: var(--bronze-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--bronze-dk); }
.btn-ghost:hover { background: var(--bronze); color: #fff; transform: translateY(-2px); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ----------------------------- Header -------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 239, 229, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .name { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: 1px; color: var(--ink); }
.brand .tag  { font-size: .62rem; text-transform: uppercase; letter-spacing: .34em; color: var(--bronze); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500;
  color: var(--ink-soft); padding: .4em 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--bronze); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
    transform: translateY(-130%); transition: transform .35s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: .95rem; font-size: .9rem; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ----------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--night);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,15,11,.82) 0%, rgba(20,15,11,.45) 55%, rgba(20,15,11,.2) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; padding-block: 5rem; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .eyebrow { color: #e7bd86; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ----------------------------- Sections ------------------------ */
section { position: relative; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.bg-alt { background: var(--bg-alt); }
.bg-cream { background: var(--cream); }
.bg-night { background: var(--night); color: #fff; }
.bg-night h1, .bg-night h2, .bg-night h3 { color: #fff; }
.bg-night p { color: rgba(255,255,255,.82); }

.divider { width: 56px; height: 2px; background: var(--bronze); border: 0; margin: 1.4rem 0; }
.center .divider { margin-inline: auto; }

/* ----------------------------- Deux univers -------------------- */
.universe { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 760px) { .universe { grid-template-columns: 1fr; } }
.uni-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 460px; display: flex; align-items: flex-end;
  color: #fff; box-shadow: var(--shadow);
}
.uni-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.uni-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,15,11,.88), rgba(20,15,11,.05) 70%); }
.uni-card:hover img { transform: scale(1.06); }
.uni-body { position: relative; z-index: 2; padding: 2rem; }
.uni-body h3 { color: #fff; font-size: 2rem; margin-bottom: .2em; }
.uni-body .who { color: #e7bd86; text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 600; }
.uni-body p { color: rgba(255,255,255,.85); margin: .5em 0 1em; }

/* ----------------------------- Split (image + texte) ----------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--bg-alt); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.wide { aspect-ratio: 3/2; }

/* ----------------------------- Galerie + lightbox -------------- */
.gallery {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.gallery.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt); aspect-ratio: 1/1; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.tile.portrait { aspect-ratio: 3/4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.07); }
.tile .cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 1.4rem .9rem .8rem; color: #fff; font-size: .85rem;
  background: linear-gradient(to top, rgba(20,15,11,.85), transparent);
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.tile:hover .cap { opacity: 1; transform: translateY(0); }

/* Mosaïque (formats variés : tableaux, poivriers) */
.masonry { column-count: 4; column-gap: 1.1rem; }
@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 720px)  { .masonry { column-count: 2; } }
.masonry .tile { aspect-ratio: auto; width: 100%; margin: 0 0 1.1rem; break-inside: avoid; }
.masonry .tile img { width: 100%; height: auto; }

.gallery-group { margin-top: 2.5rem; }
.gallery-group > h3 { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.1rem; }
.gallery-group > h3 small { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--bronze); font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(18, 13, 9, .94);
  display: none; align-items: center; justify-content: center;
  padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius); box-shadow: 0 30px 80px -30px #000; }
.lightbox .lb-cap { position: absolute; bottom: 4vmin; left: 0; right: 0; text-align: center; color: #f0e6d8; font-family: var(--serif); font-size: 1.15rem; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1;
  width: 56px; height: 56px; opacity: .8; transition: .2s;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 2vmin; right: 2vmin; }
.lb-prev { left: 1vmin; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1vmin; top: 50%; transform: translateY(-50%); }

/* ----------------------------- Bandeau CTA --------------------- */
.cta-band { text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta-band .wrap { max-width: 720px; }
.cta-band .btn { margin-top: 1.4rem; }

/* ----------------------------- Citations / presse ------------- */
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.35; color: var(--ink); font-style: italic; }
.quote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin-top: 1.2rem; }
.bg-night .quote { color: #fff; }

.press-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.press-card {
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: .6rem;
}
.press-card:hover { transform: translateY(-4px); }
.press-card .src { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--bronze); font-weight: 600; }
.press-card h3 { font-size: 1.3rem; }
.press-card .date { font-size: .82rem; color: var(--ink-soft); }
.press-card .more { margin-top: auto; font-weight: 600; color: var(--bronze-dk); font-size: .88rem; }

/* Vidéos */
.video-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: var(--shadow-sm); }
.video-embed { position: relative; aspect-ratio: 16/9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card p { padding: .9rem 1.1rem; color: #f0e6d8; margin: 0; font-size: .9rem; }

/* ----------------------------- Infos pratiques ----------------- */
.facts { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fact { background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem; }
.fact h3 { font-size: 1.2rem; margin-bottom: .3em; }
.fact p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.fact .big { font-family: var(--serif); font-size: 1.5rem; color: var(--bronze-dk); }

/* Chiffres clés */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--bronze); line-height: 1; }
.stat .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin-top: .4rem; }

/* Liste essences */
.woods { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.woods span { border: 1px solid var(--line); border-radius: 999px; padding: .35em 1em; font-size: .85rem; color: var(--ink-soft); background: var(--cream); }

/* Steps (commandes) */
.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.8rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.6rem; color: var(--bronze); display: block; margin-bottom: .5rem;
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ----------------------------- Plan d'accès -------------------- */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.plans { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; margin-top: 1.2rem; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plans img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); width: 100%; }

/* ----------------------------- Breadcrumb ---------------------- */
.crumb { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); padding-top: 1.4rem; }
.crumb a { color: var(--bronze-dk); }

/* ----------------------------- Page header (intérieur) --------- */
.page-hero {
  position: relative; color: #fff; background: var(--night); overflow: hidden;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.page-hero .hero-bg img { opacity: .42; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,15,11,.85), rgba(20,15,11,.4)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 14em; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 36em; }

/* ----------------------------- Footer -------------------------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.78); padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #e7bd86; }
.site-footer .brand .name { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

/* ----------------------------- Scroll reveal ------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------- Bandeau marché (annonce) -------- */
.topbar {
  background: var(--bronze); color: #fff;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; text-align: center;
  padding: .55rem 1rem; line-height: 1.4;
}
.topbar a { text-decoration: underline; text-underline-offset: 2px; }
.topbar strong { font-weight: 700; }

/* ----------------------------- Lecteur vidéo (façade) ---------- */
.yt { cursor: pointer; }
.yt .yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt .yt-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(163, 112, 47, .92); box-shadow: 0 8px 24px -8px rgba(0,0,0,.6);
  transition: transform .25s ease, background .25s ease;
}
.yt .yt-play-btn::after {
  content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  width: 0; height: 0; border-style: solid;
  border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff;
}
.yt:hover .yt-play-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--bronze-dk); }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(20,15,11,.18); transition: background .25s ease; }
.yt:hover::after { background: rgba(20,15,11,.05); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* Liens utiles */
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.linklist li { border-bottom: 1px solid var(--line-soft); padding-bottom: 1rem; }
.linklist a { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.linklist a:hover { color: var(--bronze-dk); }
.linklist span { display: block; font-size: .9rem; color: var(--ink-soft); font-family: var(--sans); }
