/* Agence Yunga : les codes de yunga.fr. Papier crème, rayons de soleil qui tournent,
   style BD (contour d'encre, ombre décalée, étiquettes inclinées, mot frappé comme un tampon). */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --paper: #fffdf8; --ivory: #fbf7ee; --ivory-2: #f4eddc;
  --ink: #15131f; --ink-2: #3a3748; --muted: #6c6879; --line: rgba(21, 19, 31, .1);
  --blue: #2b3bff; --blue-deep: #1a24c9; --blue-soft: #e4e7ff;
  --coral: #ff6b57; --coral-soft: #ffe4de;
  --sun: #ffc93c; --sun-soft: #fff1c7;
  --mint: #19b37a; --mint-soft: #d8f5e8;
  --ray: rgba(255, 201, 60, .5);
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
h1 { font-size: clamp(48px, 10vw, 96px); }
h2 { font-size: clamp(32px, 5.5vw, 52px); }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 14px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { font-family: var(--display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin-bottom: 12px; }
.kicker i { font-style: normal; color: var(--coral); }

/* Le mot frappé comme un tampon : une case de BD inclinée. */
.hl { display: inline-block; padding: 0 .16em .04em; border: max(2px, .055em) solid var(--ink); border-radius: .14em; background: var(--sun); box-shadow: .07em .07em 0 var(--ink); rotate: -2deg; }
.hl.coral { background: var(--coral); }

/* ---------- Barre du haut ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.mini-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.mini-logo img { border-radius: 8px; }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-nav a:not(.bd-btn) { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------- Bouton de BD : contour d'encre, ombre décalée, on l'écrase au clic ---------- */
.bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 30px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--blue); color: var(--paper); box-shadow: 4px 4px 0 var(--ink); font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: translate .18s var(--ease), box-shadow .18s var(--ease); }
.bd-btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.bd-btn:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ink); }
.bd-btn.ghost { background: var(--paper); color: var(--ink); }
.bd-btn.sm { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.bd-btn.big { width: 100%; min-height: 62px; font-size: 18px; }
.bd-btn:disabled { opacity: .6; cursor: default; translate: none; }

/* ---------- Étiquettes collées (comme autour de la bulle de yunga.fr) ---------- */
.sticker { position: absolute; z-index: 2; display: inline-flex; align-items: baseline; gap: 2px; padding: 7px 11px; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); font-family: var(--display); font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; animation: float 5s ease-in-out infinite; }
.sticker small { font-size: 10px; }
@keyframes float { 50% { translate: 0 -6px; } }

