/* Encre vive : un fond encre, un seul jaune, le trait comme signature. Pas d'ombre ni de dégradé. */
@font-face { font-family: "Syne"; src: url("/fonts/Syne-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
   color-scheme: dark;
   --ink: #0C0D14;
   --surface: #1C1E2B;
   --line: #343748;
   --paper: #F6F6FA;
   --muted: #C9CCD9;
   --signal: #FFD60A;
   --display: "Syne", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
   --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
   --gutter: clamp(16px, 4vw, 56px);
   --title-leading: 1.04;
}
/* Syne n'a que l'alphabet latin : ces langues passent sur la police système et demandent plus d'interligne. */
:lang(ar), :lang(ja), :lang(ko), :lang(zh), :lang(ru) { --title-leading: 1.28; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font: 500 1rem/1.5 var(--sans); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
p, ul, h1, h2 { margin: 0; }
a { color: inherit; }
ul { padding-inline-start: 1.2em; }
li::marker { color: var(--signal); }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.display-xl, .display-l, .display-s { font-family: var(--display); font-weight: 800; line-height: var(--title-leading); }
.display-xl, .display-l, .display-s { text-wrap: balance; }
/* Les mots composés allemands sont longs, et le japonais se coupe mieux par groupes de mots. */
:lang(de) :is(.display-xl, .display-l) { hyphens: auto; hyphenate-limit-chars: 12 5 5; }
:lang(ja) :is(.display-xl, .display-l, .lead) { word-break: auto-phrase; }
.display-xl { font-size: clamp(2.05rem, 0.9rem + 5.6vw, 6.25rem); }
.display-l { font-size: clamp(1.625rem, 1.2rem + 1.9vw, 3rem); }
.display-s { font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); color: var(--muted); }
.detail { color: var(--muted); font-size: 0.875rem; font-weight: 700; }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 2; padding: 12px 18px; background: var(--paper); color: var(--ink); border-radius: 999px; font-weight: 700; }
.skip:focus { top: 8px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; }
.logo { display: block; flex: none; direction: ltr; }
.logo img { width: clamp(146px, 12vw, 190px); height: auto; }
.bar-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 18px; border-radius: 999px; background: var(--surface); font-size: 0.875rem; font-weight: 700; text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 28px; border-radius: 999px; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }

/* Le trait : l'effet apparaît sous lui. L'état final est l'état par défaut, pour qui réduit les animations. */
.stroke-frame { position: relative; overflow: hidden; direction: ltr; background: var(--surface); border-radius: 18px; }
.stroke-frame img { width: 100%; height: 100%; object-fit: cover; }
.stroke-frame > img:first-child { position: absolute; inset: 0; }
.stroke-fx { position: absolute; inset: 0; filter: grayscale(1) contrast(1.35) sepia(1) hue-rotate(255deg) saturate(4.5) brightness(1.05); clip-path: polygon(0 0, 54% 0, 70% 100%, 0 100%); }
.stroke-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateX(54%); }
.stroke-line line { stroke: var(--signal); stroke-width: 6; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
   .stroke-frame-live .stroke-fx { animation: stroke-reveal 1.1s ease-in-out 0.25s both; }
   .stroke-frame-live .stroke-line { animation: stroke-move 1.1s ease-in-out 0.25s both; }
}
@keyframes stroke-reveal { from { clip-path: polygon(0 0, -20% 0, -4% 100%, 0 100%); } }
@keyframes stroke-move { from { transform: translateX(-20%); } }

.hero { padding-block: clamp(12px, 3vw, 40px) clamp(48px, 7vw, 104px); }
.hero-grid { display: grid; gap: 28px; margin-block-start: clamp(20px, 3vw, 44px); }
.hero-side { display: grid; gap: 24px; justify-items: start; align-content: start; }
.hero-photo { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
   .hero-grid { grid-template-columns: 4fr 8fr; gap: 48px; }
   .hero-photo { aspect-ratio: 16 / 10; }
}

