:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #111827;
    --muted: #64748b;
    --line: #dbe3ee;
    --brand: #5668BF;
    --brand-dark: #3F4FA3;
    --brand-soft: #E8ECFF;
    --blue: #5668BF;
    --blue-soft: #e7efff;
    --danger: #b42318;
    --danger-dark: #8f1d14;
    --warning: #b45309;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, .10);
    --radius: 10px;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -10%, rgba(86, 104, 191, .14), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(86, 104, 191, .12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef3f8 100%);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}
body.index-page .page-title {
    width: 100%;
    text-align: center;
    padding: 50px 20px 20px;
}

body.index-page .page-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(36px, 5vw, 55px);
    font-weight: 800;
    line-height: 1.1;
}
a {
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(16px, 4vw, 56px);
    background: linear-gradient(135deg, #3F4FA3 0%, #5668BF 58%, #7182D6 100%);
    border-bottom: 1px solid rgba(191, 219, 254, .36);
    box-shadow: 0 10px 30px rgba(63, 79, 163, .20);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 6px;
    background: #fff;
    color: var(--brand-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 11px 15px;
}

.brand:hover {
    background: #eff6ff;
    color: #ca8a04;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
}

.login-menu {
    position: relative;
}

.login-menu summary {
    list-style: none;
    cursor: pointer;
}

.login-menu summary::-webkit-details-marker {
    display: none;
}

.login-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    display: grid;
    gap: 6px;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(23, 32, 38, .14);
    padding: 8px;
}

.login-menu-panel a {
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 600;
}

.login-menu-panel a:hover {
    background: #eef4ff;
    color: var(--brand-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    padding: 11px 15px;
}

.btn.secondary {
    background: #334155;
}

.btn.light {
    border: 1px solid rgba(219, 234, 254, .42);
    background: rgba(255, 255, 255, .12);
    color: #eff6ff;
}

.btn.light:hover,
.login-menu summary:hover {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .20);
    color: #fff;
}

.top .btn {
    border: 1px solid rgba(255, 255, 255, .72);
    background: #fff;
    color: var(--brand-dark);
}

.top .btn:hover {
    background: #eff6ff;
    color: var(--brand-dark);
}

.signup-formateur-page .menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

.signup-formateur-page .menu-toggle span,
.signup-formateur-page .menu-toggle span::before,
.signup-formateur-page .menu-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-dark);
    content: "";
}

.signup-formateur-page .menu-toggle span {
    position: relative;
    margin: 0 auto;
}

.signup-formateur-page .menu-toggle span::before,
.signup-formateur-page .menu-toggle span::after {
    position: absolute;
    left: 0;
}

.signup-formateur-page .menu-toggle span::before {
    top: -7px;
}

.signup-formateur-page .menu-toggle span::after {
    top: 7px;
}

h1, h2, h3, p { margin-top: 0; }

strong,
b {
    font-weight: 600;
}

h1 {
    letter-spacing: 0;
}

h2 {
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 16px;
}

p {
    color: var(--muted);
}

.auth-page {
    width: min(100%, 1180px);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(360px, 440px);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
    padding: 48px clamp(20px, 4vw, 48px);
}

.auth-box,
.panel {
    width: min(100%, 980px);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(219, 227, 238, .95);
    border-radius: var(--radius);
    padding: clamp(20px, 2.4vw, 30px);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.auth-box {
    max-width: 440px;
    justify-self: stretch;
}

.auth-hero {
    max-width: 660px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(86, 104, 191, .22);
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 650;
    padding: 8px 12px;
    margin-bottom: 18px;
}

.auth-hero h1 {
    max-width: 640px;
    color: #0f172a;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.06;
    margin-bottom: 18px;
}

.auth-hero p {
    max-width: 580px;
    font-size: 18px;
    line-height: 1.7;
}

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.auth-benefits span {
    border: 1px solid rgba(219, 227, 238, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    padding: 13px;
    box-shadow: var(--shadow-sm);
}

.auth-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.resend-confirmation-form {
    display: flex;
    margin: 12px 0 18px;
}

.resend-confirmation-form button {
    width: 100%;
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 8px 16px rgba(249, 115, 22, .18);
}

.auth-links p {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
}

.required-field::after {
    content: " *";
    color: var(--danger);
    font-weight: 800;
}

.candidate-enrollment {
    width: 60%;
    max-width: 1120px;
    margin-inline: auto;
    justify-self: center;
}

.enrollment-form {
    display: grid;
    gap: 20px;
}

.form-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 8px;
    background: #fbfdff;
}

.form-section h2 {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

.field-label {
    display: inline-block;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
}

.wide-field {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.formation-preview-action {
    display: flex;
    align-items: end;
}

.link-button {
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--brand-dark);
    box-shadow: none;
}

.link-button:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    box-shadow: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .46);
}

.modal-overlay[hidden] {
    display: none;
}

.modal-panel {
    position: relative;
    width: min(100%, 720px);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    box-shadow: none;
    font-size: 24px;
    line-height: 1;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: none;
}

.formation-preview-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 10px 12px;
}

.formation-preview-summary strong {
    font-size: 24px;
    color: var(--brand-dark);
}

.modal-panel h3 {
    margin: 18px 0 8px;
    color: #334155;
    font-size: 15px;
}

.modal-panel ul {
    margin: 0;
    padding-left: 20px;
    color: #334155;
}

.formation-preview-scroll {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    padding: 12px 14px;
}

.modal-panel li {
    margin: 6px 0;
}

.modal-panel li span {
    color: var(--muted);
}

.side-frame-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, .28);
}

