/* ============================================================
   Garage Carlotti — Marseille 13005
   Palette : cafe warmth (latte / café / bordeaux / olive)
   ============================================================ */

:root {
  --bg: #f4ead8;
  --bg-deep: #ece0c9;
  --ink: #3a2415;
  --ink-soft: #6a5540;
  --accent: #6b1f1a;
  --secondary: #5a5e3a;
  --paper: #fbf5e9;
  --rule: rgba(58, 36, 21, 0.18);
  --rule-strong: rgba(58, 36, 21, 0.34);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 420ms ease;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 1rem;
  font-weight: 600;
}
.eyebrow-light { color: rgba(251, 245, 233, 0.72); }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 20;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-lede {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0;
}

section {
  padding: clamp(4rem, 10vw, 9rem) var(--pad);
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.75rem var(--pad);
  background: rgba(244, 234, 216, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  animation: slide-down 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
  margin-top: 0.2rem;
}

.nav {
  display: none;
  gap: clamp(1rem, 2vw, 1.9rem);
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }

.call {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  min-height: 44px;
  justify-content: center;
}
.call-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.call-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.call:hover { background: var(--accent); color: var(--paper); }
.call:hover .call-label { color: rgba(251, 245, 233, 0.8); }

@media (min-width: 62rem) {
  .nav { display: flex; }
  .call { margin-left: 0; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero .eyebrow {
  animation: fade-up 700ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.display {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(4rem, 18vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  margin: 0 0 -0.34em;
  color: var(--ink);
  animation: fade-up 900ms 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-sub {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
  animation: fade-up 800ms 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-meta {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--rule-strong);
  padding-top: 1.5rem;
  animation: fade-up 800ms 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (min-width: 48rem) {
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.meta-cell { display: flex; flex-direction: column; gap: 0.35rem; }
.meta-k {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}
.meta-v {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}
a.meta-v { color: var(--accent); }
a.meta-v:hover { text-decoration: underline; }

/* ============================================================
   SIGNATURE — DIAGONAL SPLIT, OPPOSING SCROLL
   ============================================================ */

.split {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  clip-path: polygon(0 0, 100% 4.5vw, 100% 100%, 0 calc(100% - 4.5vw));
  margin-top: -2vw;
}

.split-panel {
  max-width: var(--maxw);
  margin: 0 auto;
  will-change: transform;
}
.split-left  { transform: translate3d(0, var(--up, 0px), 0); }
.split-right { transform: translate3d(0, var(--down, 0px), 0); }

.split-inner { max-width: 34rem; }
.split-left .split-inner { margin-right: auto; }
.split-right .split-inner { margin-left: auto; }

.split-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 300;
}
.split-right .split-num { color: #c9a24a; }

.split h2 {
  color: var(--paper);
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3rem);
  margin-bottom: 0.9rem;
}

.split p { color: rgba(251, 245, 233, 0.82); margin: 0 0 1.25rem; }

.split-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(251, 245, 233, 0.22);
}
.split-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(251, 245, 233, 0.14);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(251, 245, 233, 0.9);
}

.split-rule {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    rgba(251, 245, 233, 0.16) 50%,
    transparent calc(50% + 1px)
  );
}

@media (min-width: 60rem) {
  .split { padding-top: clamp(6rem, 12vw, 11rem); padding-bottom: clamp(6rem, 12vw, 11rem); }
  .split-left .split-inner { padding-right: 4rem; }
  .split-right .split-inner { padding-left: 4rem; }
}

/* ============================================================
   SERVICES — museum wall labels
   ============================================================ */

.services { max-width: var(--maxw); margin: 0 auto; }

.wall {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}
@media (min-width: 52rem) {
  .wall { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
}
@media (min-width: 78rem) {
  .wall { grid-template-columns: repeat(3, 1fr); }
}

.work { display: flex; flex-direction: column; }

.work-img {
  margin: 0 0 1.1rem;
  overflow: hidden;
  background: var(--bg-deep);
}
.work-img img {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work:hover .work-img img { transform: scale(1.025); }

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
}

.label-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.label-meta {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--secondary);
  font-weight: 600;
}
.label-desc {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.label-price {
  display: block;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

/* ============================================================
   ATELIER
   ============================================================ */

.atelier {
  background: var(--secondary);
  color: var(--paper);
}
.atelier-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .atelier-grid { grid-template-columns: 1fr 1fr; }
}

.atelier h2 { color: var(--paper); }
.atelier p { color: rgba(251, 245, 233, 0.86); }
.atelier sup { font-size: 0.6em; }

.facts {
  margin: 2rem 0 0;
  border-top: 1px solid rgba(251, 245, 233, 0.24);
}
.facts > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(251, 245, 233, 0.14);
}
.facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 245, 233, 0.62);
  font-weight: 600;
  padding-top: 0.2rem;
}
.facts dd { margin: 0; font-size: 0.95rem; color: var(--paper); }

.atelier-img { margin: 0; }
.atelier-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.atelier-img .label {
  margin-top: 1rem;
  border-left-color: #c9a24a;
  color: rgba(251, 245, 233, 0.72);
}
.atelier-img .label-title { color: var(--paper); }
.atelier-img .label-meta { color: rgba(251, 245, 233, 0.62); }

/* ============================================================
   AVIS
   ============================================================ */

.avis { max-width: var(--maxw); margin: 0 auto; }

.quotes {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 52rem) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
}

.quote {
  margin: 0;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.45;
  margin: 0 0 1rem;
  color: var(--ink);
}
.quote cite {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}
.quote sup { font-size: 0.65em; }

/* ============================================================
   HORAIRES
   ============================================================ */

.horaires {
  background: var(--accent);
  color: var(--paper);
}
.horaires-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .horaires-grid { grid-template-columns: 1fr 1.2fr; }
}

