/*
 * Pages publiques Assistance et Confidentialité de resolu.ch : feuille reprise telle quelle de l'ancien Résolu.
 */
:root {
    --canvas: #fdfcf8;
    --surface: #ffffff;
    --text: #1e1e24;
    --muted: #666671;
    --line: #e8e5dc;
    --accent: #5b4bd8;
    --accent-soft: #f0edff;
    --max-width: 780px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--text);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
p, ul { margin: 0 0 1.25rem; }
ul { padding-left: 1.25rem; }

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(253, 252, 248, .94);
}

.site-header__inner,
.site-footer__inner,
main {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.site-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.site-nav { display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }

main { padding: 72px 0 88px; }

.eyebrow {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

h1 {
    max-width: 700px;
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.06;
    letter-spacing: -.055em;
}

.lead {
    max-width: 680px;
    margin-bottom: 48px;
    color: var(--muted);
    font-size: 1.15rem;
}

section {
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

h2 {
    margin: 0 0 14px;
    font-size: 1.3rem;
    letter-spacing: -.025em;
}

h3 { margin: 24px 0 8px; font-size: 1rem; }

.callout {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid #ded8ff;
    border-radius: 18px;
    background: var(--accent-soft);
}

.callout p:last-child { margin-bottom: 0; }

.button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.meta { color: var(--muted); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
    padding: 28px 0 38px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: .85rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
    .site-header__inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
    .site-nav { flex-wrap: wrap; gap: 10px 18px; }
    main { padding-top: 52px; }
    .site-footer__inner { flex-direction: column; }
}

/* Formulaire d'inscription (templates/signup, thème signup/_form_theme.html.twig). */
.signup-form { display: grid; gap: 22px; margin-top: 36px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: .95rem; font-weight: 700; }
.form-input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #cfcabd;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.form-input:focus-visible { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.form-input[type="number"] { max-width: 140px; }
.form-help, .form-footnote { margin: 0; color: var(--muted); font-size: .9rem; }
.form-footnote { margin-top: 28px; }
.form-errors ul { margin: 0; padding: 0; list-style: none; color: #b3261e; font-size: .92rem; font-weight: 600; }
.form-notice {
    margin: 28px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--accent-soft);
    font-weight: 600;
}
.form-submit .button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
/* Champ piège : hors écran, hors parcours clavier. */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Suivi de l'installation, sur la page de retour de l'inscription (templates/signup/done.html.twig). */
.progress { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: 12px; }
.progress-step { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.progress-mark { flex: none; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); }
.progress-step--fait { color: var(--text); }
.progress-step--fait .progress-mark { border-color: var(--accent); background: var(--accent); }
.progress-step--en-cours { color: var(--text); font-weight: 700; }
.progress-step--en-cours .progress-mark { border-color: var(--accent); border-top-color: transparent; animation: progress-turn 0.9s linear infinite; }
.progress-step em { font-style: normal; font-weight: 400; color: var(--muted); }
@keyframes progress-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress-step--en-cours .progress-mark { animation: none; border-top-color: var(--accent); } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Choix « par mois / par an » et case des conditions générales de l'inscription. */
.form-field input[type="radio"], .form-field input[type="checkbox"] { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--accent); vertical-align: -3px; }
.form-field input[type="radio"] + label, .form-field input[type="checkbox"] + label { margin-right: 20px; font-weight: 400; }

/* Disponibilité de l'adresse de l'espace, indiquée pendant la saisie. */
.form-status { margin: 0; font-size: .92rem; font-weight: 600; }
.form-status::before { margin-right: 6px; }
.form-status.is-available { color: #1f7a4d; }
.form-status.is-available::before { content: "✓"; }
.form-status.is-taken { color: #b3261e; }
.form-status.is-taken::before { content: "✕"; }

/* Reprise d'un abonnement : formulaire de carte ou page de paiement de Stripe, affichés dans la page. */
.payment-frame { margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.payment-frame[hidden], .form-error[hidden] { display: none; }
.form-error { margin: 12px 0 0; color: #b3261e; font-size: .92rem; font-weight: 600; }
.button--quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }
