/* ====================================================================
   Loi 25 Privacy Center — v2
   Identité Solution L25 : encre #1c2024 · émeraude #0f766e → #0f9d76 ·
   or #c9a227 · navy #0f1b2d. Même langage visuel que la plateforme.
   Passe-partout : tout est scopé sous .loi25-pc, fond transparent,
   aucune largeur fixe — le centre s'intègre à n'importe quel thème.
   ==================================================================== */

.loi25-pc,
.l25-privacy-center {
    --l25-ink: #1c2024;
    --l25-slate: #3a4046;
    --l25-teal: #0f766e;
    --l25-teal-2: #0f9d76;
    --l25-emerald: #10b981;
    --l25-gold: #c9a227;
    --l25-gold-soft: #fbf6e3;
    --l25-navy: #0f1b2d;
    --l25-surface: #ffffff;
    --l25-surface-soft: #f7faf9;
    --l25-border: #e6ecea;
    --l25-text: #212529;
    --l25-muted: #6b7075;
    --l25-radius: 14px;
    --l25-shadow: 0 10px 30px rgba(15, 27, 45, 0.06);
    background: transparent;
    box-sizing: border-box;
    color: var(--l25-text);
    font-family: "Helvetica Neue", Arial, "Segoe UI", Roboto, system-ui, sans-serif;
    isolation: isolate;
    line-height: 1.6;
    margin: 0;
    max-width: none;
    padding: 8px 0 32px;
    position: relative;
    width: 100%;
}

.loi25-pc *,
.loi25-pc *::before,
.loi25-pc *::after {
    box-sizing: inherit;
}

.loi25-pc a {
    color: var(--l25-teal);
    text-underline-offset: 3px;
}

.loi25-pc :where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid rgba(15, 157, 118, 0.35);
    outline-offset: 2px;
}

.l25-page-content {
    margin: 0 auto;
    max-width: 980px;
    padding: 0 4px;
    position: relative;
    z-index: 2;
}

/* Fond décoratif hérité : neutralisé, le thème hôte respire. */
.l25-tech-bg,
.l25-tech-bg-static {
    display: none;
}

/* ---------- Sections (cartes) ---------- */

.loi25-pc :where(.loi25-pc-section.l25-row) {
    background: var(--l25-surface);
    border: 1px solid var(--l25-border);
    border-radius: var(--l25-radius);
    box-shadow: var(--l25-shadow);
    margin: 0 0 18px;
    padding: 26px 30px;
}

