/* Sas Sites — site public et espace client */
:root {
  --ink: #16181d;
  --ink-2: #4a5160;
  --muted: #6b7280;
  --line: #e4e6eb;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --brand: #2a54d6;
  --brand-ink: #ffffff;
  --brand-soft: #e8eefc;
  --ok: #157a45; --ok-bg: #e7f6ee;
  --warn: #9a5b00; --warn-bg: #fff4e0;
  --danger: #b42318; --danger-bg: #fdecea;
  --info: #1f4fbf; --info-bg: #e8eefc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 20px rgba(16,24,40,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.section { padding: clamp(32px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 1.5em; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--brand); margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #2046b8; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #f1b8b2; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { color: var(--ink); background: var(--bg-alt); }
/* Bouton du menu (☰ / ✕), commun au site et à l'administration */
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.burger { position: relative; width: 18px; height: 14px; display: inline-block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s, top .2s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(15, 17, 21, .45); z-index: 15; }
body.nav-open { overflow: hidden; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header { z-index: 20; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(16,24,40,.12); padding: 8px 16px 20px; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .main-nav a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
  .main-nav .btn { margin-top: 8px; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Messages */
.flashes { padding-top: 16px; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; background: var(--info-bg); color: var(--info); }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-danger { background: var(--danger-bg); color: var(--danger); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--bg-alt); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }

/* Accueil */
.hero { background: radial-gradient(1200px 500px at 80% -10%, var(--brand-soft), transparent 60%), var(--bg); padding: clamp(40px, 8vw, 96px) 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-visual { position: relative; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg-alt); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d8de; }
.mock-body { padding: 20px; display: grid; gap: 12px; }
.mock-nav { height: 14px; width: 60%; border-radius: 6px; background: #eef0f3; }
.mock-title { height: 28px; width: 80%; border-radius: 8px; background: var(--brand); opacity: .85; }
.mock-line { height: 12px; border-radius: 6px; background: #eef0f3; }
.mock-line.short { width: 55%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.mock-cards span { height: 70px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); }
.swatches { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.swatches span { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--c1) 0 50%, var(--c2) 50% 80%, var(--c3) 80%); border: 2px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { width: 100%; max-width: 380px; margin-inline: auto; }
  .hero-actions .btn { flex: 1 1 200px; }
}
@media (max-width: 480px) { .mock-cards span { height: 48px; } .hero-actions .btn { flex-basis: 100%; } }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); counter-increment: s; display: grid; gap: 4px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 6px; }
.steps span { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.checks { padding-left: 0; list-style: none; margin: 0; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.prose h2 { margin-top: 1.4em; }
.theme-list { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.theme-preview { display: inline-flex; border-radius: 6px; overflow: hidden; }
.theme-preview i { width: 18px; height: 18px; display: block; }
.theme-preview.inline { vertical-align: middle; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; border: 1px solid rgba(0,0,0,.1); }

/* Formulaires */
.auth-card { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; }
.field small { color: var(--muted); font-size: .85rem; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd3da; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
select, input, textarea { max-width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.error { color: var(--danger); font-size: .875rem; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 8px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }

/* Espace client */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--radius); }
.site-list { display: grid; gap: 12px; margin-bottom: 32px; }
.site-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.site-card-logo { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-weight: 800; overflow: hidden; }
.site-card-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.site-card-body h2 { margin-bottom: 4px; }
.site-card-body p { margin: 0; }
.site-card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .site-card { grid-template-columns: 56px 1fr; } .site-card-actions { grid-column: 1 / -1; justify-content: flex-start; } .site-card-logo { width: 56px; height: 56px; } }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.account-card { max-width: 560px; }
.logo-thumb { max-height: 56px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.timeline { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 24px; counter-reset: t; flex-wrap: wrap; }
.timeline li { flex: 1; min-width: 120px; position: relative; padding: 28px 8px 0; text-align: center; color: var(--muted); font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--line); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done, .timeline li.current { color: var(--ink); font-weight: 600; }
.timeline li.done::before, .timeline li.done::after, .timeline li.current::after { background: var(--ok); }
.timeline li.current::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.danger-zone { margin-top: 24px; }

/* Assistant de création */
.wizard-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .wizard-wrap { grid-template-columns: 1fr; } .wizard-preview { order: -1; } }
.wizard-progress { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.wizard-progress button { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; }
.wizard-progress span { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; font-weight: 700; }
.wizard-progress li.active button { border-color: var(--brand); color: var(--ink); font-weight: 600; }
.wizard-progress li.active span, .wizard-progress li.done span { background: var(--brand); color: #fff; }
@media (max-width: 640px) { .wizard-progress button { font-size: 0; padding: 4px; } .wizard-progress span { font-size: .85rem; } }
.wizard .step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.wizard .step legend { font-weight: 800; font-size: 1.2rem; padding: 0 6px; }
.js .wizard .step { display: none; }
.js .wizard .step.active { display: block; }
.wizard-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.wizard-nav [data-prev] { margin-right: auto; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body { display: grid; gap: 4px; padding: 16px; border: 2px solid var(--line); border-radius: 12px; height: 100%; }
.choice-icon { font-size: 1.5rem; }
.choice small { color: var(--muted); }
.choice input:checked + .choice-body { border-color: var(--brand); background: var(--brand-soft); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--brand); outline-offset: 2px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } }
.theme-option { position: relative; display: grid; gap: 6px; justify-items: start; padding: 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400 !important; }
.theme-option input { position: absolute; opacity: 0; }
.theme-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.theme-option:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.theme-option .theme-preview i { width: 26px; height: 26px; }
.color-control { display: flex; align-items: center; gap: 12px; }
.color-control input { width: 56px; height: 44px; padding: 2px; border: 1px solid #cfd3da; border-radius: 10px; background: #fff; }
.logo-current { display: flex; align-items: center; gap: 16px; }
.logo-current img { max-height: 72px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.slug-input { display: flex; align-items: stretch; border: 1px solid #cfd3da; border-radius: 10px; overflow: hidden; }
.slug-input span { padding: 10px 0 10px 12px; color: var(--muted); background: var(--bg-alt); white-space: nowrap; font-size: .9rem; display: flex; align-items: center; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.slug-input input { border: 0; border-radius: 0; min-width: 0; }
.recap { margin-bottom: 16px; }
.wizard-preview { position: sticky; top: 88px; }
.preview-site { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.preview-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--p2); color: #fff; }
.preview-head strong { display: block; line-height: 1.2; }
.preview-head small { display: block; opacity: .8; font-size: .75rem; }
.preview-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--p1); display: grid; place-items: center; overflow: hidden; flex: none; }
.preview-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.preview-hero { padding: 18px 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--p1) 14%, #fff), #fff); }
.preview-hero p { font-size: .9rem; color: var(--ink-2); }
.preview-btn { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--pb); color: #fff; font-weight: 700; font-size: .85rem; }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 14px; }
.preview-cards i { height: 54px; border-radius: 8px; background: color-mix(in srgb, var(--p3) 30%, #fff); }

/* Pied de page */
.site-footer { background: #111318; color: #c9ccd3; padding: 40px 0 16px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { max-width: 420px; }
.footer-links { display: grid; gap: 6px; }
.site-footer a { color: #fff; }
.copyright { font-size: .85rem; opacity: .7; margin-top: 24px; }

/* ---------- Téléphone et tablette : formulaire, fiches, tableaux ---------- */
.wizard-main, .wizard-preview { min-width: 0; }
@media (max-width: 960px) {
  .wizard-preview { position: static; }
  .wizard-wrap { gap: 16px; }
}
@media (max-width: 640px) {
  .section { padding: 28px 0 40px; }
  .page-head { align-items: stretch; }
  .page-head > .btn, .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1 1 auto; }
  /* Étapes : une ligne qui défile, numéro + titre de l'étape en cours seulement */
  .wizard-progress { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; }
  .wizard-progress::-webkit-scrollbar { display: none; }
  .wizard-progress li { flex: none; }
  .wizard-progress button { font-size: 0; padding: 4px; gap: 0; min-height: 40px; min-width: 40px; justify-content: center; }
  .wizard-progress li.active button { font-size: .85rem; padding: 4px 12px 4px 4px; gap: 6px; }
  .wizard-progress span { width: 30px; height: 30px; font-size: .9rem; }
  .wizard .step { padding: 16px; }
  .wizard .step legend { font-size: 1.05rem; }
  /* Boutons : action principale en pleine largeur, en bas */
  .wizard-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .wizard-nav [data-prev] { margin-right: 0; }
  .wizard-nav [data-next], .wizard-nav [data-submit] { grid-column: 1 / -1; order: -1; min-height: 50px; }
  .wizard-nav .btn { width: 100%; padding-inline: 10px; }
  /* Aperçu compact au-dessus du formulaire */
  .wizard-preview { display: grid; grid-template-columns: 1fr; }
  .wizard-preview > .small { display: none; }
  .preview-cards { display: none; }
  .preview-hero { padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
  .preview-hero p { margin: 0; font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .preview-btn { flex: none; }
  .slug-input { flex-direction: column; }
  .slug-input span { max-width: none; padding: 8px 12px 0; font-size: .8rem; }
  .theme-option { padding: 10px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .auth-card { padding: 20px 16px; border-radius: 12px; }
  .timeline li { min-width: 0; font-size: .75rem; padding-top: 26px; }
  .footer-inner { flex-direction: column; }
}

/* Tableaux en cartes quand LEUR BLOC est étroit (requête de conteneur : .panel est le conteneur « tableau »).
   Les data-label viennent des en-têtes (sas.js). Les cartes se rangent sur 1 ou 2 colonnes selon la place. */
@container tableau (max-width: 760px) {
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-cards, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
  table.table-cards tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; background: #fff; min-width: 0; }
  table.table-cards td { border: 0; border-top: 1px solid var(--line); padding: 8px 0 8px 104px; position: relative; min-height: 36px; overflow-wrap: anywhere; }
  table.table-cards td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 10px; width: 94px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); line-height: 1.3; }
  table.table-cards td:not([data-label]) { padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  table.table-cards td:first-child { padding: 10px 0; border-top: 0; font-size: 1.02rem; }
  table.table-cards td:first-child::before { display: none; }
  table.table-cards td.nowrap { white-space: normal; }
  table.table-cards td .btn { flex: 1 1 auto; }
}
/* Sur téléphone, le bloc qui porte un tableau s’efface : les cartes suffisent. */
@media (max-width: 700px) {
  .panel:has(.table-cards) { background: transparent; border: 0; padding: 0; box-shadow: none; }
  .panel:has(.table-cards) > h2 { padding: 0 2px; }
}

/* Textes de l'accueil (page de la demande) */
.texts-card { margin-top: 16px; }
.texts-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.texts-card .field:has(textarea), .texts-card .actions-row { grid-column: 1 / -1; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .texts-card form { grid-template-columns: 1fr; } .actions-row .btn { flex: 1 1 auto; } }

/* Textes de l'accueil : un bloc repliable par partie de la page */
.texts-group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.texts-group > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.texts-group > summary::-webkit-details-marker { display: none; }
.texts-group > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.texts-group[open] > summary::before { transform: rotate(90deg); }
.texts-group[open] > summary { border-bottom: 1px solid var(--line); }
.texts-group-body { padding: 12px 16px 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.texts-group-body > p, .texts-group-body .field:has(textarea) { grid-column: 1 / -1; }
.texts-card form, .texts-admin { display: block; }
.texts-card .actions-row, .texts-admin .actions-row { margin-top: 12px; }
@media (max-width: 640px) { .texts-group-body { grid-template-columns: 1fr; padding: 10px 12px 2px; } .texts-group > summary { padding: 12px; } }
@container tableau (max-width: 620px) { .texts-group-body { grid-template-columns: 1fr; } }

/* ---------- Page Tarifs ---------- */
.pricing-hero { padding: clamp(36px, 7vw, 72px) 0 8px; background: radial-gradient(900px 360px at 50% -10%, var(--brand-soft), transparent 70%); }
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); margin-top: 8px; }
.billing-toggle button { border: 0; background: transparent; padding: 10px 18px; min-height: 44px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.billing-toggle .save { background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 1px 8px; font-size: .78rem; margin-left: 4px; }
.pricing-section { padding-top: 24px; }
.plan-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-grid[data-count="1"] { --cols: 1; max-width: 420px; margin-inline: auto; }
.plan-grid[data-count="2"] { --cols: 2; max-width: 820px; margin-inline: auto; }
.plan-grid[data-count="4"] { --cols: 4; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; box-shadow: var(--shadow); }
.plan-card h2 { font-size: 1.5rem; margin: 0; }
.plan-card.featured { background: #14161c; color: #fff; border-color: #14161c; }
.plan-card.featured .muted, .plan-card.featured .plan-kicker { color: #b9bdc7; }
.plan-card.featured .checks li::before { color: #7ee2a8; }
.plan-badge { position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan-kicker { font-size: .85rem; color: var(--muted); margin: 0; }
.plan-price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 2.3rem; letter-spacing: -.02em; line-height: 1; }
.plan-period { color: inherit; opacity: .7; }
.plan-equiv { min-height: 1.4em; margin: 0; }
.plan-desc { margin: 8px 0 4px; }
.plan-features { margin: 8px 0 18px; flex: 1; }
.plan-card .btn { margin-top: auto; }
.plan-card.featured .btn-primary { background: #fff; color: #14161c; }
.plan-card.featured .btn-primary:hover { background: #e9ecf3; }
@media (max-width: 960px) { .plan-grid, .plan-grid[data-count] { --cols: 1; max-width: 520px; margin-inline: auto; } }
.compare-wrap { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.compare-wrap:focus-visible { outline: 3px solid var(--brand); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-size: 1.05rem; background: #fff; position: sticky; top: 0; }
.compare thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 200px; font-weight: 500; }
.compare th[scope="row"] small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.compare .compare-group th { text-align: left; background: var(--bg-alt); text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--ink-2); position: sticky; left: 0; }
.compare .featured { background: #f3f5fd; }
.compare thead th.featured { background: #14161c; color: #fff; }
.compare thead th.featured small { color: #b9bdc7; }
.compare .yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-weight: 800; }
.compare .no { color: #b3b8c2; }
.compare .cell-text { font-size: .88rem; font-weight: 600; }
.compare tbody tr:not(.compare-group):hover td, .compare tbody tr:not(.compare-group):hover th { background: #fafbfc; }
@media (max-width: 620px) { .compare th, .compare td { padding: 10px 8px; } .compare th[scope="row"], .compare thead th:first-child { min-width: 140px; } .compare thead th small { display: none; } .compare { min-width: 0; } .compare td { min-width: 72px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.cta-band { background: var(--brand); color: #fff; padding: 48px 0; }
.cta-band p { opacity: .9; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #eef2ff; }
.block-toggle { padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); grid-column: 1 / -1; }
.block-toggle small { display: block; }
.choice.is-locked { opacity: .55; cursor: not-allowed; }
.choice.is-locked .choice-body { border-style: dashed; }
.choice-lock { font-size: .78rem; color: var(--warn); font-weight: 600; }
.plan-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.plan-choice-grid .choice-body strong { font-size: 1.05rem; }
.plan-choice-grid .choice-price { font-weight: 800; }

.profile-grid { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.pay-card { margin-top: 16px; }
.pay-card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-card .actions-row form { display: inline; }

.slug-input.has-suffix { flex-direction: row; }
.slug-input .slug-suffix { padding: 10px 12px 10px 0; color: var(--muted); background: var(--bg-alt); white-space: nowrap; font-size: .9rem; display: flex; align-items: center; }
@media (max-width: 640px) { .slug-input.has-suffix { flex-direction: column; } .slug-input .slug-suffix { padding: 0 12px 8px; font-size: .8rem; } }

/* Noms de domaine (page de la demande) */
.dom-card { margin-top: 16px; }
.dom-list { display: grid; gap: 10px; margin: 12px 0; }
.dom-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dom-row > div:first-child { min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.dom-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.dom-actions form { display: inline; }
.dns-help { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: .9rem; }
.dns-help ul { margin: 4px 0; padding-left: 18px; }
.dns-help code { overflow-wrap: anywhere; }
.dom-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.dom-form { display: grid; gap: 6px; }
.inline-input { display: flex; gap: 8px; }
.inline-input input { flex: 1; min-width: 0; }
.dom-result { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 700px) { .dom-forms { grid-template-columns: 1fr; } }

.dom-forms .dom-result { grid-column: 1 / -1; }

/* Pages d'erreur (includes/erreurs.php) */
.error-page { text-align: center; padding-top: clamp(40px, 9vw, 104px); padding-bottom: clamp(40px, 9vw, 104px); }
.error-code { font-size: clamp(4.5rem, 18vw, 8.5rem); font-weight: 800; line-height: 1; margin: 0 0 .1em; color: var(--brand-soft); letter-spacing: -.04em; }
.error-page h1 { margin-top: 0; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.5em; }