.side-frame-backdrop[hidden],
.side-frame[hidden] {
    display: none;
}

.side-frame {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-rows: auto auto 1fr;
    width: min(100%, 520px);
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 42px rgba(15, 23, 42, .18);
}

.side-frame-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
}

.side-frame-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.side-frame-head p {
    margin: 0;
}

.side-frame .modal-close {
    position: static;
    flex: 0 0 auto;
}

.side-frame-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.side-frame-summary span {
    display: grid;
    gap: 3px;
    color: var(--ink);
    font-weight: 700;
}

.side-frame-summary strong {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.side-frame-content {
    display: grid;
    align-content: start;
    gap: 12px;
    overflow: auto;
    padding: 18px 22px 24px;
}

.response-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.response-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.response-status {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.response-status.is-acquired {
    background: #dcfce7;
    color: #166534;
}

.response-status.is-progress {
    background: #ffedd5;
    color: #9a3412;
}

.response-domain {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.response-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.response-card dl div {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
}

.response-card dt {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.response-card dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.stage-period-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px 12px;
    margin: 0;
    grid-column: span 2;
}

.stage-period-fields legend {
    padding: 0 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    font: inherit;
    padding: 10px 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
    opacity: 1;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(86, 104, 191, .13);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #e9eef5;
    color: #64748b;
    cursor: not-allowed;
}

select option:checked {
    background: var(--brand);
    color: #fff;
}

.password-field {
    display: flex;
    gap: 8px;
}

.password-field input {
    flex: 1;
}

.password-field button {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
    border: 1px solid #cbd5e1;
    background: #f8fbff;
    color: var(--brand-dark);
    padding: 10px;
    line-height: 1;
    box-shadow: none;
}

.password-field button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-field button:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    box-shadow: none;
}

button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #7182D6 0%, var(--brand) 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    padding: 11px 16px;
    box-shadow: 0 8px 16px rgba(86, 104, 191, .18);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(86, 104, 191, .24);
}

button:active {
    transform: translateY(0);
}

a.button-link,
button.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #7182D6 0%, var(--brand) 100%);
    color: #fff;
    font-weight: 700;
    padding: 11px 16px;
    box-shadow: 0 8px 16px rgba(86, 104, 191, .18);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

a.button-link:hover,
button.button-link:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(86, 104, 191, .24);
}

a.button-link.secondary-link {
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--brand-dark);
    box-shadow: none;
}

a.button-link.secondary-link:hover {
    color: var(--brand-dark);
    box-shadow: 0 10px 18px rgba(15, 23, 42, .08);
}

button.danger {
    background: var(--danger);
    box-shadow: 0 8px 16px rgba(180, 35, 24, .16);
}

button.danger-small {
    margin-left: 8px;
    padding: 6px 9px;
    background: var(--danger);
    font-size: 12px;
    box-shadow: none;
}

button.danger-small:hover,
button.danger:hover {
    background: var(--danger-dark);
}

button.secondary {
    background: #334155;
    box-shadow: 0 8px 16px rgba(51, 65, 85, .14);
}

.toggle-status-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
}

.toggle-status-form small {
    display: none;
}

button.toggle-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    box-shadow: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 12px;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

button.toggle-switch:hover {
    transform: none;
    border-color: #94a3b8;
    background: #f1f5f9;
    box-shadow: none;
}

button.toggle-switch span {
    display: block;
}

button.toggle-switch.is-active {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
    box-shadow: 0 6px 12px rgba(22, 101, 52, .10);
}

button.toggle-switch:focus-visible {
    outline: 3px solid rgba(86, 104, 191, .24);
    outline-offset: 2px;
}

.button-row,
.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-actions {
    grid-column: 1 / -1;
}

.profile-actions button,
.profile-actions .button-link {
    box-sizing: border-box;
    min-height: 44px;
}

.table-actions form {
    margin: 0;
}

.table-actions button,
.table-actions a {
    min-height: 34px;
    border-radius: 7px;
    font-size: 12px;
    padding: 7px 10px;
}

.table-actions a {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--brand-dark);
}

.invite-actions {
    justify-content: flex-start;
    text-align: left;
    min-width: 88px;
}

.candidate-table .invite-actions form {
    justify-content: flex-start;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    white-space: nowrap;
}

.badge.ok {
    border-color: #b7d9c5;
    background: #ecfdf3;
    color: #166534;
}

.badge.warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: var(--warning);
}

.badge.danger {
    border-color: #ffc9c2;
    background: #fff0ee;
    color: var(--danger);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
}

.stat-box strong {
    display: block;
    color: var(--brand-dark);
    font-size: 28px;
    line-height: 1;
}

.stat-box span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.results-stats .stat-box strong {
    overflow-wrap: anywhere;
}

.history-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.history-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.history-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
}

.history-card strong {
    display: block;
    margin-top: 4px;
    color: var(--brand-dark);
    font-size: 22px;
    line-height: 1.1;
}

.history-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.history-chart {
    margin-bottom: 16px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 12px;
}

.history-chart svg {
    display: block;
    width: 100%;
    min-width: 520px;
    height: auto;
}

.objectives-form {
    display: grid;
    gap: 14px;
}

.objectives-table {
    display: grid;
    gap: 18px;
}

.objective-row {
    display: grid;
    grid-template-columns: 1fr 1fr 150px 1fr 140px 170px;
    gap: 12px;
    align-items: end;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.objective-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.objective-number {
    grid-column: 1 / -1;
    color: var(--brand-dark);
    font-size: 15px;
    font-weight: 800;
}

.objective-row .objective-email-button {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.2;
}

.objective-row label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.objective-row input,
.objective-row select,
.objective-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 10px;
}

