﻿/* =========================================================
   ChurchInTheCloud — Charte graphique
   Inspirée du site WordPress de l'Église Évangélique de Vernon (LEV)
   Style sobre : fond blanc, navy unique, sans-serif partout.
   ========================================================= */

:root {
    /* Couleur principale unique (bleu marine du logo LEV) */
    --church-primary: #1F2A5F;
    --church-primary-dark: #141c44;
    --church-primary-light: #2d3b7d;

    /* Accent discret pour les liens hover et soulignés actifs */
    --church-accent: #2E8BC0;          /* bleu canard du logo */
    --church-accent-dark: #1f6f9e;

    /* Surfaces */
    --church-bg: #ffffff;              /* fond blanc dominant */
    --church-bg-alt: #f5f7fa;          /* alternance très légère */
    --church-surface: #ffffff;
    --church-text: #333333;
    --church-text-soft: #555;
    --church-muted: #888;
    --church-border: #ececec;

    --church-sans: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    font-family: var(--church-sans);
    color: var(--church-text);
    background-color: var(--church-bg);
    font-size: 16px;
    line-height: 1.7;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--church-sans);
    color: var(--church-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }

.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--church-muted);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

a {
    color: var(--church-primary);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--church-accent);
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: 2px;
    padding: 0.55rem 1.4rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    color: #fff;
    background-color: var(--church-primary);
    border-color: var(--church-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--church-primary-dark);
    border-color: var(--church-primary-dark);
}

.btn-accent {
    color: #fff;
    background-color: var(--church-accent);
    border-color: var(--church-accent);
}

.btn-accent:hover, .btn-accent:focus {
    color: #fff;
    background-color: var(--church-accent-dark);
    border-color: var(--church-accent-dark);
}

.btn-outline-primary {
    color: var(--church-primary);
    border-color: var(--church-primary);
}

.btn-outline-primary:hover {
    background: var(--church-primary);
    color: #fff;
}

.btn-outline-light-on-dark {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.btn-outline-light-on-dark:hover {
    background: #fff;
    color: var(--church-primary);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.2rem rgba(31, 42, 95, 0.25);
}

/* ---------- Sections ---------- */

.section {
    padding: 4.5rem 0;
}

.section-light { background-color: var(--church-surface); }
.section-cream { background-color: var(--church-bg-alt); }
.section-dark {
    background-color: var(--church-primary);
    color: #f5f5f5;
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark .section-eyebrow {
    color: #fff;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(40, 40, 40, 0.55), rgba(40, 40, 40, 0.55)),
        url('img/hero-vieux-moulin.jpg') center/cover no-repeat;
    padding: 5rem 1rem;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero blockquote {
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    color: #ffffff;
    opacity: 0.95;
}

.hero blockquote footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ffffff;
    opacity: 0.85;
    font-style: normal;
    letter-spacing: 0.05em;
}

/* ---------- Piliers ---------- */

.pilier-card {
    background: transparent;
    border: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
}

.pilier-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--church-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pilier-card p {
    color: var(--church-text-soft);
    font-size: 0.95rem;
}

.pilier-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--church-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ---------- Cards Messages / Actualités ---------- */

.content-card {
    background: var(--church-surface);
    border: 1px solid var(--church-border);
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease;
}

.content-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.content-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.content-card:hover .content-card-image img {
    transform: scale(1.04);
}

.content-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content-card-categories {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.content-card-categories .badge {
    background: transparent;
    color: var(--church-accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    padding: 0;
}

.content-card-categories .badge::after {
    content: "•";
    margin-left: 0.4rem;
    color: var(--church-muted);
}

.content-card-categories .badge:last-child::after {
    content: "";
}

.content-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--church-primary);
    font-weight: 600;
}

.content-card-meta {
    font-size: 0.8rem;
    color: var(--church-muted);
    margin-bottom: 0.75rem;
}

.content-card-extrait {
    color: var(--church-text-soft);
    font-size: 0.95rem;
    flex: 1;
}

.content-card-link {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--church-primary);
    font-size: 0.9rem;
}

.content-card-link:hover {
    color: var(--church-accent);
}

/* ---------- Live & Don ---------- */

.live-block {
    background: var(--church-primary);
    color: #fff;
    border-radius: 2px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.live-block h2 { color: #fff; }

/* ---------- Partenaires ---------- */

.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.partenaires-grid img {
    max-height: 60px;
    max-width: 100%;
    filter: grayscale(0.6);
    opacity: 0.75;
    transition: filter .2s ease, opacity .2s ease;
}

.partenaires-grid a:hover img {
    filter: none;
    opacity: 1;
}

/* ---------- Vision (axes détaillés) ---------- */

.vision-axe-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--church-border);
}

.vision-axe-row:first-of-type {
    border-top: 0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.vision-axe-row.reverse .vision-axe-media {
    order: 2;
}

.vision-axe-media {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(13, 27, 56, 0.18);
    aspect-ratio: 3 / 2;
}

.vision-axe-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.vision-axe-media:hover img {
    transform: scale(1.04);
}

.vision-axe-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.vision-axe-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--church-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vision-axe-content h2 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.5rem;
}

.vision-verset {
    border-left: 3px solid var(--church-accent);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: var(--church-text-soft);
    background: var(--church-bg-alt);
    border-radius: 0 4px 4px 0;
}

.vision-verset footer {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--church-muted);
    font-style: normal;
}