.card { padding: clamp(20px, 3vw, 36px); background: var(--surface); border-radius: 18px; }
.card > * + * { margin-block-start: 12px; }
/* Les titres en carte suivent la largeur de leur colonne : Syne est large, et un seul mot peut la remplir. */
/* Les captures défilent sur téléphone et tiennent sur une ligne dès que la place suffit. */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); gap: 12px; margin-block-start: clamp(40px, 6vw, 72px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.shots img { width: 100%; height: auto; border-radius: 20px; scroll-snap-align: start; }
@media (min-width: 900px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.doors .card, .pro-card > div { container-type: inline-size; }
.doors .display-l, .pro-card .display-l { font-size: clamp(1.25rem, 7cqi, 3rem); }
.doors { display: grid; gap: 12px; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; } }

.effects, .replay, .privacy, .pro { margin-block-start: clamp(64px, 9vw, 128px); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 28px; padding: 0; list-style: none; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.tile { padding: 12px; background: var(--surface); border-radius: 14px; font-size: 0.875rem; font-weight: 700; }
.tile svg { width: 100%; height: auto; margin-block-end: 10px; background: var(--ink); border-radius: 10px; color: var(--paper); }
.editor { margin-block-start: 24px; color: var(--muted); max-width: 72ch; }
.editor strong { color: var(--paper); }

.replay { display: grid; gap: 32px; align-items: center; }
.replay > div:last-child > * + * { margin-block-start: 16px; }
@media (min-width: 760px) { .replay { grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(40px, 7vw, 112px); } }
.replay-shot { width: min(100%, 300px); height: auto; border-radius: 28px; justify-self: center; }
@media (min-width: 760px) { .replay-shot { width: 100%; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; background: var(--surface); border-radius: 999px; font-size: 0.875rem; font-weight: 700; }

.privacy { display: grid; gap: 16px; }
.privacy .lead { max-width: 56ch; }

.pro-card { display: grid; gap: 28px clamp(32px, 6vw, 96px); padding-block-start: clamp(36px, 4vw, 52px); }
@media (min-width: 900px) { .pro-card { grid-template-columns: 1fr 1fr; } }
.pro-card > div > * + * { margin-block-start: 16px; }
.pro-card .btn { margin-block-start: 24px; }
.badge { display: inline-block; padding-inline: 14px; background: var(--signal); color: var(--ink); font: 800 clamp(1.5rem, 1.2rem + 1vw, 2.25rem)/1.2 var(--display); transform: rotate(6deg); }

.page { padding-block: clamp(12px, 3vw, 40px) 24px; }
.page > * + * { margin-block-start: 16px; }
.faq { display: grid; gap: 12px; margin-block-start: 32px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq p { color: var(--muted); }
.contact { margin-block-start: clamp(48px, 7vw, 96px); }
.contact > * + * { margin-block-start: 16px; }
.contact .btn { max-width: 100%; overflow-wrap: anywhere; }

.legal > * { max-width: 780px; }
.legal .display-xl { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem); }
.legal-updated { color: var(--muted); }
.legal-text { margin-block-start: 28px; color: var(--muted); }
/* Les textes légaux gardent leurs retours à la ligne, écrits dans les chaînes Swift. */
.legal-text p { white-space: pre-line; }
.legal-text h2 { margin-block: 36px 10px; color: var(--paper); }
.legal-text a { color: var(--paper); overflow-wrap: anywhere; }

/* Dans l'app : le titre est natif, et chaque section est une carte comme dans les Réglages. */
/* `-apple-system-body` suit la taille de texte choisie sur l'iPhone. */
.in-app { font: -apple-system-body; font-family: var(--sans); font-weight: 500; }
.in-app .page { padding-block: 0 24px; padding-inline: 20px; }
.in-app .legal > h1 { display: none; }
.in-app .legal-updated { margin-block-start: 0; font-size: 0.8em; }
.in-app .legal-text { margin-block-start: 12px; }
.in-app .legal-text section { padding: 16px; background: var(--surface); border-radius: 18px; }
.in-app .legal-text section + section { margin-block-start: 12px; }
.in-app .legal-text h2 { margin-block: 0 8px; font-size: 1.15em; }
.in-app .legal-text a { color: var(--signal); }

.lost { display: grid; justify-items: start; }
.lost-mark { position: relative; font: 800 clamp(5rem, 2rem + 18vw, 15rem)/1 var(--display); }
.lost-mark span { display: block; padding-inline: 0.05em; }
.lost-mark .stroke-line { transform: none; }

.foot { display: grid; gap: 20px; margin-block-start: clamp(64px, 9vw, 128px); padding-block: 0 32px; font-size: 0.875rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 3px; }
.foot-links { padding-block-start: 24px; border-block-start: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 700; }
.foot-links a { color: var(--paper); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot-langs a[aria-current] { color: var(--paper); font-weight: 700; }
.foot-note { color: var(--muted); }