.objective-row textarea {
    min-height: 82px;
    resize: vertical;
}

.empty-history {
    color: var(--muted);
}

.alert {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
}

.alert.ok {
    background: #E8ECFF;
    border-color: #D4DAFF;
    color: #3F4FA3;
}

.alert.error {
    background: #fff0ee;
    border-color: #ffc9c2;
    color: var(--danger);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #3F4FA3 0%, #5668BF 58%, #7182D6 100%);
    border-bottom: 1px solid rgba(191, 219, 254, .36);
    padding: 16px clamp(16px, 3vw, 42px);
    box-shadow: 0 10px 30px rgba(63, 79, 163, .22);
    backdrop-filter: blur(12px);
}

.topbar .topbar-page-title {
    max-width: min(42vw, 560px);
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.page-title-strip {
    display: grid;
    justify-items: center;
    gap: 4px;
    width: 100%;
    border-bottom: 1px solid rgba(219, 227, 238, .95);
    background: #fff;
    padding: 14px clamp(16px, 3vw, 42px);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.page-title-strip h1,
.page-title-strip h2 {
    max-width: min(100%, 980px);
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 900;
    line-height: 1.15;
}

.page-title-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.topbar-title {
    flex: 1 1 560px;
    min-width: 0;
}

.topbar h1 {
    width: 100%;
    margin-bottom: 3px;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.topbar p {
    margin-bottom: 0;
    color: #E8ECFF;
    font-weight: 800;
    text-align: center;
}

.brand-block > div {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.site-logo {
    width: 150px;
    height: 64px;
    max-width: 100%;
    border: none;
    border-radius: 8px;
    object-fit: contain;
}

.topbar-title > .site-logo {
    display: block;
    margin: 0 auto 8px;
}

.org-logo {
    width: 150px;
    height: 64px;
    max-width: 100%;
    border: none;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.topbar-user {
    display: grid;
    flex: 0 0 280px;
    gap: 4px;
    min-width: min(100%, 280px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
}

.topbar-user.is-visible {
    display: grid;
}

.topbar-user strong {
    color: var(--ink);
    font-size: 15px;
}

.topbar-user div {
    overflow-wrap: anywhere;
}

.topbar-plan-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.topbar-plan-actions span,
.topbar-plan-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 13px;
}

.topbar-plan-actions span {
    border-color: transparent;
    background: transparent;
    color: #fff;
}

.topbar-plan-actions a:hover {
    background: #eff6ff;
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.topbar-plan-actions + .topbar-account {
    margin-left: 0;
}

.topbar nav {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-account {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
}

.topbar-links {
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 12px clamp(16px, 3vw, 42px);
    border-bottom: 1px solid rgba(219, 227, 238, .95);
    border-radius: 0;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.topbar-links-title {
    display: inline-flex;
    align-items: left;
    justify-content: left;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 13px;
}

.topbar-plan-remaining {
    display: inline-flex;
    align-items: left;
    justify-content: left;
    min-height: 42px;
    border: 1px solid rgba(86, 104, 191, .22);
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 13px;
}

.topbar-plan-remaining.is-empty {
    border-color: rgba(185, 28, 28, .25);
    background: #fef2f2;
    color: #b91c1c;
}

.topbar nav form,
.topbar-account form,
.topbar-links form {
    margin: 0;
}

.topbar nav a,
.topbar-account a,
.topbar button {
    border: 1px solid rgba(219, 234, 254, .42);
    border-radius: 8px;
    color: #eff6ff;
    background: rgba(255, 255, 255, .12);
    padding: 10px 13px;
    box-shadow: none;
}

.topbar-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand-dark);
    background: var(--surface-soft);
    font-size: 14px;
    line-height: 1;
    padding: 10px 13px;
    box-shadow: none;
}

.topbar nav a:hover,
.topbar-account a:hover,
.topbar button:hover {
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
    background: rgba(255, 255, 255, .20);
    transform: translateY(-1px);
}

.topbar-links a:hover {
    border-color: rgba(86, 104, 191, .35);
    color: var(--brand-dark);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.topbar nav a.avatar-link,
.topbar-account a.avatar-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    padding: 0;
    overflow: hidden;
}

.avatar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-link span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
}

.topbar nav a.logout-link,
.topbar-account a.logout-link {
    border-color: rgba(15, 23, 42, .34);
    background: rgba(15, 23, 42, .30);
    color: #fff;
}

.layout {
    display: grid;
    gap: 22px;
    padding: 24px clamp(16px, 3vw, 42px) 46px;
    min-width: 0;
    max-width: 100%;
}

.panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.panel-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.panel.is-hidden {
    display: none;
}

.admin-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    width: 100%;
    max-width: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    padding: 16px;
}

.admin-edit-page {
    max-width: 980px;
}

.admin-edit-form label {
    min-width: 0;
}

.admin-edit-form label:nth-of-type(6),
.admin-edit-form label:last-of-type {
    grid-column: 1 / -1;
}

.admin-edit-form .button-row {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.danger-zone {
    border-color: rgba(180, 35, 24, .28);
    background: #fff7f6;
}

.danger-zone h2 {
    color: var(--danger-dark);
}

.danger-zone p {
    max-width: 760px;
    color: #7f1d1d;
}

.candidate-picker {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr);
    gap: 14px;
    margin-top: 16px;
    align-items: end;
}

.candidate-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.candidate-summary strong,
.candidate-summary span {
    color: var(--ink);
    font-size: 14px;
}

.candidate-edit-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #7182D6, var(--brand));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    flex: 0 0 auto;
    box-shadow: 0 10px 18px rgba(86, 104, 191, .20);
}

.candidate-edit-avatar:hover {
    color: #fff;
    filter: brightness(.96);
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.candidate-table {
    min-width: 1080px;
}

th,
td {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.candidate-table th,
.candidate-table td {
    white-space: nowrap;
}

.candidate-table .table-actions {
    display: table-cell;
    text-align: center;
    white-space: nowrap;
}

.candidate-table .table-actions form,
.candidate-table .table-actions a,
.candidate-table .table-actions button {
    display: inline-flex;
    vertical-align: middle;
}

.candidate-table .icon-button {
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    box-shadow: none;
    padding: 0;
}

.candidate-table .icon-button:hover {
    background: transparent;
    color: #f97316;
    box-shadow: none;
}

.candidate-table .icon-button svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.candidate-table .results-actions a {
    border-color: #fed7aa;
    background: #f97316;
    color: #fff;
}

.candidate-table .results-actions a:hover {
    background: #ea580c;
    color: #fff;
}

th {
    background: #f1f6ff;
    color: #334155;
    font-size: 13px;
    text-transform: none;
}

tbody tr {
    transition: background .12s ease;
}

tbody tr:hover {
    background: #f8fbff;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tr.is-highlighted {
    background: #fff8db;
    outline: 2px solid #d99a16;
    outline-offset: -2px;
}

.sort-table {
    border: 0;
    background: transparent;
    color: #334155;
    padding: 0;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    box-shadow: none;
}

.sort-table:hover {
    color: var(--brand-dark);
    transform: none;
    box-shadow: none;
}

.sort-table::after {
    content: " \2195";
    color: var(--muted);
    font-weight: 600;
}

.sort-table.is-asc::after { content: " \2191"; }
.sort-table.is-desc::after { content: " \2193"; }
.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.topbar-title {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-block > div {
    min-width: 0;
}

.brand-block h1 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user {
    flex: 0 1 auto;
    min-width: 0;
}

.topbar-account {
    flex: 0 0 auto;
}
.brand-block h1 {
    max-width: none;
}
.topbar-links {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.topbar-links h2 {
    margin: 0;
    text-align: center;
}

.topbar-links a {
    position: absolute;
    right: 0;
}
@media (max-width: 760px) {
    .objective-row {
        grid-template-columns: 1fr;
    }

    .top {
        align-items: flex-start;
        flex-direction: column;
    }

    .signup-formateur-page .top {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav {
        width: 100%;
    }

    .signup-formateur-page .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .signup-formateur-page .nav {
        display: none;
        width: 100%;
    }

    .signup-formateur-page .nav.is-open {
        display: flex;
    }

    .btn {
        flex: 1 1 170px;
    }

    .login-menu {
        width: 100%;
    }

    .login-menu summary {
        width: 100%;
    }

    .login-menu-panel {
        left: 0;
        right: auto;
        width: 100%;
    }

    .auth-page {
        grid-template-columns: 1fr;
        padding: 28px 16px;
    }

    .candidate-login-page .auth-page,
    .trainer-login-page .auth-page {
        min-height: auto;
        padding: 10px 16px 22px;
    }

    .trainer-login-page .auth-page {
        padding-top: 0;
        margin-top: -8px;
    }

    .candidate-login-page .auth-hero,
    .candidate-login-page .auth-box > p,
    .candidate-login-page .auth-box > .alert.ok,
    .candidate-login-page .auth-links {
        display: none;
    }

    .auth-box {
        justify-self: stretch;
        max-width: none;
    }

    .auth-benefits,
    .form-grid.cols-3,
    .stats-grid,
    .candidate-picker {
        grid-template-columns: 1fr;
    }

    .admin-edit-form {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-edit-form label:nth-of-type(6),
    .admin-edit-form label:last-of-type,
    .admin-edit-form .button-row {
        grid-column: auto;
    }

    .stage-period-fields {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .candidate-enrollment {
        width: 100%;
    }

    .topbar .topbar-page-title {
        position: static;
        max-width: none;
        transform: none;
    }

    .wide-field {
        grid-column: auto;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions a,
    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        position: static;
    }

    .topbar-user {
        width: 100%;
    }

    .topbar nav {
        justify-content: flex-start;
        width: 100%;
    }

    .topbar-account {
        justify-content: flex-start;
        margin-left: 0;
        width: 100%;
    }

    .topbar-links {
        justify-content: flex-start;
    }

    .topbar nav a,
    .topbar-account a,
    .topbar nav form,
    .topbar nav button {
        flex: 1 1 150px;
        text-align: center;
    }

    .topbar-links a {
        flex: 1 1 150px;
        text-align: center;
    }

    .topbar-plan-remaining {
        flex: 1 1 220px;
        text-align: center;
    }
      .brand-block h1 {
        max-width: none;
    }
}

/* Page accueil (index.php) */
body.index-page {
    --ink: #172026;
    --muted: #64707a;
    --line: #d8e0e5;
    --bg: #f5f7fb;
    --panel: #ffffff;
    --brand: #5668BF;
    --brand-dark: #3F4FA3;
    --accent: #ca8a04;
    --section-width: 1180px;
    --page-pad: clamp(14px, 3vw, 38px);
    --section-title-size: clamp(28px, 3vw, 38px);
}
body.index-page * { box-sizing: border-box; }
body.index-page {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}
body.index-page a { color: inherit; text-decoration: none; }
body.index-page strong,
body.index-page b { font-weight: 600; }
body.index-page .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px var(--page-pad);
    background: linear-gradient(135deg, #3F4FA3 0%, #5668BF 58%, #7182D6 100%);
    border-bottom: 1px solid rgba(191, 219, 254, .36);
    box-shadow: 0 10px 30px rgba(63, 79, 163, .20);
}
body.index-page .brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 6px;
    background: #fff;
    color: var(--brand-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 11px 15px;
}
body.index-page .brand.brand-logo {
    min-width: auto;
    border: 0;
    background: transparent;
    padding: 0;
}
body.index-page .brand.brand-logo:hover {
    background: transparent;
}
body.index-page .brand:hover {
    background: #eff6ff;
    color: var(--accent);
}
body.index-page .nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}
body.index-page .menu-toggle {
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 6px;
    background: #fff;
    color: var(--brand-dark);
    cursor: pointer;
    padding: 0;
}
body.index-page .menu-toggle:hover {
    background: #eff6ff;
    color: var(--brand-dark);
}
body.index-page .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
}
body.index-page .login-menu {
    position: relative;
}
body.index-page .login-menu summary {
    list-style: none;
    cursor: pointer;
}
body.index-page .login-menu summary::-webkit-details-marker {
    display: none;
}
body.index-page .login-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    display: grid;
    gap: 6px;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(23, 32, 38, .14);
    padding: 8px;
}
body.index-page .login-menu-panel a {
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 600;
}
body.index-page .login-menu-panel a:hover {
    background: #eef4ff;
    color: var(--brand-dark);
}
body.index-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    padding: 11px 15px;
    text-align: center;
}
body.index-page .btn.secondary {
    background: #334155;
}
body.index-page .btn.light {
    border: 1px solid rgba(219, 234, 254, .42);
    background: rgba(255, 255, 255, .12);
    color: #eff6ff;
}
body.index-page .btn.light:hover,
body.index-page .login-menu summary:hover {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .20);
    color: #fff;
}
body.index-page .top .btn {
    border: 1px solid rgba(255, 255, 255, .72);
    background: #fff;
    color: var(--brand-dark);
}
body.index-page .top .btn:hover {
    background: #eff6ff;
    color: var(--brand-dark);
}
body.index-page .hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
    gap: clamp(28px, 4.5vw, 64px);
    align-items: center;
    width: min(100%, var(--section-width));
    margin: 0 auto;
    padding: clamp(28px, 4vw, 54px) var(--page-pad) clamp(28px, 4vw, 48px);
}
body.index-page .hero-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}
body.index-page .eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 14px;
    border: 1px solid rgba(86, 104, 191, .22);
    border-radius: 999px;
    background: #eef2ff;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    padding: 7px 11px;
}
body.index-page .hero h1 {
    margin: 0;
    max-width: 760px;
    color: #0f172a;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}
body.index-page .hero-copy h2 {
    margin: 0;
    color: #0f172a;
    font-size: var(--section-title-size);
    line-height: 1.15;
}
body.index-page .hero p {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}
body.index-page .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
body.index-page .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1;
    gap: 12px;
    margin-top: 0;
    width: 100%;
}
body.index-page .stat {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    min-width: 0;
    border-left: 4px solid var(--brand);
    border-top: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 32, 38, .08);
    background: #fff;
    padding: 16px;
}
body.index-page .stat strong {
    display: block;
    font-size: clamp(22px, 3vw, 30px);
    color: var(--brand-dark);
    line-height: 1;
    white-space: nowrap;
}
body.index-page .stat span {
    color: var(--muted);
    font-size: clamp(12px, 1.7vw, 15px);
    font-weight: 600;
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: break-word;
}
body.index-page .hero-visual {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(23, 32, 38, .10);
    overflow: hidden;
    background: transparent;
}
body.index-page .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(245, 247, 251, .88), transparent 16%, transparent 84%, rgba(245, 247, 251, .88)),
        linear-gradient(180deg, rgba(245, 247, 251, .90), transparent 18%, transparent 82%, rgba(245, 247, 251, .90));
}
body.index-page .hero-visual img {
    display: block;
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    filter: saturate(.96) contrast(.98);
}
body.index-page .editorial-section,
body.index-page .features,
body.index-page .how-it-works,
body.index-page .use-cases,
body.index-page .sample-section,
body.index-page .pricing-argument,
body.index-page .final-cta {
    width: min(100%, var(--section-width));
    margin: 0 auto;
    padding: 0 var(--page-pad) clamp(28px, 4vw, 46px);
}
body.index-page .editorial-section.alt {
    padding-top: 4px;
}
body.index-page .candidate-progress-section {
    padding-bottom: 12px;
}
body.index-page .time-saving-section {
    margin-top: 0;
}
body.index-page .text-block {
    display: grid;
    gap: 16px;
    max-width: 860px;
}
body.index-page .text-block.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
}
body.index-page .text-block p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
}
body.index-page .features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
body.index-page .feature,
body.index-page .step-card,
body.index-page .case-card,
body.index-page .sample-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 32, 38, .06);
    padding: clamp(18px, 2vw, 22px);
}
body.index-page .feature h2,
body.index-page .step-card h3,
body.index-page .case-card h3,
body.index-page .sample-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
}
body.index-page .feature p,
body.index-page .step-card p,
body.index-page .case-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
body.index-page .pricing-argument {
    padding-bottom: clamp(28px, 4vw, 46px);
}
body.index-page .pricing-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 32, 38, .08);
    padding: clamp(22px, 3vw, 34px);
}
body.index-page .pricing-panel h2 {
    margin: 0;
    color: #0f172a;
    font-size: var(--section-title-size);
    line-height: 1.15;
}
body.index-page .pricing-panel p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
body.index-page .pricing-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}
body.index-page .pricing-points span {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-dark);
font-weight: 600;
    padding: 12px;
}
body.index-page .price-highlight {
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: #E8ECFF;
    padding: 20px;
}
body.index-page .price-highlight strong {
    display: block;
    color: var(--brand-dark);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}