@media (max-width: 768px) {
    .vision-axe-row,
    .vision-axe-row.reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vision-axe-row.reverse .vision-axe-media {
        order: 0;
    }
}

/* ---------- Valeurs ---------- */

.valeurs-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.valeur-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--church-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    min-width: 110px;
}

.valeur-item i {
    font-size: 2rem;
    color: var(--church-accent);
}

/* ---------- Footer ---------- */

.site-footer {
    background-color: var(--church-bg-alt);
    color: var(--church-text-soft);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--church-border);
}

.site-footer h5 {
    color: var(--church-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer a { color: var(--church-text-soft); }
.site-footer a:hover { color: var(--church-accent); }

.site-footer-bottom {
    border-top: 1px solid var(--church-border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--church-muted);
}

/* ---------- Misc ---------- */

.content { padding-top: 0; }
h1:focus { outline: none; }


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50960;
}

.validation-message {
    color: #e50960;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ========== Espace administration ========== */
.admin-shell { display: flex; min-height: 100vh; background: #f5f7fa; }
.admin-sidebar { width: 240px; background: var(--church-primary); color: #fff; display: flex; flex-direction: column; padding: 1.5rem 1rem; }
.admin-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 2rem; display: flex; align-items: center; gap: .5rem; }
.admin-brand i { color: var(--church-accent, #2E8BC0); font-size: 1.4rem; }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.admin-nav-link { color: rgba(255,255,255,.85); padding: .55rem .75rem; border-radius: 6px; text-decoration: none; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.active { background: rgba(255,255,255,.15); color: #fff; font-weight: 600; }
.admin-footer { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; font-size: .85rem; }
.admin-user { color: #fff; display: block; }
.admin-back { display: block; margin-top: .75rem; color: rgba(255,255,255,.7); text-decoration: none; font-size: .8rem; text-align: center; }
.admin-back:hover { color: #fff; }
.admin-main { flex: 1; padding: 2rem 2.5rem; overflow-y: auto; }
.admin-page h1 { color: var(--church-primary); }
.admin-stat-card { background: #fff; border-radius: 8px; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.admin-stat-card i { font-size: 2.2rem; }
.admin-stat-value { font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--church-primary); }
.admin-stat-label { font-size: .85rem; color: #6c757d; margin-top: .25rem; }
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--church-primary) 0%, #2a3a7a 100%); padding: 1rem; }
.admin-login-card { background: #fff; padding: 2.5rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.2); width: 100%; max-width: 400px; }
.admin-login-icon { font-size: 3rem; color: var(--church-primary); }
.admin-table { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }

.modal-backdrop-custom { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1040; }
.modal-custom { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3); width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; z-index: 1050; }
.modal-custom.modal-custom-lg { max-width: 900px; }
.prayer-card { background: #fff; border-radius: 8px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); height: 100%; display: flex; flex-direction: column; border-left: 4px solid var(--church-accent, #2E8BC0); }
.prayer-card-handled { opacity: .65; border-left-color: #28a745; }
.prayer-text { white-space: pre-wrap; flex: 1; color: #333; font-size: .95rem; }

.contact-card { cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.contact-card-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* ===== Agenda / Événements ===== */
.agenda-filters .btn { border-radius: 999px; }
.event-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.08); height:100%; display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s; }
.event-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.12); }
.event-card-image { position:relative; aspect-ratio:16/9; overflow:hidden; }
.event-card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.event-card-date { position:absolute; top:12px; left:12px; background:#fff; border-radius:8px; padding:.4rem .7rem; text-align:center; box-shadow:0 2px 8px rgba(0,0,0,.15); line-height:1; }
.event-card-date .event-day { display:block; font-size:1.4rem; font-weight:700; color:var(--church-primary,#0c2340); }
.event-card-date .event-month { display:block; font-size:.75rem; text-transform:uppercase; color:#666; margin-top:2px; }
.event-card-body { padding:1.25rem; display:flex; flex-direction:column; flex:1; }
.event-card-title { font-size:1.15rem; font-weight:600; margin:.5rem 0; color:var(--church-primary,#0c2340); }
.event-card-meta { font-size:.85rem; color:#666; margin-bottom:.25rem; }
.event-card-desc { font-size:.92rem; color:#444; margin:.75rem 0; flex:1; }


/* ===== Section Présentation (Home) ===== */
.presentation-section { overflow: hidden; }
.presentation-section .section-title { font-size: 2rem; line-height: 1.2; }
.presentation-image-wrapper {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}
.presentation-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(12, 35, 64, 0.18), 0 8px 20px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
    display: block;
}
.presentation-image-accent {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: 0;
    bottom: 0;
    border: 4px solid var(--church-accent, #2E8BC0);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
}
.presentation-image-badge {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 3;
}
.presentation-image-badge i {
    font-size: 1.6rem;
    color: var(--church-accent, #2E8BC0);
    background: rgba(46, 139, 192, 0.12);
    padding: 0.6rem;
    border-radius: 50%;
    line-height: 1;
}
.presentation-image-badge strong {
    display: block;
    color: var(--church-primary, #0c2340);
    font-size: 0.95rem;
    line-height: 1.1;
}
.presentation-image-badge span {
    display: block;
    color: #666;
    font-size: 0.8rem;
}
.presentation-bullets {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.presentation-bullets li {
    padding: 0.4rem 0;
    color: #444;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.presentation-bullets i {
    color: var(--church-accent, #2E8BC0);
    font-size: 1.15rem;
    flex-shrink: 0;
}
@media (max-width: 991.98px) {
    .presentation-image-wrapper { padding: 1rem; max-width: 420px; }
    .presentation-image-accent { display: none; }
    .presentation-image-badge { bottom: 1.5rem; right: 0.5rem; }
}

/* ===== Illustration page Présentation ===== */
.presentation-illustration {
    margin: 0 0 2rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(12, 35, 64, 0.15), 0 6px 16px rgba(0,0,0,0.06);
}
.presentation-illustration img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ===== Médiathèque admin ===== */
.media-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.media-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.media-card-thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f4f4f4;
    border-bottom: 1px solid #eee;
}
.media-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ===== Workflow brouillon/publié ===== */
.publish-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
}
.publish-badge.draft { background: #fff3cd; color: #856404; }
.publish-badge.published { background: #d4edda; color: #155724; }

/* MediaPicker modale */
.media-picker-grid {
    max-height: 60vh;
    overflow-y: auto;
}
.media-picker-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    transition: border-color 0.15s ease;
}
.media-picker-thumb:hover { border-color: var(--church-accent, #2E8BC0); }
.media-picker-thumb img { width: 100%; height: 100%; object-fit: cover; }


/* ---------- Pages détail (Message / Article) ---------- */

.content-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--church-muted, #6c757d);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.15s ease;
}
.content-detail-back:hover { color: var(--church-accent, #2E8BC0); }

.content-detail-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    margin: 0.5rem 0 1rem;
    color: var(--church-primary, #0D1B38);
}

.content-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--church-muted, #6c757d);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.content-detail-meta i { margin-right: 0.3rem; color: var(--church-accent, #2E8BC0); }

.content-detail-categories {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.content-detail-hero {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(13, 27, 56, 0.18);
}
.content-detail-hero img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

.content-detail-lead {
    color: var(--church-text-soft, #495057);
    font-style: italic;
    margin-bottom: 2rem;
}

.content-detail-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--church-text, #212529);
}
.content-detail-body h1,
.content-detail-body h2,
.content-detail-body h3,
.content-detail-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--church-primary, #0D1B38);
}
.content-detail-body h2 { font-size: 1.6rem; }
.content-detail-body h3 { font-size: 1.3rem; }
.content-detail-body p { margin-bottom: 1.1rem; }
.content-detail-body ul,
.content-detail-body ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
.content-detail-body li { margin-bottom: 0.4rem; }
.content-detail-body blockquote {
    border-left: 4px solid var(--church-accent, #2E8BC0);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--church-text-soft, #495057);
    background: var(--church-bg-alt, #f8f9fa);
    border-radius: 0 4px 4px 0;
}
.content-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.content-detail-body a { color: var(--church-accent, #2E8BC0); }
.content-detail-body code {
    background: rgba(0,0,0,0.05);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.content-detail-body pre {
    background: #0D1B38;
    color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}
.content-detail-body pre code { background: transparent; color: inherit; padding: 0; }
.content-detail-body hr {
    border: 0;
    border-top: 1px solid var(--church-border, #dee2e6);
    margin: 2rem 0;
}

/* Vidéo YouTube responsive 16:9 */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(13, 27, 56, 0.25);
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Liens dans les cartes (image et titre cliquables) */
a.content-card-image { display: block; }
.content-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.content-card-title a:hover { color: var(--church-accent, #2E8BC0); }

/* === Social share === */
.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}
.social-share-label {
    font-weight: 600;
    color: var(--church-muted, #6c757d);
    margin-right: 0.5rem;
}
.social-share-label i { margin-right: 0.35rem; }
.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    color: var(--church-primary, #145374);
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-share-btn:hover {
    background: var(--church-accent, #2E8BC0);
    color: #fff;
    transform: translateY(-1px);
}

/* === EasyMDE editor === */
.admin-editor .EasyMDEContainer { font-family: 'Open Sans', sans-serif; }
.admin-editor .EasyMDEContainer .CodeMirror {
    border-radius: 0 0 .375rem .375rem;
    border-color: #ced4da;
    min-height: 320px;
}
.admin-editor .editor-toolbar {
    border-radius: .375rem .375rem 0 0;
    border-color: #ced4da;
}
.admin-editor .editor-preview,
.admin-editor .editor-preview-side {
    background: #fff;
    font-family: 'Open Sans', sans-serif;
}
