/* ==========================================================================
   Intentions de messe — Paroisse Saint Laurent
   Couleurs de la paroisse : bordeaux #870604 et or #f7be19, sur fond ivoire.
   ========================================================================== */

:root {
    --c-bg: #fbf7ef;
    --c-surface: #ffffff;
    --c-surface-2: #f6efe3;
    --c-border: #eadfcc;
    --c-border-strong: #dccbb0;
    --c-ink: #2d211d;
    --c-ink-2: #5e4f48;
    --c-muted: #8a7a70;

    /* Bordeaux de la paroisse */
    --c-primary: #870604;
    --c-primary-2: #a3130f;
    --c-primary-dark: #5a0503;
    --c-primary-soft: #f9e9e6;
    /* Or de la paroisse : #f7be19 pour les aplats, version foncée pour le texte sur fond clair */
    --c-gold: #966600;
    --c-gold-2: #f7be19;
    --c-gold-soft: #fdf3d3;

    --c-defunts: #5b4b7a;
    --c-defunts-soft: #efebf6;
    --c-grace: #9a6f16;
    --c-grace-soft: #fbf2dc;
    --c-protection: #2c6b70;
    --c-protection-soft: #e2f0ef;

    --c-success: #2e7a4e;
    --c-success-soft: #e4f3ea;
    --c-warning: #9a6309;
    --c-warning-soft: #fdf1d9;
    --c-danger: #a63a32;
    --c-danger-soft: #fbe8e6;
    --c-info: #2c4a78;
    --c-info-soft: #e9eef6;

    --c-wave: #1dc8ff;
    --c-orange: #ff7900;
    --c-mtn: #ffcb05;
    --c-moov: #0b5cab;

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(87, 20, 12, .06);
    --shadow: 0 1px 2px rgba(87, 20, 12, .05), 0 10px 30px -12px rgba(87, 20, 12, .18);
    --gutter: 16px;
    --header-h: 68px;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--c-primary);
    margin: 0 0 .5em;
    letter-spacing: .005em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--c-primary-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-gold); }