body.index-page .price-highlight span {
    display: block;
    margin-top: 8px;
    color: var(--brand-dark);
    font-weight: 700;
}
body.index-page .pricing-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
body.index-page .trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0 var(--page-pad) clamp(24px, 3vw, 36px);
}

body.index-page .trust-strip span {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
    padding: 13px 14px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(23, 32, 38, .05);
}
body.index-page .content-link {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
    padding: 13px 14px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(23, 32, 38, .05);
}
body.index-page .hero-secondary,
body.index-page .content-link {
    border-color: var(--line);
    background: #fff;
    color: var(--brand-dark);
}
body.index-page .section-action {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
body.index-page .section-head {
    margin-bottom: 22px;
}
body.index-page .section-head h2,
body.index-page .section-head > p:not(.custom-note) {
    max-width: 780px;
}
body.index-page .section-head.full-width h2,
body.index-page .section-head.full-width > p {
    max-width: none;
}
@media (min-width: 921px) {
    body.index-page .section-head.full-width h2 {
        white-space: nowrap;
    }
}
body.index-page .section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: var(--section-title-size);
    line-height: 1.15;
}
body.index-page .section-head p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}
body.index-page .steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
body.index-page .step-card span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--brand-dark);
    font-weight: 800;
}
body.index-page .case-grid,
body.index-page .sample-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
body.index-page .sample-card ul {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding-left: 18px;
}
body.index-page .sample-card li {
    color: #475569;
    line-height: 1.55;
}
body.index-page .sector-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
body.index-page .sector-list span {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
    line-height: 1.3;
    padding: 12px 14px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(23, 32, 38, .05);
}
body.index-page .final-cta {
    display: grid;
    justify-items: center;
    text-align: center;
    padding-bottom: clamp(34px, 5vw, 56px);
}
body.index-page .final-cta h2 {
    margin: 0;
    color: #0f172a;
    font-size: var(--section-title-size);
    line-height: 1.15;
}
body.index-page .final-cta p {
    max-width: 760px;
    margin: 12px 0 22px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
@media (max-width: 920px) {
body.index-page .hero,
body.index-page .editorial-section { grid-template-columns: 1fr; }
body.index-page .features,
body.index-page .steps-grid,
body.index-page .case-grid,
body.index-page .sample-cards,
body.index-page .sector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.index-page .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.index-page .pricing-panel,
body.index-page .pricing-points,
body.index-page .text-block.two-columns { grid-template-columns: 1fr; }
body.index-page .hero-visual img { min-height: 320px; }
}
@media (max-width: 620px) {
body.index-page .top {
        align-items: center;
        display: grid;
        grid-template-columns: auto 46px;
    }
body.index-page .menu-toggle {
        display: grid;
        justify-self: end;
    }
body.index-page .nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }
body.index-page .nav.is-open {
        display: flex;
    }
body.index-page .hero {
        padding-top: 30px;
    }
body.index-page .hero p,
body.index-page .text-block p {
        font-size: 16px;
    }
body.index-page .stats,
body.index-page .trust-strip,
body.index-page .features,
body.index-page .steps-grid,
body.index-page .case-grid,
body.index-page .sample-cards,
body.index-page .sector-list,
body.index-page .pricing-points {
        grid-template-columns: 1fr;
    }
body.index-page .hero-actions { width: 100%; }
body.index-page .btn { flex: 1 1 170px; }
body.index-page .login-menu { width: 100%; }
body.index-page .login-menu summary { width: 100%; }
body.index-page .login-menu-panel { left: 0; right: auto; width: 100%; }
body.index-page .editorial-section,
body.index-page .trust-strip,
body.index-page .features,
body.index-page .how-it-works,
body.index-page .use-cases,
body.index-page .sample-section,
body.index-page .pricing-argument,
body.index-page .final-cta {
        padding-bottom: 40px;
    }
}

