/* ============================================================
   ROOT Digital — thème client « Registre de boutique »
   Chargé après huraga.css et rootdigital.css.
   ============================================================ */

.rd-theme {
    --rd-ink: #0F1B13;
    --rd-green: #1FB25C;
    --rd-green-deep: #178F4A;
    --rd-green-dark: #0F6E39;
    --rd-lime: #A8DC55;
    --rd-paper: #F3F5EF;
    --rd-surface: #FFFFFF;
    --rd-line: #DCE4DB;
    --rd-muted: #5D6B62;
    --rd-amber: #B77912;
    --rd-red: #B94737;
    --rd-soft: #E7F3EC;
    --rd-night: #0C1710;
    --rd-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rd-font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--rd-font-body);
    background: var(--rd-paper);
    color: var(--rd-ink);
    font-family: var(--rd-font-body);
}

.rd-theme h1,
.rd-theme h2,
.rd-theme h3,
.rd-theme h4,
.rd-theme h5,
.rd-theme h6,
.rd-theme .h1,
.rd-theme .h2,
.rd-theme .h3,
.rd-theme .h4,
.rd-theme .h5,
.rd-theme .h6 {
    font-family: var(--rd-font-head);
}

.rd-theme button,
.rd-theme input,
.rd-theme select,
.rd-theme textarea {
    font-family: inherit;
}

.rd-theme .container {
    max-width: 1360px;
}

.rd-theme .rd-main-col {
    padding-top: 24px;
    padding-bottom: 2rem;
}

/* ---------- Rail de navigation ---------- */
.rd-theme .rd-sidebar-col {
    padding-top: 1rem;
}

.rd-theme #sidebarMenu {
    position: sticky;
    top: 1rem;
    background:
        radial-gradient(circle at 20% 8%, rgba(168, 220, 85, .16), transparent 28%),
        linear-gradient(180deg, #0F1B13 0%, #0B140F 100%);
    border-radius: 18px;
    padding: 14px 12px;
    color: #EAF4EE;
    overflow: hidden;
}

.rd-theme #sidebarMenu .offcanvas-body {
    padding: 0;
}

.rd-theme .rd-nav-head {
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(234, 244, 238, .12);
}

.rd-theme .rd-nav-kicker {
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9FB3A6;
    font-weight: 800;
}

.rd-theme .rd-nav-name {
    font-size: 13px;
    font-weight: 700;
    color: #EAF4EE;
}

.rd-theme #sidebarMenu .rd-nav {
    gap: 3px;
}

.rd-theme #sidebarMenu .nav-link {
    color: #C9D8CE;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    transition: background .15s ease, color .15s ease;
}

.rd-theme #sidebarMenu .nav-link:hover {
    background: rgba(234, 244, 238, .08);
    color: #fff;
}

.rd-theme #sidebarMenu .offcanvas-item.active > .nav-link,
.rd-theme #sidebarMenu .nav-link.active {
    background: linear-gradient(135deg, rgba(31, 178, 92, .98), rgba(168, 220, 85, .92));
    color: #08110B !important;
    box-shadow: 0 8px 20px rgba(31, 178, 92, .22);
}

.rd-theme #sidebarMenu .nav-link .icon {
    width: 18px;
    height: 18px;
    opacity: .9;
}

.rd-theme .rd-nav-balance {
    margin-top: 16px;
    padding: 12px 10px;
    border-top: 1px solid rgba(234, 244, 238, .12);
    border-bottom: 1px solid rgba(234, 244, 238, .12);
}

.rd-theme .rd-nav-balance span {
    display: block;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9FB3A6;
    font-weight: 800;
    margin-bottom: 4px;
}

.rd-theme .rd-nav-balance strong {
    font-size: 15px;
    color: #EAF4EE;
}

.rd-theme .rd-nav-foot {
    margin-top: auto;
    padding: 16px 10px 6px;
    font-size: 10px;
    line-height: 1.5;
    color: #9FB3A6;
}

.rd-theme .rd-nav-foot a {
    display: block;
    color: var(--rd-lime);
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 2px;
}

/* ---------- En-tête de page ---------- */
.rd-dash {
    padding-top: .25rem;
}

.rd-dash-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 4px 0 22px;
}

.rd-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rd-green-deep);
    margin: 0 0 7px;
}

.rd-dash-head h1 {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -.035em;
    margin: 0 0 6px;
    font-weight: 800;
}

.rd-sub {
    color: var(--rd-muted);
    font-size: 13px;
    margin: 0;
}

.rd-client {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-radius: 13px;
    padding: 8px 11px 8px 8px;
    box-shadow: 0 2px 10px rgba(15, 27, 19, .04);
    flex: 0 0 auto;
}

.rd-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rd-green), var(--rd-lime));
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 11px;
    color: #08110B;
}

.rd-client b {
    display: block;
    font-size: 12px;
    line-height: 1.2;
}

.rd-client span {
    display: block;
    font-size: 10px;
    color: var(--rd-muted);
    margin-top: 3px;
}

/* ---------- Résumé ---------- */
.rd-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin-bottom: 20px;
}

.rd-stat {
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-radius: 13px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}

.rd-stat:before {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rd-green);
}

.rd-stat.rd-warn:before { background: var(--rd-amber); }
.rd-stat.rd-bad:before { background: var(--rd-red); }

.rd-stat-n {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.rd-stat-l {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rd-muted);
    margin-top: 4px;
}

.rd-stat-h {
    font-size: 10px;
    color: var(--rd-muted);
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Grille principale ---------- */
.rd-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

.rd-panel {
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(15, 27, 19, .04);
}

.rd-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px 13px;
    border-bottom: 1px solid var(--rd-line);
}

.rd-panel-head h2 {
    font-size: 16px;
    letter-spacing: -.02em;
    margin: 0;
}