:focus-visible { outline: 3px solid var(--c-gold-2); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

[hidden] { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }

.muted { color: var(--c-muted); }
.small { font-size: .9rem; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.serif { font-family: var(--font-serif); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

.stack > * + * { margin-top: 1rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
    .grid-4 { gap: .75rem; }
    .grid-4 .stat { padding: .9rem 1rem; }
    .grid-4 .stat__value { font-size: 1.45rem; }
}

/* Petit ornement : ligne dorée – croix – ligne dorée */
.ornement {
    display: flex; align-items: center; justify-content: center; gap: .75rem;
    color: var(--c-gold); margin: .25rem auto 1rem;
}
.ornement::before, .ornement::after {
    content: ""; height: 1px; width: 56px;
    background: linear-gradient(90deg, transparent, var(--c-gold-2));
}
.ornement::after { background: linear-gradient(90deg, var(--c-gold-2), transparent); }

.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--c-gold);
}

/* -------------------------------------------------------------------------- */
/* Boutons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
    --btn-bg: var(--c-surface);
    --btn-fg: var(--c-primary);
    --btn-border: var(--c-border-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: .6rem 1.25rem;
    border: 1px solid var(--btn-border); border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg);
    font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn--primary { --btn-bg: var(--c-primary); --btn-fg: #fff; --btn-border: var(--c-primary); }
.btn--primary:hover { --btn-bg: var(--c-primary-2); color: #fff; }
.btn--gold { --btn-bg: linear-gradient(180deg, #f9ca3f, #f2b308); --btn-fg: #3b1600; --btn-border: #e0a400; background: var(--btn-bg); }
.btn--gold:hover { color: #3b1600; box-shadow: 0 8px 24px -10px rgba(176, 124, 0, .7); }
.btn--ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn--ghost:hover { --btn-bg: var(--c-primary-soft); box-shadow: none; }
.btn--light { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .45); }
.btn--light:hover { --btn-bg: rgba(255, 255, 255, .18); color: #fff; }
.btn--danger { --btn-fg: var(--c-danger); --btn-border: #e7b9b4; }
.btn--danger:hover { --btn-bg: var(--c-danger-soft); color: var(--c-danger); }
.btn--success { --btn-bg: var(--c-success); --btn-fg: #fff; --btn-border: var(--c-success); }
.btn--success:hover { color: #fff; }
.btn--wave { --btn-bg: var(--c-wave); --btn-fg: #06263d; --btn-border: #12b3e8; }
.btn--wave:hover { color: #06263d; box-shadow: 0 10px 26px -10px rgba(29, 200, 255, .8); }

.btn--sm { min-height: 36px; padding: .35rem .85rem; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .8rem 1.75rem; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; min-height: 40px; padding: 0; }

.link-button { background: none; border: 0; padding: 0; color: var(--c-primary-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------------------- */
/* Cartes, badges, alertes                                                    */
/* -------------------------------------------------------------------------- */

.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
.card--flat { box-shadow: none; }
.card--soft { background: var(--c-surface-2); box-shadow: none; }
.card__title { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; margin-bottom: 1rem; }
.card__title .icon { color: var(--c-gold); }
.card__header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card__header h2, .card__header h3 { margin: 0; }
@media (max-width: 560px) { .card { padding: 1.15rem; border-radius: 14px; } }

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .2rem .65rem; border-radius: 999px;
    font-family: var(--font-sans); font-size: .8rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
    background: var(--c-surface-2); color: var(--c-ink-2);
}
.badge--success { background: var(--c-success-soft); color: var(--c-success); }
.badge--warning { background: var(--c-warning-soft); color: var(--c-warning); }
.badge--danger { background: var(--c-danger-soft); color: var(--c-danger); }
.badge--info { background: var(--c-info-soft); color: var(--c-info); }
.badge--muted { background: #efece6; color: var(--c-muted); }
.badge--defunts { background: var(--c-defunts-soft); color: var(--c-defunts); }
.badge--grace { background: var(--c-grace-soft); color: var(--c-grace); }
.badge--protection { background: var(--c-protection-soft); color: var(--c-protection); }

.alert {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: .9rem 1.1rem; border-radius: var(--radius-sm);
    border: 1px solid transparent; background: var(--c-info-soft); color: var(--c-info);
    margin-bottom: 1rem;
}
.alert .icon { margin-top: .2rem; }
.alert p:last-child { margin-bottom: 0; }
.alert--success { background: var(--c-success-soft); color: var(--c-success); border-color: #c4e3cf; }
.alert--warning { background: var(--c-warning-soft); color: var(--c-warning); border-color: #f1d9a7; }
.alert--danger { background: var(--c-danger-soft); color: var(--c-danger); border-color: #f0c5c0; }
.alert--info { border-color: #cfdaeb; }

.flashes { margin: 1.25rem 0 0; }

/* -------------------------------------------------------------------------- */
/* Formulaires                                                                */
/* -------------------------------------------------------------------------- */

.field { margin-bottom: 1.1rem; }
.field > label, .field-label {
    display: block; margin-bottom: .35rem;
    font-weight: 600; font-size: .95rem; color: var(--c-ink);
}
.field > label.required::after { content: " *"; color: var(--c-gold); }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search],
input[type=date], input[type=datetime-local], input[type=time], input[type=number], select, textarea {
    width: 100%; min-height: 48px;
    padding: .65rem .9rem;
    border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
    background: #fffdf9; color: var(--c-ink);
    font: 400 1rem/1.4 var(--font-sans);
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none; -webkit-appearance: none;
}
select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23870604' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 4px rgba(247, 190, 25, .25);
}
input::placeholder, textarea::placeholder { color: #a99f90; }

/* Champ mot de passe avec bouton « œil » */
.champ-secret { position: relative; }
.champ-secret input { padding-right: 3.4rem; }
.champ-secret input::-ms-reveal { display: none; } /* Edge ajoute son propre œil */
.champ-secret__oeil {
    position: absolute; top: 4px; right: 4px; bottom: 4px; width: 44px;
    display: grid; place-items: center; padding: 0;
    border: 0; border-radius: calc(var(--radius-sm) - 3px);
    background: transparent; color: var(--c-muted); cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}
.champ-secret__oeil[hidden] { display: none; }
.champ-secret__oeil:hover { color: var(--c-primary); background: rgba(135, 6, 4, .06); }
.champ-secret__oeil .icon { width: 22px; height: 22px; }
.champ-secret__cacher, .champ-secret__oeil[aria-pressed=true] .champ-secret__voir { display: none; }
.champ-secret__oeil[aria-pressed=true] .champ-secret__cacher { display: block; }
.champ-secret__oeil[aria-pressed=true] { color: var(--c-primary); }

.field__help { margin: .35rem 0 0; font-size: .86rem; color: var(--c-muted); }
.field__errors { list-style: none; margin: .4rem 0 0; padding: 0; color: var(--c-danger); font-size: .9rem; font-weight: 600; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-danger); background: #fffafa; }
.form-errors { list-style: none; padding: .8rem 1rem; margin: 0 0 1rem; border-radius: var(--radius-sm); background: var(--c-danger-soft); color: var(--c-danger); font-weight: 600; }

.field--check { display: flex; align-items: center; gap: .6rem; }
.field--check > label { margin: 0; font-weight: 500; }
input[type=checkbox], input[type=radio] { accent-color: var(--c-primary); width: 20px; height: 20px; }

.form-grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }

/* -------------------------------------------------------------------------- */
/* En-tête et pied de page publics                                            */
/* -------------------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(250, 246, 238, .92);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--c-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand__logo { height: 40px; width: auto; max-width: none; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--c-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { font-size: .78rem; color: var(--c-muted); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; color: var(--c-ink-2); font-weight: 600; font-size: .97rem; }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--c-primary); background: var(--c-primary-soft); }
.site-nav .btn { margin-left: .5rem; }
.site-nav a.btn, .site-nav a.btn:hover { color: var(--btn-fg); background: var(--btn-bg); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: .25rem;
        padding: .75rem var(--gutter) 1.25rem;
        background: var(--c-bg); border-bottom: 1px solid var(--c-border);
        box-shadow: 0 18px 30px -18px rgba(87, 20, 12, .35);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: .8rem 1rem; }
    .site-nav .btn { margin: .5rem 0 0; }
}

.site-footer {
    margin-top: 4rem; padding: 3rem 0 2rem;
    background: var(--c-primary); color: #f6e6e0;
}
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.3rem; }
.site-footer__logo { display: block; height: 56px; width: auto; max-width: none; margin-bottom: .9rem; opacity: .95; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #e2bdb3; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .verse { color: #fbd56b; margin: 0; }

/* -------------------------------------------------------------------------- */
/* Accueil                                                                    */
/* -------------------------------------------------------------------------- */

.hero {
    position: relative; overflow: hidden; color: #f4efe3; text-align: center;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(4.5rem, 10vw, 7.5rem);
    background:
        radial-gradient(ellipse 60% 55% at 50% -8%, rgba(247, 190, 25, .42), transparent 70%),
        radial-gradient(ellipse 40% 40% at 85% 110%, rgba(247, 190, 25, .14), transparent 70%),
        linear-gradient(180deg, #5a0503 0%, #870604 100%);
}
.hero::after {
    content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 60px;
    background: var(--c-bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
/* Rayons de lumière discrets */
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: repeating-conic-gradient(from 180deg at 50% -10%, rgba(255, 226, 150, .06) 0deg 3deg, transparent 3deg 12deg);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero__cross {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    border: 1px solid rgba(247, 190, 25, .55); color: #f7be19; margin-bottom: 1.25rem;
    box-shadow: 0 0 40px rgba(247, 190, 25, .35);
}
.hero__cross .icon { width: 30px; height: 30px; }
.hero h1 { color: #fff; max-width: 20ch; margin: 0 auto .4em; }
.hero__lead { max-width: 640px; margin: 0 auto 1.75rem; font-size: 1.12rem; color: #f6e6e0; }
.hero__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero__price { margin-top: 1.5rem; font-size: .95rem; color: #efd5cc; }
.hero__price strong { color: #f7be19; }

.verse { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; }
.verse cite { display: block; margin-top: .3rem; font-style: normal; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hero .verse { max-width: 560px; margin: 0 auto 1.75rem; color: #fbd56b; }

.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section__head p { color: var(--c-ink-2); }

.intention-tile {
    position: relative; padding: 1.75rem 1.5rem; border-radius: var(--radius);
    background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow);
    border-top: 4px solid var(--tile-color);
}
.intention-tile__icon {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: var(--tile-soft); color: var(--tile-color); margin-bottom: 1rem;
}
.intention-tile__icon .icon { width: 28px; height: 28px; }
.intention-tile h3 { color: var(--c-ink); }
.intention-tile p { color: var(--c-ink-2); margin: 0; }
.theme-defunts { --tile-color: var(--c-defunts); --tile-soft: var(--c-defunts-soft); }
.theme-grace { --tile-color: var(--c-grace); --tile-soft: var(--c-grace-soft); }
.theme-protection { --tile-color: var(--c-protection); --tile-soft: var(--c-protection-soft); }

.steps { counter-reset: etape; display: grid; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: etape; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; background: var(--c-surface-2); border-radius: var(--radius); }
.steps li::before {
    content: counter(etape); position: absolute; left: 1.15rem; top: 1.15rem;
    display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
    background: var(--c-primary); color: #f7be19; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
}
.steps strong { display: block; color: var(--c-primary); font-size: 1.05rem; margin-bottom: .15rem; }
.steps span { color: var(--c-ink-2); font-size: .95rem; }

.horaires { display: grid; gap: 1rem; }
@media (min-width: 640px) { .horaires { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .horaires { grid-template-columns: repeat(4, 1fr); } }
.horaire-jour { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.horaire-jour h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.horaire-jour ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.horaire-jour a {
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    padding: .5rem .75rem; border-radius: var(--radius-sm); background: var(--c-surface-2);
    color: var(--c-ink); text-decoration: none; font-weight: 600;
}
.horaire-jour a:hover { background: var(--c-gold-soft); color: var(--c-primary); }
.horaire-jour a small { font-weight: 400; color: var(--c-muted); font-size: .82rem; text-align: right; }

.paiements { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center; }

/* Pastilles des opérateurs (texte, sans logo) */
.operateur {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    font: 800 .8rem/1 var(--font-sans); letter-spacing: -.01em; text-transform: none;
}
.operateur--wave { background: var(--c-wave); color: #06263d; font-size: 1.15rem; }
.operateur--orange { background: #111; color: var(--c-orange); }
.operateur--mtn { background: var(--c-mtn); color: #0a2b5c; }
.operateur--moov { background: var(--c-moov); color: #fff; }
.operateur--especes { background: var(--c-success-soft); color: var(--c-success); }
.operateur--sm { width: 30px; height: 30px; border-radius: 8px; font-size: .62rem; }
.operateur--sm.operateur--wave { font-size: .85rem; }
.operateur--lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.4rem; }

/* Logos officiels des opérateurs */
.operateur--logo { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--c-border); }
.operateur--logo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.operateur--logo.operateur--wave { background: var(--c-wave); box-shadow: none; }
.operateur--logo.operateur--mtn { background: var(--c-mtn); box-shadow: none; }

/* -------------------------------------------------------------------------- */
/* Formulaire de demande                                                      */
/* -------------------------------------------------------------------------- */

.page-intro { padding: 2.25rem 0 1.25rem; text-align: center; }
.page-intro p { color: var(--c-ink-2); max-width: 620px; margin: 0 auto; }

.demande-layout { display: grid; gap: 1.5rem; align-items: start; padding-bottom: 6rem; }
@media (min-width: 980px) {
    .demande-layout { grid-template-columns: minmax(0, 1fr) 340px; padding-bottom: 0; }
}

.step-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.step-title__num {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--c-primary); color: #f7be19; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem;
}
.step-title h2 { margin: 0; font-size: 1.55rem; }

.intentions { display: flex; flex-direction: column; gap: 1.1rem; }
.intention-card {
    position: relative; background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm);
    animation: apparition .25s ease;
}
@keyframes apparition { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.intention-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.intention-card__num { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--c-primary); display: flex; align-items: center; gap: .5rem; }
.intention-card__num .icon { color: var(--c-gold); }
.intention-card__prix { font-size: .9rem; color: var(--c-muted); font-weight: 600; }

.type-choices { border: 0; padding: 0; margin: 0 0 1.1rem; }
.type-choices legend { font-weight: 600; font-size: .95rem; margin-bottom: .45rem; padding: 0; }
.type-choices__list { display: grid; gap: .6rem; }
@media (min-width: 720px) { .type-choices__list { grid-template-columns: repeat(3, 1fr); } }

.type-choice {
    position: relative; display: flex; gap: .75rem; align-items: flex-start; cursor: pointer;
    padding: .85rem .9rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
    background: #fffdf9; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.type-choice:hover { border-color: var(--tile-color); }
.type-choice input { position: absolute; opacity: 0; pointer-events: none; }
.type-choice__icon {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--tile-soft); color: var(--tile-color);
}
.type-choice__text { display: flex; flex-direction: column; line-height: 1.3; }
.type-choice__text strong { font-size: .98rem; color: var(--c-ink); }
.type-choice__text small { color: var(--c-muted); font-size: .82rem; margin-top: .15rem; }
.type-choice:has(input:checked) { border-color: var(--tile-color); background: var(--tile-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tile-color) 18%, transparent); }
.type-choice:has(input:checked)::after {
    content: ""; position: absolute; top: .6rem; right: .6rem; width: 18px; height: 18px; border-radius: 50%;
    background: var(--tile-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.type-choice:has(input:focus-visible) { outline: 3px solid var(--c-gold-2); outline-offset: 2px; }
.type-choices--error .type-choice { border-color: #e6b7b2; }

.ajout-intention {
    display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
    min-height: 64px; margin-top: 1.1rem; border: 2px dashed var(--c-border-strong); border-radius: var(--radius);
    background: transparent; color: var(--c-primary); font: 600 1.02rem var(--font-sans); cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.ajout-intention:hover { border-color: var(--c-gold); background: var(--c-gold-soft); }

.recap {
    position: sticky; top: calc(var(--header-h) + 1rem);
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.recap__head { padding: 1.25rem 1.4rem; background: linear-gradient(180deg, #6b0503, #870604); color: #fff; }
.recap__head h3 { color: #fff; margin: 0; font-size: 1.35rem; }
.recap__body { padding: 1.25rem 1.4rem; }
.recap__line { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: var(--c-ink-2); }
.recap__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .6rem; padding-top: .9rem; border-top: 1px dashed var(--c-border-strong); }
.recap__total strong { font-family: var(--font-serif); font-size: 2rem; color: var(--c-primary); line-height: 1; }
.recap__note { display: flex; gap: .5rem; font-size: .86rem; color: var(--c-muted); margin-top: 1rem; }
.recap__note .icon { color: var(--c-gold); margin-top: .15rem; }

/* Barre fixe en bas d'écran sur mobile */
.barre-mobile {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-border);
    box-shadow: 0 -10px 30px -18px rgba(87, 20, 12, .4);
}
.barre-mobile__total { display: flex; flex-direction: column; line-height: 1.1; }
.barre-mobile__total small { color: var(--c-muted); font-size: .8rem; }
.barre-mobile__total strong { font-family: var(--font-serif); font-size: 1.55rem; color: var(--c-primary); }
@media (min-width: 980px) { .barre-mobile { display: none; } }
@media (max-width: 979px) { .recap { position: static; } .recap .recap__submit { display: none; } }

/* -------------------------------------------------------------------------- */
/* Récapitulatif et paiement                                                  */
/* -------------------------------------------------------------------------- */

.statut-banniere {
    display: flex; gap: 1.1rem; align-items: center; padding: 1.4rem 1.5rem;
    border-radius: var(--radius); margin-bottom: 1.5rem;
}
.statut-banniere__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: rgba(255, 255, 255, .7); }
.statut-banniere__icon .icon { width: 28px; height: 28px; }
.statut-banniere h1, .statut-banniere h2 { font-size: clamp(1.45rem, 3.5vw, 1.9rem); margin: 0 0 .2rem; color: inherit; }
.statut-banniere p { margin: 0; }
.statut-banniere--success { background: var(--c-success-soft); color: #1f5a38; border: 1px solid #c4e3cf; }
.statut-banniere--warning { background: var(--c-gold-soft); color: #6f4f0d; border: 1px solid #ecdcae; }
.statut-banniere--danger { background: var(--c-danger-soft); color: #7e2a24; border: 1px solid #f0c5c0; }
.statut-banniere--muted { background: #efece6; color: var(--c-ink-2); border: 1px solid var(--c-border); }

.reference {
    display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 999px;
    background: var(--c-surface); border: 1px dashed var(--c-border-strong);
    font: 700 1rem/1.3 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .06em; color: var(--c-primary);
}

.show-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 980px) { .show-layout { grid-template-columns: minmax(0, 1fr) 380px; } }

.messe-groupe + .messe-groupe { margin-top: 1.25rem; }
.messe-groupe__titre {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    padding: .7rem .95rem; border-radius: var(--radius-sm); background: var(--c-surface-2);
    font-weight: 700; color: var(--c-primary);
}
.messe-groupe__titre .icon { color: var(--c-gold); }
.ligne-intention { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: .85rem .25rem; border-bottom: 1px solid var(--c-border); }
.ligne-intention:last-child { border-bottom: 0; }
.ligne-intention__detail { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ligne-intention__detail strong { overflow-wrap: anywhere; }
.ligne-intention__montant { font-weight: 700; white-space: nowrap; color: var(--c-ink-2); }

.total-ligne { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; margin-top: .5rem; border-top: 2px solid var(--c-border); }
.total-ligne strong { font-family: var(--font-serif); font-size: 1.9rem; color: var(--c-primary); }

.paiement-choix { display: flex; flex-direction: column; gap: .7rem; }
.pay-option {
    display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left;
    padding: .9rem 1rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
    background: var(--c-surface); color: var(--c-ink); font: inherit; cursor: pointer;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pay-option:hover { border-color: var(--c-primary-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pay-option__text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.pay-option__text strong { font-size: 1.02rem; }
.pay-option__text small { color: var(--c-muted); font-size: .84rem; }
.pay-option > .icon { color: var(--c-muted); }
.pay-option--wave {
    padding: 1.15rem 1.1rem; border: 2px solid var(--c-wave);
    background: linear-gradient(135deg, #eafaff, #ffffff 70%);
}
.pay-option--wave:hover { border-color: #08a9de; box-shadow: 0 12px 28px -14px rgba(29, 200, 255, .9); }
.pay-option--wave .pay-option__text strong { font-size: 1.15rem; color: #063b5c; }
.pay-option--wave { position: relative; }
.pay-option--wave .operateur { width: 52px; height: 52px; border-radius: 14px; }
.pay-option__reco { position: absolute; top: -11px; right: 14px; box-shadow: 0 0 0 3px var(--c-surface); }
.pay-autres { display: grid; gap: .6rem; }
@media (min-width: 560px) and (max-width: 979px) { .pay-autres { grid-template-columns: repeat(3, 1fr); } .pay-autres .pay-option { flex-direction: column; text-align: center; } .pay-autres .pay-option > .icon { display: none; } }
.separateur { display: flex; align-items: center; gap: .75rem; color: var(--c-muted); font-size: .85rem; margin: .4rem 0; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }

.definitions { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; }
.definitions dt { color: var(--c-muted); font-size: .92rem; }
.definitions dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.merci {
    text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius);
    background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(247, 190, 25, .28), transparent 70%), var(--c-surface);
    border: 1px solid var(--c-border); box-shadow: var(--shadow);
}
.merci .eyebrow { display: block; }
.merci__bougie { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--c-gold-soft); color: var(--c-gold); margin: 0 auto 1rem; box-shadow: 0 0 0 10px rgba(247, 239, 218, .5); }
.merci__bougie .icon { width: 38px; height: 38px; animation: flamme 3s ease-in-out infinite; }
@keyframes flamme { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .merci__bougie .icon, .intention-card { animation: none; } html { scroll-behavior: auto; } }

.numero-marchand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--c-surface-2); }
.numero-marchand strong { font-size: 1.6rem; letter-spacing: .04em; color: var(--c-primary); font-family: ui-monospace, Consolas, monospace; }

.simulateur { max-width: 420px; margin: 2.5rem auto; text-align: center; }
.simulateur__ecran { background: #fff; border-radius: 28px; padding: 2rem 1.5rem; border: 1px solid var(--c-border); box-shadow: var(--shadow); }

/* -------------------------------------------------------------------------- */
/* Administration                                                             */
/* -------------------------------------------------------------------------- */

.admin-body { background: #f6f2ea; }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 1024px) { .admin-shell { grid-template-columns: 264px minmax(0, 1fr); } }

.sidebar {
    background: linear-gradient(180deg, #5a0503, #6e0604); color: #f3dcd6;
    padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.sidebar .brand__name { color: #fff; font-size: 1.15rem; white-space: normal; }
.sidebar .brand__logo { height: 34px; }
.sidebar .brand__sub { color: #dcb0a6; }
.sidebar__nav { display: flex; flex-direction: column; gap: .2rem; }
.sidebar__nav a {
    display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 10px;
    color: #f3dcd6; text-decoration: none; font-weight: 600; font-size: .97rem;
}
.sidebar__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar__nav a[aria-current=page] { background: rgba(247, 190, 25, .16); color: #f7be19; }
.sidebar__nav .count { margin-left: auto; background: #f7be19; color: #3b1600; border-radius: 999px; font-size: .75rem; padding: .05rem .5rem; font-weight: 800; }
.sidebar__section { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #d39b8e; padding: 0 .85rem; margin-top: .5rem; }
.sidebar__footer { margin-top: auto; padding: 1rem .85rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.sidebar__footer a { color: #f3dcd6; display: flex; align-items: center; gap: .5rem; }

.admin-topbar { display: none; }
@media (max-width: 1023px) {
    .admin-topbar {
        position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
        gap: 1rem; padding: .6rem var(--gutter); background: #5a0503; color: #fff;
    }
    .admin-topbar .brand__name { color: #fff; font-size: 1.1rem; }
    .admin-topbar .btn { --btn-fg: #fff; }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; }
    .sidebar.is-open { transform: none; box-shadow: 20px 0 40px rgba(0, 0, 0, .3); }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(40, 8, 4, .5); z-index: 45; }
}

.admin-main { padding: 1.75rem clamp(var(--gutter), 3vw, 2.5rem) 3rem; min-width: 0; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }
.page-header p { margin: .25rem 0 0; color: var(--c-ink-2); }
.page-header__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.breadcrumb { font-size: .9rem; margin-bottom: .35rem; }
.breadcrumb a { text-decoration: none; color: var(--c-muted); }

.stat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.stat__label { display: flex; align-items: center; gap: .5rem; color: var(--c-ink-2); font-size: .9rem; font-weight: 600; }
.stat__label .icon { color: var(--c-gold); }
.stat__value { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: var(--c-primary); line-height: 1.15; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.stat__context { font-size: .85rem; color: var(--c-muted); }
.stat--alerte { border-color: #ecd59b; background: #fffaf0; }
a.stat { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s ease; }
a.stat:hover { box-shadow: var(--shadow); color: inherit; }

/* Répartition (une seule teinte, valeurs écrites) */
.repartition { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.repartition__haut { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.repartition__haut > span { display: flex; align-items: center; gap: .5rem; color: var(--c-ink); font-weight: 600; }
.repartition__haut strong { font-variant-numeric: tabular-nums; color: var(--c-ink); }
.repartition__piste { height: 8px; border-radius: 4px; background: var(--c-surface-2); margin-top: .35rem; overflow: hidden; }
.repartition__barre { height: 100%; border-radius: 4px; background: var(--c-primary-2); min-width: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; padding: .8rem 1rem; background: #fbf8f2; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fdfbf6; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a.row-link { color: var(--c-ink); font-weight: 700; text-decoration: none; }
.table a.row-link:hover { color: var(--c-primary-2); text-decoration: underline; }
.table-actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.table-actions form { display: inline; }

/* Tableaux en cartes sur mobile */
@media (max-width: 760px) {
    .table--cards thead { display: none; }
    .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
    .table--cards tr { padding: .9rem 1rem; border-bottom: 1px solid var(--c-border); }
    .table--cards tr:last-child { border-bottom: 0; }
    .table--cards td { border: 0; padding: .2rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
    .table--cards td::before { content: attr(data-label); color: var(--c-muted); font-size: .85rem; text-align: left; font-weight: 600; }
    .table--cards td.table-cell-main { display: block; text-align: left; font-size: 1.02rem; padding-bottom: .4rem; }
    .table--cards td.table-cell-main::before { display: none; }
    .table--cards .table-actions { justify-content: flex-start; padding-top: .5rem; }
    .table--cards td.table-actions-cell::before { display: none; }
}

.filtres { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.filtres .field { margin: 0; }
@media (min-width: 760px) { .filtres { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.compteurs { display: flex; gap: .35rem; flex-wrap: wrap; }
.compteur { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.compteur .icon { width: 14px; height: 14px; }
.compteur--defunts { background: var(--c-defunts-soft); color: var(--c-defunts); }
.compteur--grace { background: var(--c-grace-soft); color: var(--c-grace); }
.compteur--protection { background: var(--c-protection-soft); color: var(--c-protection); }
.compteur--zero { opacity: .45; }

.tabs { display: flex; gap: .3rem; padding: .3rem; background: var(--c-surface-2); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 1.25rem; }
.tabs a { padding: .45rem 1rem; border-radius: 999px; text-decoration: none; color: var(--c-ink-2); font-weight: 600; white-space: nowrap; font-size: .95rem; }
.tabs a[aria-current=page] { background: var(--c-surface); color: var(--c-primary); box-shadow: var(--shadow-sm); }

.pagination { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 .75rem; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-ink-2); }
.pagination [aria-current=page] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.empty-state { text-align: center; padding: 2.5rem 1.5rem; color: var(--c-muted); }
.empty-state .icon { width: 42px; height: 42px; color: var(--c-gold-2); margin-bottom: .75rem; }
.empty-state h3 { color: var(--c-ink-2); }

.jour-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.jour-nav form { display: flex; gap: .5rem; }
.jour-nav input[type=date] { width: auto; min-height: 40px; }

.messe-fiche { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; }
.messe-fiche + .messe-fiche { border-top: 1px solid var(--c-border); }
.messe-fiche__heure { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--c-primary); line-height: 1; min-width: 92px; }
.messe-fiche__info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .35rem; }

.fiche-ecran { margin-bottom: 1.5rem; }
.fiche-ecran__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-border); border-left: 5px solid var(--tile-color); border-radius: var(--radius) var(--radius) 0 0; }
.fiche-ecran__head h3 { margin: 0; font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; color: var(--c-ink); }
.fiche-ecran__head h3 .icon { color: var(--tile-color); }
.fiche-ecran ol { margin: 0; padding: .5rem 1.25rem 1rem 3rem; }
.fiche-ecran li { padding: .55rem 0; border-bottom: 1px dashed var(--c-border); }
.fiche-ecran li:last-child { border-bottom: 0; }
.fiche-ecran li::marker { color: var(--c-muted); font-weight: 700; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(247, 190, 25, .25), transparent 70%), linear-gradient(180deg, #5a0503, #870604); }
.login-card { width: 100%; max-width: 420px; }
.login-card .brand { justify-content: center; margin-bottom: 1.25rem; }

.journal { list-style: none; margin: 0; padding: 0; }
.journal li { display: flex; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--c-border); align-items: flex-start; }
.journal li:last-child { border-bottom: 0; }
.note-admin { white-space: pre-line; font-size: .92rem; }

/* -------------------------------------------------------------------------- */
/* Impression                                                                 */
/* -------------------------------------------------------------------------- */

@media print {
    body { background: #fff; font-size: 12pt; }
    .site-header, .site-footer, .barre-mobile, .no-print, .flashes, .sidebar, .admin-topbar { display: none !important; }
    .card, .merci { box-shadow: none; border-color: #ccc; }
    .show-layout { display: block; }
    .admin-shell { display: block; }
    a { color: inherit; text-decoration: none; }
}

/* -------------------------------------------------------------------------- */
/* Comptes : espace personnel, utilisateurs, mots de passe                    */
/* -------------------------------------------------------------------------- */

.sidebar__compte { display: flex !important; align-items: center; gap: .7rem; padding: .55rem .6rem; margin: 0 -.6rem; border-radius: 10px; text-decoration: none; }
.sidebar__compte:hover, .sidebar__compte[aria-current=page] { background: rgba(255, 255, 255, .08); }
.sidebar__compte strong { display: block; color: #fff; font-size: .95rem; line-height: 1.2; }
.sidebar__compte small { display: block; color: #dcb0a6; font-size: .8rem; }

.avatar {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--c-gold-2); color: #3b1600; font-weight: 800; font-size: .85rem; letter-spacing: .02em;
}
.avatar--lg { width: 64px; height: 64px; font-size: 1.35rem; }
.avatar--inactif { background: #e3dbd0; color: var(--c-muted); }

.badge--role { background: var(--c-primary-soft); color: var(--c-primary); }
.badge--super { background: var(--c-gold-soft); color: var(--c-gold); }

.compte-entete { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.compte-entete h1 { margin: 0; }

.mot-de-passe-provisoire {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1.1rem 1.25rem; border-radius: var(--radius-sm);
    background: var(--c-gold-soft); border: 1px dashed #e0c770;
}
.mot-de-passe-provisoire code {
    font: 700 clamp(1.3rem, 4vw, 1.8rem)/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace;
    letter-spacing: .08em; color: var(--c-primary); background: none; word-break: break-all;
}

.option-role {
    display: flex; gap: .7rem; align-items: flex-start; padding: .85rem .95rem; cursor: pointer;
    border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); background: #fffdf9;
}
.option-role input { margin-top: .2rem; }
.option-role strong { display: block; }
.option-role small { color: var(--c-muted); }
.option-role:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