/* Page exemples de grilles (exemples-grilles.php) */
body.examples-body .examples-page {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) clamp(14px, 3vw, 38px) clamp(34px, 5vw, 56px);
}
body.examples-body .examples-intro {
    max-width: 880px;
    margin-bottom: 34px;
}
body.examples-body .examples-intro h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
}
body.examples-body .examples-intro p:not(.eyebrow) {
    margin: 16px 0 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.7;
}
body.examples-body .examples-list {
    display: grid;
    gap: 24px;
}
body.examples-body .example-block {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23, 32, 38, .07);
    padding: clamp(20px, 3vw, 30px);
}
body.examples-body .example-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
}
body.examples-body .example-heading p {
    max-width: 820px;
    margin: 10px 0 0;
    color: #64707a;
    line-height: 1.65;
}
body.examples-body .example-domains {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
body.examples-body .example-domain {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 16px;
}
body.examples-body .example-domain h3 {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 18px;
}
body.examples-body .example-domain ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}
body.examples-body .example-domain li {
    color: #475569;
    line-height: 1.55;
}
body.examples-body .examples-cta {
    display: grid;
    justify-items: center;
    margin-top: 30px;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--brand-dark);
    text-align: center;
    padding: clamp(22px, 4vw, 36px);
}
body.examples-body .examples-cta h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
}
body.examples-body .examples-cta p {
    max-width: 720px;
    margin: 10px 0 20px;
    line-height: 1.65;
}
@media (max-width: 920px) {
    body.examples-body .example-domains {
        grid-template-columns: 1fr;
    }
}

