/* ==========================================================
   Maison Sushaban — feuille de style
   Couleurs reprises de l'ébauche d'origine.
   ========================================================== */

@font-face {
  font-family: "URW Gothic";
  src: url("fonts/urw-gothic-book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Palette de l'ébauche */
  --paper: #fcf6f7;
  --ink: #38262b;
  --muted: #5e464e;
  --wine: #563641;
  --wine-deep: #452a34;
  --rose: #e6d0d8;
  --rose-pale: #f1e3e7;
  --lin: #f5efeb;
  --line: #c7aeb7;
  --line-soft: #dcc8cf;

  --sans: "URW Gothic", "Century Gothic", "Avant Garde", "Futura", sans-serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 9vw, 128px);
  --measure: 34rem;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.68;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--wine); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--rose); color: var(--ink); }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.018em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -.014em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.45rem); line-height: 1.25; letter-spacing: .005em; }

.shell { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 50;
  background: var(--paper); padding: .6rem 1rem; font-family: var(--sans); font-size: .9rem;
}
.skip:focus { top: 1rem; }

/* ---------- Marque ---------- */
.brand {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--ink); line-height: 1; gap: 7px;
  font-family: var(--sans);
}
.brand strong { font-weight: 400; font-size: 1.06rem; letter-spacing: .32em; margin-right: -.32em; }
.brand span { font-size: .68rem; letter-spacing: .58em; margin-right: -.58em; color: var(--muted); }
.brand:hover { color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 246, 247, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.main-nav ul { display: flex; gap: clamp(18px, 2.6vw, 38px); list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.button) {
  font-family: var(--sans); font-size: .9375rem; text-decoration: none; color: var(--ink);
  padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s ease;
}
.main-nav a:not(.button):hover,
.main-nav a[aria-current="page"] { background-size: 100% 1px; color: var(--wine); }
.menu-toggle { display: none; }

/* ---------- Boutons et liens ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .7em 1.65em;
  border: 1px solid var(--wine); border-radius: 999px;
  background: var(--wine); color: var(--paper);
  font-family: var(--sans); font-size: .9375rem; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--paper); }
.button.ghost { background: transparent; color: var(--wine); }
.button.ghost:hover { background: var(--wine); color: var(--paper); }
.button.small { min-height: 42px; padding: .55em 1.25em; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 2rem; }
.link {
  font-family: var(--sans); font-size: .9375rem; color: var(--wine);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .4em;
}
.link:hover { text-decoration-color: var(--wine); }

/* ---------- Accueil ---------- */
.hero { background: var(--rose); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
  min-height: min(760px, calc(100svh - var(--header-h)));
  padding-block: clamp(48px, 7vw, 96px);
}
.hero-copy { max-width: 36rem; }
.hero-copy .lede { margin-top: 1.6rem; font-size: clamp(1.2rem, 1.7vw, 1.38rem); line-height: 1.55; color: var(--muted); max-width: 30rem; }
.hero-place {
  display: flex; align-items: center; gap: 12px; margin: 2.4rem 0 0;
  font-family: var(--sans); font-size: .875rem; color: var(--muted); letter-spacing: .01em;
}
.nowrap { white-space: nowrap; }
.hero-place::before { content: ""; width: 34px; height: 1px; background: var(--wine); flex: none; }
.hero-art { position: relative; justify-self: end; width: 100%; }
.mandala {
  width: min(600px, 112%); height: auto; margin-right: -8%; margin-left: auto;
  color: var(--wine); overflow: visible;
}

/* Mandala : le tracé qui se dessine à l'ouverture */
.mandala .m-g { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; }
.mandala .m-fine { stroke-width: .65; }
.mandala .m-g > * {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: trace 1.5s cubic-bezier(.55, .08, .25, 1) forwards;
  animation-delay: calc(var(--d) + var(--i) * var(--step));
}
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.univers-atelier { background: var(--rose-pale); }
.univers-lieux { background: var(--lin); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 96px); align-items: start;
}
.kicker { font-family: var(--sans); font-size: .9375rem; color: var(--wine); margin: 1.1rem 0 0; }
.intro-quote {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.38; font-style: italic;
  color: var(--ink); margin: 0 0 1.4rem; max-width: 30rem;
}
.body-copy { max-width: var(--measure); color: var(--muted); }
.body-copy p:last-child { margin-bottom: 0; }
.materials { margin-top: 1.4rem; font-family: var(--sans); font-size: .9375rem; color: var(--wine); }

/* ---------- Grilles tarifaires ---------- */
.tarifs { margin-top: clamp(56px, 8vw, 104px); }
.tarifs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 1.6rem; }
.tarifs-head p { margin: 0; color: var(--muted); }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: 12px clamp(20px, 4vw, 56px); align-items: baseline;
  padding-block: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line);
}
.price-row h4 {
  margin: 0; font-family: var(--sans); font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -.005em; line-height: 1.15;
}
.price-row .what { margin: 0; color: var(--muted); max-width: 32rem; }
.price-row .what strong { display: block; font-weight: 400; color: var(--ink); margin-bottom: .2rem; }
.price {
  margin: 0; text-align: right; white-space: nowrap;
  font-family: var(--sans); color: var(--wine); line-height: 1;
  font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.02em;
}
.price small {
  display: block; margin-top: .55rem;
  font-size: .8125rem; letter-spacing: .01em; color: var(--muted);
}
.price-note { margin: 1.4rem 0 0; color: var(--muted); max-width: 44rem; font-size: 1.0625rem; }

