/* Formix — identité « encre & graphite — noir Apple » : fond chaud, encre profonde, accent graphite. Chargé après landing.css et formix.css. */
:root { --acc: #1d1d1f; --fx-ink: #161618; --fx-ink2: #232326; --fx-paper: #f5f5f7; --fx-paper2: #ececf0; --fx-line: #d2d2d7; --fx-coral: #1d1d1f; --fx-coral-d: #000000; --fx-sun: #aeaeb2; }

/* ===================== PAGES PUBLIQUES ===================== */
.lp { --a: #1d1d1f; --ah: #000000; --link: #1d1d1f; --bg: #f5f5f7; --bg2: #ececf0; --ink: #161618; --mute: #6e6e73; --line: #d2d2d7; --tile: #ececf0; --tile2: #ffffff; --stage: #232326; --card: #ffffff; --dk: #161618; --hl: #f2f2f7; --hlt: #1d1d1f; --ok: #1d8a3f; --okbg: #e6f4ea; --wait: #a15c00; --waitbg: #fff3df; --sh: rgba(22,22,24,.10); font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif; }
@media (prefers-color-scheme: dark) { .lp { --a: #f5f5f7; --ah: #ffffff; --link: #d2d2d7; --bg: #000000; --bg2: #161618; --ink: #f5f5f7; --mute: #a1a1a6; --line: #38383a; --tile: #1c1c1e; --tile2: #1c1c1e; --stage: #232326; --card: #2c2c2e; --dk: #2c2c2e; --hl: #2c2c2e; --hlt: #d2d2d7; } }
.lp-nav { background: rgba(22,22,24,.94) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.lp-nav .lp-logo, .lp-nav .lp-links a, .lp-nav .lp-hide { color: #f5f5f7 !important; }
.lp-nav .lp-links a { opacity: .78; } .lp-nav .lp-links a:hover, .lp-nav .lp-links a[aria-current] { opacity: 1; text-decoration: none; }
.lp-nav .lp-cta.sm { box-shadow: 0 6px 18px rgba(140,140,160,.35); }
.lp .lp-cta { background: linear-gradient(135deg, #48484a, #1d1d1f); font-weight: 600; box-shadow: 0 10px 28px rgba(140,140,160,.32); transition: transform .15s ease, box-shadow .15s ease; }
.lp .lp-cta:hover { background: linear-gradient(135deg, #636366, #2c2c2e); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(140,140,160,.42); }
.lp .lp-cta.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--ink); } .lp .lp-cta.ghost:hover { background: var(--bg2); transform: none; }
/* Héros sombre avec halo corail */
.lp-hero { position: relative; background: radial-gradient(900px 420px at 78% -10%, rgba(140,140,160,.38), transparent 62%), radial-gradient(700px 380px at 8% 10%, rgba(200,200,215,.18), transparent 60%), linear-gradient(180deg, #161618 0%, #1d1d1f 100%); color: #f5f5f7; padding-bottom: 0; }
.lp .lp-hero h1 { color: #fff !important; font-weight: 800; letter-spacing: -.045em; }
.lp-hero .lp-eyebrow { display: inline-block; background: rgba(140,140,160,.16); color: #d2d2d7; border: 1px solid rgba(140,140,160,.38); border-radius: 980px; padding: .28rem .9rem; font-size: .9rem; letter-spacing: .02em; }
.lp-hero .lp-lead { color: #d1d1d6; }
.lp-hero .lp-note { color: #8e8e93; }
.lp-hero .lp-act a:not(.lp-cta) { color: #d2d2d7; }
.lp-stage { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; backdrop-filter: blur(6px); box-shadow: 0 -20px 80px rgba(140,140,160,.12); }
.lp h2 { font-weight: 800; letter-spacing: -.04em; }
.lp-sec { background: var(--bg); } .lp-sec.alt { background: var(--bg2); }
.lp-tile { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(22,22,24,.04); transition: transform .2s ease, box-shadow .2s ease; }
.lp-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22,22,24,.10); }
.lp-tile.dark { background: linear-gradient(160deg, #2a2a2d, #161618) !important; border-color: transparent; } .lp-tile.dark li::before { border-color: #d2d2d7; }
.lp-tile.acc { background: linear-gradient(145deg, #48484a, #2c2c2e 70%, #000000) !important; border-color: transparent; box-shadow: 0 20px 50px rgba(140,140,160,.28); }
.lp-tile .k { color: var(--a); }
.lp-tile.dark .k { color: #ff9a90; } .lp-tile.acc .k { color: rgba(255,255,255,.85); }
.lp-ico { background: linear-gradient(135deg, #f2f2f7, #e5e5ea) !important; color: #1d1d1f !important; }
.lp-plan { border: 1px solid var(--line); background: var(--tile2); }
.lp-plan.hot { background: linear-gradient(165deg, #2a2a2d, #161618); color: #f5f5f7; border-color: transparent; box-shadow: 0 24px 60px rgba(22,22,24,.35); }
.lp-plan.hot li, .lp-plan.hot .lp-price, .lp-plan.hot h3 { color: #fff; } .lp-plan.hot small { color: #a1a1a6; } .lp-plan.hot li::before { border-color: #d2d2d7; }
.lp-pop { color: var(--a) !important; font-weight: 600; }
.lp-final { background: radial-gradient(800px 300px at 50% 120%, rgba(140,140,160,.45), transparent 65%), #161618; }
.lp-foot { background: #161618; color: #8e8e93; } .lp-foot a { color: #c7c7cc; } .lp-foot a:hover { color: #fff; }
.lp-faq summary:hover { color: var(--a); }

/* ===================== APPLICATION ===================== */
body, body:has(.ap) { background: radial-gradient(1000px 360px at 85% -120px, rgba(140,140,160,.12), transparent 70%), #f5f5f7 !important; color: var(--fx-ink); }
.fx-bar { background: var(--fx-ink) !important; border-bottom: 0 !important; backdrop-filter: none; box-shadow: 0 8px 30px rgba(22,22,24,.18); }
.fx-logo { color: #fff !important; }
.fx-mark { box-shadow: 0 4px 14px rgba(140,140,160,.5) !important; }
.fx-nav a { color: #d1d1d6 !important; } .fx-nav a:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.fx-nav a.on { background: rgba(140,140,160,.18) !important; color: #d2d2d7 !important; font-weight: 600; }
.fx-who { color: #a1a1a6 !important; }
.fx-out .btn, .fx-out button { background: transparent !important; color: #f5f5f7 !important; border: 1px solid rgba(255,255,255,.25) !important; border-radius: 980px !important; }
.fx-out .btn:hover, .fx-out button:hover { background: rgba(255,255,255,.1) !important; }
.ap { max-width: 1080px; padding-top: 2.2rem; }
.ap h1, h1 { color: var(--fx-ink) !important; background: none !important; -webkit-text-fill-color: currentColor !important; font-weight: 800 !important; letter-spacing: -.04em !important; }
.ap h1::after { content: ""; display: block; width: 46px; height: 5px; border-radius: 5px; margin-top: .65rem; background: linear-gradient(90deg, #1d1d1f, #aeaeb2); }
.ap h2, .ap h3 { color: var(--fx-ink); letter-spacing: -.02em; }
.ap .card, .card { border: 1px solid var(--fx-line) !important; border-radius: 22px !important; background: #fff; box-shadow: 0 1px 2px rgba(22,22,24,.04), 0 14px 40px rgba(22,22,24,.06) !important; }
.ap .card-header { background: linear-gradient(180deg, #fbfbfd, #fff) !important; color: var(--fx-ink) !important; border-bottom: 1px solid var(--fx-line); }
.btn-primary, .ap .btn-primary { --bs-btn-bg: #1d1d1f; --bs-btn-border-color: #1d1d1f; --bs-btn-hover-bg: #000000; --bs-btn-hover-border-color: #000000; --bs-btn-active-bg: #000000; --bs-btn-active-border-color: #000000; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; background-image: linear-gradient(135deg, #48484a, #1d1d1f) !important; border: 0 !important; box-shadow: 0 8px 22px rgba(140,140,160,.30) !important; border-radius: 980px; font-weight: 600; text-shadow: none; filter: none; }
.btn-primary:hover, .ap .btn-primary:hover { background-image: linear-gradient(135deg, #636366, #2c2c2e) !important; transform: translateY(-1px); }
.btn-outline-primary, .ap .btn-outline-primary { --bs-btn-color: #1d1d1f; --bs-btn-border-color: #d2d2d7; --bs-btn-hover-bg: #1d1d1f; --bs-btn-hover-border-color: #1d1d1f; --bs-btn-hover-color: #fff; background: #fff !important; border-radius: 980px; }
.btn-outline-secondary, .ap .btn-outline-secondary { border-radius: 980px; --bs-btn-color: #48484a; --bs-btn-border-color: #d2d2d7; --bs-btn-hover-bg: #ececf0; --bs-btn-hover-color: var(--fx-ink); --bs-btn-hover-border-color: #d2d2d7; background: #fff !important; }
a { color: #1d1d1f; } a:hover { color: #000000; }
.form-control:focus, .form-select:focus { border-color: #d2d2d7; box-shadow: 0 0 0 4px rgba(140,140,160,.18); }
.form-check-input:checked { background-color: #1d1d1f; border-color: #1d1d1f; }
.meter > i { background: linear-gradient(90deg, #1d1d1f, #aeaeb2) !important; }
.meter { background: #e5e5ea; }
.badge, .ap-pill { border-radius: 980px; }
.ap-pill.ap-on, .badge.text-bg-success { background: #e1f3ec !important; color: #136048 !important; }
.table thead th { color: #6e6e73; border-bottom-color: var(--fx-line); }
.table > :not(caption) > * > * { border-color: #ececf0; }
.alert { border-radius: 16px; }
.fx-foot, .fx-foot a { color: #8e8e93 !important; }
.pf-tpl input:checked + .pf-thumb { border-color: #1d1d1f !important; box-shadow: 0 0 0 3px rgba(140,140,160,.25) !important; }
.fx-auth { margin-top: 3rem; }

.lp-hero .lp-stage * { animation-duration: .01s !important; }
.lp-hero p { color: #d1d1d6; }

/* Boutons clairs sur fond sombre */
.lp-hero .lp-cta, .lp-nav .lp-cta, .lp-final .lp-cta, .lp-plan.hot .lp-cta { background: #fff !important; background-image: none !important; color: #1d1d1f !important; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.lp-hero .lp-cta:hover, .lp-nav .lp-cta:hover, .lp-final .lp-cta:hover, .lp-plan.hot .lp-cta:hover { background: #f5f5f7 !important; }
.lp-hero .lp-eyebrow { background: rgba(255,255,255,.10); color: #e5e5ea; border-color: rgba(255,255,255,.25); }
.lp-hero .lp-act a:not(.lp-cta) { color: #d2d2d7; }
.lp a { text-underline-offset: 3px; }
.btn-primary, .ap .btn-primary { color: #fff !important; }
.fx-nav a.on { background: rgba(255,255,255,.14) !important; color: #fff !important; }
.lp-ico { color: #1d1d1f !important; }
@media (prefers-color-scheme: dark) { .lp .lp-cta { background: #fff; color: #1d1d1f; } }
code, .ap code { color: #48484a !important; background: #f2f2f7; border-radius: 6px; padding: .1em .35em; } pre code { background: none; padding: 0; }
/* Pages d'authentification : carte étroite et centrée */
.ap.fx-auth, .fx-auth { max-width: 440px !important; margin: 4.5rem auto 2rem !important; padding: 0 1rem; }
.fx-auth .card { padding: .6rem .5rem; box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 24px 60px rgba(0,0,0,.10) !important; }
.fx-auth h1 { font-size: 2rem; text-align: center; } .fx-auth h1::after { margin-left: auto; margin-right: auto; }
.fx-auth .btn-primary { width: 100%; padding: .7rem 1rem; }
.fx-auth .form-control { background: #fbfbfd; }

/* Largeur : conteneurs fluides sur grand écran (marges latérales proportionnelles, plafond généreux). Connexion/inscription = carte centrée. */
:root { --fx-gut: clamp(16px, 2.5vw, 40px); }
.fx-bar-in { max-width: 1760px; padding-inline: var(--fx-gut); }
.container.ap:not(.fx-auth), .ap:not(.fx-auth) { max-width: 1760px; padding-inline: var(--fx-gut); }
.container { max-width: 1760px; padding-inline: var(--fx-gut); }
.ap .ap-sub { max-width: 52rem; }

/* Boutons secondaires de connexion / inscription */
.auth-or{display:flex;align-items:center;gap:.75rem;color:#6e6e73;font-size:.82rem}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:currentColor;opacity:.28}
.btn-alt{display:block;width:100%;text-align:center;font-weight:600;color:#1d1d1f;background:transparent;border:1.5px solid #1d1d1f;border-radius:.75rem;padding:.7rem 1rem;text-decoration:none;transition:background-color .15s,transform .15s}
.btn-alt:hover,.btn-alt:focus-visible{background:rgba(29,29,31,.07);color:#1d1d1f;border-color:#1d1d1f}
.btn-alt:focus-visible{outline:3px solid #1d1d1f;outline-offset:2px}
/* La carte de connexion/inscription reste claire même en mode sombre : le bouton garde un texte foncé lisible. */
.btn-alt, .btn-alt:visited { color: #1d1d1f !important; background: #fff; border-color: #1d1d1f; }
.btn-alt:hover, .btn-alt:focus-visible { color: #1d1d1f !important; background: #ececf0; }
/* Les grilles d'empilement ne dépassent jamais leur conteneur (tableaux et champs larges défilent à l'intérieur) */
.ap > .d-grid, .card-body.d-grid, .ap > section.card { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.ap .table-responsive { max-width: 100%; }

/* ===================== MOBILE (≤ 820 px) ===================== */
.fx-burger { display: none; }
@media (max-width: 820px) {
  .fx-bar-in { flex-wrap: wrap; gap: .5rem .6rem; padding: .55rem .9rem; }
  .fx-logo { order: 1; font-size: 1.1rem; }
  .fx-out { order: 2; margin: 0 0 0 auto; } .fx-who { display: none; }
  .fx-out .btn, .fx-out button { min-height: 44px; padding: .35rem 1rem; }
  .fx-burger { order: 3; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); background: transparent; cursor: pointer; }
  .fx-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #f5f5f7; transition: transform .18s, opacity .18s; }
  .fx-bar.open .fx-burger span:nth-child(1), .fx-bar-in.open .fx-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .fx-bar-in.open .fx-burger span:nth-child(2) { opacity: 0; }
  .fx-bar-in.open .fx-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .fx-nav { order: 4; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; gap: .35rem; padding-bottom: .15rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .fx-nav::-webkit-scrollbar { display: none; }
  .fx-nav a { white-space: nowrap; flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: .35rem .95rem; }
  .fx-js .fx-nav { display: none; flex-direction: column; overflow: visible; gap: .15rem; padding: .35rem 0 .6rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: .2rem; }
  .fx-js .fx-bar-in.open .fx-nav { display: flex; }
  .fx-js .fx-nav a { width: 100%; font-size: 1.05rem; border-radius: 12px; padding: .55rem .9rem; }

  /* tableaux en cartes (les cellules reçoivent data-label via ui.js) */
  .table-responsive { overflow: visible; }
  table.fx-cards, table.fx-cards tbody { display: block; width: 100%; }
  table.fx-cards thead { display: none; }
  table.fx-cards tr { display: block; padding: .85rem .95rem; margin: 0 0 .75rem; border: 1px solid rgba(0,0,0,.1); border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
  table.fx-cards tr.collapse:not(.show) { display: none !important; }
  table.fx-cards td, table.fx-cards th { display: block; width: auto !important; border: 0 !important; padding: .2rem 0 !important; background: transparent !important; text-align: left !important; overflow-wrap: anywhere; }
  table.fx-cards td:first-child { font-size: 1.05rem; padding-bottom: .35rem !important; }
  table.fx-cards td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #6e6e73; margin-bottom: .05rem; }
  table.fx-cards td .d-flex.flex-wrap { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem; justify-content: stretch !important; margin-top: .55rem; }
  table.fx-cards td .d-flex.flex-wrap > form { display: contents; }
  table.fx-cards td .d-flex.flex-wrap .btn, table.fx-cards td .d-flex.flex-wrap button { width: 100%; min-height: 44px; font-size: .9rem; white-space: normal; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
  table.fx-cards td .d-flex.flex-wrap .btn-outline-danger { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  main .btn, .container .btn:not(.btn-sm) { min-height: 44px; }
  main .btn-sm { min-height: 40px; }
  input.form-control, select.form-select, textarea.form-control { font-size: 16px; }
  .container, main.container { padding-left: .85rem; padding-right: .85rem; }
}

@media (max-width: 820px) {
  table.fx-cards td .d-flex.flex-wrap .btn-link, table.fx-cards td .d-flex.flex-wrap .btn-outline-secondary, table.fx-cards td .d-flex.flex-wrap .btn-outline-primary { border: 1px solid rgba(0,0,0,.18); border-radius: 999px; background: #fff; text-decoration: none; }
  table.fx-cards td .d-flex.flex-wrap .btn-outline-danger { font-size: 1.2rem; }
}