/* ---------- Haut de page : la scène et ses rayons ---------- */
.hero { position: relative; padding: 30px 20px 80px; text-align: center; }
.hero-in { position: relative; max-width: 760px; margin: 0 auto; }
.stage { position: relative; isolation: isolate; width: 300px; height: 230px; margin: 0 auto 6px; display: grid; place-items: center; }
.stage::before { content: ""; position: absolute; z-index: -1; top: 50%; left: 50%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; background: repeating-conic-gradient(from 0deg, var(--ray) 0deg 6deg, transparent 6.4deg 15deg); -webkit-mask-image: radial-gradient(closest-side, #000 10%, rgba(0, 0, 0, .55) 38%, transparent 70%); mask-image: radial-gradient(closest-side, #000 10%, rgba(0, 0, 0, .55) 38%, transparent 70%); pointer-events: none; animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.orb { width: 112px; height: 112px; border-radius: 30px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); rotate: -4deg; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; rotate: 3deg; } }
.st-score { top: 34px; left: 6px; background: var(--sun); rotate: -8deg; }
.st-devil { top: 70px; right: -4px; background: var(--ink); color: var(--paper); rotate: 6deg; animation-delay: -1.5s; }
.st-live { bottom: 30px; left: 18px; background: var(--coral); color: #fff; rotate: 5deg; animation-delay: -3s; }
.st-sub { bottom: 14px; right: 22px; background: var(--mint-soft); rotate: -5deg; animation-delay: -2s; }
.hero h1 { margin: 6px 0 20px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin: 0 auto 30px; }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- La vidéo ---------- */
.show { display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 1060px; margin: 0 20px; padding: clamp(36px, 6vw, 70px); background: var(--sun-soft); border: 2.5px solid var(--ink); border-radius: 36px; box-shadow: 6px 6px 0 var(--ink); }
@media (min-width: 1100px) { .show { margin: 0 auto; } }
.show-text h2 { line-height: 1.15; }
.show-text p:not(.kicker) { color: var(--ink-2); font-size: 18px; max-width: 440px; }
.phone-wrap { position: relative; }
.phone { position: relative; width: 290px; aspect-ratio: 9 / 16; border-radius: 38px; overflow: hidden; background: linear-gradient(170deg, var(--blue-soft), var(--coral-soft) 70%, var(--sun-soft)); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); rotate: 2deg; }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-fallback { position: absolute; inset: 0; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.live-tag { align-self: flex-start; background: var(--coral); color: #fff; border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 8px; }
.phone-fallback .q { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; margin-top: 26px; }
.phone-fallback .score { font-family: var(--display); font-weight: 800; font-size: 76px; color: var(--blue); text-align: center; line-height: 1; margin: auto 0 0; letter-spacing: -.04em; }
.phone-fallback .score small { font-size: 24px; color: var(--muted); letter-spacing: 0; }
.chat { display: grid; gap: 6px; justify-items: start; margin-top: auto; }
.chat span { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: 4px 11px; font-size: 14px; font-weight: 600; }
.phone.has-video .phone-fallback { display: none; }
.sound { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 18px; cursor: pointer; }
.st-phone { bottom: 120px; left: -96px; background: var(--ink); color: var(--paper); font-size: 13px; rotate: -6deg; white-space: normal; max-width: 190px; line-height: 1.25; }

/* ---------- Déjà dans l'agence : les vidéos TikTok des créateurs ---------- */
.crew h2 { margin-bottom: 36px; }
.crew-grid { display: flex; justify-content: center; gap: clamp(24px, 6vw, 70px); flex-wrap: wrap; }
.tt { position: relative; margin: 0; width: 300px; }

.tt-frame { position: relative; aspect-ratio: 9 / 16; border: 3px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.tt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tt figcaption { margin-top: 18px; text-align: center; font-size: 15px; }
.tt figcaption b { font-family: var(--display); font-size: 20px; }
.tt figcaption a { color: var(--blue); font-weight: 700; text-decoration: none; margin-left: 4px; }
.tt figcaption span { display: block; color: var(--muted); font-size: 14px; }
.tt-tag { top: -14px; left: -14px; background: var(--sun); rotate: -8deg; }
.tt-tag.tag2 { left: auto; right: -14px; background: var(--mint-soft); rotate: 7deg; }
@media (max-width: 600px) { .tt { width: min(300px, 78vw); } }

/* ---------- Étapes ---------- */
.block { position: relative; max-width: 1060px; margin: 0 auto; padding: 90px 20px 20px; }
.steps { list-style: none; padding: 0; margin: 40px 0 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 5px 5px 0 var(--ink); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li:nth-child(odd) { rotate: -1deg; } .steps li:nth-child(even) { rotate: 1deg; }
.steps .n { width: 46px; height: 46px; border: 2.5px solid var(--ink); border-radius: 999px; display: grid; place-items: center; background: var(--paper); font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.steps b { font-family: var(--display); font-size: 19px; line-height: 1.2; }
.steps span:last-child { color: var(--ink-2); font-size: 15px; }
.c-blue { background: var(--blue-soft); } .c-sun { background: var(--sun-soft); } .c-coral { background: var(--coral-soft); } .c-mint { background: var(--mint-soft); }

/* Les deux façons de bosser : de grands aplats de couleur. */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.way { border: 2.5px solid var(--ink); border-radius: 36px; box-shadow: 6px 6px 0 var(--ink); padding: 34px 30px; }
.way-live { background: var(--coral); color: var(--ink); }
.way-video { background: var(--blue); color: var(--paper); }
.way .emoji { display: inline-grid; place-items: center; width: 58px; height: 58px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 26px; margin-bottom: 16px; }
.way h3 { font-size: 26px; font-weight: 800; }
.way p { margin: 0; font-size: 17px; }
.way-live p { color: var(--ink); }

/* ---------- Questions ---------- */
.faq-block { max-width: 760px; }
.faq-block h2 { margin-bottom: 26px; }
.faq { border: 2.5px solid var(--ink); border-radius: 20px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); padding: 18px 22px; margin-bottom: 14px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: .8; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- Formulaire ---------- */
.apply { padding-bottom: 100px; }
.apply-card { position: relative; max-width: 640px; margin: 0 auto; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 36px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(26px, 5vw, 46px); }
.apply-card h2 { margin-bottom: 6px; }
.form { display: grid; gap: 16px; margin-top: 26px; }
.form label { display: grid; gap: 7px; font-weight: 700; font-size: 15px; }
.only-live, .only-video { display: grid; gap: 16px; }
.only-live[hidden], .only-video[hidden] { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea, .row-form input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--ivory); border: 2px solid var(--ink); border-radius: 14px; padding: 13px 15px; transition: box-shadow .15s, background .15s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form textarea { min-height: 96px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder, .row-form input::placeholder { color: #a19caf; }
.form input:focus, .form select:focus, .form textarea:focus, .row-form input:focus { outline: none; background: var(--paper); box-shadow: 3px 3px 0 var(--blue); }
.types { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.types legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.type { position: relative; }
.type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.type span { display: block; text-align: center; padding: 13px 6px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); font-family: var(--display); font-weight: 700; font-size: 15px; transition: all .15s var(--ease); }
.type input:checked + span { background: var(--sun); box-shadow: 3px 3px 0 var(--ink); translate: -1px -1px; }
.type input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form .check { display: flex; align-items: center; gap: 12px; font-size: 16px; cursor: pointer; }
.form .check input { width: 24px; height: 24px; accent-color: var(--blue); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--coral); font-weight: 700; min-height: 1em; margin: 0; text-align: center; }

/* ---------- Suivi ---------- */
.suivi-wrap { min-height: 80vh; padding: 30px 20px 70px; }
.suivi-card { max-width: 660px; margin: 0 auto; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 36px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(24px, 5vw, 44px); }
.suivi-card h2 { font-size: clamp(30px, 6vw, 44px); }
.suivi-card h3 { margin-top: 30px; }
.suivi-card ul { padding-left: 20px; }
.suivi-card li { margin-bottom: 8px; }
.track { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.track li { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 12px; border-top: 6px solid var(--ivory-2); border-radius: 3px; margin: 0; }
.track li.done { color: var(--ink); border-color: var(--mint); }
.track li.now { color: var(--ink); border-color: var(--sun); }
.box { border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); padding: 20px 22px; margin: 18px 0; }
.box h3 { margin-top: 0; font-size: 19px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box.blue { background: var(--blue-soft); } .box.sun { background: var(--sun-soft); } .box.coral { background: var(--coral-soft); } .box.mint { background: var(--mint-soft); }
.row-form { display: flex; gap: 8px; margin-top: 14px; }
.row-form input { background: var(--paper); }
.row-form .bd-btn { min-height: 50px; padding: 0 22px; font-size: 16px; }
.skeleton { height: 240px; border-radius: 24px; background: linear-gradient(90deg, var(--ivory), var(--paper), var(--ivory)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Pied ---------- */
.foot { display: flex; justify-content: center; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding: 30px 20px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot .mini-logo { font-size: 15px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .show { grid-template-columns: 1fr; text-align: center; }
  .show-text p:not(.kicker) { margin-inline: auto; }
  .phone-wrap { justify-self: center; }
  .phone { width: min(290px, 74vw); }
  .st-phone { left: auto; right: -14px; bottom: -18px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top-nav #ma-candidature { display: none; }
  .stage { width: 280px; height: 210px; }
  .orb { width: 96px; height: 96px; border-radius: 26px; }
  .steps, .ways, .grid2 { grid-template-columns: 1fr; }
  .show { margin: 0 12px; border-radius: 28px; }
  .way { padding: 28px 22px; }
  .types span { font-size: 14px; padding: 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { .stage::before, .orb, .sticker, .skeleton { animation: none; } html { scroll-behavior: auto; } .bd-btn { transition: none; } }
