/* ============================================================
   NotairIA — styles de la vitrine publique
   ============================================================

   Charge uniquement par 'marketing/base.html' : l'application
   authentifiee n'en paie pas le poids.

   Consomme les tokens definis dans notairia.css (--ink, --paper,
   --yellow, --surface, --line, --muted) ; ce fichier ne redefinit
   aucun token.

   Ne PAS y deplacer les primitives publiques partagees
   (.public-page, .public-logo, .btn-public, .auth-*-v6) : les pages
   de connexion et de paiement s'en servent et ne chargent pas ce
   fichier. Voir la tache 1.10 du plan.
   ============================================================ */

/* ===== PAGES LÉGALES (privacy, terms) ===== */

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

/* En-tête */
.legal-header {
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.legal-page-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 12px 0 20px;
    color: var(--ink);
}

.legal-page-intro {
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 640px;
}

/* Corps */
.legal-body {
    display: flex;
    flex-direction: column;
}

.legal-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
}

.legal-section-last {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin: 20px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legal-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 12px;
}

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

.legal-section a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Liste */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-list li {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    padding-left: 18px;
    position: relative;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Notice encadrée */
.legal-notice {
    margin-top: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border-left: 3px solid var(--yellow);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}

.legal-notice-strong {
    border-left-color: var(--ink);
    font-size: 14px;
    margin-top: 0;
}

/* Tableau */
.legal-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.legal-table th {
    background: var(--surface);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.legal-table td {
    padding: 12px 16px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* ===== PAGE À PROPOS ===== */

.about-values {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.about-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s ease;
}

.about-value:last-child {
    border-bottom: none;
}

.about-value:hover {
    background: var(--surface);
}

.about-value-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.about-value-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}


.legal-page {
    position: relative;
}

.legal-page::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: .04;
    background-image: radial-gradient(var(--ink) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.legal-header,
.legal-body {
    position: relative;
    z-index: 1;
}


/* ===== PAGE À PROPOS ===== */

.about-values {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.about-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s ease;
}

.about-value:last-child {
    border-bottom: none;
}

.about-value:hover {
    background: var(--surface);
}

.about-value-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.about-value-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}


/* ===== PIED DE PAGE PUBLIC — 3 colonnes ===== */
/* Charge apres notairia.css : ces regles surchargent volontairement
   .public-footer-inner et .public-footer-legal, concus pour l'ancien pied de
   page sur une seule ligne. */

.public-footer-inner {
    align-items: flex-start;
    gap: 40px;
}

.public-footer-columns {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.public-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 132px;
}

.public-footer-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink);
}

.public-footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.public-footer-col a:hover {
    color: var(--ink);
}

.public-footer-legal {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 767.98px) {
    .public-footer-inner {
        align-items: center;
        gap: 32px;
    }

    .public-footer-columns {
        gap: 32px;
        justify-content: center;
        text-align: center;
    }

    .public-footer-col {
        min-width: 120px;
    }
}


/* ==========================================================================
   SECTIONS DE LA VITRINE (namespace .mkt-*)

   Namespace distinct de .public-* pour ne jamais entrer en collision avec les
   primitives partagees par les pages de connexion et de paiement.
   Le mode sombre est pris en charge par les tokens de notairia.css ; seules
   les rares regles qui ne peuvent pas s'exprimer en tokens sont dupliquees
   sous html[data-theme="dark"].
   ========================================================================== */

/* ---- Ossature commune ---- */

.mkt-section {
    padding: 96px 0;
}

.mkt-section-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.mkt-section-inner-narrow {
    max-width: 800px;
}

.mkt-section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.mkt-kicker {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

.mkt-section-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
}

.mkt-section-intro {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---- Hero ---- */

.mkt-hero {
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--line);
}

.mkt-hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 56px;
    align-items: center;
}

.mkt-hero-title {
    margin: 0;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--ink);
}

.mkt-hero-subtitle {
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 620px;
}

.mkt-hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mkt-hero-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* Carte de marque : meme taille qu'avant, fond jaune. Le jaune est identique
   en clair et en sombre (couleur de marque, elle porte dans les deux). */
.mkt-hero-visual {
    padding: 36px 32px;
    border-radius: 16px;
    background: var(--yellow);
}

/* Pastille creme autour du monogramme, comme sur l'ancienne carte. Reste
   dans le flux (haut a gauche), la carte garde sa taille compacte. */
