/* 1. Jetons de design */
:root {
    --ink: #1f1f1f;
    --ink-soft: #4a4a4a;
    --ink-faint: #6b6b6b;
    --paper: #ffffff;
    --soft: #f5f5f3;
    --surface: #ffffff;
    --line: #dedede;
    --line-strong: #bdbdbd;

    --accent: #028858;
    --accent-dark: #016b46;
    --accent-soft: #e8f5ef;
    --highlight: #028858;
    --sun: #f2b705;
    --danger: #b42318;
    --success: #028858;

    --grad-ring: var(--accent);

    --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.15rem;
    --step-2: 1.4rem;
    --step-3: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
    --step-4: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
    --step-5: clamp(2.6rem, 1.8rem + 3.4vw, 4.1rem);

    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --radius-pill: 999px;
    --control-height: 48px;
    --control-radius: 8px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --section-space: clamp(32px, 5vw, 64px);

    --shadow-soft: 0 0 0 1px var(--line);
    --shadow-lift: 0 8px 24px rgba(0, 0, 0, .1);
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --ease-spring: cubic-bezier(.2, .8, .2, 1);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-0);
    font-optical-sizing: auto;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

p { margin: 0; text-wrap: pretty; overflow-wrap: anywhere; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:has(.cover) { text-decoration: none; }

img { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--accent-soft); color: var(--ink); }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[hidden] { display: none !important; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 48px);
}

.muted { color: var(--ink-faint); }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.nowrap { white-space: nowrap; }

/* 3. Boutons et formulaires */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--control-height);
    padding: 12px 22px;
    border: 0;
    border-radius: var(--control-radius);
    background: var(--surface);
    color: var(--ink);
    font-weight: 650;
    font-size: var(--step-0);
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ease-spring), background-color .2s, box-shadow .2s;
    box-shadow: inset 0 0 0 1px var(--ink);
}
.btn:hover { transform: none; background: var(--soft); }
.btn:active { transform: scale(.98); }

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
}
.btn--primary:hover { background: var(--accent-dark); }

.btn--glow {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
}
.btn--glow.is-on { background: var(--ink); }

.btn--ink { background: var(--ink); color: #fff; box-shadow: none; }
.btn--ink:hover { background: #000; }
.btn--primary:hover, .btn--glow:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; }
.btn--danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px rgba(217, 56, 72, .35); }
.btn--danger:hover { background: rgba(217, 56, 72, .08); }
.btn--sm { min-height: var(--control-height); padding: 12px 16px; font-size: var(--step--1); }
.btn--lg { min-height: var(--control-height); padding: 12px 24px; font-size: var(--step-0); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: var(--step--1);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }
.link-btn--danger { color: var(--danger); }

.form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.field { display: grid; gap: var(--space-xs); align-content: start; min-width: 0; }
.field > label, .field > .label, .field > legend, .form-label { font-weight: 650; font-size: var(--step--1); }
.field .hint { color: var(--ink-faint); font-size: var(--step--1); }

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea,
.input {
    width: 100%;
    min-height: var(--control-height);
    padding: 0 16px;
    height: var(--control-height);
    min-width: 0;
    font-size: var(--step-0);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 150px; padding-block: 12px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(2, 136, 88, .15);
}
.field .has-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--step--1); font-weight: 600; }


.input-money {
    position: relative;
    width: 100%;
}

.input-money::before {
    content: '$';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-faint);
    font-weight: 650;
    pointer-events: none;
    z-index: 1;
}

.field .input-money input { padding-left: 42px; }

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 160px;
    padding: 24px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
    color: var(--ink-soft);
    transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.dropzone img { width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--radius-md); }
.dropzone .icon { width: 32px; height: 32px; color: var(--accent); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 4. En-tête, menu, messages*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1;
    text-decoration: none;
    color: var(--accent);
    flex-shrink: 0;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}
.nav-links > a {
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.nav-links > a:hover, .nav-links > a.is-active { color: var(--accent); border-bottom-color: transparent; }

.nav-search {
    position: relative;
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}
.nav-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.nav-search input {
    width: 100%;
    height: var(--control-height);
    padding: 0 16px 0 42px;
    border: 1.5px solid var(--line);
    border-radius: var(--control-radius);
    background: var(--surface);
}
.nav-search input:focus { outline: none; border-color: var(--accent); }

.nav-account { display: flex; align-items: center; gap: 14px; }
.nav-login { font-weight: 650; text-decoration: none; }

.nav-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: var(--control-height);
    border-radius: 50%;
    color: var(--ink);
}
.nav-bell:hover { background: var(--accent-soft); }
.nav-bell__count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--highlight);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    line-height: 19px;
    text-align: center;
}

.menu { position: relative; }
.menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    font-weight: 650;
}
.menu summary::-webkit-details-marker { display: none; }
.menu__initial {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}
.menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 220px;
    padding: 8px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-lift);
    display: grid;
    animation: pop-in .22s var(--ease-out);
}
.menu__panel a, .menu__panel button {
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    text-align: left;
    text-decoration: none;
    font-weight: 550;
    cursor: pointer;
}
.menu__panel a:hover, .menu__panel button:hover { background: var(--paper); }
.menu__panel form { display: grid; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.nav-toggle {
    display: none;
    flex-shrink: 0;
    margin-left: auto;
    width: var(--control-height);
    height: var(--control-height);
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: var(--surface);
    cursor: pointer;
}

.flash {
    position: fixed;
    left: 50%;
    top: 86px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 12px 12px 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lift);
    transform: translateX(-50%);
    animation: flash-in .5s var(--ease-spring);
}
.flash--success { background: var(--accent); }
.flash--error { background: var(--danger); }
.flash--info { background: var(--ink); }
.flash__close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}
.flash.is-leaving { opacity: 0; transform: translate(-50%, -12px); transition: .3s; }

@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -20px) scale(.95); } }