.rd-panel-hint {
    font-size: 11px;
    color: var(--rd-muted);
    margin-top: 4px;
}

.rd-link {
    font-size: 11px;
    font-weight: 800;
    color: var(--rd-green-deep);
    text-decoration: none;
    white-space: nowrap;
}

.rd-link:hover { color: var(--rd-green-dark); }

.rd-table-wrap {
    overflow-x: auto;
}

.rd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.rd-table th {
    font-size: 9px;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--rd-muted);
    text-align: left;
    padding: 9px 14px;
    background: #FAFBF7;
    border-bottom: 1px solid var(--rd-line);
    white-space: nowrap;
}

.rd-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #E9EEE7;
    font-size: 12px;
    vertical-align: middle;
    background: transparent;
}

.rd-table tbody tr:last-child td { border-bottom: 0; }
.rd-table tbody tr:hover td { background: #FBFCF8; }

.rd-svc {
    display: block;
    font-weight: 700;
    letter-spacing: -.01em;
}

.rd-dom {
    display: block;
    font-size: 10px;
    color: var(--rd-muted);
    margin-top: 2px;
}

.rd-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rd-ta-r { text-align: right; }

.rd-stamp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    transform: rotate(-1deg);
    white-space: nowrap;
}

.rd-stamp:before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.rd-stamp.is-ok { color: var(--rd-green-deep); }
.rd-stamp.is-warn { color: var(--rd-amber); }
.rd-stamp.is-bad { color: var(--rd-red); }

.rd-row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rd-line);
    background: #fff;
    color: var(--rd-ink);
    border-radius: 7px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.rd-btn:hover {
    background: #F6F8F4;
    color: var(--rd-ink);
    border-color: #C9D5C7;
}

.rd-btn.primary {
    background: var(--rd-green);
    border-color: var(--rd-green);
    color: #08110B;
}

.rd-btn.primary:hover {
    background: var(--rd-green-deep);
    border-color: var(--rd-green-deep);
    color: #fff;
}

.rd-panel-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-top: 1px solid var(--rd-line);
    font-size: 10px;
    color: var(--rd-muted);
}

.rd-empty {
    text-align: center;
    color: var(--rd-muted);
    padding: 24px 14px !important;
}

/* ---------- Colonne latérale ---------- */
.rd-side {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.rd-side-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 3px 14px rgba(15, 27, 19, .035);
}

.rd-side-card h3 {
    font-size: 13px;
    margin: 0 0 4px;
    letter-spacing: -.01em;
}

.rd-side-card p {
    font-size: 11px;
    color: var(--rd-muted);
    line-height: 1.55;
    margin: 0;
}

.rd-invoice-amount {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
    margin: 10px 0 2px;
}

.rd-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 10px;
    color: var(--rd-muted);
    margin-top: 8px;
}

.rd-side-actions {
    display: flex;
    gap: 7px;
    margin-top: 12px;
}

.rd-side-actions .rd-btn { flex: 1; }

.rd-ruler { margin-top: 14px; }

.rd-ruler-track {
    position: relative;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(90deg, #EAF4EE 0 56%, #F7EAD1 56% 76%, #F6E3DF 76% 100%);
    border: 1px solid var(--rd-line);
    overflow: hidden;
}

.rd-ruler-track:before,
.rd-ruler-track:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(15, 27, 19, .16);
}

.rd-ruler-track:before { left: 56%; }
.rd-ruler-track:after { left: 76%; }

.rd-ruler-marker {
    position: absolute;
    top: -4px;
    left: 38%;
    width: 3px;
    height: 32px;
    border-radius: 3px;
    background: var(--rd-green);
    box-shadow: 0 0 0 3px rgba(31, 178, 92, .16);
}

.rd-ruler-track.is-overdue .rd-ruler-marker {
    left: 64%;
    background: var(--rd-red);
    box-shadow: 0 0 0 3px rgba(185, 71, 55, .14);
}

