/* Évent Pack Déco · maquette NR Web
   Crème, vert sapin et or de son catalogue 2026. */

:root {
  --canvas: #F6F3ED;
  --surface: #FFFFFF;
  --ink: #1D2420;
  --muted: #6B6760;
  --line: #E4DED3;
  --sapin: #173A2E;
  --sapin-2: #24503F;
  --or: #A8854F;
  --or-texte: #85662F;
  --hole-bg: #FBF3DB;
  --hole-ink: #8A5D00;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 69px;
  --field-line: #8F8678;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 4px; z-index: 50; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--sapin); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.meta {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Trou visible : information à demander à la cliente */
.hole {
  display: inline-block;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hole-ink);
  background: var(--hole-bg);
  border: 1px dashed #E3C77A;
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: middle;
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--sapin); color: #fff;
  border: 1px solid var(--sapin); border-radius: 6px;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--sapin); border-color: var(--line); }
.btn--full { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--sapin-2); }
  .btn--ghost:hover { background: var(--surface); }
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 243, 237, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { max-width: 1160px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 32px; }
.logo { text-decoration: none; display: grid; line-height: 1.1; }
.logo__name { font: 500 21px/1.1 var(--serif); letter-spacing: -0.01em; color: var(--sapin); }
.logo__sub { font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--or-texte); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 15px; text-decoration: none; color: var(--muted); transition: color 200ms ease; }
.nav__links a:hover { color: var(--ink); }
.nav__devis {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 8px 0 14px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  font-size: 15px; text-decoration: none; white-space: nowrap;
}
.count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 4px;
  display: inline-grid; place-items: center;
  background: var(--canvas); font: 500 12px/1 var(--mono); color: var(--muted);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out);
}
.count.has { background: var(--sapin); color: #fff; }
.count.bump { transform: scale(1.18); }

/* Accueil */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 9vw, 112px); }
.hero .wrap { max-width: 980px; text-align: center; }
.hero__title {
  margin-top: 22px;
  font: 400 clamp(40px, 7.4vw, 92px)/1.02 var(--serif);
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero__title em { font-style: italic; color: var(--sapin); }
.br-m { display: none; }
@media (max-width: 560px) { .br-m { display: inline; } }
.hero__lead { max-width: 560px; margin: 28px auto 0; font-size: 19px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero__photo { max-width: 1160px; margin: clamp(48px, 7vw, 88px) auto 0; padding: 0 var(--gutter); }
.hero__photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 78%; border-radius: 12px; }
.hero__photo figcaption { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-top: 14px; font-size: 15px; color: var(--muted); }

/* En-têtes de sections */
section, .panel { scroll-margin-top: calc(var(--nav-h) + 72px); }
section { scroll-margin-top: var(--nav-h); }
.sec-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2, .about h2, .devis h2 {
  margin-top: 14px;
  font: 400 clamp(34px, 4.6vw, 56px)/1.06 var(--serif);
  letter-spacing: -0.03em;
}
.sec-head > p:last-child:not(.meta) { margin-top: 18px; color: var(--muted); max-width: 520px; }

/* Ambiances */
.amb { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.tabs {
  position: sticky; top: var(--nav-h); z-index: 5;
  display: flex; gap: 6px; padding: 6px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 32px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 40px; padding: 0 14px;
  background: transparent; border: 0; border-radius: 6px; cursor: pointer;
  font-size: 15px; color: var(--muted); text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab.is-on { background: var(--canvas); color: var(--ink); }
.sw { width: 18px; height: 18px; border-radius: 50%; flex: none; background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }

.amb__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.amb__stage { position: sticky; top: 140px; }
.frame { position: relative; aspect-ratio: 4 / 3.4; border-radius: 12px; overflow: hidden; background: var(--line); }
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 700ms var(--ease-soft), transform 900ms var(--ease-soft);
}
.frame img.is-on { opacity: 1; transform: scale(1); }
.stage__num { margin-top: 12px; }

.panel { min-height: 82vh; padding: 8px 0 72px; display: flex; flex-direction: column; justify-content: center; }
.panel + .panel { border-top: 1px solid var(--line); padding-top: 72px; }
.panel__img { display: none; }
.panel h3:focus { outline: none; }
.panel h3 { margin-top: 10px; font: 400 clamp(32px, 3.6vw, 44px)/1.08 var(--serif); letter-spacing: -0.025em; }
.panel__lead { margin-top: 14px; color: var(--muted); max-width: 440px; }
.panel h4 { margin-top: 30px; }
.incl { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.incl li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.incl li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 10px; height: 6px; border-left: 1.5px solid var(--sapin); border-bottom: 1.5px solid var(--sapin);
  transform: rotate(-45deg);
}
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.minis img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 22px; font-size: 15px; color: var(--muted); }
.price__unit { font-size: 14px; }
.panel .btn { align-self: flex-start; }

/* Étapes */
.steps { padding: clamp(72px, 10vw, 128px) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps__list li { padding: 28px 28px 8px 0; }
.steps__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps__n { font: 400 44px/1 var(--serif); color: var(--or); }
.steps__list h3 { margin-top: 18px; font: 500 19px/1.3 var(--sans); }
.steps__list p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Options */
.opts { padding: clamp(72px, 10vw, 128px) 0; }
.opts__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.group__title { font: 400 26px/1.1 var(--serif); letter-spacing: -0.02em; padding-bottom: 14px; }
.opt-list { list-style: none; margin: 0; padding: 0; }
.opt {
  width: 100%; display: grid; grid-template-columns: 64px 1fr 28px; align-items: center; gap: 14px;
  padding: 10px 0; background: none; border: 0; border-top: 1px solid var(--line);
  text-align: left; cursor: pointer; font-size: 15.5px;
}
.opt img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--canvas); }
.opt i {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); position: relative;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.opt i::before, .opt i::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink);
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}
.opt i::before { width: 11px; height: 1.5px; transform: translate(-50%, -50%); }
.opt i::after { width: 1.5px; height: 11px; transform: translate(-50%, -50%); }
.opt:active i { transform: scale(0.92); }
.opt[aria-pressed="true"] i { background: var(--sapin); border-color: var(--sapin); }
.opt[aria-pressed="true"] i::before { background: #fff; width: 6px; transform: translate(-115%, 10%) rotate(45deg); }
.opt[aria-pressed="true"] i::after { background: #fff; height: 11px; transform: translate(60%, -55%) rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .opt:hover i { border-color: var(--ink); }
}

/* Émilie */
.about { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.slot {
  aspect-ratio: 4 / 5; border: 1px dashed #D8CDB8; border-radius: 12px;
  display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(168,133,79,0.05) 14px 15px);
  color: var(--muted); font-size: 15px;
}
.about__text p:not(.meta) { margin-top: 18px; color: #3A403C; max-width: 520px; }
.about__text h2 + p { margin-top: 24px; }
blockquote { margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
blockquote p { font: italic 400 30px/1.2 var(--serif); color: var(--sapin); margin: 0 !important; }
cite { display: block; margin-top: 10px; font: 400 13px/1.4 var(--mono); color: var(--muted); font-style: normal; }
cite span { font-style: italic; }

/* Questions */
.faq { padding: clamp(72px, 10vw, 128px) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 400 21px/1.3 var(--serif); letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink);
  transition: transform 220ms var(--ease-out);
}
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 620px; }

/* Devis */
.devis { padding: clamp(72px, 10vw, 128px) 0 clamp(80px, 10vw, 136px); }
.devis__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.devis__intro > p:not(.meta) { margin-top: 18px; color: var(--muted); }
.contact { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact a { text-decoration: none; font-size: 17px; }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3.4vw, 36px); display: grid; gap: 18px; }
.form__amb { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__amb legend { width: 100%; margin-bottom: 10px; }
.form__amb label { position: relative; }
.form__amb input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form__amb span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 15px;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.form__amb input:checked + span { background: var(--sapin); border-color: var(--sapin); color: #fff; }
.form__amb input:focus-visible + span { outline: 2px solid var(--sapin); outline-offset: 2px; }
.form__opts { padding: 14px 16px; background: var(--canvas); border-radius: 8px; }
.form__opts ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.form__opts li:not(.empty) {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 14px;
  animation: chip-in 240ms var(--ease-out);
}
.form__opts li button { width: 22px; height: 22px; border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 4px; font-size: 16px; line-height: 1; }
.form__opts li button:hover { background: var(--canvas); color: var(--ink); }
.form__opts .empty { font-size: 14px; color: var(--muted); }
@keyframes chip-in { from { opacity: 0; transform: translateY(4px); } }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row--3 { grid-template-columns: 1.1fr 1fr 0.7fr; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--field-line); border-radius: 6px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sapin); box-shadow: 0 0 0 3px rgba(23, 58, 46, 0.12); }
.field input[aria-invalid="true"] { border-color: #B4473F; }
.form__err { color: #9F2F2D; font-size: 14px; }
.fallback { display: grid; gap: 10px; padding: 16px; background: var(--hole-bg); border-radius: 8px; font-size: 15px; }
.fallback textarea { width: 100%; font: 400 14px/1.5 var(--mono); padding: 10px; border: 1px solid var(--field-line); border-radius: 6px; background: #fff; color: var(--ink); resize: vertical; }
.fallback .btn { justify-self: start; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

/* Pied de page */
.foot { background: var(--sapin); color: #E9E4D8; padding: 56px 0 40px; }
.foot .logo__name { color: #fff; }
.foot__in { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.foot__slogan { margin-top: 8px; font: italic 400 19px/1.3 var(--serif); color: #D7BE8C; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; justify-self: end; overflow-wrap: anywhere; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .hole { background: rgba(251, 243, 219, 0.14); color: #F0D99A; border-color: rgba(240, 217, 154, 0.4); }
.foot__nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.foot__small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font: 400 12px/1.5 var(--mono); color: rgba(233, 228, 216, 0.6); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-soft), transform 600ms var(--ease-soft); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablette et téléphone */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__devis { margin-left: auto; }
  .amb__grid { grid-template-columns: 1fr; }
  .amb__stage { display: none; }
  .panel { min-height: 0; padding: 0 0 56px; }
  .panel + .panel { padding-top: 48px; }
  .panel__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 22px; }
  .steps__list { grid-template-columns: 1fr; }
  .steps__list li, .steps__list li + li { padding: 24px 0; border-left: 0; }
  .steps__list li + li { border-top: 1px solid var(--line); }
  .opts__groups { grid-template-columns: 1fr; }
  .about__grid, .devis__grid { grid-template-columns: 1fr; }
  .slot { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo__sub { display: none; }
  .hero .wrap { text-align: left; }
  .hero__lead { margin-left: 0; font-size: 17px; }
  .hero__cta { justify-content: flex-start; }
  .hero__photo img { aspect-ratio: 4 / 3; }
  .tab__x { display: none; }
  .tab { padding: 0 12px; }
  .row, .row--3 { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .foot ul { justify-self: start; }
  .group { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 300ms ease; }
  .frame img { transform: none; transition: opacity 300ms ease; }
  .btn:active, .tab:active, .opt:active i { transform: none; }
  .count, .count.bump { transform: none; transition: background-color 200ms ease, color 200ms ease; }
  .form__opts li:not(.empty) { animation: none; }
  .opt i::before, .opt i::after, summary::before, summary::after { transition: none; }
}