.badge-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    display: grid;
    gap: 10px;
    max-width: 360px;
}
.badge-toast__item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-lift);
    animation: toast-in .7s var(--ease-spring) both;
}
.badge-toast__item:nth-child(2) { animation-delay: .25s; }
.badge-toast__item:nth-child(3) { animation-delay: .5s; }
.badge-toast__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shine 1.4s .6s ease-in-out;
}
.badge-toast__title { font-weight: 750; }
.badge-toast p:not(.badge-toast__title) { color: rgba(255, 255, 255, .72); font-size: var(--step--1); }

@keyframes toast-in { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes shine { to { transform: translateX(100%); } }

/* 5. Éléments signature: anneau, visuels, avatars, sceaux */
.ring {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--size, 44px);
    height: var(--size, 44px);
    flex: none;
}
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track, .ring__fill { fill: none; stroke-width: 5; }
.ring__track { stroke: var(--line); }
.ring__fill {
    stroke: url(#ring-gradient);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--pct));
    animation: ring-fill 1.4s var(--ease-out) both;
}
.ring--done .ring__fill { filter: none; }
.ring__label {
    font-size: calc(var(--size, 44px) * .26);
    font-weight: 750;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
@keyframes ring-fill { from { stroke-dashoffset: 100; } }

.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.cover--gen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--soft);
}
.cover--gen::before { content: none; }
.cover--gen::after { content: none; }
.cover__title { display: none; }
.cover__placeholder { width: 32px; height: 32px; color: var(--line-strong); }

.avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--size, 36px);
    height: var(--size, 36px);
    flex: none;
    padding: 2px;
    border-radius: 50%;
    background: var(--line-strong);
}
.avatar img, .avatar__initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--surface);
    object-fit: cover;
}
.avatar__initial {
    display: grid;
    place-items: center;
    background: hsl(var(--h) 70% 88%);
    color: hsl(var(--h) 60% 28%);
    font-weight: 800;
    font-size: calc(var(--size, 36px) * .42);
}
.avatar--l2 { background: #b7dcc9; }
.avatar--l3 { background: #6cbf98; }
.avatar--l4 { background: var(--accent); }
.avatar--l5 { background: var(--accent-dark); }
.avatar--l6 { background: var(--ink); }

.seal { display: inline-block; width: 44px; height: 44px; flex: none; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal--lg { width: 56px; height: 56px; }
.seal--xl { width: 84px; height: 84px; }
.seal__edge { fill: var(--seal-edge); }
.seal__face { fill: var(--seal-face); }
.seal__glyph { fill: none; stroke: var(--seal-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seal--bronze { --seal-edge: #E7A877; --seal-face: #FFE3CC; --seal-ink: #7A3E16; }
.seal--silver { --seal-edge: #A9B6D6; --seal-face: #EEF2FB; --seal-ink: #34405F; }
.seal--gold { --seal-edge: #FFB938; --seal-face: #FFF2CC; --seal-ink: #7A4B00; }
.seal--mythic { --seal-edge: var(--accent); --seal-face: #1f1f1f; --seal-ink: #ffffff; }
.seal--mythic svg { animation: mythic 6s linear infinite; }
.seal--locked { --seal-edge: #e6e6e3; --seal-face: #f5f5f3; --seal-ink: #b5b5b0; }
@keyframes mythic { 50% { filter: drop-shadow(0 0 6px rgba(2, 136, 88, .4)); } }

.stage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    background: var(--surface);
    color: var(--ink);
}
.stage--soon { background: var(--ink); color: #fff; }
.stage--funded { background: var(--accent); color: #fff; }
.stage--ended { background: #ECE9F5; color: var(--ink-soft); }
.stage--review { background: #E3F7FB; color: #0A6B80; }
.stage--rejected { background: #FDE8EA; color: var(--danger); }
.stage--draft { background: #ECE9F5; color: var(--ink-soft); }
.stage--live { background: var(--accent-soft); color: var(--accent-dark); }

.like-form { margin-left: auto; }
.like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--control-height);
    padding: 6px 12px;
    border: 0;
    border-radius: var(--control-radius);
    background: transparent;
    color: var(--ink-soft);
    font-weight: 650;
    font-size: var(--step--1);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.like:hover { background: var(--accent-soft); color: var(--highlight); }
.like .icon { transition: transform .4s var(--ease-spring), fill .2s; }
.like.is-on { color: var(--highlight); }
.like.is-on .icon { fill: var(--highlight); }
.like.is-popping .icon { animation: heart-pop .5s var(--ease-spring); }
@keyframes heart-pop { 40% { transform: scale(1.45) rotate(-8deg); } }

/* 6. Cartes de projet */
.pcard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--line);
    transition: box-shadow .3s, transform .3s var(--ease-out);
}
.pcard:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-soft); }
.pcard__media {
    position: relative;
    display: block;
    container-type: inline-size;
    overflow: hidden;
    text-decoration: none;
}
.pcard__media .cover { transition: transform .6s var(--ease-out); }
.pcard:hover .pcard__media .cover { transform: scale(1.04); }
.pcard__media .stage { position: absolute; left: 14px; top: 14px; }
.pcard__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 14px; }
.pcard__title { font-size: var(--step-1); }
.pcard__title a { text-decoration: none; }
.pcard__title a:hover { text-decoration: underline; }
.pcard__sub {
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcard__by { color: var(--ink-faint); font-size: var(--step--1); }
.pcard__foot { display: grid; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-sm); }
.pcard__funding { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); min-width: 0; }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); border-top: 1px solid var(--line); padding-top: var(--space-xs); }
.pcard__meta .like { padding-inline: 8px; }
.pcard__media .cover { height: auto; aspect-ratio: 16 / 10; }
.pcard__stat { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.pcard__stat strong { display: block; color: var(--ink); font-size: var(--step-0); }

.grid-cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* 7. Accueil */
.hero {
    position: relative;
    padding: 58px 0 48px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero__title {
    font-size: var(--step-5);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
}
.hero__title span { display: inline; }

.hero__lead { margin-top: 16px; max-width: 46ch; font-size: 1.06rem; color: var(--ink-faint); }

/* Search uses the same independent input and button as every form. */
.hero-search { display: flex; gap: var(--space-xs); max-width: 520px; margin-top: 28px; }
.hero-search input { flex: 1; min-width: 0; width: 100%; height: var(--control-height); padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--surface); font-size: var(--step-0); }
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search input:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.hero__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-weight: 600; }
.hero__links a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }

.spotlight {
    position: relative;
    display: block;
    color: var(--ink);
    text-decoration: none;
}
.spotlight:hover h2 { text-decoration: underline; }
.spotlight__media { border-radius: var(--radius-lg); overflow: hidden; container-type: inline-size; }
.spotlight__body { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; padding: 16px 0 0; }
.spotlight__body h2 { font-size: var(--step-2); }
.spotlight__body p { color: var(--ink-faint); }
.spotlight .ring { grid-row: span 2; }

.spotlight__note {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.ticker {
    overflow: hidden;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    white-space: nowrap;
    font-size: 14px;
}
.ticker__track {
    display: inline-flex;
    gap: 48px;
    padding: 12px 0;
    animation: ticker 60s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 12px; font-weight: 550; }
.ticker__item a { color: var(--accent); text-decoration: none; font-weight: 650; }
.ticker__item .ring { --size: 18px; }

.ticker__time { color: var(--ink-faint); font-size: 13px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--tight { padding-top: 0; }
.band__head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}
.band__head h2 { font-size: var(--step-3); }
.band__head p { color: var(--ink-soft); max-width: 52ch; margin-top: 8px; }
.band__more { font-weight: 700; }

/* Choix de l'équipe: une grande carte et deux plus petites */
.picks {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px 44px;
}
.picks > :first-child { grid-row: span 2; }
.pick {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: var(--ink);
    text-decoration: none;
    container-type: inline-size;
}
.pick .cover { aspect-ratio: 16 / 9; }
.picks > :first-child .cover { aspect-ratio: 16 / 10; }

.pick::after { content: none; }
.pick:hover h3 { text-decoration: underline; }
.pick__body { display: grid; gap: 8px; width: 100%; padding: 16px 0 0; }
.pick__body h3 { font-size: clamp(1.15rem, 4cqi, 1.9rem); }
.pick__body p { color: var(--ink-faint); max-width: 50ch; }
.pick__meta { display: flex; align-items: center; gap: 14px; font-weight: 650; }


/* Presque financés: des rangées avec un grand anneau */
.close-list { display: grid; gap: 4px; }
.close-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background-color .25s;
}
.close-row:hover { background: var(--surface); }
.close-row h3 { font-size: var(--step-1); }
.close-row p { color: var(--ink-soft); }
.close-row__gap { text-align: right; font-weight: 650; }
.close-row__gap strong { display: block; font-size: var(--step-2); letter-spacing: -0.03em; }

/* Bientôt lancés: affiches sombres avec compte à rebours */
.soon-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}
.soon {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    scroll-snap-align: start;
}
.soon__media { position: relative; container-type: inline-size; }
.soon__count {
    position: absolute;
    right: 16px;
    bottom: -26px;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 0 4px #fff;
}
.soon__count strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.04em; }
.soon__count span { font-size: 11px; font-weight: 700; }
.soon__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 22px; }
.soon__body h3 { font-size: var(--step-1); padding-right: 70px; }
.soon__body h3 a { text-decoration: none; }
.soon__body p { color: var(--ink-faint); }
.soon__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.soon .btn.is-on { background: var(--accent); color: #fff; box-shadow: none; }

/* Catégories */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.cat:hover { border-color: var(--ink); }
.cat__swatch {
    width: 10px;
    height: 10px;
    background: hsl(var(--h) 45% 55%);
}
.cat small { color: var(--ink-faint); font-weight: 600; }

/* Chiffres en phrase */
.numbers {
    font-size: var(--step-3);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
    max-width: 22ch;
}
.numbers strong {
    color: var(--accent);
    font-weight: 700;
}

/* Réussites récentes */
.funded-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.funded-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    text-decoration: none;
}
.funded-item h3 { font-size: var(--step-0); }
.funded-item p { color: var(--ink-soft); font-size: var(--step--1); }

/* Appel aux créateurs */
.maker-call {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: end;
    padding: clamp(32px, 6vw, 72px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: #fff;
    background: var(--ink);
}
.maker-call h2 { font-size: var(--step-4); line-height: .95; }
.maker-call p { color: rgba(255, 255, 255, .88); font-size: var(--step-1); }
.maker-call__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.maker-call .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.maker-call .btn--ghost:hover { background: #333; }
.maker-call .btn--ink { background: var(--accent); }

/* 8. Explorer */
.page-head { padding-block: 48px 28px; }
.page-head h1 { font-size: var(--step-4); }
.page-head p { margin-top: 10px; }

.filters {
    display: grid;
    gap: 18px;
    padding: 20px;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.filters > * { min-width: 0; }
.filters__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters__row > .segmented { flex: 1 0 100%; }
.filters__row > .input { width: auto; max-width: 100%; }
.filters__search .input { width: 100%; }
.filters__search { flex: 1 1 220px; min-width: 0; }

.segmented {
    display: inline-flex;
    padding: 4px;
    border-radius: var(--control-radius);
    background: var(--paper);
    overflow-x: auto;
    max-width: 100%;
}
.segmented a {
    padding: 8px 16px;
    border-radius: var(--control-radius);
    font-weight: 650;
    font-size: var(--step--1);
    text-decoration: none;
    color: var(--ink-soft);
    white-space: nowrap;
}
.segmented a.is-active { background: var(--ink); color: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chips a {
    flex: none;
    padding: 7px 14px;
    border-radius: var(--control-radius);
    border: 1.5px solid var(--line);
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.chips a:hover { border-color: var(--line-strong); }
.chips a.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.result-count { margin-bottom: 18px; color: var(--ink-soft); font-weight: 600; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 650;
    text-decoration: none;
}
.pager a:hover { background: var(--surface); }
.pager a.is-active { background: var(--ink); color: #fff; }

.empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 64px 24px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    text-align: center;
}
.empty h2, .empty h3 { font-size: var(--step-2); }
.empty p { color: var(--ink-soft); max-width: 48ch; }
.empty .ring { --size: 72px; }

/* 9. Page projet */
.project-hero { padding-block: 36px 40px; }
.project-hero__top { display: grid; gap: 10px; max-width: 900px; margin-bottom: 28px; }
.project-hero__top h1 { font-size: var(--step-4); }
.project-hero__top .lead { margin-top: 4px; }
.project-hero__crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.project-hero__crumbs a { font-weight: 650; color: var(--ink-soft); }

.project-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.gallery { display: grid; gap: 12px; }
.gallery__main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    container-type: inline-size;
    background: var(--surface);
}
.gallery__main .cover, .gallery__main img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery__thumbs button {
    flex: none;
    width: 92px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: none;
}
.gallery__thumbs button.is-active { border-color: var(--accent); }
.gallery__thumbs img, .gallery__thumbs .cover { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }

.backing-box {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 22px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.backing-box__ring { display: flex; gap: 20px; align-items: center; }
.backing-box__ring .ring { --size: 112px; }
.backing-box__raised strong {
    display: block;
    font-size: var(--step-3);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}
.backing-box__raised span { color: var(--ink-soft); }
.backing-box__stats { display: flex; gap: 28px; }
.backing-box__stats div strong { display: block; font-size: var(--step-2); letter-spacing: -0.03em; line-height: 1.1; }
.backing-box__stats div span { color: var(--ink-faint); font-size: var(--step--1); }
.backing-box__model {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--paper);
    font-size: var(--step--1);
    color: var(--ink-soft);
}
.backing-box__model .icon { color: var(--accent); margin-top: 2px; }
.backing-box__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.backing-box__actions form { display: contents; }
.backing-box__state {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--paper);
    font-weight: 600;
}

.countdown { display: flex; gap: 10px; }
.countdown div {
    display: grid;
    min-width: 72px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: #fff;
    text-align: center;
}
.countdown strong { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: rgba(255, 255, 255, .7); }

.creator-line { display: flex; align-items: center; gap: 12px; }
.creator-line a { font-weight: 700; }
.creator-line p { color: var(--ink-faint); font-size: var(--step--1); }

.stretch {
    position: relative;
    padding: 22px 24px 18px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #fff;
}
.stretch h2 { font-size: var(--step-1); margin-bottom: 18px; }
.stretch__track { position: relative; height: 10px; margin: 0 6px 18px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .14); }
.stretch__fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--grad-ring); animation: grow 1.6s var(--ease-out) both; }
.stretch__mark {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--ink);
    background: rgba(255, 255, 255, .4);
    transform: translate(-50%, -50%);
}
.stretch__mark.is-unlocked { background: var(--accent); }
.stretch__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stretch__list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.stretch__list .icon { grid-row: span 2; margin-top: 3px; }
.stretch__list li.is-unlocked .icon { color: #4fd1a1; }
.stretch__list li:not(.is-unlocked) { color: rgba(255, 255, 255, .6); }
.stretch__list small { color: rgba(255, 255, 255, .6); }
@keyframes grow { from { width: 0; } }

.tabs {
    position: sticky;
    top: 72px;
    z-index: 20;
    background: #ffffff;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.tabs__inner { display: flex; gap: 6px; overflow-x: auto; }
.tabs a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 16px 14px;
    border-bottom: 3px solid transparent;
    font-weight: 650;
    text-decoration: none;
    color: var(--ink-soft);
    white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--highlight); }
.tabs small { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--line); font-size: 12px; color: var(--ink); }