/* ---------- Événements ---------- */
.occasions {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 96px); align-items: start;
}
.occasions-list {
  margin: 1.1rem 0 0; font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--wine);
}

/* ---------- Portrait ---------- */
.portrait-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 7vw, 110px); align-items: center;
}
.arch { position: relative; max-width: 440px; width: calc(100% - 14px); justify-self: center; margin: 14px 14px 0 0; }
.arch::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border: 1px solid var(--line); border-radius: 999px 999px 0 0; pointer-events: none;
}
.arch img {
  position: relative; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 0 0; background: var(--rose-pale);
}
.portrait-copy .body-copy { margin-top: 1.4rem; }
.signature { font-style: italic; font-size: 1.35rem; color: var(--wine); margin: 1.6rem 0 0; }

/* ---------- Contact ---------- */
.contact { background: var(--rose); }
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.contact .body-copy { margin-top: 1.4rem; }
.phone-line { margin-top: 2rem; font-family: var(--sans); font-size: .9375rem; color: var(--muted); }
.phone-line a { display: inline-block; margin-top: .3rem; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.phone-line a:hover { color: var(--wine); }
.email-line { margin-top: 1.2rem; }
.email-line a { font-size: clamp(1.15rem, 2vw, 1.5rem); overflow-wrap: anywhere; letter-spacing: .01em; }

.request {
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: clamp(24px, 4vw, 44px); border-radius: 4px;
}
.request h3 { margin-bottom: .4rem; }
.request > p { color: var(--muted); font-size: 1.0625rem; }
.field { margin-top: 1.35rem; }
.field label, .field legend {
  display: block; font-family: var(--sans); font-size: .875rem; color: var(--ink); margin-bottom: .45rem; padding: 0;
}
.field .opt { color: var(--muted); }
.field input[type="text"], .field input[type="number"], .field textarea {
  width: 100%; font: inherit; font-size: 1.125rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .35rem 0 .45rem; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--wine); box-shadow: 0 1px 0 var(--wine); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
fieldset.field { border: 0; margin-inline: 0; padding: 0; min-width: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  margin: 0; cursor: pointer; padding: .6em 1.2em; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--sans); font-size: .9rem; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s;
}
.choice input:checked + label { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.choice input:focus-visible + label { outline: 2px solid var(--wine); outline-offset: 3px; }
.send-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.8rem; }
.send-row .button { width: 100%; padding-inline: 1em; }
.form-help { margin: .9rem 0 0; font-size: .95rem; color: var(--muted); }
.form-error { margin: .8rem 0 0; font-family: var(--sans); font-size: .875rem; color: #8a2f45; }
[hidden] { display: none !important; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line-soft); padding-block: clamp(40px, 6vw, 64px) 32px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.mandala-small { width: 52px; height: 52px; color: var(--wine); }
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-info { margin: 0; font-family: var(--sans); font-size: .875rem; color: var(--muted); line-height: 1.7; }
.footer-info a { text-decoration: none; }
.footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .875rem; }
.footer-links a { color: var(--muted); }
.copyright { margin: 32px 0 0; font-family: var(--sans); font-size: .75rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--rose-pale); padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.about { padding-block: var(--section); }
.about-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.about-copy p { color: var(--muted); max-width: var(--measure); }
.about-copy p:first-child { font-size: clamp(1.35rem, 2.1vw, 1.6rem); line-height: 1.45; color: var(--ink); }
.about-copy a:not(.button) { color: var(--wine); }
.about .arch { position: sticky; top: calc(var(--header-h) + 40px); }

.legal { padding-block: clamp(48px, 7vw, 88px) var(--section); }
.legal-inner { max-width: 44rem; }
.legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin: 2.6rem 0 .8rem; letter-spacing: 0; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.todo { background: #fbe6a9; color: var(--ink); padding: 0 .25em; border-radius: 2px; }

/* ---------- Mobile et tablette ---------- */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.05em;
    font-family: var(--sans); font-size: .875rem; color: var(--ink); cursor: pointer;
  }
  .menu-toggle .bars { width: 16px; height: 9px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .25s ease, top .25s ease;
  }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

  .js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line-soft);
    padding: 8px var(--gutter) 28px;
  }
  .js .main-nav:not(.open) { display: none; }
  .js .main-nav ul { flex-direction: column; gap: 0; }
  .js .main-nav li a:not(.button) {
    display: block; padding: 16px 0; font-size: 1.35rem; border-bottom: 1px solid var(--line-soft); background: none;
  }
  .js .main-nav .button { margin-top: 22px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .main-nav { width: 100%; flex-wrap: wrap; }
  html:not(.js) .menu-toggle { display: none; }

  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 28px 64px; gap: 8px; }
  .hero-art { order: -1; justify-self: center; width: min(62vw, 360px); margin-bottom: 12px; }
  .mandala { width: 100%; margin: 0 auto; }
  .section-head, .occasions, .portrait-inner, .contact-inner, .about-inner { grid-template-columns: 1fr; }
  .arch { max-width: 360px; }
  .about .arch { position: relative; top: auto; order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 1.125rem; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-row .what { grid-column: 1 / -1; grid-row: 2; }
  .price-row h4 { align-self: center; }
  .field-row { grid-template-columns: 1fr; }
  .send-row { grid-template-columns: 1fr; }
  .choice label { padding: .55em 1em; font-size: .875rem; }
  .choice { gap: 8px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mandala .m-g > * { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}
