/* =========================================================================
   Portail Partenaires Hoster — composants et mise en page
   ========================================================================= */

/* ------------------------------------------------------------------ shell */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 100vh;
}

.sidebar {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  height: 100vh; position: sticky; top: 0;
  overflow-y: auto;
}

.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 15px; letter-spacing: -.02em;
}
.brand-name { font-size: 14px; font-weight: 640; letter-spacing: -.01em; }
.brand-sub  { font-size: 11px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }

.nav { padding: var(--sp-3) var(--sp-2); flex: 1 1 auto; }
.nav-group + .nav-group { margin-top: var(--sp-4); }
.nav-title {
  font-size: 10.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); padding: 0 var(--sp-3) var(--sp-2);
}
.nav-link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 8px var(--sp-3); border-radius: var(--r-md);
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  text-decoration: none; border: 1px solid transparent;
  transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 26%, transparent); font-weight: 590;
}
.nav-link .ico { flex: 0 0 16px; width: 16px; height: 16px; opacity: .85; }
.nav-link .count {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  color: var(--text-3); background: var(--surface-2);
  padding: 1px 6px; border-radius: var(--r-full);
}

.sidebar-foot { padding: var(--sp-3); border-top: 1px solid var(--border); }

.identity {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2); border-radius: var(--r-md);
  width: 100%; text-align: left; background: none; border: 1px solid transparent;
}
.identity:hover { background: var(--surface-2); border-color: var(--border); }
.avatar {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: var(--r-full);
  display: grid; place-items: center; font-size: 12px; font-weight: 650;
  background: var(--surface-3); color: var(--text-2);
}
.identity-name { font-size: 13px; font-weight: 570; }
.identity-role { font-size: 11px; color: var(--text-3); }

/* ----------------------------------------------------------------- topbar */

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow-y: auto; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--sp-3);
  height: var(--topbar-h); padding: 0 var(--sp-5);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: var(--text-3); min-width: 0; }
.crumbs a { color: var(--text-2); }
.crumbs .sep { opacity: .55; }
.crumbs .here { color: var(--text); font-weight: 600; }

.content { padding: var(--sp-5); max-width: 1440px; width: 100%; }

.page-head { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.page-head .grow { min-width: 260px; }
.page-title { font-size: 20px; }
/* La ligne d'explication : chaque écran dit ce qu'il est et à quoi il sert.
   C'est la réponse la plus directe à « l'interface n'est pas compréhensible ». */
.page-lede { color: var(--text-2); font-size: 13.5px; margin-top: 3px; max-width: 76ch; }

/* --------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 550; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, opacity .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:active { transform: translateY(.5px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-danger { color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 38%, var(--border)); background: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }

.btn-ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }

.btn-sm { padding: 4px 9px; font-size: 12px; border-radius: var(--r-sm); }
.btn-icon { padding: 6px; width: 30px; height: 30px; }
.btn-block { width: 100%; }

.btn .spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- surfaces */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.card-head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14px; font-weight: 620; }
.card-body { padding: var(--sp-4); }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: var(--sp-4); }
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.stat { padding: var(--sp-4); }
.stat-label { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.stat-value { font-size: 27px; font-weight: 680; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-hint  { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.stat-value.is-warn   { color: var(--warn-text); }
.stat-value.is-danger { color: var(--danger-text); }

/* --------------------------------------------------------------- tableaux */

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: left; padding: 10px var(--sp-4); border-bottom: 1px solid var(--border); }
table.data thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-2); color: var(--text-3);
  font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; user-select: none;
}
table.data thead th.sortable { cursor: pointer; }
table.data thead th.sortable:hover { color: var(--text); }
table.data thead th .arrow { opacity: .4; margin-left: 4px; font-size: 9px; }
table.data thead th[aria-sort] .arrow { opacity: 1; color: var(--accent-text); }
table.data tbody tr { transition: background .1s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num { font-variant-numeric: tabular-nums; }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data td.actions .row { justify-content: flex-end; }

.toolbar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.search { position: relative; flex: 1 1 240px; max-width: 380px; min-width: 180px; }
/* Spécificité volontairement alignée sur input[type="search"] de la section
   formulaires, qui vient plus bas : sans ça elle écrase ce retrait et l'icône
   se superpose au texte saisi. */
.search input[type="search"] { padding-left: 32px; }
.search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

.pager {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2); flex-wrap: wrap;
}

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 600; line-height: 1.6;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.ok     { background: var(--ok-soft);     color: var(--ok-text);     border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge.warn   { background: var(--warn-soft);   color: var(--warn-text);   border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.badge.danger { background: var(--danger-soft); color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 32%, transparent); }
.badge.info   { background: var(--info-soft);   color: var(--info-text);   border-color: color-mix(in srgb, var(--info) 30%, transparent); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 7px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 11.5px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}

/* Une clé de licence est faite pour être copiée, pas relue à voix haute. */
.copyable {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12.5px;
  padding: 2px 7px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; transition: border-color .12s;
}
.copyable:hover { border-color: var(--accent); }
.copyable .ico { opacity: .5; }
.copyable:hover .ico { opacity: 1; color: var(--accent-text); }

/* ------------------------------------------------------------ formulaires */

.field { display: flex; flex-direction: column; gap: 5px; }
.field + .field { margin-top: var(--sp-4); }
.field > label { font-size: 12.5px; font-weight: 570; color: var(--text-2); }
/* L'aide sous le champ : ce que le terme veut dire, en clair, une fois. */
.field .help { font-size: 12px; color: var(--text-3); }
.field .err  { font-size: 12px; color: var(--danger-text); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%; padding: 8px 11px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  font-size: 13.5px; transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 76px; resize: vertical; }
select { appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 51%, calc(100% - 10px) 51%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.check { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 13px; }
.check input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field-row > .field + .field { margin-top: 0; }

/* --------------------------------------------------------------- modales */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: var(--overlay); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: max(4vh, var(--sp-5)) var(--sp-4);
  overflow-y: auto;
  animation: fade .14s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 520px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  animation: rise .16s cubic-bezier(.2, .8, .3, 1);
}
.modal.wide { max-width: 780px; }
@keyframes rise { from { opacity: 0; transform: translateY(-8px); } }
.modal-head { padding: var(--sp-4) var(--sp-5) var(--sp-3); border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 16px; }
.modal-head .lede { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.modal-body { padding: var(--sp-5); }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5) var(--sp-4);
  border-top: 1px solid var(--border);
}
.modal-foot .spacer { flex: 1; }