.rd-ruler-labels {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: var(--rd-muted);
    margin-top: 6px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rd-support {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.rd-support-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--rd-soft);
    color: var(--rd-green-dark);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.rd-support-ico .icon {
    width: 18px;
    height: 18px;
}

.rd-strong { color: var(--rd-ink); }
.rd-muted { color: var(--rd-muted); }

.rd-side-empty {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0 2px;
    color: var(--rd-green-deep);
}

.rd-side-empty .icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.rd-side-empty p {
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
}

.rd-side-empty p span { color: var(--rd-muted); }

/* ---------- Invité ---------- */
.rd-guest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rd-guest-card {
    padding: 22px;
}

.rd-guest-card h2 {
    font-size: 17px;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.rd-guest-card p {
    font-size: 12px;
    color: var(--rd-muted);
    line-height: 1.55;
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .rd-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .rd-dash-grid { grid-template-columns: 1fr; }
    .rd-side { flex-direction: row; flex-wrap: wrap; }
    .rd-side-card { flex: 1 1 260px; }
}

@media (max-width: 767.98px) {
    .rd-dash-head { flex-direction: column; gap: 14px; }
    .rd-dash-head h1 { font-size: 25px; }
    .rd-client { width: 100%; }
    .rd-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .rd-stat { padding: 12px 13px; }
    .rd-stat-n { font-size: 20px; }
    .rd-panel-head { align-items: flex-start; }
    .rd-table th, .rd-table td { padding-left: 11px; padding-right: 11px; }
    .rd-guest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 479.98px) {
    .rd-stat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Pages publiques : accueil, connexion, inscription
   ============================================================ */

.rd-public {
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 500px at 8% 0%, rgba(168, 220, 85, .13), transparent 55%),
        radial-gradient(700px 420px at 100% 20%, rgba(31, 178, 92, .08), transparent 55%),
        var(--rd-paper);
}

.rd-public-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.rd-public-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(243, 245, 239, .88);
    border-bottom: 1px solid var(--rd-line);
    backdrop-filter: blur(12px);
}

.rd-public-header .navbar {
    min-height: 78px;
    padding: 0;
}

.rd-public-logo {
    height: 50px !important;
    width: auto;
    display: block;
}

.rd-public-header .nav-link {
    color: var(--rd-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 13px;
    border-radius: 8px;
}

.rd-public-header .nav-link:hover {
    color: var(--rd-ink);
    background: rgba(255, 255, 255, .7);
}

.rd-public-auth {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rd-public-main {
    flex: 1 0 auto;
}

.rd-public-footer {
    margin-top: 64px;
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(168, 220, 85, .12), transparent 60%),
        linear-gradient(135deg, #0F1B13, #0B140F);
    color: #C9D8CE;
    padding: 42px 0 24px;
}

.rd-public-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(234, 244, 238, .12);
}

.rd-public-footer-logo {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.rd-public-footer p {
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
    color: #9FB3A6;
}

.rd-public-footer b {
    display: block;
    color: #fff;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rd-public-footer a {
    display: block;
    color: #C9D8CE;
    font-size: 11px;
    text-decoration: none;
    margin-top: 6px;
}

.rd-public-footer a:hover { color: var(--rd-lime); }

.rd-public-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    font-size: 10px;
    color: #7E9487;
    flex-wrap: wrap;
}

/* ---------- Accueil public ---------- */
.rd-home {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 34px 40px 28px;
}

.rd-home-hero {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
    align-items: center;
    padding: 4px 0 30px;
}

/* Signature de marque de la plateforme (accueil public) */
.rd-home-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0 0 8px;
}

.rd-home-brand-name {
    font-family: var(--rd-font-head);
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.045em;
    color: var(--rd-green-dark);
}

.rd-home-brand-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(31, 178, 92, .28);
    background: rgba(31, 178, 92, .10);
    color: var(--rd-green-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rd-home-by {
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--rd-muted);
}

.rd-home-copy h1 {
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: -.05em;
    margin: 0 0 14px;
    font-weight: 800;
    max-width: 560px;
}

.rd-home-sub {
    font-size: 14px;
    line-height: 1.6;
    color: var(--rd-muted);
    max-width: 500px;
    margin: 0;
}

.rd-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.rd-home-actions .rd-btn {
    padding: 10px 15px;
    font-size: 12px;
}

.rd-home-points {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.rd-home-points li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--rd-muted);
}

.rd-home-points .icon {
    width: 15px;
    height: 15px;
    color: var(--rd-green-deep);
}

.rd-home-visual {
    position: relative;
    width: 100%;
    max-width: 640px;
    justify-self: end;
}

.rd-home-visual:before {
    content: "";
    position: absolute;
    inset: 24px -18px -18px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(31, 178, 92, .16), rgba(168, 220, 85, .10));
    z-index: 0;
}

.rd-preview {
    position: relative;
    z-index: 1;
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 27, 19, .12);
}

.rd-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--rd-line);
}

.rd-preview-kicker {
    display: block;
    font-size: 8px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rd-green-deep);
    font-weight: 800;
    margin-bottom: 3px;
}

.rd-preview-head b {
    font-size: 13px;
    letter-spacing: -.01em;
}

.rd-preview-count {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rd-green-dark);
    background: var(--rd-soft);
    border-radius: 999px;
    padding: 5px 9px;
    white-space: nowrap;
}

.rd-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #E9EEE7;
}

.rd-preview-row b {
    display: block;
    font-size: 11px;
    letter-spacing: -.01em;
}

.rd-preview-row span:not(.rd-stamp) {
    display: block;
    font-size: 9px;
    color: var(--rd-muted);
    margin-top: 2px;
}

.rd-preview-invoice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: var(--rd-soft);
    border-radius: 11px;
    padding: 11px 12px;
    margin-top: 12px;
}

.rd-preview-invoice span {
    display: block;
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rd-green-deep);
    font-weight: 800;
}

.rd-preview-invoice b {
    display: block;
    font-size: 19px;
    letter-spacing: -.04em;
    margin-top: 2px;
}

.rd-preview-invoice small {
    display: block;
    font-size: 9px;
    color: var(--rd-muted);
    margin-top: 2px;
}

.rd-preview-note {
    font-size: 8px;
    color: var(--rd-muted);
    text-align: right;
    margin: 10px 0 0;
}

.rd-home-section {
    padding: 24px 0 0;
}

.rd-section-head {
    max-width: 660px;
    margin-bottom: 16px;
}

.rd-section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    max-width: none;
}

.rd-section-head h2 {
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -.04em;
    margin: 0 0 4px;
    font-weight: 800;
}

.rd-section-head p:not(.rd-eyebrow) {
    font-size: 13px;
    line-height: 1.6;
    color: var(--rd-muted);
    margin: 0;
}

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

.rd-offer-card {
    display: flex;
    flex-direction: column;
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 3px 14px rgba(15, 27, 19, .035);
}

.rd-offer-kicker {
    font-size: 8px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rd-green-deep);
    font-weight: 800;
    margin: 0 0 7px;
}

.rd-offer-card h3 {
    font-size: 16px;
    letter-spacing: -.02em;
    margin: 0 0 6px;
}

.rd-offer-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.5;
    color: var(--rd-muted);
    margin: 0 0 12px;
}

.rd-offer-price {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.04em;
    margin-top: auto;
    padding-top: 6px;
    font-variant-numeric: tabular-nums;
}

.rd-offer-price span {
    font-size: 10px;
    font-weight: 700;
    color: var(--rd-muted);
}

.rd-offer-card .rd-btn {
    margin-top: 10px;
    justify-content: center;
}

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

.rd-feature-card {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    padding: 17px;
}

.rd-feature-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--rd-soft);
    color: var(--rd-green-dark);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.rd-feature-ico .icon {
    width: 17px;
    height: 17px;
}

