/* SpxrxDesign — site public */
:root {
  --ink: #0B0B0F;
  --white: #FFFFFF;
  --pink: #FF4DA6;
  --pink-soft: #FFE3F1;
  --pink-deep: #C2126F;
  --grey: #45454F;
  --grey-2: #6A6A74;
  --line: #ECECF0;
  --soft: #F7F7F9;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--pink-deep); }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.display { font-family: var(--display); text-transform: uppercase; line-height: .95; margin: 0; }
.label { font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-deep); }
.lead { font-size: 21px; color: var(--grey); max-width: 680px; margin: 0; }
.pink { color: var(--pink); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 28px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-pink { background: var(--pink); color: var(--ink); }
.btn-pink:hover { color: var(--ink); background: #ff66b3; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-white { background: var(--white); color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; color: var(--ink); }
.brand svg { width: 124px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-weight: 500; font-size: 17px; }
.nav a { text-decoration: none; }
.nav a.active { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 16px; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
}

/* Hero */
.hero { padding: 96px 0 112px; }
.hero .wrap { display: flex; flex-direction: column; gap: 32px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.hero h1 { font-size: clamp(52px, 9vw, 140px); font-weight: 900; letter-spacing: -.01em; }
.hero-logo { flex: 1 1 260px; max-width: 460px; min-width: 0; height: auto; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Intro pages intérieures */
.intro { padding: 96px 0 64px; }
.intro .wrap { display: flex; flex-direction: column; gap: 24px; }
.intro h1 { font-size: clamp(44px, 8vw, 120px); font-weight: 900; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; }
.section-head a { font-weight: 700; }

/* Bandes projets (accueil) */
.band { border-top: 1px solid rgba(11,11,15,.08); }
.band .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }
.band-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-deep); }
.band-visual { align-self: center; width: min(100%, 640px); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #F4F4F6; }
.band-visual img { width: 100%; height: 100%; object-fit: cover; }
.band-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.band h3 { font-size: clamp(30px, 5vw, 72px); font-weight: 900; }
.band-foot a { font-weight: 700; font-size: 17px; }
.band.t-white { background: var(--white); }
.band.t-pink { background: var(--pink); }
.band.t-pink .band-meta { color: var(--ink); }
.band.t-pink .band-visual { background: rgba(11,11,15,.10); }
.band.t-pink a:hover { color: var(--ink); }
.band.t-soft { background: var(--pink-soft); }
.band.t-soft .band-visual { background: var(--white); }
.placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--grey-2); font-size: 15px; }