/* Page FAQ (faq.php) */
body.faq-body .faq-page {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 70px) clamp(16px, 4vw, 48px);
}
body.faq-body .faq-intro {
    max-width: 820px;
    margin-bottom: 32px;
}
body.faq-body .faq-intro h1 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
}
body.faq-body .faq-intro p {
    margin: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.7;
}
body.faq-body .faq-intro strong {
    color: #0f172a;
}
body.faq-body .faq-section-title {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}
body.faq-body .faq-list {
    display: grid;
    gap: 12px;
}
body.faq-body .faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
body.faq-body .faq-item summary {
    cursor: pointer;
    list-style: none;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    padding: 18px 20px;
}
body.faq-body .faq-item summary::-webkit-details-marker {
    display: none;
}
body.faq-body .faq-item summary::after {
    content: "+";
    float: right;
    color: var(--brand-dark);
    font-size: 24px;
    line-height: 1;
    margin-left: 14px;
}
body.faq-body .faq-item[open] summary::after {
    content: "−";
}
body.faq-body .faq-answer {
    border-top: 1px solid var(--line);
    padding: 16px 20px 18px;
}
body.faq-body .faq-answer p {
    margin: 0;
    max-width: 820px;
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
}
body.faq-body .faq-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}
body.faq-body .faq-link-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
body.faq-body .faq-link-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-dark);
    font-size: 17px;
}
body.faq-body .faq-link-card span {
    display: block;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}