.rd-feature-card h3 {
    font-size: 13px;
    margin: 0 0 5px;
    letter-spacing: -.01em;
}

.rd-feature-card p {
    font-size: 10px;
    line-height: 1.55;
    color: var(--rd-muted);
    margin: 0;
}

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

.rd-step-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    padding: 18px;
}

.rd-step-card span {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--rd-green-deep);
    margin-bottom: 10px;
}

.rd-step-card h3 {
    font-size: 13px;
    margin: 0 0 5px;
    letter-spacing: -.01em;
}

.rd-step-card p {
    font-size: 10px;
    line-height: 1.55;
    color: var(--rd-muted);
    margin: 0;
}

.rd-home-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background:
        radial-gradient(500px 240px at 85% 0%, rgba(168, 220, 85, .18), transparent 60%),
        linear-gradient(135deg, #0F1B13, #0B140F);
    color: #EAF4EE;
    border-radius: 20px;
    padding: 30px 32px;
    margin: 44px 0 10px;
}

.rd-home-cta h2 {
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -.04em;
    margin: 0 0 5px;
    color: #fff;
}

.rd-home-cta p:not(.rd-eyebrow) {
    font-size: 11px;
    color: #9FB3A6;
    margin: 0;
}

.rd-home-cta .rd-btn {
    background: var(--rd-lime);
    border-color: var(--rd-lime);
    color: #08110B;
}

.rd-home-cta .rd-btn:not(.primary) {
    background: transparent;
    border-color: rgba(234, 244, 238, .25);
    color: #EAF4EE;
}

/* ---------- Connexion / inscription ---------- */
.rd-auth-page {
    background:
        radial-gradient(900px 500px at 8% 0%, rgba(168, 220, 85, .15), transparent 55%),
        radial-gradient(700px 420px at 100% 30%, rgba(31, 178, 92, .08), transparent 55%),
        var(--rd-paper);
}

.rd-auth-shell {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    width: 100%;
    max-width: 1120px;
    margin: 38px auto 54px;
    padding: 0 24px;
    align-items: stretch;
}

.rd-auth-brand {
    position: relative;
    overflow: hidden;
    border-radius: 22px 0 0 22px;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(168, 220, 85, .18), transparent 60%),
        linear-gradient(145deg, #0F1B13, #0B140F);
    color: #EAF4EE;
    padding: 40px;
}

.rd-auth-brand:after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(168, 220, 85, .22);
    box-shadow: 0 0 0 32px rgba(168, 220, 85, .04), 0 0 0 64px rgba(168, 220, 85, .03);
}

.rd-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 470px;
}

.rd-auth-brand h1 {
    font-size: 33px;
    line-height: 1.08;
    letter-spacing: -.045em;
    margin: 0 0 12px;
    color: #fff;
    font-weight: 800;
}

.rd-auth-brand-sub {
    font-size: 12px;
    line-height: 1.65;
    color: #B8CBBE;
    margin: 0;
}

.rd-auth-brand .rd-preview {
    margin-top: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
}

.rd-auth-points {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.rd-auth-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #C9D8CE;
}

.rd-auth-points .icon {
    width: 15px;
    height: 15px;
    color: var(--rd-lime);
    flex: 0 0 auto;
}

.rd-auth-panel {
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-left: 0;
    border-radius: 0 22px 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.rd-auth-card {
    width: 100%;
    max-width: 400px;
}

.rd-auth-card-wide {
    max-width: 610px;
}

.rd-auth-head h2 {
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -.04em;
    margin: 0 0 6px;
    font-weight: 800;
}

.rd-auth-head p:not(.rd-eyebrow) {
    font-size: 11px;
    line-height: 1.55;
    color: var(--rd-muted);
    margin: 0;
}

.rd-auth-form {
    margin-top: 20px;
}

.rd-field {
    margin-bottom: 13px;
}

.rd-field .form-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rd-muted);
    margin-bottom: 5px;
}

.rd-auth-form .form-control,
.rd-auth-form .form-select {
    border-radius: 9px;
    border-color: var(--rd-line);
    padding: 9px 11px;
    font-size: 12px;
    color: var(--rd-ink);
    background-color: #fff;
}

.rd-auth-form .form-control:focus,
.rd-auth-form .form-select:focus {
    border-color: var(--rd-green);
    box-shadow: 0 0 0 .22rem rgba(31, 178, 92, .14);
}

.rd-field .form-hint {
    display: block;
    font-size: 9px;
    line-height: 1.45;
    margin-top: 5px;
}

.rd-form-section {
    border-top: 1px solid var(--rd-line);
    padding-top: 16px;
    margin-top: 18px;
}

.rd-form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.rd-form-section h3 {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rd-green-deep);
    margin: 0 0 12px;
}

.rd-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 13px;
}

.rd-field-full {
    grid-column: 1 / -1;
}

.rd-btn-block {
    width: 100%;
    padding: 10px 14px;
    font-size: 12px;
    justify-content: center;
}

.rd-auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 10px;
    color: var(--rd-muted);
}

.rd-auth-links a {
    color: var(--rd-green-deep);
    font-weight: 800;
    text-decoration: none;
}

.rd-auth-links a:hover { color: var(--rd-green-dark); }

.rd-auth-notice {
    font-size: 9px;
    line-height: 1.5;
    color: var(--rd-muted);
}

.rd-auth-notice a {
    color: var(--rd-green-deep);
    text-decoration: underline;
}

.rd-auth-page .rd-auth-divider {
    margin: 14px 0;
}

.rd-signup-page .rd-auth-brand-inner {
    position: sticky;
    top: 110px;
}