.project-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(28px, 5vw, 64px);
    padding-block: 44px 80px;
    align-items: start;
}
.story { display: grid; gap: 40px; }
.story__intro { font-size: var(--step-1); line-height: 1.6; max-width: 62ch; }
.story-section { display: grid; gap: 14px; }
.story-section h2 { font-size: var(--step-3); }
.story-section p { max-width: 64ch; font-size: 1.075rem; }
.story-section img { border-radius: var(--radius-lg); width: 100%; }

.rewards { display: grid; gap: 18px; }
.rewards > h2 { font-size: var(--step-2); }

/* Récompenses en forme de billet: la partie du haut est ce qu'on reçoit,
   le talon du bas résume la livraison et le stock. */
.ticket {
    position: relative;
    display: grid;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    --notch: radial-gradient(circle at 0 100%, transparent 12px, #000 12.5px) left / 51% 100% no-repeat,
             radial-gradient(circle at 100% 100%, transparent 12px, #000 12.5px) right / 51% 100% no-repeat;
    transition: box-shadow .25s, transform .3s var(--ease-out);
}
.ticket__main { display: grid; gap: 10px; padding: 22px 22px 18px; }
.ticket__price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ticket__price strong { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.ticket h3 { font-size: var(--step-1); }
.ticket__main > p { color: var(--ink-soft); }
.ticket__items { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--step--1); }
.ticket__items li { display: flex; gap: 8px; }
.ticket__items .icon { color: var(--accent); width: 1.1em; height: 1.1em; margin-top: 2px; }
.ticket__stub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    padding: 16px 22px 18px;
    border-top: 2px dashed var(--line);
    font-size: var(--step--1);
    color: var(--ink-soft);
}
.ticket__stub span { display: inline-flex; gap: 6px; align-items: center; }
.ticket__stub .btn { margin-left: auto; }
.ticket--early { box-shadow: 0 0 0 1px var(--accent); }
.ticket--sold { opacity: .6; }
.ticket--addon .ticket__main { padding-bottom: 14px; }
a.ticket, label.ticket { text-decoration: none; cursor: pointer; }
a.ticket:hover, label.ticket:hover { box-shadow: 0 0 0 1px var(--ink); }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: #fff4d6;
    color: #7a4b00;
    font-size: 12px;
    font-weight: 750;
}
.tag--accent { background: var(--accent-soft); color: var(--accent-dark); }
.tag--ink { background: var(--ink); color: #fff; }
.tag--pink { background: var(--accent-soft); color: var(--accent-dark); }

.updates { display: grid; gap: 22px; max-width: 760px; }
.update {
    display: grid;
    gap: 10px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.update__meta { display: flex; gap: 10px; align-items: center; color: var(--ink-faint); font-size: var(--step--1); font-weight: 600; }
.update h3 { font-size: var(--step-2); }
.update--locked { background: repeating-linear-gradient(-45deg, var(--surface) 0 14px, var(--paper) 14px 28px); }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details {
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); }

.comments { display: grid; gap: 18px; max-width: 760px; }
.comment-form {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.comment-form textarea {
    width: 100%;
    min-height: 96px;
    padding: 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-md);
    resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.comment .avatar { grid-row: span 3; }
.comment__head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.comment__head a { font-weight: 700; text-decoration: none; }
.comment__head time { color: var(--ink-faint); font-size: var(--step--1); }
.comment__text { white-space: pre-line; overflow-wrap: anywhere; }
.comment__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.comment__actions .like { min-height: 30px; padding: 4px 10px; margin-left: -10px; }
.comment__actions form { margin: 0; }
.comment__replies { display: grid; gap: 10px; grid-column: 2; margin-top: 10px; }
.comment__replies .comment { background: var(--paper); box-shadow: none; }
.comment--creator { box-shadow: 0 0 0 1.5px var(--accent); }
.reply-form { grid-column: 2; display: none; gap: 10px; margin-top: 8px; }
.reply-form.is-open { display: grid; }
.reply-form textarea { width: 100%; min-height: 70px; padding: 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); }

.community { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.backer-chip {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    text-decoration: none;
}
.backer-chip strong { display: block; line-height: 1.2; }
.backer-chip span { color: var(--ink-faint); font-size: var(--step--1); }

.related { padding-block: var(--section-space); border-top: 1px solid var(--line); }

.report-box summary { cursor: pointer; color: var(--ink-faint); font-size: var(--step--1); font-weight: 600; }
.report-box form { display: grid; gap: 12px; margin-top: 12px; padding: 16px; border-radius: var(--radius-md); background: var(--surface); }

/* 10. Contribution (checkout) et remerciement */
.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(24px, 4vw, 56px);
    padding-block: var(--section-space);
    align-items: start;
}
.checkout h1 { font-size: var(--step-4); }
.step { display: grid; gap: 16px; padding-top: 32px; }
.step > h2 { font-size: var(--step-2); }
.step > p { color: var(--ink-soft); margin-top: -8px; }
.choice-list { display: grid; gap: 14px; }
.choice { position: relative; }
.choice input[type="radio"], .choice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.choice input:checked + .ticket { box-shadow: 0 0 0 2.5px var(--accent), var(--shadow-soft); }
.choice input:focus-visible + .ticket { outline: 3px solid var(--accent); outline-offset: 3px; }
.choice input:checked + .ticket .ticket__check { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:disabled + .ticket { opacity: .5; cursor: not-allowed; }
.ticket__check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    color: transparent;
    flex: none;
    transition: background-color .2s, border-color .2s;
}
.ticket__check .icon { width: 16px; height: 16px; stroke-width: 2.6; }

.amount-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.amount-chips button {
    min-height: 44px;
    padding: 8px 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-weight: 700;
    cursor: pointer;
}
.amount-chips button:hover, .amount-chips button.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.region { display: flex; gap: 10px; flex-wrap: wrap; }
.region label {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 0 0 1.5px var(--line-strong);
    font-weight: 650;
    cursor: pointer;
}
.region label:has(input:checked) { box-shadow: 0 0 0 2.5px var(--accent); }
.region input { accent-color: var(--accent); }

.summary {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.summary__project { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.summary__project .cover { border-radius: var(--radius-sm); aspect-ratio: 1; container-type: inline-size; }
.summary__project .cover__title { display: none; }
.summary__project h2 { font-size: var(--step-1); }
.summary__lines { display: grid; gap: 10px; margin: 0; }
.summary__lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary__lines dt { color: var(--ink-soft); }
.summary__lines dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.summary__total { padding-top: 14px; border-top: 2px dashed var(--line); }
.summary__total dt { color: var(--ink); font-weight: 750; }
.summary__total dd { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.03em; }
.summary__impact {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--paper);
    font-size: var(--step--1);
}
.summary__impact .ring { --size: 56px; }
.summary__note { color: var(--ink-faint); font-size: var(--step--1); }

.thanks {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 80px 0 100px;
    text-align: center;
}
.thanks .ring { --size: 180px; }
.thanks .ring__label { font-size: 2.4rem; }
.thanks h1 { font-size: var(--step-5); line-height: .92; max-width: 14ch; }
.thanks p { max-width: 52ch; color: var(--ink-soft); font-size: var(--step-1); }
.thanks__number {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-weight: 750;
}
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; }

/* 11. Tableau de bord du membre, profil, notifications */
.dash-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    padding: 44px 0 32px;
}
.dash-head h1 { font-size: var(--step-4); }

