/* C4App — De la capture à la conversion. Couleurs relevées sur le logo. */
:root {
  --bleu: #0131CA;
  --bleu-fonce: #01228F;
  --creme: #FDF7E7;
  --corail: #FE6F59;
  --corail-fonce: #E9563F;
  --ink: #0B1B5C;
  --ink-2: #5A6488;
  --bleu-pale: #E3E8F8;
  --vert: #1D6B3A;
  --vert-pale: #E3F4E8;
  --rouge: #C62828;
  --blanc: #FFFFFF;
  --ligne: #E6DFCB;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 27, 92, .06), 0 8px 24px rgba(11, 27, 92, .06);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.hidden { display: none !important; }

/* Barre de navigation */
.nav { background: var(--bleu); color: var(--creme); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--creme); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--creme); text-decoration: none; opacity: .88; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { opacity: 1; }
.nav-links a.btn-light { color: var(--bleu); opacity: 1; }
@media (max-width: 720px) { .nav-links .optional { display: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 14px; padding: 13px 22px; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: transform .1s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--corail); color: var(--blanc); }
.btn-primary:hover:not(:disabled) { background: var(--corail-fonce); }
.btn-light { background: var(--creme); color: var(--bleu); }
.btn-outline { background: transparent; color: var(--bleu); box-shadow: inset 0 0 0 2px var(--bleu); }
.btn-ghost { background: var(--bleu-pale); color: var(--bleu); padding: 8px 14px; font-size: .9rem; border-radius: 999px; }
.btn-danger { background: #FDECEC; color: var(--rouge); padding: 8px 14px; font-size: .9rem; border-radius: 999px; }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.nav .btn { padding: 9px 16px; font-size: .92rem; }

/* Sections */
section { padding: 84px 0; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--corail); margin-bottom: 10px; }

/* Héros */
.hero { background: var(--bleu); color: var(--creme); padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; opacity: .9; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .note { margin-top: 16px; font-size: .9rem; opacity: .8; }
.tagline { color: var(--corail); font-weight: 800; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Maquette de slides dans le héros */
.slides { display: flex; gap: 14px; justify-content: center; transform: rotate(-4deg); }
.slide {
  width: 150px; aspect-ratio: 3 / 4; border-radius: 16px; padding: 12px;
  background: #1B1B22; color: #FFC400; box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; justify-content: space-between; font-weight: 800; font-size: .8rem;
}
.slide:nth-child(2) { transform: translateY(26px); background: #26262F; }
.slide:nth-child(3) { transform: translateY(-8px); background: #1F2230; }
.slide small { color: var(--blanc); background: rgba(0, 0, 0, .5); border-radius: 6px; padding: 1px 6px; font-size: .65rem; align-self: flex-start; }
.slide .cta { background: #FF7A00; color: #111; border-radius: 6px; padding: 4px; text-align: center; font-size: .6rem; }
.slide .product { flex: 1; margin: 10px 18px; border-radius: 10px; background: linear-gradient(160deg, #3A3F55, #22242E); }
@media (max-width: 520px) { .slide { width: 100px; font-size: .6rem; } }

/* Cartes */
.card { background: var(--blanc); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-number {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bleu); color: var(--creme); font-weight: 800; margin-bottom: 14px;
}
.c4-letter { font-size: 2.2rem; font-weight: 800; color: var(--corail); line-height: 1; margin-bottom: 8px; }

/* Tarifs */
.pricing { background: var(--bleu); color: var(--creme); }
.toggle { display: inline-flex; background: rgba(253, 247, 231, .14); border-radius: 999px; padding: 4px; margin: 10px 0 34px; }
.toggle button { border: none; background: transparent; color: var(--creme); font: inherit; font-weight: 700; padding: 9px 20px; border-radius: 999px; cursor: pointer; }
.toggle button.active { background: var(--corail); color: var(--blanc); }
.toggle .save { font-size: .75rem; background: rgba(254, 111, 89, .3); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 780px; margin: 0 auto; text-align: left; }
.plan { background: var(--creme); color: var(--ink); border-radius: 22px; padding: 28px; position: relative; }
.plan.featured { outline: 3px solid var(--corail); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--corail); color: var(--blanc); font-size: .8rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--corail); }
.plan .per { color: var(--ink-2); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; border-top: 1px solid var(--ligne); padding-top: 18px; }
.plan li { padding: 5px 0 5px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--corail); font-weight: 800; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; background: var(--bleu-pale); color: var(--bleu); border-radius: 999px; padding: 2px 10px; }
.plan .btn { width: 100%; }
.pricing .footnote { opacity: .8; font-size: .9rem; margin-top: 26px; }

/* FAQ */
details { background: var(--blanc); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* Pied de page */
footer { background: var(--ink); color: var(--creme); padding: 40px 0; font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--creme); opacity: .85; }

/* Formulaires et espace compte */
.panel { max-width: 460px; margin: 56px auto; }
.field { width: 100%; font: inherit; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--creme); color: var(--ink); }
.field:focus { outline: none; border-color: var(--bleu); }
.code-field { text-align: center; letter-spacing: .5em; font-size: 1.6rem; font-weight: 800; }
.stack > * + * { margin-top: 12px; }
.error { color: var(--rouge); font-size: .92rem; }
.success { color: var(--vert); font-size: .92rem; font-weight: 600; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.big-number { font-size: 2.4rem; font-weight: 800; color: var(--corail); line-height: 1.1; }
.role-badge { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--bleu-pale); color: var(--bleu); }
.role-badge.admin { background: #FFE6E1; color: var(--corail-fonce); }
.role-badge.beta { background: var(--vert-pale); color: var(--vert); }
.role-badge.blocked { background: #FDECEC; color: var(--rouge); }

/* Admin */
.admin-page { padding: 32px 0 64px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat .label { font-size: .85rem; color: var(--ink-2); }
.stat .value { font-size: 1.9rem; font-weight: 800; }
.stat .detail { font-size: .8rem; color: var(--ink-2); }
.admin-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 960px) { .admin-layout { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--ligne); }
td { padding: 11px 10px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--creme); }
tbody tr.selected { background: var(--bleu-pale); }
.table-scroll { overflow-x: auto; }
.segmented { display: inline-flex; background: var(--creme); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { border: none; background: transparent; font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 9px; cursor: pointer; color: var(--ink-2); }
.segmented button.active { background: var(--blanc); color: var(--bleu); box-shadow: var(--shadow); }
.ledger { max-height: 320px; overflow-y: auto; font-size: .88rem; }
.ledger .line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.plus { color: var(--vert); font-weight: 700; }
.minus { color: var(--corail-fonce); font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Pages légales */
.legal { max-width: 780px; margin: 48px auto; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