/* ---------- Responsive public ---------- */
@media (max-width: 991.98px) {
    .rd-home-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 0;
    }

    .rd-home-copy h1 { font-size: 34px; }
    .rd-home-brand-name { font-size: 27px; }
    .rd-home-visual { max-width: 560px; }
    .rd-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-offer-grid { grid-template-columns: 1fr; }
    .rd-step-grid { grid-template-columns: 1fr; }
    .rd-public-footer-grid { grid-template-columns: 1fr 1fr; }

    .rd-auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-top: 26px;
    }

    .rd-auth-brand { display: none; }
    .rd-auth-panel {
        border-left: 1px solid var(--rd-line);
        border-radius: 22px;
        padding: 30px 24px;
    }

    .rd-home-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }
}

@media (max-width: 575.98px) {
    .rd-public-container,
    .rd-home { padding-left: 18px; padding-right: 18px; }
    .rd-public-header .navbar { min-height: 68px; }
    .rd-public-logo { height: 42px !important; }
    .rd-home-copy h1 { font-size: 33px; }
    .rd-home-brand { gap: 8px 9px; }
    .rd-home-brand-name { font-size: 25px; }
    .rd-home-brand-tag { font-size: 9px; padding: 5px 8px; letter-spacing: .10em; }
    .rd-home-by { font-size: 10px; margin-bottom: 12px; }
    .rd-section-head h2 { font-size: 26px; }
    .rd-feature-grid { grid-template-columns: 1fr; }
    .rd-public-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .rd-home-cta h2 { font-size: 22px; }
    .rd-form-grid { grid-template-columns: 1fr; }
    .rd-auth-panel { padding: 24px 18px; }
    .rd-auth-card-wide { max-width: 100%; }
}

.rd-auth-page .rd-public-auth {
    display: none;
}

.rd-home-cta .rd-eyebrow,
.rd-auth-brand .rd-eyebrow {
    color: var(--rd-lime);
}

/* Le menu latéral ne doit pas reprendre le rendu « accordéon » de l'offcanvas mobile. */
.rd-theme #sidebarMenu .offcanvas-item,
.rd-theme #sidebarMenu .offcanvas-item:first-child {
    border: 0;
    background: transparent;
}

.rd-theme #sidebarMenu .offcanvas-item:hover,
.rd-theme #sidebarMenu .offcanvas-item.active {
    background: transparent;
}

.rd-theme #sidebarMenu .offcanvas-item > .nav-link {
    border: 0;
}

/* Sur desktop, la navigation est dans le rail latéral : on évite le doublon dans le header. */
@media (min-width: 768px) {
    .rd-theme #navbarSupportedContent > .navbar-nav > .rd-top-link {
        display: none !important;
    }
}

/* ============================================================
   Header client full width — navigation horizontale
   ============================================================ */

.rd-theme .rd-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100%;
    background: var(--rd-surface);
    border-bottom: 1px solid var(--rd-line);
}

.rd-theme .rd-topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: 82px;
    padding: 0 64px;
}

.rd-theme .rd-topbar-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    text-decoration: none;
}

.rd-theme .rd-topbar-logo-img {
    height: 44px !important;
    width: auto;
    display: block;
}

.rd-theme .rd-topnav {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: center;
}

.rd-theme .rd-topnav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--rd-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.rd-theme .rd-topnav-link:hover {
    color: var(--rd-ink);
    background: #F6F8F4;
}

.rd-theme .rd-topnav-link.active {
    color: var(--rd-green-dark);
    background: var(--rd-soft);
    font-weight: 700;
}

.rd-theme .rd-topbar-client {
    justify-self: end;
}

.rd-theme .rd-client-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 6px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--rd-ink);
}

.rd-theme .rd-client-btn:hover {
    background: #F6F8F4;
}

.rd-theme .rd-client-btn::after {
    display: none;
}

.rd-theme .rd-topbar .rd-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rd-green), var(--rd-lime));
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    color: #08110B;
    flex: 0 0 auto;
}

.rd-theme .rd-client-meta {
    text-align: left;
    line-height: 1.15;
}

.rd-theme .rd-client-meta b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rd-ink);
}

.rd-theme .rd-client-meta small {
    display: block;
    font-size: 10px;
    color: var(--rd-muted);
    margin-top: 3px;
}

.rd-theme .rd-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--rd-line);
    border-radius: 9px;
    background: #fff;
    color: var(--rd-ink);
}

.rd-theme .rd-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 18px;
    background: var(--rd-surface);
    border-top: 1px solid var(--rd-line);
}