/* -------------------------------------------------------------- messages */

.notice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13px;
}
.notice .ico { flex: 0 0 16px; margin-top: 1px; }
.notice.info   { background: var(--info-soft);   border-color: color-mix(in srgb, var(--info) 28%, transparent);   color: var(--info-text); }
.notice.warn   { background: var(--warn-soft);   border-color: color-mix(in srgb, var(--warn) 30%, transparent);   color: var(--warn-text); }
.notice.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger-text); }
.notice.ok     { background: var(--ok-soft);     border-color: color-mix(in srgb, var(--ok) 28%, transparent);     color: var(--ok-text); }
.notice a { color: inherit; text-decoration: underline; }

.empty { padding: var(--sp-7) var(--sp-5); text-align: center; }
.empty h3 { font-size: 14px; margin-bottom: 4px; }
.empty p { color: var(--text-2); font-size: 13px; max-width: 46ch; margin: 0 auto var(--sp-4); }
.empty .ico { color: var(--text-3); margin-bottom: var(--sp-3); }

.toasts {
  position: fixed; bottom: var(--sp-5); right: var(--sp-5); z-index: 200;
  display: flex; flex-direction: column; gap: var(--sp-2); max-width: min(380px, 92vw);
}
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md); box-shadow: var(--shadow-2); font-size: 13px;
  animation: slide-in .18s cubic-bezier(.2, .8, .3, 1);
}
.toast.is-leaving { animation: slide-out .16s ease-in forwards; }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes slide-in  { from { opacity: 0; transform: translateX(16px); } }
@keyframes slide-out { to { opacity: 0; transform: translateX(16px); } }

/* Squelettes de chargement : la page garde sa forme pendant l'attente au lieu
   de sauter quand les données arrivent. */