body.faq-body .faq-link-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(23, 32, 38, .08);
}
body.faq-body .faq-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
body.faq-body .faq-cta p {
    margin: 0;
    color: #334155;
    font-weight: 650;
}
.page-title-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.page-title-strip .topbar-links {
    justify-self: start;
}

.page-title-strip h2 {
    grid-column: 2;
    margin: 0;
    text-align: center;
}

.page-title-strip .topbar-links a {
    text-decoration: none;
}
@media (max-width: 760px) {
body.faq-body .faq-links {
        grid-template-columns: 1fr;
    }
body.faq-body .faq-cta {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Page tarifs (tarifs.php) */
body.pricing-body .pricing-page {
    padding: clamp(28px, 5vw, 70px) clamp(16px, 4vw, 56px);
}

body.pricing-body .intro {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

body.pricing-body .intro h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    text-align: center;
    width: 100%;
}

body.pricing-body .intro h1 .title-line {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

body.pricing-body .intro h1 .nowrap {
    white-space: nowrap;
}

body.pricing-body .intro p {
    margin: 16px auto 0;
    max-width: 760px;
    color: #475569;
    font-size: 18px;
    line-height: 1.7;
}

body.pricing-body .intro strong {
    color: #0f172a;
}

body.pricing-body .pricing {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

body.pricing-body .price-card {
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

body.pricing-body .price-card.featured {
    border-color: var(--brand);
}

body.pricing-body .price-card.free {
    border-color: #16a34a;
    background: #f0fdf4;
}

body.pricing-body .badge {
    display: inline-flex;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    margin-bottom: 12px;
}

body.pricing-body .price-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
}

body.pricing-body .price-card p {
    color: #475569;
    line-height: 1.65;
}

body.pricing-body .price {
    margin: 18px 0 8px;
    color: var(--brand-dark);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

body.pricing-body .price span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

body.pricing-body .total {
    margin-top: 12px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 600;
    padding: 10px 12px;
}

body.pricing-body .price-card ul {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding-left: 18px;
}

body.pricing-body .choice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    border-radius: 8px;
    background: linear-gradient(180deg, #7182D6 0%, var(--brand) 100%);
    color: #fff;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 16px rgba(86, 104, 191, .18);
}

body.pricing-body .choice-button:hover {
    color: #fff;
    filter: brightness(.96);
}

body.pricing-body .calculator {
    display: grid;
    gap: 18px;
}

body.pricing-body .calculator-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

body.pricing-body input[type="range"] {
    accent-color: var(--brand);
}

body.pricing-body .range-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

body.pricing-body .result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.pricing-body .result-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px;
}

body.pricing-body .result-box strong {
    display: block;
    color: var(--brand-dark);
    font-size: 38px;
    line-height: 1;
}

body.pricing-body .result-box span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

body.pricing-body .result-box.is-main {
    border-color: var(--brand);
    background: var(--brand-soft);
}

body.pricing-body .result-box.is-main strong,
body.pricing-body .result-box.is-main span {
    color: var(--brand-dark);
}

body.pricing-body .candidate-count-input {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .72);
    color: var(--brand-dark);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    text-align: center;
}

body.pricing-body .candidate-count-input:focus {
    box-shadow: 0 0 0 4px rgba(86, 104, 191, .18);
}

body.pricing-body .total.big {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 18px;
}

body.pricing-body .total.big strong {
    color: var(--brand-dark);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

body.pricing-body .pricing-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

body.pricing-body .detail-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

body.pricing-body .detail-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
}

body.pricing-body .detail-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

body.pricing-body .pricing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

body.pricing-body .pricing-cta p {
    margin: 0;
    color: #334155;
    font-weight: 650;
}

@media (max-width: 1100px) {
    body.pricing-body .pricing,
    body.pricing-body .pricing-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.pricing-body .pricing {
        grid-template-columns: 1fr;
    }

    body.pricing-body .result-grid {
        grid-template-columns: 1fr;
    }

    body.pricing-body .total.big,
    body.pricing-body .pricing-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    body.pricing-body .intro h1 .nowrap {
        white-space: normal;
    }
}

/* Page contact (contact.php) */
body.contact-body .contact-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 70px) clamp(16px, 4vw, 48px);
}

body.contact-body .contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: start;
}