.rd-theme .rd-mobile-nav a {
    padding: 11px 12px;
    border-radius: 9px;
    color: var(--rd-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.rd-theme .rd-mobile-nav a:hover,
.rd-theme .rd-mobile-nav a.active {
    color: var(--rd-green-dark);
    background: var(--rd-soft);
}

@media (max-width: 991.98px) {
    .rd-theme .rd-topbar-inner {
        display: flex;
        justify-content: space-between;
        height: 72px;
        padding: 0 20px;
        gap: 12px;
    }

    .rd-theme .rd-topnav {
        display: none;
    }

    .rd-theme .rd-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .rd-theme .rd-topbar-logo-img {
        height: 42px !important;
    }

    .rd-theme .rd-client-meta {
        display: none;
    }

    .rd-theme .rd-topbar-client {
        order: 2;
    }

    .rd-theme .rd-menu-toggle {
        order: 1;
    }

    .rd-theme .rd-topbar-brand {
        order: 0;
    }
}

@media (max-width: 575.98px) {
    .rd-theme .rd-topbar-inner {
        padding: 0 16px;
    }

    .rd-theme .rd-topbar-logo-img {
        height: 38px !important;
    }

    .rd-theme .rd-topbar .rd-avatar {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }
}

.rd-theme::before {
    height: 3px;
}

/* ============================================================
   Shell sidebar — navigation verticale sur tout le site
   ============================================================ */

.rd-theme .rd-app,
.rd-public .rd-app {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: 100vh;
}

.rd-theme .rd-sidebar,
.rd-public .rd-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 18px 20px;
    background:
        radial-gradient(circle at 20% 8%, rgba(168, 220, 85, .16), transparent 28%),
        linear-gradient(180deg, #0F1B13 0%, #0B140F 100%);
    color: #EAF4EE;
    z-index: 1030;
}

.rd-theme .rd-sidebar-brand,
.rd-public .rd-sidebar-brand {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px 18px;
    border-bottom: 1px solid rgba(234, 244, 238, .12);
    text-decoration: none;
}

.rd-theme .rd-sidebar-brand img,
.rd-public .rd-sidebar-brand img {
    height: 46px;
    width: auto;
    display: block;
}

.rd-theme .rd-sidebar-id,
.rd-public .rd-sidebar-id {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rd-theme .rd-sidebar-id span,
.rd-public .rd-sidebar-id span {
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9FB3A6;
    font-weight: 800;
}

.rd-theme .rd-sidebar-id b,
.rd-public .rd-sidebar-id b {
    font-size: 13px;
    font-weight: 700;
    color: #EAF4EE;
    line-height: 1.2;
}

.rd-theme .rd-sidebar-id small,
.rd-public .rd-sidebar-id small {
    font-size: 10px;
    color: #9FB3A6;
}

.rd-theme .rd-sidebar-nav,
.rd-public .rd-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rd-theme .rd-sidebar-link,
.rd-public .rd-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 9px;
    color: #C9D8CE;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.rd-theme .rd-sidebar-link .icon,
.rd-public .rd-sidebar-link .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    opacity: .9;
}

.rd-theme .rd-sidebar-link:hover,
.rd-public .rd-sidebar-link:hover {
    background: rgba(234, 244, 238, .08);
    color: #fff;
}

.rd-theme .rd-sidebar-link.active,
.rd-public .rd-sidebar-link.active {
    background: linear-gradient(135deg, rgba(31, 178, 92, .98), rgba(168, 220, 85, .92));
    color: #08110B;
    box-shadow: 0 8px 20px rgba(31, 178, 92, .22);
}

.rd-theme .rd-sidebar-balance {
    margin-top: 4px;
    padding: 13px 10px;
    border-top: 1px solid rgba(234, 244, 238, .12);
    border-bottom: 1px solid rgba(234, 244, 238, .12);
}

.rd-theme .rd-sidebar-balance span {
    display: block;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9FB3A6;
    font-weight: 800;
    margin-bottom: 4px;
}

.rd-theme .rd-sidebar-balance strong {
    font-size: 15px;
    color: #EAF4EE;
}

.rd-theme .rd-sidebar-foot,
.rd-public .rd-sidebar-foot {
    margin-top: auto;
    padding: 16px 10px 4px;
    border-top: 1px solid rgba(234, 244, 238, .12);
    font-size: 10px;
    line-height: 1.5;
    color: #9FB3A6;
}

.rd-theme .rd-sidebar-foot a,
.rd-public .rd-sidebar-foot a {
    display: block;
    color: var(--rd-lime);
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 2px;
}

.rd-theme .rd-sidebar-overlay,
.rd-public .rd-sidebar-overlay {
    display: none;
}

/* Main column */
.rd-theme .rd-main,
.rd-public .rd-main {
    min-width: 0;
    min-height: 100vh;
    background: var(--rd-paper);
    display: flex;
    flex-direction: column;
}

.rd-theme .rd-main-inner {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px 34px 38px;
}

.rd-public .rd-main-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Mobile bar */
.rd-theme .rd-mobilebar,
.rd-public .rd-mobilebar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 68px;
    padding: 0 18px;
    background: var(--rd-surface);
    border-bottom: 1px solid var(--rd-line);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.rd-theme .rd-mobilebar-brand,
.rd-public .rd-mobilebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rd-theme .rd-mobilebar-brand img,
.rd-public .rd-mobilebar-brand img {
    height: 42px !important;
    width: auto;
    display: block;
}

.rd-theme .rd-mobilebar-name,
.rd-public .rd-mobilebar-name {
    font-family: var(--rd-font-head);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--rd-ink);
}

.rd-theme .rd-mobilebar-toggle,
.rd-public .rd-mobilebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rd-line);
    border-radius: 9px;
    background: #fff;
    color: var(--rd-ink);
    padding: 0;
}

/* Auth standalone */
.rd-auth-standalone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: calc(100vh - 130px);
    padding: 30px 24px 50px;
}

.rd-auth-standalone .rd-auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(15, 27, 19, .08);
}

.rd-auth-standalone .rd-auth-card-wide {
    max-width: 640px;
}

/* Public footer in the main column */
.rd-public-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 18px 40px 22px;
    border-top: 1px solid var(--rd-line);
    color: var(--rd-muted);
    font-size: 10px;
}

.rd-public-foot a {
    color: var(--rd-green-deep);
    font-weight: 700;
    text-decoration: none;
    margin-left: 12px;
}

@media (max-width: 991.98px) {
    .rd-theme .rd-app,
    .rd-public .rd-app {
        grid-template-columns: 1fr;
    }

    .rd-theme .rd-sidebar,
    .rd-public .rd-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 290px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .22s ease;
        z-index: 1060;
    }

    .rd-sidebar-open .rd-sidebar {
        transform: translateX(0);
    }

    .rd-theme .rd-sidebar-overlay,
    .rd-public .rd-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 27, 19, .45);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .rd-sidebar-open .rd-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .rd-theme .rd-main-inner {
        padding: 20px 18px 30px;
    }

    .rd-public .rd-home {
        padding: 20px 18px 24px;
    }

    .rd-public .rd-public-foot {
        padding: 16px 18px 18px;
    }

    .rd-theme .rd-mobilebar,
    .rd-public .rd-mobilebar {
        display: flex;
    }

    .rd-auth-standalone {
        min-height: auto;
        padding: 20px 18px 30px;
    }

    .rd-auth-standalone .rd-auth-card {
        padding: 24px 20px;
    }
}

