@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/BigShouldersDisplay_900Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/BigShouldersDisplay_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --blue: #2531e8;
  --blue-deep: #1a23b8;
  --sun: #ffd23f;
  --ink: #15162b;
  --paper: #ffffff;
  --mist: #eef0fd;
  --line: #d6d9f2;
  --muted: #55587a;
  --signal: #e5402f;
  --ok: #138a52;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --strip: #15162b;
  --accent-num: #2531e8;
  --chip-blue: #2531e8;
  --on-color: #ffffff;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11122a; --ink: #eceeff; --mist: #1a1c3d; --line: #2c2f5a; --muted: #a6a9cc; --ok: #4fd08f; --signal: #ff6b5a;
    --strip: #07081a; --accent-num: #ffd23f; --chip-blue: #9fa6ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11122a; --ink: #eceeff; --mist: #1a1c3d; --line: #2c2f5a; --muted: #a6a9cc; --ok: #4fd08f; --signal: #ff6b5a;
  --strip: #07081a; --accent-num: #ffd23f; --chip-blue: #9fa6ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- En-tête ---------- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 32px/1 var(--display); letter-spacing: 0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; opacity: 0.9; white-space: nowrap; }
.top nav form { margin: 0; }
.lang-long { display: inline; } .lang-short { display: none; }
@media (max-width: 720px) { .lang-long { display: none; } .lang-short { display: inline; } }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top.on-blue { background: var(--blue); color: #fff; }
.top.plain { border-bottom: 1px solid var(--line); }
.nav-hide-sm { display: inline; }
@media (max-width: 720px) { .nav-hide-sm { display: none; } }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--mist); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ---------- Boutons et champs ---------- */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 14px; font: 700 17px/1 var(--body); text-decoration: none; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-deep); }
.btn.sun { background: var(--sun); color: #15162b; }
.btn.sun:hover { background: #ffc61a; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  font: 500 17px/1.3 var(--body);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 49, 232, 0.2); }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.error { background: rgba(229, 64, 47, 0.1); color: var(--signal); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0 0 16px; }
.notice { background: var(--mist); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.success { background: rgba(19, 138, 82, 0.12); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0 0 16px; }

/* ---------- Accueil : héros ---------- */
.hero { background: var(--blue); color: #fff; padding: clamp(24px, 5vw, 56px) 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font: 900 clamp(64px, 10.5vw, 158px)/0.86 var(--display); letter-spacing: -0.005em; margin: 0 0 28px; text-transform: uppercase; text-wrap: balance; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); max-width: 34em; margin: 0 0 28px; color: rgba(255, 255, 255, 0.92); }
.hero form { display: flex; gap: 10px; max-width: 620px; }
.hero form input { flex: 1; min-width: 0; border: 0; min-height: 60px; font-size: 19px; color: #15162b; background: #fff; }
.hero form .btn { min-height: 60px; }
.hero .note { margin: 12px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.hero-text { padding-bottom: clamp(32px, 6vw, 80px); }
.phone { position: relative; width: min(100%, 330px); aspect-ratio: 9 / 16; border-radius: 34px; background: #0c0d1a; padding: 9px; margin: 0 auto; box-shadow: 0 30px 60px rgba(8, 10, 60, 0.45); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: #000; }
.hero .phone { margin-bottom: -60px; }
.hero figcaption { font-size: 13px; color: rgba(255, 255, 255, 0.75); text-align: center; margin: 14px auto 0; max-width: 300px; }
.hero-media { padding-bottom: 80px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero form { flex-direction: column; }
  .hero .phone { width: min(78vw, 300px); margin-bottom: 0; }
  .hero-media { padding-bottom: 40px; }
}

/* Bande de scènes, façon pellicule */
.strip { background: var(--strip); color: #fff; padding-block: 84px 40px; }
.strip h2 { font: 600 15px/1.2 var(--body); color: rgba(255, 255, 255, 0.7); margin: 0 0 16px; }
.frames { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 10px; overflow-x: auto; padding: 14px 0 18px; scrollbar-width: thin;
  background-image: radial-gradient(circle, rgba(255,255,255,0.22) 3px, transparent 3.5px), radial-gradient(circle, rgba(255,255,255,0.22) 3px, transparent 3.5px);
  background-size: 18px 10px; background-repeat: repeat-x; background-position: 0 0, 0 100%; }
.frames figure { margin: 0; }
.frames img { aspect-ratio: 9 / 16; width: 100%; object-fit: cover; border-radius: 6px; }
.frames figcaption { font: 600 13px/1.3 var(--body); font-variant-numeric: tabular-nums; margin-top: 8px; color: rgba(255, 255, 255, 0.85); }
.frames figcaption span { display: block; color: rgba(255, 255, 255, 0.55); font-weight: 500; }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 9vw, 112px) 0; }
section.block.mist { background: var(--mist); }
.block h2 { font: 900 clamp(44px, 6.4vw, 84px)/0.92 var(--display); text-transform: uppercase; margin: 0 0 18px; max-width: 14em; }
.block .lead { font-size: 19px; color: var(--muted); max-width: 40em; margin: 0 0 40px; }

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.examples figure { margin: 0; }
.examples .phone { width: 100%; max-width: 300px; box-shadow: 0 20px 40px rgba(20, 22, 70, 0.22); }
.examples figcaption { max-width: 300px; margin: 16px auto 0; }
.examples figcaption strong { display: block; font-size: 18px; }
.examples figcaption span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .examples { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .examples figure { scroll-snap-align: start; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li:last-child { border-bottom: 2px solid var(--ink); }
.steps li::before { content: counter(step); font: 900 96px/0.8 var(--display); color: var(--accent-num); }
.steps h3 { font: 700 24px/1.2 var(--body); margin: 4px 0 8px; }
.steps p { margin: 0; color: var(--muted); max-width: 38em; }
@media (max-width: 560px) { .steps li { grid-template-columns: 64px minmax(0, 1fr); } .steps li::before { font-size: 64px; } }

.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th { text-align: left; font: 600 14px/1.2 var(--body); color: var(--muted); padding: 0 12px 12px; }
.prices td { padding: 22px 12px; border-top: 2px solid var(--ink); font-size: 18px; vertical-align: middle; }
.prices tr:last-child td { border-bottom: 2px solid var(--ink); }
.prices .name { font: 900 34px/1 var(--display); text-transform: uppercase; }
.prices .amount { font-weight: 700; font-size: 22px; }
.prices tr.rec td { background: var(--sun); color: #15162b; border-color: #15162b; }
.prices .tag { display: block; font: 600 13px/1.3 var(--body); text-transform: none; margin-top: 6px; }
.prices td:last-child { text-align: right; }
.price-notes { color: var(--muted); font-size: 15px; margin-top: 18px; }
.offer { display: inline-block; background: var(--sun); color: #15162b; font-weight: 700; font-size: 18px; padding: 10px 16px; border-radius: 12px; margin: 0 0 24px; }
.offer-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--sun); color: #15162b; border-radius: 20px; padding: 22px clamp(18px, 3vw, 28px); margin: 0 0 32px; }
.offer-box > div { min-width: 0; flex: 1 1 320px; }
.offer-box h2 { font: 900 clamp(34px, 5vw, 48px)/0.95 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.offer-box p { margin: 0; max-width: 46em; }
@media (max-width: 640px) {
  .prices thead { display: none; }
  .prices tr { display: grid; grid-template-columns: 1fr auto; padding: 18px 12px; border-top: 2px solid var(--ink); }
  .prices tr.rec { background: var(--sun); color: #15162b; }
  .prices td { border: 0 !important; padding: 4px 0; background: transparent !important; }
  .prices td.unit { color: var(--muted); }
  .prices tr.rec td.unit { color: #3a3b55; }
  .prices td:last-child { grid-column: 1 / -1; text-align: left; padding-top: 10px; }
}

.faq details { border-top: 2px solid var(--ink); padding: 4px 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; font: 700 20px/1.3 var(--body); padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 900 34px/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 44em; }

.final-cta { background: var(--blue); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.final-cta h2 { font: 900 clamp(44px, 6.4vw, 84px)/0.92 var(--display); text-transform: uppercase; margin: 0 0 24px; }
.final-cta form { display: flex; gap: 10px; max-width: 620px; }
.final-cta input { flex: 1; min-width: 0; border: 0; min-height: 60px; color: #15162b; background: #fff; }
@media (max-width: 640px) { .final-cta form { flex-direction: column; } }

footer.foot { padding: 40px 0 56px; font-size: 15px; color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Pages simples (connexion, mentions) ---------- */
.narrow { max-width: 460px; margin: 0 auto; padding: clamp(32px, 8vw, 80px) var(--gutter); }
.narrow h1 { font: 900 56px/0.95 var(--display); text-transform: uppercase; margin: 0 0 12px; }
.narrow .lead { color: var(--muted); margin: 0 0 24px; }
.field { margin: 0 0 18px; }
.alt { margin-top: 20px; color: var(--muted); font-size: 15px; }
.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.legal h1 { font: 900 56px/0.95 var(--display); text-transform: uppercase; }
.legal h2 { font: 700 22px/1.3 var(--body); margin-top: 32px; }
.todo { background: #fff4c2; color: #4a3b00; padding: 0 4px; border-radius: 4px; }

/* ---------- Espace client ---------- */
.app { padding-top: 32px; padding-bottom: 80px; }
.app h1 { font: 900 clamp(44px, 6vw, 64px)/0.95 var(--display); text-transform: uppercase; margin: 0 0 24px; }
.panel { background: var(--mist); border-radius: 20px; padding: clamp(18px, 3vw, 28px); margin: 0 0 32px; }
.newad { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 12px; align-items: end; }
.newad .field { margin: 0; }
@media (max-width: 720px) { .newad { grid-template-columns: 1fr; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 4px; text-decoration: none; }
.list a:hover { background: var(--mist); }
.list img, .list .ph { width: 54px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: var(--line); }
.list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list a > span { min-width: 0; }
.list small { display: block; color: var(--muted); }
.list small.url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 600 13px/1.3 var(--body); background: var(--mist); white-space: nowrap; }
.chip.ready, .chip.done { background: rgba(19, 138, 82, 0.14); color: var(--ok); }
.chip.running, .chip.queued { background: rgba(37, 49, 232, 0.12); color: var(--chip-blue); }
.chip.failed { background: rgba(229, 64, 47, 0.12); color: var(--signal); }
.empty { color: var(--muted); padding: 24px 0; }
.panel .hint a { color: var(--ink); font-weight: 600; }

/* Pub à partir de vos photos */
.app .lead { color: var(--muted); max-width: 40em; margin: -8px 0 24px; }
.manual-form { max-width: 820px; }
.manual-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .manual-form .two { grid-template-columns: 1fr; } }
.opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
input[type=file].file { display: block; width: 100%; padding: 14px; border: 2px dashed var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font: 500 15px/1.3 var(--body); cursor: pointer; }
input[type=file].file:hover { border-color: var(--blue); }
input[type=file].file:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
input[type=file].file::file-selector-button { margin-right: 12px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: 700 15px/1 var(--body); cursor: pointer; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumbs .thumb { position: relative; display: block; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; background: var(--line); }
.thumbs .thumb:first-child img { box-shadow: 0 0 0 3px var(--blue); }
.thumbs.logo img { object-fit: contain; background: #fff; padding: 6px; }
.thumbs.logo .thumb:first-child img { box-shadow: none; outline: 1px solid var(--line); }
.thumbs .thumb button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--mist); background: var(--ink); color: var(--paper); font: 700 16px/1 var(--body); cursor: pointer; display: grid; place-items: center; padding: 0; }
.thumbs .thumb button:hover { background: var(--signal); }
.hint.status:empty { display: none; }
.fail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fail-actions form { margin: 0; }
.fail-actions + .hint { margin-top: 12px; }

.back { display: inline-block; margin: 0 0 16px; font-weight: 600; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--ink); }
.project-head { margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.project-head h1 { overflow-wrap: anywhere; }
.project-head p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.project-head .project-url { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
/* La langue n'est pas copiée avec le lien */
.project-head .lang-chip { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--mist); font-size: 0.85em; user-select: none; -webkit-user-select: none; white-space: nowrap; }
.concept { font-size: 20px; max-width: 40em; margin: 0 0 24px; }
.storyboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin: 0 0 32px; }
.storyboard figure { margin: 0; }
.storyboard img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--line); }
.storyboard figcaption { font-size: 14px; margin-top: 8px; }
.storyboard figcaption b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; margin-right: 6px; }
.storyboard figcaption q { display: block; color: var(--muted); margin-top: 4px; quotes: "« " " »"; }
:lang(en) .storyboard figcaption q { quotes: "“" "”"; }
.make { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.make p { margin: 0; color: var(--muted); font-size: 15px; }
.working { display: flex; gap: 16px; align-items: center; }
.reel { width: 44px; height: 44px; flex: none; animation: spin 1.6s linear infinite; color: var(--accent-num); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reel { animation: none; } }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; max-width: 360px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width 0.6s; }

.videos { display: grid; gap: 28px; }
.video { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); padding: 24px 0; border-top: 2px solid var(--ink); }
.video .phone { width: 100%; max-width: 300px; margin: 0; box-shadow: none; }
.video h3 { font: 900 34px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.video .meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.video .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.video .change-note { margin: -6px 0 18px; padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--mist); border-radius: 0 10px 10px 0; font-size: 15px; max-width: 520px; }
.video form.revise { max-width: 520px; }
.video form.revise .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.video form.revise .row span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .video { grid-template-columns: 1fr; } .video .phone { max-width: 260px; } }

table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; }
.plus { color: var(--ok); font-weight: 700; }
.minus { color: var(--signal); font-weight: 700; }
.err404 { text-align: center; padding: 120px var(--gutter); }
.err404 h1 { font: 900 120px/0.9 var(--display); margin: 0; }
