/* Makerflick : chaleureux, artisanal, lisible. */
:root {
  --bg: #fbf7f1;
  --paper: #ffffff;
  --ink: #2b2622;
  --muted: #6f655c;
  --line: #e8dfd3;
  --accent: #b9532c;
  --accent-ink: #ffffff;
  --accent-soft: #f6e4da;
  --ok: #2f7a4d;
  --warn: #9a3b1d;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.4em; }
h3 { font-size: 1.25rem; margin: 0 0 0.3em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.small { font-size: 0.86rem; color: var(--muted); }
section { padding: 64px 0; }
.sub { color: var(--muted); margin-top: -0.2em; margin-bottom: 1.6em; }

/* En-tête */
.top { border-bottom: 1px solid var(--line); background: rgba(251, 247, 241, 0.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
nav a { margin-left: 18px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--accent); }
nav .lang { color: var(--muted); }

/* Boutons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: 999px; padding: 0.7em 1.4em; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.small-btn { padding: 0.35em 0.9em; font-size: 0.9rem; }

/* Accueil */
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--accent); font-weight: 700; margin: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.note { font-size: 0.9rem; color: var(--muted); }
.hero-visual video, .placeholder { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--accent-soft); box-shadow: 0 18px 50px rgba(64, 40, 20, 0.15); }
.placeholder { display: grid; place-items: center; color: var(--accent); font-size: 3rem; }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.steps p { margin: 0.4em 0 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.gallery video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--accent-soft); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cols p { color: var(--muted); margin: 0; }

/* Tarifs */
.pricing { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg); margin: 0; }
.card.highlight { border: 2px solid var(--accent); background: #fff; box-shadow: 0 14px 40px rgba(185, 83, 44, 0.12); }
.card .btn { margin-top: auto; text-align: center; }
.badge { position: absolute; top: -13px; left: 22px; margin: 0; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price { font-family: var(--serif); font-size: 2.4rem; margin: 0.1em 0 0; font-weight: 700; }
.once { margin: 0 0 0.6em; color: var(--muted); font-size: 0.85rem; }
.qty { margin: 0; font-weight: 600; }
.per { margin: 0.1em 0 0.8em; color: var(--muted); font-size: 0.9rem; }
.desc { color: var(--muted); margin: 0 0 1em; }
.counter { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; margin: 0 0 1.2em; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 0.6em 0 0; }

/* Espace client */
.account h1 { margin-bottom: 0.6em; }
.credits-box, .link-box, .upload { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.big { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--accent); }
.credits-box p { margin: 0.3em 0; }
.pending { color: var(--muted); font-style: italic; }
.copy-row { display: flex; gap: 10px; }
.copy-row input { flex: 1; min-width: 0; font: 0.9rem ui-monospace, monospace; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.upload label { display: block; margin: 0 0 14px; font-weight: 600; font-size: 0.95rem; }
.upload input[type=file], .upload select { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.upload label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.upload label.check input { margin-top: 5px; }
.listing { border-top: 1px solid var(--line); padding: 16px 0; }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.video video, .video-wait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--accent-soft); }
.video-wait { display: grid; place-items: center; color: var(--accent); font-size: 2rem; animation: breathe 1.6s ease-in-out infinite; }
.video-wait.failed { animation: none; background: #f3e1dc; color: var(--warn); }
.video p { margin: 0.4em 0; font-size: 0.92rem; }
.warn { color: var(--warn); font-weight: 600; }
.empty { color: var(--muted); }
@keyframes breathe { 50% { opacity: 0.55; } }

/* Pied de page */
.foot { padding: 34px 0 44px; border-top: 1px solid var(--line); }
.foot .links a { color: var(--ink); }
.foot p { margin: 0.3em 0; }
.simple h2 { font-size: 1.3rem; margin-top: 1.4em; }

@media (max-width: 820px) {
  section { padding: 44px 0; }
  .hero-grid, .steps, .cols, .cards { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; }
  nav a { margin-left: 12px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .video-wait { animation: none; }
  html { scroll-behavior: auto; }
}