@media (max-width: 575.98px) {
    .rd-theme .rd-mobilebar,
    .rd-public .rd-mobilebar {
        height: 62px;
        padding: 0 16px;
    }

    .rd-theme .rd-mobilebar-brand img,
    .rd-public .rd-mobilebar-brand img {
        height: 38px !important;
    }

    .rd-auth-standalone .rd-auth-card-wide {
        max-width: 100%;
    }
}

/* Actions de la sidebar client */
.rd-theme .rd-sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--rd-lime);
    color: #08110B;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.rd-theme .rd-sidebar-cta:hover {
    background: #BCE77B;
    color: #08110B;
}

.rd-theme .rd-sidebar-cta .icon {
    width: 17px;
    height: 17px;
}

.rd-theme .rd-sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rd-theme .rd-sidebar-bottom .rd-sidebar-foot {
    margin-top: 0;
}

.rd-theme .rd-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid rgba(234, 244, 238, .14);
    border-radius: 9px;
    color: #C9D8CE;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.rd-theme .rd-sidebar-logout:hover {
    background: rgba(234, 244, 238, .07);
    color: #fff;
    border-color: rgba(234, 244, 238, .24);
}

.rd-theme .rd-sidebar-logout .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

/* Footer client aligné sur le bas de la page / de la sidebar */
.rd-theme .rd-main-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rd-theme #footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--rd-line);
}

/* Mention légale du footer public */
.rd-public-foot .rd-foot-credit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rd-public-foot .rd-foot-sep {
    color: #9AA79E;
}

.rd-public-foot .rd-foot-credit a {
    margin-left: 0;
}

.rd-public-foot .rd-foot-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rd-public-foot .rd-foot-legal a {
    margin-left: 0;
}

/* ---------- Renouvellement / période de grâce ---------- */
.rd-renewal-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
}

.rd-renewal-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 17px;
    border: 1px solid var(--rd-line);
    border-left: 4px solid var(--rd-amber);
    border-radius: 12px;
    background: linear-gradient(90deg, #FDF8EC 0%, #FFFFFF 72%);
    box-shadow: 0 3px 14px rgba(15, 27, 19, .035);
}

.rd-renewal-banner.rd-renewal-restore,
.rd-renewal-banner.rd-renewal-expired {
    border-left-color: var(--rd-red);
    background: linear-gradient(90deg, #FBEDEA 0%, #FFFFFF 72%);
}

.rd-renewal-banner.rd-renewal-due_soon {
    border-left-color: var(--rd-amber);
    background: linear-gradient(90deg, #FDF8EC 0%, #FFFFFF 72%);
}

.rd-renewal-banner.rd-renewal-grace {
    border-left-color: var(--rd-amber);
    background: linear-gradient(90deg, #FDF4E3 0%, #FFFFFF 72%);
}

.rd-renewal-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #F7EAD1;
    color: var(--rd-amber);
}

.rd-renewal-banner.rd-renewal-restore .rd-renewal-mark,
.rd-renewal-banner.rd-renewal-expired .rd-renewal-mark {
    background: #F6E3DF;
    color: var(--rd-red);
}

.rd-renewal-mark svg {
    width: 18px;
    height: 18px;
}

.rd-renewal-copy {
    min-width: 0;
    flex: 1;
}

.rd-renewal-kicker {
    margin: 0 0 3px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--rd-amber) !important;
}

.rd-renewal-banner.rd-renewal-restore .rd-renewal-kicker,
.rd-renewal-banner.rd-renewal-expired .rd-renewal-kicker {
    color: var(--rd-red) !important;
}

.rd-renewal-copy h3 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.rd-renewal-copy p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--rd-muted);
}

.rd-renewal-copy p.rd-renewal-note {
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--rd-ink);
}

.rd-renewal-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.rd-renewal-actions .rd-btn {
    font-size: 10.5px;
    padding: 7px 11px;
}

.rd-renewal-actions .rd-link {
    font-size: 10.5px;
}

