/* Seaton Sand's — 3 couleurs : noir atelier, crème papier, orange logo */
:root {
  --ink: #0f0e0c;
  --paper: #f4eee4;
  --orange: #f2963a;

  --ink-2: #1a1916;          /* nuances du noir, pas de nouvelle couleur */
  --line: rgba(244, 238, 228, 0.14);
  --line-ink: rgba(15, 14, 12, 0.16);
  --muted: rgba(244, 238, 228, 0.62);
  --muted-ink: rgba(15, 14, 12, 0.62);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Barlow', system-ui, sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--ink); }

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

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--orange); }
.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; }
.on-paper .lede, .on-paper .muted { color: var(--muted-ink); }
.muted { color: var(--muted); }
.num { font-family: var(--cond); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--orange); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-family: var(--cond); font-weight: 500; font-size: 15px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  position: relative; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--orange); transition: right .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .nav-staff { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--paper); padding: 8px 12px; font: 600 13px var(--cond); letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 20px; padding: 24px var(--gutter) 32px; background: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border: 0; cursor: pointer;
  font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); box-shadow: none; }
.on-paper .btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--orange); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 11vw, 160px) 0; }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper .eyebrow { color: var(--ink); opacity: .7; }
.on-paper h2 em { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Révélation douce au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 120px) 0 clamp(64px, 9vw, 140px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 80px); }
.hero h1 .line { display: block; }
.hero h1 .indent { padding-left: 1.1em; }
.hero .lede { margin-top: 28px; }
.hero-side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Logo déplaçable à la souris */
.hero-logo {
  width: 100%; max-width: min(620px, 72vh); height: auto; aspect-ratio: 1; position: relative; z-index: 40;
  user-select: none; -webkit-user-drag: none; touch-action: auto;
  transition: transform .6s var(--ease), filter .3s;
}
.hero-logo.dragging { transition: transform .06s linear; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.drag-hint { display: none; font-family: var(--cond); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .hero-logo { cursor: grab; }
  .hero-logo.dragging { cursor: grabbing; }
  .drag-hint { display: block; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-meta { display: flex; gap: 40px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; color: var(--paper); font-weight: 400; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { order: -1; }
  .hero-logo { max-width: 420px; }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .hero h1 .indent { padding-left: 0.5em; }
}

/* ---------- Bandeau défilant ---------- */
.ticker { background: var(--orange); color: var(--ink); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker-track { display: inline-flex; gap: 48px; animation: ticker 38s linear infinite; padding-left: 48px; }
.ticker span { font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.ticker span::after { content: '✦'; margin-left: 48px; font-size: 13px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Atelier (manifeste) ---------- */
.split { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 120px); }
.split h2 { font-size: clamp(40px, 5.4vw, 80px); }
.manifesto p { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; margin: 0 0 1.2em; max-width: 34ch; font-family: var(--serif); }
.manifesto p:first-child::first-letter { font-size: 3.4em; float: left; line-height: .9; padding: 6px 12px 0 0; color: var(--orange); font-style: italic; }
.on-paper .manifesto p:first-child::first-letter { color: var(--ink); }
.signature { font-family: var(--cond); text-transform: uppercase; letter-spacing: .18em; font-size: 14px; margin-top: 40px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Liste des prestations ---------- */
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; }
.services-head h2 { font-size: clamp(40px, 5.4vw, 80px); max-width: 12ch; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 80px 1.2fr 2fr auto; gap: 32px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .4s var(--ease), background .4s;
}
.service-row:hover { padding-left: 16px; padding-right: 16px; background: var(--ink-2); }
.service-row .idx { font-family: var(--cond); color: var(--orange); font-size: 15px; letter-spacing: .1em; }
.service-row h3 { font-size: clamp(26px, 2.6vw, 38px); }
.service-row p { margin: 0; color: var(--muted); max-width: 44ch; }
.service-row .price { font-family: var(--cond); font-size: 20px; white-space: nowrap; text-align: right; }
.service-row .price small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) {
  .service-row { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .service-row p, .service-row .price { grid-column: 2; text-align: left; }
}

/* ---------- Carte de fidélité (objet) ---------- */
.loyal-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.loyal-grid h2 { font-size: clamp(40px, 5.4vw, 80px); margin: 20px 0 28px; }
.steps { list-style: none; padding: 0; margin: 40px 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-top: 1px solid var(--line-ink); }
.steps li::before { content: '0' counter(step); font-family: var(--cond); font-weight: 600; color: var(--ink); opacity: .5; }
.steps strong { font-weight: 600; }
@media (max-width: 900px) { .loyal-grid { grid-template-columns: 1fr; } }

.loyalty-card {
  position: relative; background: var(--ink); color: var(--paper);
  border-radius: 18px; padding: clamp(22px, 3vw, 36px); aspect-ratio: 1.586;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(244, 238, 228, .08);
  overflow: hidden; transform: rotate(2deg); transition: transform .6s var(--ease);
}
.loyalty-card:hover { transform: rotate(0deg) translateY(-6px); }
.loyalty-card.flat { transform: none; }
.loyalty-card::before {
  content: ''; position: absolute; right: -18%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(242, 150, 58, .35); box-shadow: 0 0 0 28px rgba(242, 150, 58, .04), 0 0 0 56px rgba(242, 150, 58, .03);
}
.lc-top { display: flex; justify-content: space-between; align-items: start; position: relative; }
.lc-brand { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); color: var(--orange); line-height: 1; }
.lc-brand small { display: block; font-family: var(--cond); font-style: normal; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.lc-number { font-family: var(--cond); letter-spacing: .18em; font-size: 14px; color: var(--muted); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.4vw, 14px); position: relative; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(244, 238, 228, .3);
  display: grid; place-items: center; font-family: var(--cond); font-size: 13px; color: var(--muted);
}
.stamp.on { border: 0; background: var(--orange); color: var(--ink); animation: stampIn .5s var(--ease) both; }
.stamp.on svg { width: 55%; height: 55%; }
.stamp.goal { border-color: var(--orange); color: var(--orange); font-size: 18px; }
@keyframes stampIn { from { transform: scale(1.6) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lc-bottom { display: flex; justify-content: space-between; align-items: end; gap: 16px; position: relative; }
.lc-holder { font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: 15px; }
.lc-holder small { display: block; font-size: 10px; letter-spacing: .24em; color: var(--muted); }
.lc-reward { font-size: 12px; color: var(--muted); text-align: right; max-width: 22ch; line-height: 1.35; }

/* ---------- Recrutement teaser ---------- */
.hire { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.hire h2 { font-size: clamp(48px, 7.4vw, 116px); }
@media (max-width: 820px) { .hire { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--cond); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--orange); margin: 0 0 16px; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 15px; margin: 0 0 8px; display: block; text-decoration: none; }
.footer-grid a:hover { color: var(--paper); }
.footer-big { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 4vw, 52px); color: var(--paper); line-height: 1; margin-bottom: 16px; }
.footer-bottom { margin-top: 64px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label {
  font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.on-paper .field label, .on-paper .label { color: var(--muted-ink); }
.input, .field input, .field select, .field textarea {
  width: 100%; background: transparent; color: inherit; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; font: 400 18px var(--sans); border-radius: 0; transition: border-color .2s;
}
.on-paper .field input, .on-paper .field select, .on-paper .field textarea { border-bottom-color: var(--line-ink); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 6px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); }
.field .hint { font-size: 14px; color: var(--muted); }
.on-paper .field .hint { color: var(--muted-ink); }
.check { display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

.notice { padding: 16px 20px; border-left: 3px solid var(--orange); background: rgba(242, 150, 58, .08); font-size: 15px; }
.notice.error { border-left-color: currentColor; background: rgba(244, 238, 228, .06); }
.on-paper .notice.error { background: rgba(15, 14, 12, .06); }

/* Choix en pastilles (variantes / postes) */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 12px 20px; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--cond); font-weight: 500; letter-spacing: .08em; font-size: 16px; transition: all .2s;
}
.on-paper .choice span { border-color: var(--line-ink); }
.choice span:hover { border-color: currentColor; }
.choice input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-paper .choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Accordéon */
.accordion { border-top: 1px solid var(--line-ink); }
.accordion details { border-bottom: 1px solid var(--line-ink); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--cond); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 15px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-family: var(--sans); font-size: 24px; font-weight: 300; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 24px; color: var(--muted-ink); font-size: 16px; max-width: 56ch; }
.accordion .acc-body p { margin: 0 0 10px; }

/* Pages intérieures */
.page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(48px, 7vw, 108px); margin: 16px 0 24px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); z-index: 200;
  background: var(--paper); color: var(--ink); padding: 14px 22px; font-weight: 500;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35); transition: transform .4s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
/* ---------- Version mobile ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .nav { top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav a { font-size: 20px; padding: 6px 0; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 20px; }
  section { padding: 64px 0; }
  .hero { padding: 32px 0 56px; }
  .hero-meta { gap: 20px 32px; margin-top: 40px; }
  .hero-meta strong { font-size: 24px; }
  .services-head { margin-bottom: 32px; }
  .service-row { padding: 24px 0; }
  .service-row:hover { padding-left: 0; padding-right: 0; background: none; }
  .manifesto p { max-width: none; }
  .footer-bottom { margin-top: 40px; }
}
@media (max-width: 560px) {
  .hero-actions .btn, .hire .btn { width: 100%; justify-content: center; }
  .loyalty-card { aspect-ratio: auto; gap: 22px; transform: none; border-radius: 14px; }
  .loyalty-card:hover { transform: none; }
  .lc-bottom { flex-direction: column; align-items: flex-start; }
  .lc-reward { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: clamp(40px, 11vw, 56px); }
  .choice span { padding: 10px 14px; font-size: 15px; }
}

.toast::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 12px; vertical-align: middle; }