.mkt-hero-monogram {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
}

/* Sur fond jaune, toujours le monogramme noir -- meme en theme sombre, ou le
   monogramme jaune par defaut se fondrait dans la carte. */
.mkt-hero-visual .monogram-light { display: inline-block !important; }
.mkt-hero-visual .monogram-dark { display: none !important; }

.mkt-hero-visual-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

.mkt-hero-visual-copy {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(0, 0, 0, .68);
}

/* Vidéo de présentation (remplace la carte de marque). Colonnes à parts
   presque égales : en 16:9, la vidéo a besoin de largeur pour être lisible. */
.mkt-hero-inner--video {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
}

.mkt-hero-video {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f6f0;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .10);
    aspect-ratio: 16 / 9;
}

.mkt-hero-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.mkt-video-controles {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 6px;
}

.mkt-video-btn,
.mkt-video-lecture {
    display: inline-grid;
    place-items: center;
    border: none;
    cursor: pointer;
    color: #fff;
    background: rgba(17, 17, 17, .72);
    transition: background-color .15s;
}

.mkt-video-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 17px;
}

.mkt-video-btn:hover,
.mkt-video-lecture:hover {
    background: #111;
}

.mkt-video-btn:focus-visible,
.mkt-video-lecture:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

.mkt-video-lecture {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 999px;
    font-size: 34px;
    color: #111;
    background: var(--yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.mkt-video-lecture:hover {
    color: var(--yellow);
}

.mkt-video-lecture[hidden] {
    display: none;
}

.mkt-hero-video:fullscreen {
    border-radius: 0;
    border: none;
    background: #000;
}

.mkt-hero-video:fullscreen video {
    object-fit: contain;
}

/* ---- Preuve sociale ---- */

.mkt-stats {
    padding: 48px 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.mkt-stats-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.mkt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.mkt-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mkt-stat-value {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--ink);
}

.mkt-stat-label {
    font-size: 14px;
    color: var(--muted);
}

.mkt-stats-period {
    margin: 24px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* ---- Probleme ---- */

.mkt-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.mkt-problem-icon {
    font-size: 24px;
    color: var(--muted);
}

.mkt-problem-item-title {
    margin: 14px 0 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-problem-item-desc {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---- Fonctionnalites ---- */

.mkt-features {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.mkt-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.mkt-feature {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.mkt-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--yellow);
    color: #111;
    font-size: 20px;
}

.mkt-feature-title {
    margin: 18px 0 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-feature-desc {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---- Comment ca fonctionne ---- */

.mkt-steps-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mkt-step {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.mkt-step:last-child {
    border-bottom: 1px solid var(--line);
}

.mkt-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 15px;
    font-weight: 700;
}

.mkt-step-title {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-step-desc {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 720px;
}

/* ---- Audiences ---- */

.mkt-audiences {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.mkt-audiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.mkt-audience {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.mkt-audience-icon {
    font-size: 24px;
    color: var(--ink);
}

.mkt-audience-title {
    margin: 16px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-audience-desc {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---- Securite ---- */

.mkt-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.mkt-security-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mkt-security-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 19px;
}

.mkt-security-item-title {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-security-item-desc {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---- Temoignages ---- */

.mkt-testimonials {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.mkt-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.mkt-testimonial {
    margin: 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mkt-testimonial-quote {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
}

.mkt-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.mkt-testimonial-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.mkt-testimonial-role,
.mkt-testimonial-org {
    font-size: 12px;
    color: var(--muted);
}

.mkt-testimonial-role {
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ---- FAQ ---- */

.mkt-faq-list {
    display: flex;
    flex-direction: column;
}

.mkt-faq-item {
    border-top: 1px solid var(--line);
}

.mkt-faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.mkt-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-faq-question::-webkit-details-marker {
    display: none;
}

.mkt-faq-marker {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--muted);
    transition: transform .18s ease;
}

.mkt-faq-item[open] .mkt-faq-marker {
    transform: rotate(45deg);
}

.mkt-faq-answer {
    margin: 0;
    padding: 0 40px 24px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

/* ---- Appel a l'action final ---- */

.mkt-cta {
    padding: 88px 0;
    border-top: 1px solid var(--line);
}

.mkt-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.mkt-cta-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
}

.mkt-cta-subtitle {
    margin: 14px 0 28px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---- Les six questions ---- */

.mkt-questions {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.mkt-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.mkt-question {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.mkt-question-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.mkt-question-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--muted);
}

.mkt-question-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 10px;
    background: var(--yellow);
    color: #111;
    font-size: 20px;
}

.mkt-question-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.mkt-question-answer {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.mkt-question-figure {
    margin: 20px 0 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.mkt-question-figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- La preuve ---- */

.mkt-proof-figure {
    margin: 0 0 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .06);
}

.mkt-proof-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.mkt-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.mkt-proof-item {
    padding-top: 20px;
    border-top: 2px solid var(--yellow);
}

.mkt-proof-icon {
    font-size: 22px;
    color: var(--ink);
}

.mkt-proof-item-title {
    margin: 12px 0 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-proof-item-desc {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.mkt-proof-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 0;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
}

.mkt-proof-note i {
    flex-shrink: 0;
    font-size: 22px;
    color: var(--muted);
}

/* Journal fictif de l'accueil (2026-10-12) : le journal de recherche
   reconstruit en HTML, en deux recits, avec des reperes jaunes relies aux
   annotations. Couleurs de pastilles reprises du vrai journal. */
.mkt-jr-demo {
    --jr-ok-bg: #E1F5EE;   --jr-ok-fg: #085041;
    --jr-vente-bg: #E8F0FE; --jr-vente-fg: #1a4fa0;
    --jr-hyp-bg: #FFF1E0;  --jr-hyp-fg: #8a4b00;
    --jr-skip-bg: #f0f0ee; --jr-skip-fg: #777;
    --jr-cout-bg: #EEEDFE; --jr-cout-fg: #3C3489;
    --jr-err-bg: #FDECEC;  --jr-err-fg: #a11b1b; --jr-err-line: #e5484d;
    --jr-att-bg: #FFF4E6;  --jr-att-fg: #6B4400;
    --jr-anneau: #5b55c9;
    --jr-halo: rgba(255, 233, 0, .28);
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

html[data-theme="dark"] .mkt-jr-demo {
    --jr-ok-bg: rgba(29,158,117,.18);  --jr-ok-fg: #7fdcb9;
    --jr-vente-bg: rgba(66,133,244,.18); --jr-vente-fg: #a8c7fa;
    --jr-hyp-bg: rgba(229,155,14,.16); --jr-hyp-fg: #f3c46b;
    --jr-skip-bg: #2c3545;             --jr-skip-fg: #9aa0aa;
    --jr-cout-bg: rgba(83,74,183,.25); --jr-cout-fg: #c4bffb;
    --jr-err-bg: rgba(229,72,77,.14);  --jr-err-fg: #ff9b9e;
    --jr-att-bg: rgba(229,155,14,.14); --jr-att-fg: #f3c46b;
    --jr-anneau: #8e89f0;
    --jr-halo: rgba(255, 233, 0, .16);
}

.mkt-jr-onglets {
    align-self: flex-start;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.mkt-jr-onglets button {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.mkt-jr-onglets button[aria-selected="true"] {
    background: var(--ink);
    color: var(--paper);
}

.mkt-jr-onglets button:focus-visible,
.mkt-jr-notes li:focus-visible,
.mkt-jr-corriger button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.mkt-jr-recit-tete {
    max-width: 720px;
    margin-bottom: 24px;
}

.mkt-jr-recit-tete h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.mkt-jr-recit-tete p {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.mkt-jr-vitrine {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* Le journal */
.mkt-jr {
    position: relative;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .06);
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
}

.mkt-jr p { margin: 0; }

.mkt-jr-fictif {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 8px;
    border: 1px dashed var(--line);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.mkt-jr-tete {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.mkt-jr-icone {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111;
    color: var(--yellow);
    font-size: 18px;
}

.mkt-jr-titre { font-size: 16px; font-weight: 600; }
.mkt-jr-sous { font-size: 13px; color: var(--muted); }

.mkt-jr-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 18px;
}

.mkt-jr-stat {
    position: relative;
    padding: 8px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.mkt-jr-stat b {
    display: block;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.mkt-jr-stat span:not(.mkt-jr-pin) { font-size: 12px; color: var(--muted); }

.mkt-jr-stat .mkt-jr-pin {
    position: absolute;
    top: -8px;
    right: -6px;
}

.mkt-jr-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 8px 18px;
    border-block: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
}

.mkt-jr-lab {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.mkt-jr-corps {
    display: grid;
    gap: 10px;
    padding: 12px 18px 16px;
}

.mkt-jr-etape,
.mkt-jr-insc {
    display: grid;
    gap: 2px 10px;
    align-items: center;
}

.mkt-jr-etape { grid-template-columns: 22px minmax(0, 1fr) auto; }
.mkt-jr-insc { grid-template-columns: 12px minmax(0, 1fr) auto; padding: 4px 0 4px 32px; }

.mkt-jr-anneau {
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--jr-anneau);
    border-radius: 50%;
}

.mkt-jr-anneau.is-err { border-color: var(--jr-err-line); }

.mkt-jr-rang {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 11px;
    font-weight: 700;
}

.mkt-jr-t,
.mkt-jr-num {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mkt-jr-sub,
.mkt-jr-qui {
    grid-column: 2 / 4;
    font-size: 12.5px;
    color: var(--muted);
}

.mkt-jr-qui em { font-style: normal; color: var(--ink); }

.mkt-jr-quand {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mkt-jr-point {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1D9E75;
}

.mkt-jr-insc.is-ecarte .mkt-jr-point { background: var(--line); }
.mkt-jr-insc.is-ecarte .mkt-jr-num { color: var(--muted); }
.mkt-jr-insc.is-rompu .mkt-jr-point { background: var(--jr-err-line); }

.mkt-jr-bd {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.mkt-jr-bd.is-ok { background: var(--jr-ok-bg); color: var(--jr-ok-fg); }
.mkt-jr-bd.is-vente { background: var(--jr-vente-bg); color: var(--jr-vente-fg); }
.mkt-jr-bd.is-hyp { background: var(--jr-hyp-bg); color: var(--jr-hyp-fg); }
.mkt-jr-bd.is-skip { background: var(--jr-skip-bg); color: var(--jr-skip-fg); }
.mkt-jr-bd.is-cout { background: var(--jr-cout-bg); color: var(--jr-cout-fg); }
.mkt-jr-bd.is-vise { background: var(--ink); color: var(--paper); }
.mkt-jr-bd.is-err { background: var(--jr-err-bg); color: var(--jr-err-fg); font-weight: 600; }
.mkt-jr-bd.is-attention { background: var(--jr-att-bg); color: var(--jr-att-fg); font-weight: 600; }

.mkt-jr-alerte {
    display: grid;
    gap: 10px;
    margin: 0 0 0 32px;
    padding: 12px 14px;
    border: 1px solid var(--jr-err-line);
    border-left-width: 4px;
    border-radius: 10px;
    background: var(--jr-err-bg);
}

.mkt-jr-alerte > div:first-child > strong,
.mkt-jr-alerte > div:first-child > p { color: var(--jr-err-fg); }
.mkt-jr-alerte > div:first-child > p { font-size: 13px; }

.mkt-jr-corriger {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-size: 13px;
}

.mkt-jr-corriger-ligne {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mkt-jr-corriger input {
    flex: 1 1 140px;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.mkt-jr-corriger button {
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: #111;
    color: var(--yellow);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.mkt-jr-retour { font-size: 12px; color: var(--muted); }

/* Reperes et annotations */
.mkt-jr-pin {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid #111;
    border-radius: 50%;
    background: var(--yellow);
    color: #111;
    font-size: 10.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: transform .15s;
}

.mkt-jr-cible {
    border-radius: 6px;
    transition: box-shadow .15s;
}

.mkt-jr-cible.is-on { box-shadow: 0 0 0 3px var(--yellow); }

.mkt-jr-notes {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mkt-jr-notes li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background .15s;
}

.mkt-jr-notes li.is-on { background: var(--jr-halo); }

.mkt-jr-notes .mkt-jr-pin {
    width: 26px;
    height: 26px;
    border-width: 2px;
    font-size: 12px;
}

.mkt-jr-notes li.is-on .mkt-jr-pin { transform: scale(1.15); }

.mkt-jr-notes strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
}

.mkt-jr-notes strong + span {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

/* Au changement d'onglet, les lignes apparaissent l'une apres l'autre.
   Au premier affichage, tout est deja visible. */
@keyframes mkt-jr-trace {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.mkt-jr.is-rejoue .mkt-jr-ligne {
    animation: mkt-jr-trace .35s ease-out both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

@media (prefers-reduced-motion: reduce) {
    .mkt-jr.is-rejoue .mkt-jr-ligne { animation: none; }
    .mkt-jr-pin, .mkt-jr-cible, .mkt-jr-notes li { transition: none; }
}

@media (max-width: 900px) {
    .mkt-jr-vitrine { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
    .mkt-jr-fictif { position: static; display: inline-block; margin: 12px 18px 0; }
    .mkt-jr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mkt-jr-etape { grid-template-columns: 22px minmax(0, 1fr); }
    .mkt-jr-etape .mkt-jr-quand { grid-column: 2; }
    .mkt-jr-insc { grid-template-columns: 12px minmax(0, 1fr); padding-left: 8px; }
    .mkt-jr-insc .mkt-jr-quand, .mkt-jr-sub, .mkt-jr-qui { grid-column: 2; }
    .mkt-jr-alerte { margin-left: 0; }
}

/* ---- L'objection ---- */

.mkt-objection-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 20px;
    background: var(--ink);
    text-align: center;
}

/* Sur le fond encre, on habille tout avec --paper et on hierarchise a
   l'opacite : ainsi le contraste tient dans les deux themes sans couleur figee. */
.mkt-objection-card .mkt-kicker {
    color: var(--paper);
    opacity: .6;
}

.mkt-objection-quote {
    margin: 16px 0 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--paper);
}

.mkt-objection-answer {
    max-width: 640px;
    margin: 22px auto 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--paper);
    opacity: .82;
}

/* ---- D'ou vient NotairIA ---- */

.mkt-origin {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.mkt-origin .mkt-section-inner {
    max-width: 760px;
}

.mkt-origin-head {
    max-width: none;
    margin-bottom: 36px;
}

.mkt-origin-body p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
}

.mkt-origin-body p:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

/* ---- Mode sombre : ajustements non exprimables en tokens ---- */

html[data-theme="dark"] .mkt-feature-icon {
    background: var(--yellow);
    color: #000;
}

html[data-theme="dark"] .mkt-question-icon {
    background: var(--yellow);
    color: #000;
}

html[data-theme="dark"] .mkt-step-number {
    background: var(--yellow);
    color: #000;
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
    .mkt-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mkt-hero-title {
        font-size: 38px;
    }
}

@media (max-width: 767.98px) {
    .mkt-section {
        padding: 64px 0;
    }

    .mkt-section-head {
        margin-bottom: 40px;
    }

    .mkt-hero {
        padding: 56px 0 48px;
    }

    .mkt-hero-title {
        font-size: 31px;
    }

    .mkt-hero-subtitle {
        font-size: 16px;
    }

    .mkt-hero-actions .btn-public {
        flex: 1 1 100%;
        justify-content: center;
    }

    .mkt-section-title {
        font-size: 26px;
    }

    .mkt-stat-value {
        font-size: 30px;
    }

    .mkt-step {
        gap: 16px;
    }

    .mkt-cta {
        padding: 64px 0;
    }

    .mkt-cta-title {
        font-size: 25px;
    }

    .mkt-objection-card {
        padding: 32px 24px;
    }

    .mkt-objection-quote {
        font-size: 24px;
    }

    .mkt-origin-body p {
        font-size: 16px;
    }

    .mkt-faq-answer {
        padding-right: 0;
    }
}



/* ==========================================================================
   PAGES SECONDAIRES (fonctionnalites, securite, FAQ, a propos, contact)
   ========================================================================== */

/* ---- Ossature ---- */

.mkt-page-head {
    padding-bottom: 0;
}

.mkt-page-title {
    font-size: 40px;
    letter-spacing: -.03em;
}

.mkt-section-alt {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.mkt-group-title {
    margin: 0 0 28px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

.mkt-section-more {
    margin: 40px 0 0;
}

.mkt-section-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 2px;
}

.mkt-section-more a:hover {
    opacity: .75;
}

/* ---- Page fonctionnalites ---- */

.mkt-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.mkt-detail {
    padding-top: 22px;
    border-top: 2px solid var(--ink);
}

.mkt-detail-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-detail-desc {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---- Page securite ---- */

.mkt-policy-block {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.mkt-policy-block:first-child {
    padding-top: 0;
}

.mkt-policy-title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.mkt-policy-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mkt-policy-list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.mkt-policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
}

.mkt-policy-footnote {
    margin: 32px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.mkt-policy-footnote a,
.mkt-form-note a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mkt-policy-links {
    margin: 12px 0 0;
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.mkt-policy-links a {
    color: var(--muted);
    text-decoration: none;
}

.mkt-policy-links a:hover {
    color: var(--ink);
}

/* ---- Page FAQ ---- */

.mkt-faq-group {
    margin-bottom: 48px;
}

.mkt-faq-group:last-of-type {
    margin-bottom: 0;
}

/* ---- Page a propos ---- */

.mkt-values {
    display: flex;
    flex-direction: column;
}

.mkt-value {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.mkt-value:first-child {
    padding-top: 0;
}

.mkt-value-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-value-desc {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

/* ---- Page contact ---- */

.mkt-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.mkt-contact-facts {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mkt-contact-facts li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.mkt-contact-facts i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 18px;
    color: var(--ink);
}

.mkt-contact-facts a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mkt-contact-form-wrap {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.mkt-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.mkt-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.mkt-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.mkt-required {
    color: var(--alert);
}

.mkt-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .15s ease;
}

.mkt-input:focus {
    outline: none;
    border-color: var(--ink);
}

.mkt-input::placeholder {
    color: var(--muted);
    opacity: .7;
}

textarea.mkt-input {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

select.mkt-input {
    cursor: pointer;
}

.mkt-field-error {
    font-size: 13px;
    color: var(--alert);
}

.mkt-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.mkt-form-note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

/* Champ leurre anti-robot : retire du flux et de l'affichage sans utiliser
   display:none, que certains robots detectent pour l'ignorer. */
.mkt-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Encarts ---- */

.mkt-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    margin-bottom: 26px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.6;
}

.mkt-alert i {
    flex-shrink: 0;
    font-size: 20px;
    margin-top: 1px;
}

.mkt-alert p {
    margin: 4px 0 0;
    color: var(--muted);
}

.mkt-alert-success {
    border-color: var(--ok);
}

.mkt-alert-success i {
    color: var(--ok);
}

.mkt-alert-error {
    border-color: var(--alert);
}

.mkt-alert-error i {
    color: var(--alert);
}

.mkt-alert-error ul {
    margin: 0;
    padding-left: 18px;
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
    .mkt-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 767.98px) {
    .mkt-page-title {
        font-size: 29px;
    }

    .mkt-contact-form-wrap {
        padding: 24px 20px;
    }

    .mkt-policy-title {
        font-size: 18px;
    }
}


/* ---- Selecteur de langue (pied de page) ---- */
.public-lang {
    display: inline-flex;
    gap: 4px;
    margin-left: 16px;
    vertical-align: middle;
}

.public-lang a {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--muted);
    text-decoration: none;
}

.public-lang a:hover {
    color: var(--ink);
    background: var(--surface);
}

.public-lang a.active {
    color: var(--ink);
    background: var(--surface);
}


/* ---- Pages de referencement : bloc "A lire aussi" ---- */
.mkt-related {
    margin-top: 40px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.mkt-related .mkt-group-title {
    display: block;
    margin-bottom: 14px;
}

.mkt-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mkt-related-list a {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 2px;
}

.mkt-related-list a:hover {
    opacity: .75;
}


/* ---- Blogue : liste, en-tete d'article, corps Markdown ---- */
.mkt-blog-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mkt-blog-card {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.mkt-blog-card:first-child {
    padding-top: 0;
}

.mkt-blog-card-title {
    margin: 8px 0 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.mkt-blog-card-title a {
    color: var(--ink);
    text-decoration: none;
}

.mkt-blog-card-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 4px;
}

.mkt-blog-meta {
    font-size: 13px;
    color: var(--muted);
}

.mkt-page-head .mkt-blog-meta {
    margin: 20px 0 0;
}

.mkt-breadcrumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--muted);
}

.mkt-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.mkt-breadcrumbs a:hover {
    color: var(--ink);
}

.mkt-preview-banner {
    padding: 12px 24px;
    background: var(--yellow);
    color: #111;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.mkt-toc {
    margin: 0 0 48px;
}

.mkt-toc .mkt-related-list {
    padding-left: 20px;
    list-style: decimal;
}

.mkt-prose {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    overflow-wrap: break-word;
}

.mkt-prose h2 {
    margin: 48px 0 16px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
    scroll-margin-top: 90px;
}

.mkt-prose h3 {
    margin: 32px 0 12px;
    font-size: 18px;
    font-weight: 700;
    scroll-margin-top: 90px;
}

.mkt-prose > :first-child {
    margin-top: 0;
}

.mkt-prose p,
.mkt-prose ul,
.mkt-prose ol {
    margin: 0 0 18px;
    color: var(--muted);
}

.mkt-prose ul,
.mkt-prose ol {
    padding-left: 22px;
}

.mkt-prose li {
    margin-bottom: 6px;
}

.mkt-prose strong {
    color: var(--ink);
}

.mkt-prose a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.mkt-prose blockquote {
    margin: 0 0 18px;
    padding: 14px 18px;
    background: var(--surface);
    border-left: 3px solid var(--yellow);
    border-radius: 6px;
}

.mkt-prose blockquote p:last-child {
    margin-bottom: 0;
}

.mkt-prose code {
    padding: 2px 5px;
    background: var(--surface);
    border-radius: 4px;
    font-size: .9em;
}

/* Tableaux : defilement horizontal sur telephone plutot qu'une page qui
   deborde. `display: block` sur le tableau lui-meme, faute de conteneur :
   le Markdown n'en produit pas. */
.mkt-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    margin: 0 0 24px;
    border-collapse: collapse;
    font-size: 14px;
}

.mkt-prose th,
.mkt-prose td {
    padding: 10px 14px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.mkt-prose th {
    background: var(--surface);
    font-weight: 600;
}

.mkt-prose td {
    color: var(--muted);
}

.mkt-prose hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--line);
}


/* ==========================================================================
   EN-TETE : outils (langue, theme) et menu mobile
   ========================================================================== */

.public-header {
    position: relative;   /* ancre le panneau mobile */
}

/* ---- Langue et theme ---- */

.public-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding-right: 12px;
    margin-right: 4px;
    border-right: 1px solid var(--line);
}

.public-lang-switch {
    display: inline-flex;
    gap: 2px;
}

.public-lang-switch a {
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--muted);
    text-decoration: none;
}

.public-lang-switch a:hover,
.public-lang-switch a.active {
    color: var(--ink);
    background: var(--surface);
}

.public-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
}

.public-theme-toggle:hover {
    color: var(--ink);
    background: var(--surface);
}

/* L'icone affichee decoule du theme courant : aucune manipulation en JS. */
html[data-theme="dark"] .public-theme-toggle [data-theme-icon-light],
html:not([data-theme="dark"]) .public-theme-toggle [data-theme-icon-dark] {
    display: none;
}

/* ---- Bouton menu (mobile uniquement) ---- */

.public-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-size: 21px;
    cursor: pointer;
}

.public-burger:hover {
    background: var(--surface);
}

/* ---- Panneau mobile ---- */

.public-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 8px 16px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.public-mobile-nav {
    display: flex;
    flex-direction: column;
}

.public-mobile-nav a {
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.public-mobile-nav a.active {
    font-weight: 700;
}

.public-mobile-lang {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.public-mobile-lang a {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}

.public-mobile-lang a.active {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--ink);
}

.public-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.public-mobile-actions .btn-public {
    width: 100%;
    justify-content: center;
}

/* ---- Bascule bureau / mobile ---- */

@media (max-width: 991.98px) {
    /* Les liens passent dans le panneau : sous cette largeur, quatre libelles
       plus deux boutons ne tiennent plus sans ecraser le logo. */
    .public-menu {
        display: none;
    }

    .public-tools {
        margin-left: auto;
    }

    .public-burger {
        display: inline-flex;
    }

    .public-mobile-menu[x-cloak] {
        display: none;
    }

    .public-mobile-menu {
        display: block;
    }
}

@media (max-width: 767.98px) {
    /* Une seule ligne : logo | theme | menu. L'ancien repli sur deux lignes,
       avec des boutons etires bord a bord, tassait l'en-tete. */
    .public-header {
        flex-wrap: nowrap;
        gap: 8px;
        /* notairia.css verrouille l'en-tete a 88px. C'est cette hauteur fixe
           qui tassait le contenu quand il passait sur deux lignes ; sur une
           seule ligne, 64px suffisent et respirent mieux. */
        height: 64px;
        padding: 0 16px;
    }

    .public-actions {
        display: none;
    }

    .public-tools {
        padding-right: 4px;
        margin-right: 0;
        border-right: none;
    }

    /* Le selecteur de langue rejoint le panneau, ou il est lisible en toutes
       lettres plutot qu'en deux initiales. */
    .public-lang-switch {
        display: none;
    }
}