.horaires h2 { color: var(--paper); }
.horaires-note { color: rgba(251, 245, 233, 0.84); max-width: 30rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(251, 245, 233, 0.24);
}
.hours th {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 245, 233, 0.7);
  width: 8rem;
}
.hours td { color: var(--paper); font-variant-numeric: tabular-nums; }
.hours tr.closed td { color: rgba(251, 245, 233, 0.55); }

/* ============================================================
   ACCÈS / CONTACT
   ============================================================ */

.acces { max-width: var(--maxw); margin: 0 auto; }

.contact-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.contact-k {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}
.contact-v {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}
.contact-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.contact-phone {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  min-height: 44px;
}
.contact-phone .contact-k { color: rgba(251, 245, 233, 0.75); }
.contact-phone .contact-hint { color: rgba(251, 245, 233, 0.8); }
.contact-phone:hover { background: var(--ink); border-color: var(--ink); }

.acces-note {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
  max-width: 46rem;
  color: var(--ink-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  background: var(--ink);
  color: rgba(251, 245, 233, 0.8);
  padding: clamp(3rem, 7vw, 5rem) var(--pad) 2.5rem;
}
.foot-inner { max-width: var(--maxw); margin: 0 auto; }

.foot-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 0.75rem;
}
.foot-line { margin: 0 0 0.4rem; font-size: 0.9rem; }
.foot-line a { color: #e8c98a; }

.foot-claim { margin: 2rem 0 1.25rem; }

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(251, 245, 233, 0.72);
  background: rgba(251, 245, 233, 0.08);
  border: 1px solid rgba(251, 245, 233, 0.18);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  text-decoration: none;
}
.claim-banner:hover {
  color: var(--paper);
  background: rgba(251, 245, 233, 0.14);
}

.muted { font-size: 0.78rem; margin: 0; }
.muted a { color: rgba(251, 245, 233, 0.6); }

/* ============================================================
   MOTION — one-shot page-load orchestration
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 1.1rem, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes slide-down {
  from { opacity: 0; transform: translate3d(0, -100%, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .split-left, .split-right { transform: none !important; }
  body { transition: none; }
}