.level-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    min-width: 320px;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #fff;
}
.level-card .ring__track { stroke: rgba(255, 255, 255, .18); }
.level-card .ring { --size: 72px; }
.level-card strong { font-size: var(--step-2); letter-spacing: -0.03em; display: block; line-height: 1.1; }
.level-card p { color: rgba(255, 255, 255, .7); font-size: var(--step--1); }

.pledge-list { display: grid; gap: 16px; }
.pledge-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.pledge-row__media { border-radius: var(--radius-md); overflow: hidden; container-type: inline-size; }
.pledge-row__media .cover__title { font-size: 1.2rem; }
.pledge-row h3 { font-size: var(--step-1); }
.pledge-row h3 a { text-decoration: none; }
.pledge-row__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: var(--step--1); margin-top: 4px; }
.pledge-row__side { display: grid; justify-items: end; gap: 8px; text-align: right; }
.pledge-row__side strong { font-size: var(--step-2); letter-spacing: -0.03em; }
.pledge-row--action { box-shadow: 0 0 0 1px var(--accent); }

.timeline { display: flex; gap: 0; margin-top: 12px; }
.timeline span {
    position: relative;
    flex: 1;
    padding-top: 16px;
    font-size: 12px;
    font-weight: 650;
    color: var(--ink-faint);
}
.timeline span::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    height: 4px;
    background: var(--line);
}
.timeline span::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--line-strong);
}
.timeline span.is-done { color: var(--ink); }
.timeline span.is-done::before { background: var(--accent); }
.timeline span.is-done::after { background: var(--accent); }
.timeline span.is-now::after { background: var(--highlight); box-shadow: 0 0 0 4px rgba(2, 136, 88, .2); }