body.contact-body .contact-intro {
    padding-top: 8px;
}

body.contact-body .contact-intro h1 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
}

body.contact-body .contact-intro p {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.7;
}

body.contact-body .contact-points {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

body.contact-body .contact-points span {
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-weight: 650;
    padding: 13px 14px;
    box-shadow: var(--shadow-sm);
}

body.contact-body .contact-form {
    display: grid;
    gap: 16px;
}

body.contact-body .contact-form textarea {
    min-height: 180px;
}

body.contact-body .captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
    align-items: end;
}

body.contact-body .captcha-question {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--brand-dark);
    font-weight: 800;
    padding: 10px 12px;
}

body.contact-body .contact-submit {
    justify-self: end;
    min-width: 190px;
}

@media (max-width: 860px) {
    body.contact-body .contact-layout,
    body.contact-body .captcha-row {
        grid-template-columns: 1fr;
    }

    body.contact-body .contact-submit {
        justify-self: stretch;
    }
}

/* Page infos (infos.php) */
body.info-body .info-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 70px) clamp(16px, 4vw, 48px);
}

body.info-body .info-top-link {
    margin-bottom: 18px;
    text-align: right;
}

body.info-body .info-top-link a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.info-body .info-intro {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

body.info-body .info-intro h1 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
}

body.info-body .info-intro p {
    margin: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
}

body.info-body .info-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

body.info-body .summary-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

body.info-body .summary-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-dark);
    font-size: 17px;
}

body.info-body .summary-card span {
    color: #475569;
    font-size: 15px;
    line-height: 1.55;
}

body.info-body .info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

body.info-body .info-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-sm);
    padding: clamp(18px, 2.6vw, 28px);
}

body.info-body .info-section h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

body.info-body .info-section p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
}

body.info-body .info-section p:last-child {
    margin-bottom: 0;
}

body.info-body .source-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 18px;
}

body.info-body .source-list li {
    color: #475569;
    line-height: 1.6;
}

body.info-body .source-list a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.info-body .legal-note {
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-weight: 650;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

body.info-body .info-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 18px;
}

body.info-body .info-cta p {
    margin: 0;
    font-weight: 700;
}

@media (max-width: 760px) {
    body.info-body .info-summary {
        grid-template-columns: 1fr;
    }

    body.info-body .info-cta {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Page upgrade plan (upgrade_plan.php) */
body.upgrade-body .upgrade-page {
    display: grid;
    gap: 20px;
    padding: 24px clamp(16px, 3vw, 42px) 46px;
}

body.upgrade-body .upgrade-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

body.upgrade-body .upgrade-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: clamp(20px, 2.4vw, 30px);
}

body.upgrade-body .upgrade-card h1,
body.upgrade-body .upgrade-card h2 {
    margin-bottom: 12px;
}

body.upgrade-body .plan-number {
    display: block;
    color: var(--brand-dark);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1;
}

body.upgrade-body .upgrade-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

body.upgrade-body .upgrade-result {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px;
}

body.upgrade-body .upgrade-result strong {
    display: block;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1;
}

body.upgrade-body .upgrade-result span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-weight: 650;
}

body.upgrade-body .upgrade-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 18px;
}

body.upgrade-body .upgrade-actions form {
    display: flex;
    margin: 0;
}

body.upgrade-body .upgrade-actions .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
}

body.upgrade-body .upgrade-actions .pay-button {
    background: #f97316;
    color: #fff;
}

body.upgrade-body .upgrade-actions .pay-button:hover {
    background: #ea580c;
    color: #fff;
}
body.upgrade-body .big{
    font-size: 1.4rem;
}

@media (max-width: 900px) {
    body.upgrade-body .upgrade-grid,
    body.upgrade-body .upgrade-results {
        grid-template-columns: 1fr;
    }
}

body.upgrade-body .upgrade-alert {
    border: 1px solid #dc2626;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    padding: 14px 16px;
    font-weight: 700;
}

/* Page gestion items (gestion_items.php) */
body.gestion-items-body .toggle-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

body.gestion-items-body .toggle-switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
}

body.gestion-items-body .toggle-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

body.gestion-items-body .toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .18s ease;
}

body.gestion-items-body .toggle-slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
    transition: transform .18s ease;
}

body.gestion-items-body .toggle-switch input:checked + .toggle-slider {
    background: #16a34a;
}

body.gestion-items-body .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

body.gestion-items-body .toggle-label {
    min-width: 44px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

body.gestion-items-body .items-help {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 14px 16px;
}

body.gestion-items-body .items-help strong {
    color: #0f172a;
}

body.gestion-items-body .items-help p {
    margin: 0;
}

body.gestion-items-body .form-grid.cols-3.add-question-form {
    grid-template-columns: 240px minmax(360px, 1fr) 190px;
    align-items: end;
}

body.gestion-items-body .form-grid.cols-3.add-question-form button {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
}

body.gestion-items-body .selected-formation {
    display: grid;
    gap: 6px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px 12px;
}

body.gestion-items-body .selected-formation span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

body.gestion-items-body .selected-formation strong {
    color: #0f172a;
}
