:root {
    --bg: #f6f1eb;
    --bg-deep: #eadfd3;
    --surface: rgba(255, 252, 248, 0.82);
    --surface-strong: #fffaf5;
    --text: #2f2721;
    --muted: #78685c;
    --accent: #d86e58;
    --accent-strong: #b94d3c;
    --accent-soft: rgba(216, 110, 88, 0.16);
    --success: #2f7a53;
    --success-soft: rgba(47, 122, 83, 0.14);
    --danger: #a54e40;
    --danger-soft: rgba(165, 78, 64, 0.12);
    --line: rgba(86, 63, 45, 0.12);
    --shadow: 0 30px 80px rgba(80, 54, 33, 0.16);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 38%),
        linear-gradient(145deg, #f8f4ee 0%, #f2e8db 44%, #ead9ca 100%);
    overflow-x: hidden;
}

body.waiting-page {
    background:
        radial-gradient(circle at top right, rgba(182, 210, 255, 0.34), transparent 34%),
        linear-gradient(145deg, #edf4ff 0%, #dbe8fb 52%, #cadcf4 100%);
}

body.closed-page {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 194, 0.38), transparent 34%),
        linear-gradient(145deg, #f6ebe5 0%, #ead9d1 52%, #dfc9bf 100%);
}

body.maintenance-page {
    background:
        radial-gradient(circle at top center, rgba(255, 228, 176, 0.28), transparent 32%),
        linear-gradient(145deg, #f7f1df 0%, #ebdfbc 48%, #dcc996 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.24;
    pointer-events: none;
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.6;
    pointer-events: none;
    animation: drift 18s ease-in-out infinite;
}

.ambient-one {
    width: 280px;
    height: 280px;
    top: -70px;
    right: 6%;
    background: rgba(216, 110, 88, 0.22);
}

.ambient-two {
    width: 220px;
    height: 220px;
    bottom: 8%;
    left: -40px;
    background: rgba(255, 214, 178, 0.34);
    animation-delay: -6s;
}

.ambient-three {
    width: 160px;
    height: 160px;
    top: 44%;
    right: 20%;
    background: rgba(255, 240, 216, 0.52);
    animation-delay: -12s;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 56px;
}

.hero {
    max-width: 720px;
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.65);
    border: 1px solid rgba(86, 63, 45, 0.09);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero h1,
.card h2,
.review-item h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 0.94;
}

.hero-text {
    max-width: 620px;
    margin: 16px 0 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--muted);
}

.card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(86, 63, 45, 0.1);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 28%);
    pointer-events: none;
}

.progress-block {
    margin-bottom: 26px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--muted);
}

.progress-track {
    overflow: hidden;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(86, 63, 45, 0.09);
}

.progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e69b7d 0%, var(--accent) 50%, #ee8f63 100%);
    box-shadow: 0 0 30px rgba(216, 110, 88, 0.3);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-panel,
.result-panel,
.question-form {
    position: relative;
    z-index: 1;
}

.access-screen {
    position: relative;
    z-index: 1;
    text-align: center;
}

.access-screen h2 {
    margin-top: 18px;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    line-height: 0.98;
}

.access-screen p {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

.access-screen-waiting {
    padding: 26px 8px 8px;
}

.access-screen-closed {
    padding: 34px 8px 16px;
}

.access-screen-maintenance {
    padding: 34px 8px 16px;
}

.access-window {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 10px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(86, 63, 45, 0.08);
    color: var(--text);
    font-size: 0.95rem;
}

.countdown-panel {
    margin-top: 28px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(235, 244, 255, 0.88));
    border: 1px solid rgba(92, 120, 170, 0.12);
}

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

.countdown-card {
    padding: 20px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(92, 120, 170, 0.12);
}

.countdown-card strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3.1rem);
    line-height: 1;
    color: #29466d;
}

.countdown-card span {
    display: block;
    margin-top: 10px;
    color: #5f7085;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.countdown-note {
    margin: 18px auto 0;
    max-width: 520px;
}

.intro-panel-welcome {
    padding: 24px 8px 12px;
    text-align: center;
}

.intro-panel-welcome h2 {
    max-width: 11ch;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2.8rem, 8vw, 5.4rem);
    line-height: 0.95;
}

.intro-panel-welcome p {
    max-width: 640px;
    margin: 18px auto 0;
}

.intro-panel-welcome .intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro-panel-welcome::before,
.intro-panel-welcome::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
}

.intro-panel-welcome::before {
    top: 8px;
    left: 4%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 226, 198, 0.95) 0%, rgba(255, 226, 198, 0) 72%);
    animation: drift 9s ease-in-out infinite;
}

.intro-panel-welcome::after {
    right: 3%;
    bottom: 12px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(216, 110, 88, 0.16) 0%, rgba(216, 110, 88, 0) 72%);
    animation: drift 11s ease-in-out infinite reverse;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 247, 241, 0.95);
    border: 1px solid rgba(216, 110, 88, 0.18);
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-pill.success {
    background: rgba(244, 255, 249, 0.92);
    border-color: rgba(47, 122, 83, 0.2);
    color: var(--success);
}

.status-pill.failure {
    background: rgba(255, 244, 241, 0.92);
    border-color: rgba(165, 78, 64, 0.2);
    color: var(--danger);
}

.intro-panel h2,
.result-panel h2,
.question-head h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.03;
}

.owner-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(244, 255, 249, 0.9);
    border: 1px solid rgba(47, 122, 83, 0.18);
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 700;
}

.owner-note {
    width: min(100%, 520px);
    margin: 4px auto 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(244, 255, 249, 0.9);
    border: 1px solid rgba(47, 122, 83, 0.14);
    color: var(--success);
    line-height: 1.6;
}

.intro-panel p,
.result-copy,
.question-head p,
.review-note,
.page-footer p,
.answers-review p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
}

.mail-status {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(86, 63, 45, 0.1);
    font-size: 0.96rem;
    line-height: 1.6;
}

.mail-status-success {
    background: rgba(244, 255, 249, 0.95);
    border-color: rgba(47, 122, 83, 0.18);
    color: var(--success);
}

.mail-status-warning {
    background: rgba(255, 249, 238, 0.95);
    border-color: rgba(216, 110, 88, 0.18);
    color: var(--accent-strong);
}

.mail-status-error {
    background: rgba(255, 244, 241, 0.95);
    border-color: rgba(165, 78, 64, 0.18);
    color: var(--danger);
}

.intro-actions,
.result-actions {
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-bleu {
    color: #fff8f3;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 18px 35px rgba(0, 81, 255, 0.2);
}

.button-bleu:hover {
    box-shadow: 0 22px 40px rgba(0, 81, 255, 0.26);
}

.button-primary {
    color: #fff8f3;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 18px 35px rgba(185, 77, 60, 0.2);
}

.button-primary:hover {
    box-shadow: 0 22px 40px rgba(185, 77, 60, 0.26);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(86, 63, 45, 0.12);
}

.button-tertiary {
    color: var(--text);
    background: rgba(42, 136, 173, 0.58);
    border: 1px solid rgba(86, 63, 45, 0.12);
}

/* ── Timer ──────────────────────────────────────────────────────────────── */
.question-head-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.qcm-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(92, 120, 216, 0.12);
    border: 1px solid rgba(92, 120, 216, 0.22);
    color: #3a5bbf;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.question-timer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    margin-left: auto;
}

.timer-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-track {
    fill: none;
    stroke: rgba(86, 63, 45, 0.1);
    stroke-width: 4;
}

.timer-arc {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s linear, stroke 0.3s ease;
}

.timer-label {
    position: relative;
    z-index: 1;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.question-timer.timer-urgent .timer-arc {
    stroke: #c0392b;
}

.question-timer.timer-urgent .timer-label {
    color: #c0392b;
    animation: timer-pulse 0.6s ease-in-out infinite alternate;
}

.question-timer.timer-expired .timer-arc {
    stroke: #c0392b;
    opacity: 0.5;
}

@keyframes timer-pulse {
    from { transform: scale(1); }
    to   { transform: scale(1.18); }
}

/* ── Photo de question ──────────────────────────────────────────────────── */
.question-photo-wrap {
    margin-bottom: 22px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(86, 63, 45, 0.09);
    box-shadow: 0 8px 24px rgba(80, 54, 33, 0.1);
    line-height: 0;
}

.question-photo {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* ── QCM multi (checkbox) ───────────────────────────────────────────────── */
.choice-card.is-checkbox .choice-marker {
    border-radius: 6px; /* carré arrondi au lieu de rond */
}

.choice-card.is-checkbox .choice-marker::after {
    border-radius: 3px;
    background: var(--accent);
    /* coche ✓ via clip-path */
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    inset: 3px;
    transform: scale(0);
}

.choice-card.is-checkbox.is-selected .choice-marker::after {
    transform: scale(1);
}

/* ── question-head (déjà existant, on préserve) ─────────────────────────── */
.question-head {
    margin-bottom: 24px;
}

.choices {
    display: grid;
    gap: 14px;
}

.choice-card {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px 18px 18px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(86, 63, 45, 0.12);
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 110, 88, 0.34);
    box-shadow: 0 18px 30px rgba(76, 53, 38, 0.08);
}

.choice-card.is-selected {
    border-color: rgba(216, 110, 88, 0.48);
    background: linear-gradient(135deg, rgba(255, 247, 241, 0.92), rgba(255, 255, 255, 0.88));
    box-shadow: 0 22px 36px rgba(216, 110, 88, 0.12);
}

.choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-marker {
    position: relative;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(86, 63, 45, 0.24);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.choice-marker::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.choice-card.is-selected .choice-marker {
    border-color: rgba(216, 110, 88, 0.7);
}

.choice-card.is-selected .choice-marker::after {
    transform: scale(1);
}

.choice-text {
    font-size: 1rem;
    line-height: 1.55;
}

.form-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 244, 241, 0.95);
    border: 1px solid rgba(165, 78, 64, 0.14);
    color: var(--danger);
}