.side-section { display: grid; gap: 14px; }
.side-section h2 { font-size: var(--step-1); }
.mini-list { display: grid; gap: 10px; }
.mini {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}
.mini .cover { border-radius: var(--radius-sm); aspect-ratio: 1; }
.mini .cover__title { display: none; }
.mini strong { display: block; line-height: 1.2; }
.mini span { color: var(--ink-faint); font-size: var(--step--1); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); padding-bottom: var(--section-space); align-items: start; }

.profile-hero {
    position: relative;
    isolation: isolate;
    padding: 52px 0 40px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
}
.profile-hero::before { content: none; }
.profile-hero__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: end; }
.profile-hero .avatar { --size: 132px; }
.profile-hero h1 { font-size: var(--step-4); }
.profile-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); margin-top: 8px; }
.profile-hero__meta span { display: inline-flex; gap: 6px; align-items: center; }
.profile-stats { display: flex; gap: 28px; }
.profile-stats strong { display: block; font-size: var(--step-3); letter-spacing: -0.04em; line-height: 1; }
.profile-stats span { color: var(--ink-faint); font-size: var(--step--1); }

.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.badge-tile {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 20px 14px 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    text-align: center;
}
.badge-tile strong { line-height: 1.2; }
.badge-tile p { font-size: 13px; color: var(--ink-faint); line-height: 1.35; }
.badge-tile--locked strong { color: var(--ink-faint); }
.badge-tile--mythic { background: var(--ink); color: #fff; box-shadow: none; }
.badge-tile--mythic p { color: rgba(255, 255, 255, .7); }

.notif-list { display: grid; gap: 8px; max-width: 760px; }
.notif {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    text-decoration: none;
}
.notif.is-unread { box-shadow: 0 0 0 1.5px var(--accent); }
.notif .icon { color: var(--accent); }
.notif time { color: var(--ink-faint); font-size: var(--step--1); white-space: nowrap; }

/* 12. Studio des créateurs et console admin */
.console {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    padding-top: 32px;
    padding-bottom: var(--section-space);
    align-items: start;
}
.console__nav {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 2px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.console__nav h2 { padding: 8px 12px 10px; font-size: var(--step-0); }
.console__nav p { padding: 0 12px 10px; color: var(--ink-faint); font-size: var(--step--1); }
.console__nav a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-soft);
}
.console__nav a:hover { background: var(--paper); color: var(--ink); }
.console__nav a.is-active { background: var(--ink); color: #fff; }
.console__nav a small { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--highlight); color: #fff; font-weight: 750; font-size: 12px; }
.console__nav hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

.console__main { display: grid; gap: 28px; min-width: 0; }
.console__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.console__head h1 { font-size: var(--step-3); }
.console__head p { color: var(--ink-soft); margin-top: 6px; }

.panel {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.panel > h2 { font-size: var(--step-1); }
.panel--warn { box-shadow: 0 0 0 1px #e6c766; background: #fffbef; }
.panel--danger { box-shadow: 0 0 0 1.5px rgba(217, 56, 72, .4); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.kpi strong { display: block; font-size: var(--step-3); letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--ink-soft); font-size: var(--step--1); font-weight: 600; }
.kpi small { display: block; color: var(--ink-faint); margin-top: 4px; }

.bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 180px;
    padding-top: 10px;
}
.bars__bar {
    position: relative;
    flex: 1;
    min-width: 6px;
    height: var(--h);
    border-radius: 6px 6px 2px 2px;
    background: var(--grad-ring);
    animation: rise 1s var(--ease-out) both;
    animation-delay: calc(var(--i) * 30ms);
    transform-origin: bottom;
}
.bars__bar:hover { filter: brightness(1.1); }
.bars__bar span {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.bars__bar:hover span { opacity: 1; }
.bars__axis { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 12px; margin-top: 8px; }
@keyframes rise { from { transform: scaleY(0); } }

.meter { display: grid; gap: 6px; }
.meter__top { display: flex; justify-content: space-between; gap: 10px; font-size: var(--step--1); font-weight: 600; }
.meter__track { height: 10px; border-radius: var(--radius-pill); background: var(--paper); overflow: hidden; }
.meter__fill { height: 100%; border-radius: inherit; background: var(--grad-ring); animation: grow 1.2s var(--ease-out) both; }

/* Listes de données de la console (rangées, sans tableau HTML) */
.rows { display: grid; gap: 0; }
.rows__head, .row {
    display: grid;
    grid-template-columns: var(--cols);
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
}
.rows__head { color: var(--ink-faint); font-size: 13px; font-weight: 650; border-bottom: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--soft); }
.row strong { font-size: var(--step-0); }
.row__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: flex-end; align-items: center; }
.row__actions form { margin: 0; display: inline-flex; gap: 8px; align-items: center; }
.row__actions select { min-height: 36px; padding: 4px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--surface); }
.row .cell-title { display: grid; gap: 2px; min-width: 0; }
.row .cell-title a { font-weight: 700; text-decoration: none; }
.row .cell-title span { color: var(--ink-faint); overflow-wrap: anywhere; }
.row code { font-family: var(--font); font-variant-numeric: tabular-nums; }