.loi25-pc-section.l25-row > h3,
.l25-info-row > div > h3 {
    color: var(--l25-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.loi25-pc-section.l25-row p {
    margin: 0 0 10px;
}

.loi25-pc-section.l25-row p:last-child {
    margin-bottom: 0;
}

/* ---------- Hero ---------- */

.l25-hero {
    background: linear-gradient(160deg, #ffffff, var(--l25-surface-soft));
    border: 1px solid var(--l25-border);
    padding: 34px 30px;
    text-align: left;
}

.l25-eyebrow {
    color: var(--l25-teal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.l25-eyebrow::before {
    background: linear-gradient(90deg, var(--l25-teal), var(--l25-gold));
    content: "";
    display: inline-block;
    height: 1.5px;
    width: 30px;
}

.l25-hero h2 {
    color: var(--l25-ink);
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 10px;
}

.l25-hero h2::after {
    background: linear-gradient(90deg, var(--l25-teal), var(--l25-gold));
    border-radius: 2px;
    content: "";
    display: block;
    height: 3px;
    margin-top: 12px;
    width: 54px;
}

.l25-hero p {
    color: var(--l25-slate);
    font-size: 16px;
    max-width: 640px;
}

/* ---------- Badge / carte de certification ---------- */

.l25-certificate-row {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.loi25-pc-badge.l25-certificate-card {
    align-items: center;
    background: linear-gradient(160deg, #14243c, var(--l25-navy));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--l25-radius);
    box-shadow: 0 18px 44px rgba(5, 12, 24, 0.28);
    color: #e8eef7;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 26px;
}

.l25-badge-seal {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    height: 92px;
    object-fit: contain;
    width: 92px;
}

.l25-badge-mark {
    background: linear-gradient(135deg, var(--l25-teal), var(--l25-teal-2));
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    height: 52px;
    position: relative;
    width: 52px;
}

.l25-badge-mark::after {
    border: solid #fff;
    border-width: 0 0 3px 3px;
    content: "";
    height: 10px;
    left: 50%;
    position: absolute;
    top: 46%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 18px;
}

.l25-badge-content {
    display: grid;
    flex: 1;
    gap: 3px;
    min-width: 220px;
}

.l25-badge-kicker {
    color: #34d399;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.loi25-pc-badge strong {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.l25-badge-content > span {
    color: #b8c4d6;
    font-size: 13px;
}

.l25-badge-content small {
    color: #8fa3bd;
    font-size: 12px;
}

.l25-badge-link {
    color: #34d399;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Palier OR : liseré doré, prestige. */
.loi25-pc-badge-gold.l25-certificate-card {
    border: 1.5px solid var(--l25-gold);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), 0 18px 44px rgba(5, 12, 24, 0.3);
}

.loi25-pc-badge-gold .l25-badge-kicker,
.loi25-pc-badge-gold .l25-badge-link {
    color: #e4c04f;
}

/* États dégradés : expiré, révoqué, non connecté. */
.loi25-pc-badge-muted.l25-certificate-card,
.loi25-pc-badge-status-expired.l25-certificate-card,
.loi25-pc-badge-status-revoked.l25-certificate-card {
    background: var(--l25-surface-soft);
    border: 1px dashed #c9d4d0;
    box-shadow: none;
    color: var(--l25-slate);
}

.loi25-pc-badge-muted strong,
.loi25-pc-badge-status-expired strong,
.loi25-pc-badge-status-revoked strong {
    color: var(--l25-ink);
}

.loi25-pc-badge-muted .l25-badge-kicker,
.loi25-pc-badge-status-expired .l25-badge-kicker,
.loi25-pc-badge-status-revoked .l25-badge-kicker {
    color: var(--l25-muted);
}

.loi25-pc-badge-muted .l25-badge-mark,
.loi25-pc-badge-status-expired .l25-badge-mark,
.loi25-pc-badge-status-revoked .l25-badge-mark {
    background: #c9d4d0;
}

.loi25-pc-badge-muted .l25-badge-content > span,
.loi25-pc-badge-muted small {
    color: var(--l25-muted);
}

/* Attestation : informations lisibles, décoration discrète et jamais une promesse non vérifiée. */
.loi25-pc-badge.l25-certificate-card {
    align-items: stretch;
    background: radial-gradient(circle at 88% 12%, rgba(53, 211, 153, 0.16), transparent 30%), linear-gradient(145deg, #10233a, #071527);
    border: 1px solid rgba(167, 243, 208, 0.2);
    gap: 18px;
    isolation: isolate;
    overflow: hidden;
    padding: 24px 26px;
    position: relative;
}

.l25-certificate-card::before,
.l25-certificate-card::after {
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.l25-certificate-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
    z-index: -1;
}

.l25-certificate-card::after {
    animation: l25-certificate-shine 7s ease-in-out infinite;
    background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.15) 49%, transparent 61%);
    transform: translateX(-150%) skewX(-16deg);
    z-index: 1;
}

.l25-certificate-card > * {
    position: relative;
    z-index: 2;
}

.l25-certificate-emblem {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    display: flex;
    flex: 0 0 82px;
    justify-content: center;
    min-height: 104px;
    overflow: hidden;
    position: relative;
}

.l25-certificate-fleur {
    color: rgba(213, 246, 229, 0.48);
    font-family: Georgia, serif;
    font-size: 74px;
    line-height: 1;
}

.l25-certificate-emblem .l25-badge-seal {
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
    height: 58px;
    position: absolute;
    width: 58px;
}

.l25-certificate-content {
    display: grid;
    flex: 1;
    gap: 7px;
    min-width: 240px;
}

.l25-certificate-kicker {
    color: #8ff0ca;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.l25-certificate-title {
    color: #fff;
    font-size: 21px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.l25-certificate-meta,
.l25-certificate-facts {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.l25-certificate-level,
.l25-certificate-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.l25-certificate-level {
    background: rgba(52, 211, 153, 0.16);
    color: #a7f3d0;
}

.l25-certificate-gold .l25-certificate-level {
    background: rgba(223, 184, 72, 0.16);
    color: #f7dd82;
}

.l25-certificate-status {
    color: #d9e6f5;
    padding-left: 0;
}

.l25-certificate-status i {
    background: #5ee8b5;
    border-radius: 50%;
    height: 7px;
    margin-right: 6px;
    width: 7px;
}

.l25-certificate-facts {
    margin: 2px 0 0;
}

.l25-certificate-facts div {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 10px;
}

.l25-certificate-facts dt {
    color: #9eb0c7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.l25-certificate-facts dd {
    color: #f6f8fc;
    font-size: 12px;
    margin: 2px 0 0;
}

.l25-certificate-muted::after,
.l25-certificate-card-muted::after {
    display: none;
}

.loi25-pc-badge.l25-certificate-muted,
.loi25-pc-badge.l25-certificate-card-muted {
    background: #f6f8f7;
    border-color: #d3ded9;
}

.l25-certificate-muted .l25-certificate-kicker,
.l25-certificate-card-muted .l25-certificate-kicker,
.l25-certificate-muted .l25-certificate-status,
.l25-certificate-card-muted .l25-certificate-status,
.l25-certificate-muted .l25-certificate-facts dd,
.l25-certificate-card-muted .l25-certificate-facts dd {
    color: var(--l25-muted);
}

.l25-certificate-muted .l25-certificate-title,
.l25-certificate-card-muted .l25-certificate-title {
    color: var(--l25-ink);
}

.l25-certificate-muted .l25-certificate-emblem,
.l25-certificate-card-muted .l25-certificate-emblem {
    background: #e8efeb;
    border-color: #d3ded9;
}

.l25-certificate-muted .l25-certificate-fleur,
.l25-certificate-card-muted .l25-certificate-fleur {
    color: #8aa99b;
}

.l25-certificate-muted .l25-certificate-status i,
.l25-certificate-card-muted .l25-certificate-status i {
    background: #8aa99b;
}

@keyframes l25-certificate-shine {
    0%, 72%, 100% { transform: translateX(-150%) skewX(-16deg); }
    88% { transform: translateX(150%) skewX(-16deg); }
}

/* ---------- RPRP ---------- */

.l25-rprp-row {
    border-left: 3px solid var(--l25-teal-2);
}

.l25-rprp-details {
    display: grid;
    gap: 6px;
}

.l25-rprp-details p {
    margin: 0;
}

.l25-rprp-details p strong {
    color: var(--l25-ink);
    font-size: 15px;
}

/* Titre du RPRP : sous le nom, discret. */
.l25-rprp-details p strong + span {
    color: var(--l25-muted);
    display: block;
    font-size: 13px;
    margin: 2px 0 0;
    min-width: 0;
}

.l25-rprp-details p > span {
    color: var(--l25-muted);
    display: inline-block;
    font-size: 13px;
    margin-right: 8px;
    min-width: 76px;
}

.l25-rprp-details a {
    overflow-wrap: anywhere;
}

/* ---------- Rangées d'information ---------- */

.l25-info-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.l25-info-row > div {
    flex: 1 1 420px;
}

.l25-row-action {
    background: linear-gradient(135deg, var(--l25-teal), var(--l25-teal-2));
    border-radius: 10px;
    color: #ffffff !important;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 20px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.l25-row-action:hover {
    box-shadow: 0 10px 26px rgba(15, 118, 110, 0.28);
    transform: translateY(-1px);
}

/* ---------- Formulaire de demandes ---------- */

.l25-request-panel h3 {
    margin-bottom: 16px;
}

.loi25-pc-form {
    display: block;
    margin: 0;
}

.loi25-pc-hp {
    left: -9999px;
    position: absolute;
}

.l25-request-types {
    border: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0 0 18px;
    padding: 0;
}

.l25-request-types legend {
    color: var(--l25-ink);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0;
}

.l25-request-option {
    background: var(--l25-surface);
    border: 1.5px solid var(--l25-border);
    border-radius: 12px;
    cursor: pointer;
    display: block;
    padding: 12px 14px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.l25-request-option:hover {
    border-color: var(--l25-teal-2);
}

.l25-request-option:has(.l25-request-radio:checked) {
    background: #ecfdf5;
    border-color: var(--l25-teal-2);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.12);
}

.l25-request-option-body {
    align-items: center;
    display: flex;
    gap: 10px;
}

.l25-request-option-body > span:last-child {
    color: var(--l25-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.l25-request-radio {
    accent-color: var(--l25-teal-2);
    flex-shrink: 0;
    height: 16px;
    margin: 0;
    width: 16px;
}

.l25-request-icon {
    display: none; /* icônes décoratives retirées : simplicité et lisibilité */
}

.l25-request-form-row {
    display: grid;
    gap: 4px;
}

.l25-request-form-row p {
    margin: 0 0 12px;
}

.loi25-pc-form label {
    color: var(--l25-ink);
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.loi25-pc-form input[type="text"],
.loi25-pc-form input[type="email"],
.loi25-pc-form textarea {
    background: #ffffff;
    border: 1.5px solid #dbe4e1;
    border-radius: 10px;
    color: var(--l25-text);
    display: block;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    max-width: 560px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.loi25-pc-form input:focus,
.loi25-pc-form textarea:focus {
    border-color: var(--l25-teal-2);
    box-shadow: 0 0 0 3px rgba(15, 157, 118, 0.12);
    outline: none;
}

.loi25-pc-form input[type="checkbox"] {
    accent-color: var(--l25-teal-2);
    height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    width: 16px;
}

.loi25-pc-form p:has(input[type="checkbox"]) label,
.loi25-pc-form label:has(input[type="checkbox"]) {
    font-weight: 400;
}

.loi25-pc-form button[type="submit"] {
    background: linear-gradient(135deg, var(--l25-teal), var(--l25-teal-2));
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
    padding: 13px 28px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.loi25-pc-form button[type="submit"]:hover {
    box-shadow: 0 10px 26px rgba(15, 118, 110, 0.28);
    transform: translateY(-1px);
}

/* ---------- Notices ---------- */

.loi25-pc-notice.l25-notice {
    border-radius: 10px;
    font-size: 14px;
    margin: 0 0 16px;
    padding: 12px 16px;
}

.loi25-pc-notice-sent {
    background: #ecfdf5;
    border: 1px solid #99e3c9;
    color: #0f5132;
}

.loi25-pc-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.loi25-pc-notice-rate_limited {
    background: #fffbeb;
    border: 1px solid #f3dd9a;
    color: #7a5c12;
}

/* ---------- Pied de confiance / révocation ---------- */

.l25-trust-row {
    background: var(--l25-surface-soft);
    box-shadow: none;
    color: var(--l25-muted);
    font-size: 13px;
    text-align: center;
}

.l25-trust-row a {
    font-weight: 600;
}

.l25-revoked-note {
    color: var(--l25-muted);
    font-style: italic;
    padding: 24px 0;
    text-align: center;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
    .loi25-pc-section.l25-row,
    .l25-hero {
        padding: 20px 18px;
    }

    .loi25-pc-badge.l25-certificate-card {
        padding: 18px;
        text-align: center;
    }

    .l25-badge-seal {
        margin: 0 auto;
    }

    .l25-badge-content {
        min-width: 0;
    }

    .l25-badge-link {
        flex-basis: 100%;
        text-align: center;
        white-space: normal;
    }

    .l25-certificate-emblem {
        flex-basis: 100%;
        margin: 0 auto;
        min-height: 74px;
    }

    .l25-certificate-content,
    .l25-certificate-meta,
    .l25-certificate-facts {
        justify-content: center;
        text-align: center;
    }

    .l25-certificate-content {
        min-width: 0;
        width: 100%;
        flex-basis: 100%;
    }

    .l25-request-types {
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
    }

    .l25-request-option-body > span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .l25-certificate-facts div {
        border-left: 0;
        padding-left: 0;
    }

    .l25-info-row > div {
        flex-basis: 100%;
    }

    .l25-row-action {
        display: block;
        text-align: center;
        white-space: normal;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loi25-pc *,
    .loi25-pc *::before,
    .loi25-pc *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