/* Services */
.services { background: var(--soft); padding: 112px 0; }
.services .wrap, .about .wrap { display: flex; flex-direction: column; gap: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card .num { color: var(--pink-deep); font-weight: 700; }
.card h3 { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 26px; margin: 0; }
.card p { margin: 0; color: var(--grey); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; }
.card.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card.dark .num { color: var(--pink); }
.card.dark p { color: #C9C9CF; }
.card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card li { display: flex; gap: 10px; }
.card li::before { content: "+"; color: var(--pink-deep); font-weight: 700; }
.card.dark li::before { color: var(--pink); }
.card .price-row { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.card .price { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 20px; }

/* À propos */
.about { padding: 112px 0; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.split > :last-child { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 20px; color: var(--grey); }
.split h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; line-height: 1; }
.split p { margin: 0; }

/* Grille projets */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: inherit; font-weight: 700; font-size: 16px; padding: 10px 20px; min-height: 44px; border-radius: 999px; cursor: pointer; background: var(--white); color: var(--ink); border: 2px solid #E2E2E8; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 28px; }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.tile-img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--pink-soft); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile .cat { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-deep); }
.tile .name { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 21px; line-height: 1.1; }
.tile[hidden] { display: none; }
.empty { color: var(--grey); }

/* Page projet */
.meta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-row span { display: block; }
.meta-row .k { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-2); }
.meta-row .v { font-size: 19px; font-weight: 500; }
.gallery { display: flex; flex-direction: column; gap: 28px; padding: 48px 0 112px; }
.gallery img { width: 100%; border-radius: 10px; }
.next { display: block; text-decoration: none; background: var(--pink); color: var(--ink); }
.next:hover { color: var(--ink); }
.next .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.next .t { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: clamp(30px, 5vw, 64px); line-height: .95; }

/* Étapes / FAQ */
.steps { background: var(--pink-soft); padding: 110px 0; }
.steps .wrap, .faq .wrap { display: flex; flex-direction: column; gap: 48px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 3px solid var(--ink); }
.step .n { font-family: var(--display); font-weight: 900; font-size: 44px; color: var(--pink-deep); }
.step h3 { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 21px; margin: 0; }
.step p { margin: 0; color: var(--grey); }
.faq { padding: 110px 0; }
.faq-item { display: flex; flex-wrap: wrap; gap: 12px 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.faq-item h3 { flex: 1 1 360px; margin: 0; font-size: 21px; }
.faq-item p { flex: 1 1 360px; margin: 0; color: var(--grey); }

.universes { background: var(--pink-soft); padding: 100px 0; }
.universes .list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.universes .list span { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(26px, 4vw, 52px); line-height: 1.1; }
.universes .list span::after { content: " /"; color: var(--pink); }

/* Formulaire */
.form { display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 16px; }
.field input, .field textarea, .field select { font: inherit; font-size: 17px; font-weight: 400; padding: 14px 16px; min-height: 48px; border-radius: 12px; border: 2px solid #E2E2E8; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--pink-deep); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px; border: 2px solid #E2E2E8; border-radius: 999px; font-weight: 500; cursor: pointer; }
.chip input { accent-color: var(--pink-deep); width: 18px; height: 18px; }
.chip:has(input:checked) { border-color: var(--pink-deep); background: #FFF6FA; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { font-weight: 700; font-size: 16px; padding: 0 0 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-bottom: 112px; }
.contact-layout .form { flex: 1.4 1 480px; min-width: 0; }
.contact-layout aside { flex: 1 1 300px; min-width: 0; }
.contact-layout aside h2 { font-family: var(--display); text-transform: uppercase; font-size: 24px; margin: 0 0 16px; }
.social-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.social-row span:first-child { color: var(--grey); }
.social-row :last-child { font-weight: 700; }

.alert { padding: 16px 20px; border-radius: 14px; font-weight: 600; }
.alert-success { background: #E7F7EE; color: #11663A; }
.alert-error { background: #FDECEC; color: #9B1C1C; }
.alert ul { margin: 8px 0 0; padding-left: 20px; font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); }
.cta .wrap { padding-top: 100px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cta h2 { font-size: clamp(38px, 6vw, 88px); font-weight: 900; }
.footer-bar { border-top: 1px solid #2A2A33; }
.footer-bar .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 15px; color: #A8A8B2; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; }
.footer-brand svg { width: 72px; height: auto; color: var(--white); }
.footer-social { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-social a { color: var(--white); }
.footer-social a:hover { color: var(--pink); }
.powered img { height: 52px; width: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 600px) { .wrap { padding: 0 20px; } body { font-size: 17px; } .hero { padding: 64px 0 80px; } .intro { padding: 64px 0 48px; } }

/* Sélecteur de langue */
.header-tools { display: flex; align-items: center; gap: 10px; order: 2; }
.site-header .nav { order: 1; }
@media (min-width: 761px) { .site-header .wrap { flex-wrap: nowrap; } .site-header .nav { margin-left: auto; } }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.lang-btn:hover { border-color: #D6D6DE; }
.lang-btn img, .lang-menu img { width: 20px; height: 20px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 1px rgba(11,11,15,.08); flex: none; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; max-width: calc(100vw - 32px); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 48px rgba(11,11,15,.14); padding: 14px; z-index: 40; }
.lang-title { margin: 4px 8px 10px; font-weight: 700; font-size: 16px; }
.lang-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 48px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.lang-menu a:hover { background: var(--soft); color: var(--ink); }
.lang-menu a.on { background: #FFF0F7; }
.lang-menu img { width: 22px; height: 22px; }
.lang-region { font-weight: 700; }
.lang-name { color: var(--grey); }
.lang-menu a.on .lang-region { color: var(--pink-deep); }
.lang-check { margin-left: auto; color: var(--pink-deep); }

/* Visuels des projets au format des affiches (1421 × 1107) */
.band-visual, .tile-img { aspect-ratio: 1421 / 1107; }
.band-visual { width: min(100%, 720px); display: block; }
.band-visual:hover img { transform: scale(1.02); }
.band-visual img { transition: transform .3s ease; }
@media (max-width: 760px) {
  .header-tools { margin-left: auto; }
  .site-header .nav { order: 3; }
  .lang-btn { padding: 8px 12px; }
}

/* Comptes clients */
.auth { padding: 80px 20px 120px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 900; }
.auth-card .form { gap: 18px; }
.auth-card .btn { width: 100%; }
.auth-links { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--grey); }
.auth-links a { font-weight: 700; }
.muted { margin: 0; color: var(--grey); }
.field small { font-weight: 400; color: var(--grey-2); }
.card-title { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 22px; }
.card.form { gap: 18px; }

/* Messagerie client */
.conv-page { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.back-link { font-weight: 700; align-self: flex-start; }
.conv-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.conv-side { flex: 1 1 280px; min-width: 0; max-width: 380px; }
.conv-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.conv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.conv-head h1 { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; }
.conv-head p { margin: 6px 0 0; color: var(--grey); font-size: 16px; }
@media (max-width: 900px) { .conv-side { display: none; } }

/* Lien compte dans le header */
.nav .nav-account { display: inline-flex; align-items: center; gap: 8px; }
.nav-badge { background: var(--pink); color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }

/* Contact : bloc compte */
.account-box { border: 2px dashed #F2A7CC; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: #FFF6FA; }
.account-box p { margin: 0; color: var(--grey); font-size: 16px; }
.logged-as { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--soft); font-size: 16px; }
.steps-mini { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.steps-mini li::marker { color: var(--pink-deep); font-weight: 800; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; font-weight: 700; }
.link-btn:hover { color: var(--pink-deep); }