.studio-project {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.studio-project__media { border-radius: var(--radius-md); overflow: hidden; container-type: inline-size; }
.studio-project__media .cover__title { font-size: 1.4rem; }
.studio-project h2 { font-size: var(--step-2); }
.studio-project h2 a { text-decoration: none; }
.studio-project__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--ink-soft); font-size: var(--step--1); margin-top: 6px; }

.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--line); color: var(--ink-faint); }
.checklist li.is-done .icon { background: var(--accent); color: #fff; }

.editor-list { display: grid; gap: 12px; }
.editor-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--paper);
}
.editor-item h3 { font-size: var(--step-0); }
.editor-item p { color: var(--ink-soft); font-size: var(--step--1); white-space: pre-line; }
.editor-item__actions { display: flex; gap: 12px; align-items: center; }
.editor-item__actions form { margin: 0; }
.editor-item img { max-width: 160px; border-radius: var(--radius-sm); margin-top: 8px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.media-tile { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--paper); }
.media-tile img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.media-tile form { position: absolute; top: 8px; right: 8px; }
.media-tile button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--danger);
    cursor: pointer;
}
.media-tile p { padding: 8px 10px; font-size: 13px; color: var(--ink-soft); }

.locked-note { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); font-size: var(--step--1); }
.locked-note .icon { color: var(--accent); }

/* 13. Connexion, inscription, mode créateur */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}
.auth__art {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    padding: clamp(32px, 5vw, 64px);
    overflow: hidden;
    color: var(--ink);
    background: var(--soft);
    border-right: 1px solid var(--line);
}
.auth__art h2 { font-size: var(--step-4); line-height: .92; max-width: 12ch; }
.auth__art p { color: var(--ink-faint); max-width: 40ch; }
.auth__form { display: grid; justify-items: center; padding: var(--section-space) clamp(16px, 4vw, 48px); }
.auth__form > div { width: 100%; max-width: 440px; display: grid; gap: 24px; }
.auth__form h1 { font-size: var(--step-3); }
.auth__switch { color: var(--ink-soft); }
.demo-accounts { padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: var(--step--1); color: var(--ink-soft); }
.demo-accounts strong { color: var(--ink); }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mode {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.mode h2 { font-size: var(--step-2); }
.mode ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); display: grid; gap: 6px; }
.mode--creator { background: var(--ink); color: #fff; box-shadow: none; }
.mode--creator ul { color: rgba(255, 255, 255, .78); }

/* 14. Ressources et contact */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-bottom: var(--section-space); align-items: start; }
.guide__toc { position: sticky; top: 100px; display: grid; gap: 4px; }
.guide__toc a { padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.guide__toc a:hover { background: var(--surface); color: var(--ink); }
.guide__body { display: grid; gap: 64px; }
.guide__chapter { display: grid; gap: 18px; scroll-margin-top: 100px; }
.guide__chapter h2 { font-size: var(--step-3); }
.guide__chapter h3 { font-size: var(--step-1); margin-top: 10px; }
.guide__chapter p, .guide__chapter li { max-width: 66ch; color: var(--ink-soft); font-size: 1.05rem; }
.guide__chapter ul { display: grid; gap: 8px; padding-left: 1.2em; margin: 0; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare > div { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.compare h3 { margin: 0; }

.fee-calc { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.fee-calc label { font-weight: 650; }
.fee-calc input { width: 100%; max-width: 260px; height: var(--control-height); padding: 0 16px; border-radius: var(--radius-md); border: 0; font-size: var(--step-1); color: var(--ink); }
.fee-calc dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 0; }
.fee-calc dt { color: rgba(255, 255, 255, .7); font-size: var(--step--1); }
.fee-calc dd { margin: 0; font-size: var(--step-2); font-weight: 800; letter-spacing: -0.03em; }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 72px); padding-block: var(--section-space); align-items: start; }
.contact__aside { display: grid; gap: 22px; }
.contact__aside h2 { font-size: var(--step-1); }
.contact__aside p { color: var(--ink-soft); }

/* 15. Pied de page et erreurs*/
.site-footer {
    margin-top: auto;
    padding: 48px 0 28px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink-faint);
    font-size: 14px;
}