.form-alert-centered {
    width: min(100%, 460px);
    text-align: center;
}

.date-gate {
    display: grid;
    gap: 10px;
    width: min(100%, 420px);
    margin: 8px auto 0;
    text-align: left;
}

.date-gate-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.date-gate-input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(86, 63, 45, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.date-gate-input:focus {
    border-color: rgba(216, 110, 88, 0.44);
    box-shadow: 0 0 0 4px rgba(216, 110, 88, 0.12);
    transform: translateY(-1px);
}

.date-gate-hint {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.score-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(86, 63, 45, 0.08);
}

.score-card.highlight {
    background: linear-gradient(135deg, rgba(216, 110, 88, 0.12), rgba(255, 255, 255, 0.82));
    border-color: rgba(216, 110, 88, 0.18);
}

.score-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.score-value {
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
}

.score-value-small {
    font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.score-unit {
    display: inline-block;
    margin-top: 10px;
    color: var(--muted);
}

.answers-review {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.final-note-field {
    margin-top: 20px;
}

.final-note-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text);
}

.final-note-input {
    width: 100%;
    min-height: 136px;
    padding: 16px 18px;
    resize: vertical;
    border: 1px solid rgba(86, 63, 45, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    font: inherit;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.final-note-input:focus {
    border-color: rgba(216, 110, 88, 0.44);
    box-shadow: 0 0 0 4px rgba(216, 110, 88, 0.12);
    transform: translateY(-1px);
}

.final-note-hint {
    margin: 10px 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

.final-note-preview {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 247, 241, 0.88), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(216, 110, 88, 0.14);
}

.final-note-preview p {
    margin: 12px 0 0;
}

.review-item {
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(86, 63, 45, 0.08);
}

.review-item.is-correct {
    background: linear-gradient(135deg, rgba(244, 255, 249, 0.82), rgba(255, 255, 255, 0.72));
    border-color: rgba(47, 122, 83, 0.18);
}

.review-item.is-wrong {
    background: linear-gradient(135deg, rgba(255, 246, 243, 0.9), rgba(255, 255, 255, 0.75));
    border-color: rgba(165, 78, 64, 0.16);
}

.review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-footer {
    margin-top: 18px;
    padding: 6px 12px;
}

.page-footer a {
    color: var(--accent-strong);
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.is-ready .reveal {
    opacity: 1;
    transform: translateY(0);
}

.confetti-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    top: -10%;
    width: 10px;
    height: 22px;
    border-radius: 999px;
    opacity: 0;
    animation: confetti-fall linear forwards;
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, 30px, 0) scale(1.05);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--drift, 40px), 115vh, 0) rotate(560deg);
        opacity: 0;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 20px, 980px);
        padding: 24px 0 40px;
    }

    .card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .progress-meta,
    .question-actions,
    .review-head {
        flex-direction: column;
        align-items: stretch;
    }

    .score-grid {
        grid-template-columns: 1fr;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .button {
        width: 100%;
    }
}

/* ── Compteur en ligne ──────────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 115, 0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(62, 207, 115, 0); }
}

/* ── Indice caché (texte invisible à sélectionner) ──────────────────────── */
.hint-invisible {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(86, 63, 45, 0.13);
    background: rgba(255, 255, 255, 0.22);
    cursor: text;
    user-select: text;
    line-height: 1.6;
}

/* Label "› indice caché" toujours visible, très discret */
.hint-invisible-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(86, 63, 45, 0.28);
    margin-right: 8px;
    user-select: none;
    pointer-events: none;
}

/* Texte de l'indice : invisible par défaut, révélé à la sélection */
.hint-invisible-text {
    color: transparent;
    background: transparent;
    text-shadow: none;
    transition: color 0s, background 0s;
    border-radius: 3px;
}

/* Quand l'utilisateur sélectionne le texte */
.hint-invisible-text::selection {
    color: var(--text);
    background: rgba(216, 110, 88, 0.22);
    text-shadow: none;
}
