/* Site public Siderz : accueil et page pour les professionnels. Les pages de service (confirmation, carnet) gardent style.css. */
:root {
  --bg: #0F0D24; --bg2: #171434; --panel: #1E1A45; --line: rgba(255, 255, 255, .1);
  --text: #F6F3FF; --muted: #B4AFD6;
  --yellow: #FFD23F; --pink: #FF6FAE; --green: #6BE38B; --cyan: #5FE3F2; --violet: #A07BFF; --orange: #FF9F4A;
  --r: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; color: var(--text); font: 600 16px/1.55 Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(160, 123, 255, .22), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(255, 111, 174, .14), transparent 60%), var(--bg);
  background-attachment: fixed;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 8.4vw, 60px); }
h2 { font-size: clamp(26px, 6vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.lead { font-size: clamp(17px, 4.2vw, 20px); color: var(--muted); max-width: 34em; }

/* En-tête */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(15, 13, 36, .72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.logo { font: 600 22px Fredoka, sans-serif; color: #F6F3FF; text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: 0; letter-spacing: -.01em; }
/* Le symbole Siderz : deux souvenirs côte à côte, l'étoile au centre. Voir docs/MARQUE.md. */
.logo::before { content: ""; width: 1.45em; height: 1.45em; flex: none; margin-right: .45em; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22%3E%3Crect width=%22200%22 height=%22200%22 rx=%2246%22 fill=%22%23FFD23F%22/%3E%3Cg transform=%22rotate(-9 100 100)%22%3E%3Crect x=%2246%22 y=%2244%22 width=%2278%22 height=%22112%22 rx=%2216%22 fill=%22%2314122B%22 opacity=%22.28%22/%3E%3C/g%3E%3Cg transform=%22rotate(7 100 100)%22%3E%3Crect x=%2272%22 y=%2240%22 width=%2282%22 height=%22118%22 rx=%2217%22 fill=%22%2314122B%22/%3E%3Cpolygon points=%22113,62 122,86 147,88 127,103 134,128 113,114 92,128 99,103 79,88 104,86%22 fill=%22%23FF6FAE%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.logo b { color: var(--yellow); font-weight: inherit; }
.nav a.link { text-decoration: none; font-weight: 800; font-size: 14px; color: var(--muted); }
.nav a.link:hover { color: var(--text); }
@media (max-width: 560px) { .nav a.link { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn.primary { background: linear-gradient(#FFE27A, #FFC21A); color: #1B1500; box-shadow: 0 4px 0 #B98300, 0 10px 26px rgba(255, 210, 63, .22); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid rgba(255, 255, 255, .16); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 13px; box-shadow: 0 3px 0 #B98300; }
.btn:disabled { opacity: .55; cursor: default; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 56px 0; }
.hero { padding: 44px 0 30px; }
.hero .wrap { display: grid; gap: 34px; }
.hero .txt { display: grid; gap: 18px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Cartes à collectionner */
.fan { display: flex; justify-content: center; align-items: center; height: min(330px, 62vw); }
.tc { position: relative; width: min(190px, 36vw); aspect-ratio: 1 / 1.4; border-radius: 26px; padding: 3px; flex: none; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.tc.epic { background: linear-gradient(135deg, #D9C8FF, #8A63F0 45%, #5A3BC0); }
.tc.rare { background: linear-gradient(135deg, #BFE0FF, #4C8BF5 45%, #2B55B8); }
.tc.legend { background: linear-gradient(135deg, #FFF0B8, #FFC21A 45%, #B98300); }
.tc .in { position: relative; height: 100%; border-radius: 23px; overflow: hidden; background: #1B1740 center / cover no-repeat; }
.tc .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 14px 13px; background: linear-gradient(rgba(13, 11, 32, 0), rgba(13, 11, 32, .94) 62%); }
.tc .cap small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.tc .cap b { display: block; font: 600 clamp(13px, 3.6vw, 17px)/1.2 Fredoka, sans-serif; }
.fan .tc + .tc { margin-left: max(-34px, -8vw); }
.fan .tc:nth-child(1) { transform: rotate(-9deg) translateY(14px); z-index: 1; }
.fan .tc:nth-child(1) .cap, .fan .tc:nth-child(3) .cap { display: none; }
.fan .tc:nth-child(2) { z-index: 2; transform: translateY(-6px) scale(1.06); }
.fan .tc:nth-child(3) { transform: rotate(9deg) translateY(14px); z-index: 1; }

/* Grilles */
.grid { display: grid; gap: 14px; }
.box { background: linear-gradient(145deg, rgba(40, 35, 86, .9), rgba(26, 23, 58, .9)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.box .n { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font: 600 18px Fredoka, sans-serif; background: rgba(255, 210, 63, .14); color: var(--yellow); }
.box p { color: var(--muted); }

/* Versions */
.plan { position: relative; }
.plan.cert { border-color: rgba(107, 227, 139, .55); }
.plan.crea { border-color: rgba(92, 225, 230, .55); }
.plan.crea h3 { color: var(--cyan, #5CE1E6); }
.plan.coll { border-color: rgba(255, 210, 63, .65); box-shadow: 0 10px 40px rgba(255, 210, 63, .1); }
.plan h3 { font-size: 24px; }
.plan.cert h3 { color: var(--green); }
.plan.coll h3 { color: var(--yellow); }
.price { font: 600 34px/1 Fredoka, sans-serif; }
.price small { font: 800 14px Nunito, sans-serif; color: var(--muted); }
.alt { font-size: 14px; font-weight: 800; color: var(--muted); }
/* Les paliers de certification : la jauge à gauche, le prix à droite. */
.tiers { width: 100%; border-collapse: collapse; font-size: 14px; font-weight: 700; color: var(--muted); }
.tiers td { padding: 7px 0; border-top: 1px solid rgba(255,255,255,.1); }
.tiers td:last-child { text-align: right; color: #F6F3FF; font-weight: 800; white-space: nowrap; }
.plan ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 26px; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px; border-left: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(-45deg); }
.plan.cert li::before { border-color: var(--green); }
.plan.coll li::before { border-color: var(--yellow); }
.tag { position: absolute; top: -12px; right: 18px; background: var(--yellow); color: #1B1500; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }

/* Bientôt : la demande */
.soon { overflow: hidden; background: linear-gradient(160deg, rgba(255, 111, 174, .14), rgba(160, 123, 255, .1)); border: 1px solid rgba(255, 111, 174, .4); border-radius: 30px; padding: 26px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 78px minmax(0, 1fr) 50px; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
.bar i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--pink), var(--violet)); }
.bar span:last-child { text-align: right; }
.mock { background: rgba(13, 11, 32, .55); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 14px; }

/* Formulaire */
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
input, select, textarea { width: 100%; min-height: 52px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: var(--text); font: 700 16px Nunito, sans-serif; padding: 12px 14px; }
textarea { min-height: 110px; resize: vertical; }
select option { color: #111; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.choice { display: grid; gap: 10px; }
.choice label { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-weight: 700; padding: 12px 14px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.choice input { min-height: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--yellow); padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 16px; padding: 12px 14px; font-weight: 800; display: none; }
.msg.ok { display: block; color: var(--green); border: 1.5px solid var(--green); background: rgba(107, 227, 139, .1); }
.msg.err { display: block; color: #FF8A8A; border: 1.5px solid #FF8A8A; background: rgba(255, 138, 138, .1); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--yellow); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
footer a { text-decoration: none; font-weight: 800; }

/* Vitrine : séries et carnets en rangées qui défilent. Seule la rangée défile, jamais la page. */
.rail { --g: max(20px, calc((100vw - 1040px) / 2)); display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--g) 22px; scroll-padding-inline: var(--g); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail::after { content: ""; flex: 0 0 1px; }
.rail .tc { width: min(190px, 42vw); scroll-snap-align: start; text-decoration: none; color: inherit; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .2s; }
.rail .tc:hover { transform: translateY(-4px); }
.tc .cap i { display: block; font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 3px; }
.tc.rare .cap small { color: #8FC0FF; }
.tc.epic .cap small { color: #C3A9FF; }
.tc.legend .cap small { color: #FFD23F; }
.note { margin-top: 4px; }
.stats { padding: 10px 0 0; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.nums div { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 20px; padding: 16px 8px; display: grid; gap: 2px; }
.nums b { font: 600 clamp(24px, 6.6vw, 38px)/1 Fredoka, sans-serif; color: var(--yellow); }
.nums span { font-size: clamp(12px, 3.2vw, 14px); font-weight: 800; color: var(--muted); }
.legal { flex-basis: 100%; font-size: 12px; opacity: .8; }

@media (min-width: 820px) {
  section { padding: 84px 0; }
  .hero { padding: 76px 0 50px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .grid.c2 { grid-template-columns: repeat(2, 1fr); }
  .soon { grid-template-columns: 1fr 1fr; padding: 40px; align-items: center; }
  .split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
  .tc { width: 210px; }
  .rail .tc { width: 200px; }
  .fan { height: 380px; }
  .fan .tc + .tc { margin-left: -38px; }
}