.rd-renewal-mini {
    display: inline-block;
    margin-top: 5px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rd-renewal-mini.is-warn { color: var(--rd-amber); }
.rd-renewal-mini.is-bad { color: var(--rd-red); }

.rd-renewal-more {
    margin: 0 0 2px;
    font-size: 11px;
}

@media (max-width: 640px) {
    .rd-renewal-banner {
        padding: 13px 14px;
        gap: 11px;
    }

    .rd-renewal-mark {
        width: 30px;
        height: 30px;
    }

    .rd-renewal-actions {
        gap: 9px;
    }
}

/* ─────────────────────────────────────────────────────────────
   Erreurs de connexion inline (formulaire de commande)
   ───────────────────────────────────────────────────────────── */
.rd-login-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #FDA29B;
  border-radius: 12px;
  background: #FEF3F2;
  color: #7A271A;
}
.rd-login-error[hidden] { display: none !important; }
.rd-login-error-icon { flex: 0 0 auto; width: 24px; height: 24px; color: #B42318; }
.rd-login-error-title { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 800; line-height: 1.3; }
.rd-login-error-message { margin: 0; font-size: 13.5px; line-height: 1.45; color: #7A271A; }
.rd-login-error.is-shaking { animation: rdShake 0.35s ease-in-out; }
.rd-field-invalid {
  border-color: #B42318 !important;
  box-shadow: 0 0 0 0.2rem rgba(180, 35, 24, 0.14) !important;
}
@keyframes rdShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ─────────────────────────────────────────────────────────────
   Toast d'erreur très visible (remplace le toast par défaut)
   ───────────────────────────────────────────────────────────── */
.toast-container .rd-toast-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(460px, calc(100vw - 24px));
  padding: 14px 16px;
  border: 1px solid #912018;
  border-radius: 14px;
  background: #B42318;
  color: #fff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.28);
  animation: rdToastIn 0.22s ease-out;
}
.rd-toast-error .rd-toast-icon { flex: 0 0 auto; width: 26px; height: 26px; color: #fff; }
.rd-toast-error .rd-toast-content { flex: 1 1 auto; min-width: 0; }
.rd-toast-error .rd-toast-title {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}
.rd-toast-error .rd-toast-body {
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  overflow-wrap: anywhere;
}
.rd-toast-error .btn-close {
  flex: 0 0 auto;
  margin: 2px 0 0 4px;
  opacity: 0.9;
  filter: invert(1) grayscale(1);
}
.rd-toast-error .btn-close:hover { opacity: 1; }
@keyframes rdToastIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 767.98px) {
  .toast-container.position-fixed {
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    padding: 12px !important;
  }
  .toast-container .rd-toast-error { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────
   Chatbot ROOT (billing.root.ci)
   ───────────────────────────────────────────────────────────── */
.rdc-root { z-index: 1030 !important; }
@media (min-width: 768px) {
  /* Le chatbot occupe le bas-droite : on remonte les toasts. */
  .toast-container.position-fixed {
    top: 84px !important;
    right: 16px !important;
    bottom: auto !important;
  }
}
@media (max-width: 991.98px) {
  /* Au-dessus de la barre d'action mobile du tunnel de commande. */
  .rdc-root { bottom: 84px !important; }
}

/* ─────────────────────────────────────────────────────────────
   Panier — ligne informative « ROOT-DNS »
   ───────────────────────────────────────────────────────────── */
.rd-cart-item-included {
    align-items: center;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px dashed rgba(31, 178, 92, .42);
    border-radius: 10px;
    background: rgba(31, 178, 92, .07);
}
.rd-cart-item-included .rd-cart-item-title {
    color: var(--rd-green-dark);
    font-weight: 800;
    letter-spacing: -.01em;
}
.rd-cart-item-included .rd-cart-item-sub {
    color: var(--rd-muted);
}
.rd-badge-included {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--rd-green);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .10em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   Invitation à se connecter avant paiement — variante « info »
   bleue (se distingue de la dominante verte du thème)
   ───────────────────────────────────────────────────────────── */
.rd-order-alert {
    background: linear-gradient(135deg, #EFF6FF, #F8FBFF);
    border-color: #BFDBFE;
    border-left-color: #3B82F6;
}
.rd-order-alert-icon {
    background: #DBEAFE;
    color: #1D4ED8;
}
.rd-order-alert-copy b {
    color: #1E3A8A;
}
.rd-order-alert-btn {
    background: #1D4ED8;
}
.rd-order-alert-btn:hover {
    background: #1E40AF;
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   Notifications ROOT — position fixe haut-droite + cartes unifiées
   ───────────────────────────────────────────────────────────── */
.toast-container.position-fixed {
    top: 24px !important;
    right: 16px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1090 !important;
    padding: 0 !important;
    width: auto;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-container.position-fixed > .toast {
    pointer-events: auto;
}

.rd-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    margin: 0;
    padding: 14px 14px 14px 16px;
    border: 1px solid var(--rd-line, #DCE4DB);
    border-left: 4px solid var(--rd-green, #1FB25C);
    border-radius: 14px;
    background: #fff;
    color: var(--rd-ink, #0F1B13);
    box-shadow: 0 16px 40px rgba(15, 27, 19, .18);
    animation: rdToastIn .22s ease-out;
}

.rd-toast .rd-toast-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--rd-soft, #E7F3EC);
    color: var(--rd-green-deep, #178F4A);
}

.rd-toast .rd-toast-icon svg {
    width: 18px;
    height: 18px;
}

.rd-toast .rd-toast-content {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 1px;
}

.rd-toast .rd-toast-title {
    display: block;
    margin-bottom: 3px;
    font-family: var(--rd-font-head, "Manrope", system-ui, sans-serif);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--rd-green-deep, #178F4A);
}

.rd-toast .rd-toast-body {
    font-size: 13px;
    line-height: 1.45;
    color: var(--rd-ink, #0F1B13);
    overflow-wrap: anywhere;
}

.rd-toast .btn-close {
    flex: 0 0 auto;
    margin: 2px 0 0 4px;
    opacity: .45;
}

.rd-toast .btn-close:hover {
    opacity: .85;
}

.rd-toast--success {
    border-color: #CFE8D8;
    border-left-color: #1FB25C;
}
.rd-toast--success .rd-toast-icon {
    background: #E7F3EC;
    color: #178F4A;
}
.rd-toast--success .rd-toast-title {
    color: #178F4A;
}

.rd-toast--info {
    border-color: #BFDBFE;
    border-left-color: #3B82F6;
}
.rd-toast--info .rd-toast-icon {
    background: #DBEAFE;
    color: #1D4ED8;
}
.rd-toast--info .rd-toast-title {
    color: #1E3A8A;
}

.rd-toast--warning {
    border-color: #FDE68A;
    border-left-color: #B77912;
}
.rd-toast--warning .rd-toast-icon {
    background: #FEF3C7;
    color: #B77912;
}
.rd-toast--warning .rd-toast-title {
    color: #92400E;
}

.rd-toast--error {
    border-color: #F3C7C4;
    border-left-color: #B42318;
}
.rd-toast--error .rd-toast-icon {
    background: #FEE4E2;
    color: #B42318;
}
.rd-toast--error .rd-toast-title {
    color: #912018;
}

@keyframes rdToastIn {
    from { opacity: 0; transform: translateX(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 767.98px) {
    .toast-container.position-fixed {
        top: 76px !important;
        right: 12px !important;
        left: 12px !important;
        bottom: auto !important;
        max-width: none;
    }

    .rd-toast {
        width: 100%;
    }
}