.skel { background: var(--surface-2); border-radius: var(--r-sm); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.skel-line { height: 11px; }
.skel-row { display: flex; gap: var(--sp-4); padding: 11px var(--sp-4); border-bottom: 1px solid var(--border); }

/* ------------------------------------------------------- fiche / détails */

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-4); }
.dt { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.dd { font-size: 13.5px; margin-top: 2px; word-break: break-word; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: var(--sp-4); overflow-x: auto; }
.tab {
  padding: 8px var(--sp-3); border: none; background: none;
  color: var(--text-2); font-size: 13px; font-weight: 550;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }

/* Le fil d'une installation : un état brut (« sealing ») ne dit rien à qui
   n'a pas lu le protocole ; la frise le replace dans la séquence. */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: var(--sp-4); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -21px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.tl-item.done::before    { background: var(--ok);     border-color: var(--ok); }
.tl-item.current::before { background: var(--accent); border-color: var(--accent);
                           box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item.failed::before  { background: var(--danger); border-color: var(--danger); }
.tl-label { font-size: 13px; font-weight: 560; }
.tl-meta  { font-size: 12px; color: var(--text-3); }

.meter { height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s; }
.meter.is-warn   > span { background: var(--warn); }
.meter.is-danger > span { background: var(--danger); }

/* ---------------------------------------------------------------- connexion */

.login-screen {
  min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5);
  background:
    radial-gradient(900px 460px at 50% -8%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.login-card { width: 100%; max-width: 400px; }
.login-card .card-body { padding: var(--sp-6); }
.login-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.login-sep {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-4) 0; color: var(--text-3); font-size: 12px;
}
.login-sep::before, .login-sep::after { content: ""; height: 1px; background: var(--border); flex: 1; }

/* ------------------------------------------------------------- responsive */

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 84vw); z-index: 90;
    transform: translateX(-100%); transition: transform .2s cubic-bezier(.2,.8,.3,1);
    box-shadow: var(--shadow-3);
  }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after {
    content: ""; position: fixed; inset: 0; background: var(--overlay); z-index: 80;
  }
  .nav-toggle { display: inline-flex; }
  .main { height: auto; min-height: 100vh; }
  .content { padding: var(--sp-4); }
  .topbar { padding: 0 var(--sp-4); }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .field-row > .field + .field { margin-top: var(--sp-4); }
  .page-head { gap: var(--sp-3); }
  .toasts { left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3); max-width: none; }
}

@media print {
  .sidebar, .topbar, .toolbar, .pager, .toasts, .btn { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ---------------------------------------------------------------- Guide ---
   Une documentation se lit ; elle ne se parcourt pas comme un tableau. D'où
   une colonne de texte étroite, des étapes numérotées, et des commandes qu'on
   copie d'un clic plutôt qu'à la souris. */

.guide { max-width: 62rem; display: flex; flex-direction: column; gap: var(--sp-6); }

.guide h2 {
  font-size: 1.05rem; font-weight: 620; margin: var(--sp-4) 0 0;
  padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border);
}

.guide-resume {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.guide .carte {
  border: 1px solid var(--border); border-radius: 8px;
  padding: var(--sp-3) var(--sp-4); background: var(--surface-2, transparent);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.guide .grand { font-size: 1.35rem; line-height: 1.1; }

.guide .etape { display: flex; gap: var(--sp-4); align-items: flex-start; }
.guide .etape + .etape { margin-top: var(--sp-5); }
.guide .etape-num {
  flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
  font-weight: 640; font-size: .9rem;
  border: 1px solid var(--border); color: var(--text-2);
}
.guide .etape-corps { min-width: 0; flex: 1 1 auto; }
.guide .etape-corps h3 { margin: .15rem 0 var(--sp-2); font-size: .98rem; font-weight: 620; }
.guide .etape-corps > * + * { margin-top: var(--sp-3); }
.guide .etape-corps p, .guide .etape-corps li { line-height: 1.55; }
.guide .etape-corps ul { margin: 0; padding-left: 1.1rem; }
.guide .etape-corps li + li { margin-top: var(--sp-2); }

/* Une commande se copie : la sélectionner à la souris dans un bloc qui défile
   est le meilleur moyen d'en perdre la moitié. */
.guide .cmd { position: relative; }
.guide .cmd pre {
  margin: 0; padding: var(--sp-3) 2.6rem var(--sp-3) var(--sp-3);
  border: 1px solid var(--border); border-radius: 8px;
  overflow-x: auto; font-size: .82rem; line-height: 1.5;
}
.guide .cmd button { position: absolute; top: .4rem; right: .4rem; }

.guide .lien-interne {
  display: inline-flex; align-items: center; gap: .15rem;
  text-decoration: none; font-weight: 560;
}
.guide .lien-interne:hover { text-decoration: underline; }

.guide .faq details {
  border: 1px solid var(--border); border-radius: 8px;
  padding: var(--sp-3) var(--sp-4);
}
.guide .faq details + details { margin-top: var(--sp-2); }
.guide .faq summary { cursor: pointer; font-weight: 560; }
.guide .faq summary::marker { color: var(--text-3); }
.guide .faq details[open] summary { margin-bottom: var(--sp-2); }
.guide .faq p { margin: 0; line-height: 1.55; }

@media (max-width: 640px) {
  .guide .etape { gap: var(--sp-3); }
  .guide .etape-num { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
}