.site-footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.site-footer__brand p { margin-top: 16px; max-width: 36ch; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer__cols div { display: grid; gap: 10px; align-content: start; }
.site-footer__cols h2 { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.site-footer__cols a { text-decoration: none; }
.site-footer__cols a:hover { color: var(--accent); }
.site-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }

.error-page {
    display: grid;
    justify-items: start;
    gap: 20px;
    padding: 96px 0 120px;
}
.error-page__code {
    font-size: clamp(6rem, 22vw, 16rem);
    font-weight: 800;
    line-height: .8;
    letter-spacing: -0.06em;
    color: var(--line);
}
.error-page h1 { font-size: var(--step-3); max-width: 24ch; }

/* 16. Écrans moyens et petits */
@media (max-width: 1080px) {
    .nav-search { display: none; }
    .project-hero__grid, .project-body, .checkout, .two-col { grid-template-columns: minmax(0, 1fr); }
    .backing-box, .summary { position: static; }
    .console { grid-template-columns: minmax(0, 1fr); }
    .console__nav { position: static; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .console__nav h2, .console__nav p, .console__nav hr { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .site-nav { flex-wrap: wrap; }
    .nav-toggle { display: grid; place-items: center; }
    .nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px 0 20px;
    }
    .nav-links.is-open { display: flex; }
    .nav-links > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .nav-search { display: block; max-width: none; margin: 8px 0; }
    .nav-account { flex-wrap: wrap; padding-top: 8px; }
    .menu__panel { position: static; width: 100%; margin-top: 10px; box-shadow: 0 0 0 1px var(--line); }

    .hero { padding-block: var(--section-space); }
    .hero__grid, .picks, .maker-call, .auth, .guide, .contact, .modes, .compare { grid-template-columns: minmax(0, 1fr); }
    .picks { grid-template-rows: auto; }
    .picks > :first-child { grid-row: auto; min-height: 340px; }
    .spotlight { transform: none; max-width: 520px; }
    .auth__art { min-height: 260px; }
    .guide__toc { position: static; grid-auto-flow: column; overflow-x: auto; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .profile-hero__grid { grid-template-columns: auto 1fr; }
    .profile-stats { grid-column: 1 / -1; }
    .dash-head { grid-template-columns: 1fr; }
    .level-card { min-width: 0; }
}

@media (max-width: 640px) {
    .hero__title span:nth-child(2) { padding-left: 0; }
    .close-row { grid-template-columns: auto 1fr; padding: 14px 6px; }
    .close-row__gap { grid-column: 2; text-align: left; }
    .close-row__gap strong { display: inline; font-size: var(--step-0); }
    .pledge-row, .studio-project { grid-template-columns: 1fr; }
    .pledge-row__side { justify-items: start; text-align: left; }
    .site-footer__cols { grid-template-columns: 1fr 1fr; }
    .backing-box__ring .ring { --size: 92px; }
    .rows__head { display: none; }
    .row { grid-template-columns: 1fr; gap: 6px; padding: 14px 4px; }
    .row__actions { justify-content: flex-start; }
    .profile-hero .avatar { --size: 96px; }
    .countdown div { min-width: 60px; }
    .badge-toast { left: 16px; right: 16px; max-width: none; }
}

/* Mouvement réduit: on garde les états finaux sans animation */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .ticker__track { animation: none; }
    .ticker { overflow-x: auto; }
}

@media (min-width: 901px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .auth__art {
        display: none;
    }

    .auth__form {
        justify-items: center;
    }
}

/* Shared form groups, page spacing and content utilities. */
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: var(--space-xs); font-size: var(--step--1); font-weight: 650; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.check { min-height: 24px; font-size: var(--step--1); }
.field input:disabled, .field select:disabled { background: var(--soft); color: var(--ink-soft); cursor: not-allowed; }
.form, .panel, .grid-cards > *, .hero__grid > *, .site-nav > *, .nav-links, .nav-account { min-width: 0; }
.pcard__foot .like-form { margin-left: auto; flex-shrink: 0; }
.pcard__foot .ring { flex-shrink: 0; }
.page-content { padding-bottom: var(--section-space); }
.project-editor { width: 100%; max-width: 860px; margin-inline: auto; padding-block: var(--section-space); }
.form-group { display: grid; gap: var(--space-xs); }
.form-group > legend { float: left; width: 100%; }
.form-group > legend + * { clear: both; }
.align-center { align-items: center; }
.align-end { align-items: end; }
.actions-center { justify-content: center; }
.media-preview { border-radius: var(--radius-md); overflow: hidden; container-type: inline-size; }
.media-tile { margin: 0; }
.tracking-input { width: 120px; }
.upload-error { color: var(--danger); font-size: var(--step--1); }
.toggle-error { color: var(--danger); font-size: var(--step--1); max-width: 30ch; }
.demo-accounts { overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .site-nav { gap: 12px; }
    .nav-links { order: 3; max-height: calc(100dvh - 80px); overflow-y: auto; }
    .nav-toggle { order: 2; }
    .nav-account { justify-content: center; }
    .nav-links > a, .menu__panel a, .menu__panel button { text-align: center; }
    .nav-search { width: 100%; flex: auto; }
    .menu summary { justify-content: center; min-height: var(--control-height); }
    .nav-links .menu { width: 100%; }
}

@media (max-width: 640px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .hero__grid, .project-hero__top, .checkout h1, .step > h2, .page-head, .section-head, .console__head, .auth__form, .project-editor, .profile-hero, .dash-head, .site-footer, .maker-call, .pcard__body { text-align: center; }
    .lead, .hero__lead, .spotlight, .site-footer__brand p { margin-inline: auto; }
    .hero-search { flex-direction: column; }
    .hero-search input { flex: none; }
    .hero__links, .form-actions, .maker-call__actions, .console__head, .pcard__foot { justify-content: center; }
    .pcard__foot .like-form { margin-left: 0; }
    .pcard__funding { justify-content: center; }
    .pcard__meta { justify-content: center; flex-wrap: wrap; }
    .panel > h2, .console__nav, .console__nav a { text-align: center; }
    .form-actions > .btn { width: 100%; }
    .field > label, .field > .label, .field > legend, legend { text-align: center; }
    .filters__row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    .filters__row > .segmented { flex: none; }
    .filters__search { flex: auto; }
    .filters__row > .input { width: 100%; }
    .segmented, .chips { flex-wrap: wrap; justify-content: center; }
    .segmented a, .chips a { white-space: normal; text-align: center; }
    .check { justify-content: center; text-align: left; }
    .region, .creator-line, .project-hero__crumbs { justify-content: center; }
    .profile-hero__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .row__actions { justify-content: center; flex-wrap: wrap; }
    .site-footer__cols { text-align: center; }
}
