/* ==========================================================================
   Paroisse Saint Jacques en Grande Seille — feuille de style publique
   Charte : #49b0a8 (teal) / blanc / anthracite #111827
   Approche mobile-first, transitions douces.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
    --brand: #49b0a8;
    --brand-dark: #34867f;
    --brand-darker: #256b65;
    --brand-soft: #e9f6f5;
    --brand-softer: #f4fbfa;

    --ink: #111827;
    --ink-soft: #1f2937;
    --body: #374151;
    --muted: #6b7280;
    --faint: #9ca3af;

    --surface: #ffffff;
    --surface-alt: #f7faf9;
    --border: #e5e7eb;
    --border-soft: #f0f2f4;

    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --success: #15803d;
    --success-soft: #f0fdf4;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
    --shadow: 0 4px 16px rgba(17, 24, 39, .07);
    --shadow-lg: 0 18px 40px -12px rgba(17, 24, 39, .18);
    --shadow-brand: 0 14px 30px -12px rgba(73, 176, 168, .55);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Lora', Georgia, 'Times New Roman', serif;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --t-fast: 160ms var(--ease);
    --t: 260ms var(--ease);
    --t-slow: 420ms var(--ease);

    --header-h: 68px;
    --container: 1160px;
}

/* --------------------------------------------------------------------------
   2. Réinitialisation & bases
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 600;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--brand-darker); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

:focus-visible {
    outline: 3px solid rgba(73, 176, 168, .55);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--brand);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}
.container--narrow { max-width: 780px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4.5vw, 3.25rem); }
.section--alt { background: var(--surface-alt); }
.section--brand { background: var(--brand-soft); }

.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

.section-head {
    max-width: 680px;
    margin-bottom: 2.5rem;
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}
.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: .8rem;
}

.lead {
    font-size: 1.14rem;
    color: var(--ink-soft);
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: background var(--t), color var(--t), border-color var(--t),
                transform var(--t-fast), box-shadow var(--t);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(52, 134, 127, .6);
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn--outline:hover {
    color: var(--brand-dark);
    border-color: var(--brand);
    background: var(--brand-softer);
    transform: translateY(-2px);
}

.btn--light {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
    backdrop-filter: blur(4px);
}
.btn--light:hover {
    background: #fff;
    color: var(--brand-dark);
    transform: translateY(-2px);
}

.btn--sm { padding: .55rem 1.1rem; font-size: .86rem; }
.btn--block { width: 100%; }

/* Rangée de boutons centrée : l'espacement tient aussi quand ils passent à la ligne. */
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.btn[disabled], .btn--disabled { opacity: .5; pointer-events: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--brand-dark);
}
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. En-tête & navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow var(--t), border-color var(--t);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
/* Le logo porte déjà le nom de la paroisse : pas de texte à côté. */
.brand__logo {
    height: 40px;
    width: auto;
    transition: transform var(--t);
}
.brand:hover .brand__logo { transform: scale(1.04); }

@media (min-width: 480px) { .brand__logo { height: 46px; } }

.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: border-color var(--t), color var(--t), background var(--t);
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand-dark); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: .75rem 1.25rem 1.5rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    width: 100%;
    padding: .8rem .9rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    font: inherit;
    font-size: .98rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: var(--brand-softer); color: var(--brand-dark); }
.nav__link.is-active { color: var(--brand-dark); font-weight: 600; }

.nav__chevron { transition: transform var(--t); flex: none; }
[aria-expanded="true"] > .nav__chevron { transform: rotate(180deg); }

.nav__submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 .9rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--t-slow), opacity var(--t);
}
.nav__dropdown.is-open .nav__submenu { max-height: 320px; opacity: 1; }

.nav__sublink {
    display: block;
    padding: .6rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    color: var(--body);
    transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}
.nav__sublink:hover {
    background: var(--brand-softer);
    color: var(--brand-dark);
    padding-left: 1.2rem;
}
.nav__sublink.is-active { color: var(--brand-dark); font-weight: 600; }

.nav__actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    background: #fff;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t-fast);
}
.icon-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

@media (min-width: 1000px) {
    .nav-toggle { display: none; }

    .nav {
        position: static;
        display: flex;
        align-items: center;
        gap: 1rem;
        inset: auto;
        padding: 0;
        max-height: none;
        overflow: visible;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
    }
    .nav__list { flex-direction: row; align-items: center; gap: .2rem; }

    .nav__link { padding: .55rem .85rem; border-radius: var(--radius-pill); font-size: .93rem; }

    .nav__dropdown { position: relative; }
    .nav__submenu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        min-width: 230px;
        max-height: none;
        overflow: visible;
        padding: .5rem;
        background: #fff;
        border: 1px solid var(--border-soft);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--t), transform var(--t), visibility var(--t);
    }
    .nav__submenu::before {
        content: '';
        position: absolute;
        inset: -12px 0 auto 0;
        height: 12px;
    }
    .nav__dropdown:hover .nav__submenu,
    .nav__dropdown.is-open .nav__submenu {
        max-height: none;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav__actions { margin: 0; padding: 0; border: 0; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 520px at 78% -8%, rgba(73, 176, 168, .28), transparent 62%),
        linear-gradient(170deg, var(--brand-softer) 0%, #ffffff 62%);
    padding-block: clamp(3.25rem, 9vw, 6.5rem);
}
.hero::after {
    content: '';
    position: absolute;
    right: -140px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73, 176, 168, .18), transparent 68%);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin-bottom: .5rem; }
.hero__subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    color: var(--ink-soft);
    max-width: 58ch;
    margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.page-hero {
    background: linear-gradient(160deg, var(--brand-soft), #fff 78%);
    border-bottom: 1px solid var(--border-soft);
    padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { margin-bottom: .35rem; }
.page-hero p { color: var(--muted); max-width: 62ch; margin: 0; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: .82rem;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb li[aria-current] { color: var(--ink-soft); font-weight: 600; }

/* --------------------------------------------------------------------------
   6 bis. Bandeau « flash » des actualités (accueil, sous le hero)
   --------------------------------------------------------------------------
   La piste porte deux groupes identiques et se décale de -50 % : la boucle est
   invisible. Chaque groupe fait au moins la largeur de la fenêtre (100cqw), sans
   quoi une seule actualité courte laisserait un trou en fin de boucle. */
.ticker { background: var(--ink); color: #fff; }

.ticker__inner {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 3rem;
}

.ticker__label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: background var(--t-fast);
}
.ticker__label:hover { background: var(--brand-dark); color: #fff; }

.ticker__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    container-type: inline-size;
    /* Fondu sur les bords : les titres apparaissent et disparaissent en douceur. */
    mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker-scroll var(--ticker-duration, 40s) linear infinite;
}

.ticker__group {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100cqw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticker__group li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-right: 1.25rem;
    white-space: nowrap;
}
.ticker__group li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
}

.ticker__group a {
    color: rgba(255, 255, 255, .88);
    font-size: .92rem;
    font-weight: 500;
    transition: color var(--t-fast);
}
.ticker__group a:hover,
.ticker__group a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Pause : au survol, au bouton, et au focus clavier. Au clavier, la piste revient
   à sa position d'origine pour que le navigateur puisse montrer le lien atteint
   (:focus-visible et non :focus, sinon un clic de souris ferait sauter la piste
   entre l'appui et le relâchement). */
.ticker__viewport:hover .ticker__track,
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__viewport:has(a:focus-visible) .ticker__track { animation: none; }

.ticker__toggle {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.ticker__toggle:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.ticker__toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ticker__icon-play,
.ticker.is-paused .ticker__icon-pause { display: none; }
.ticker.is-paused .ticker__icon-play { display: inline-flex; }

@keyframes ticker-scroll {
    to { transform: translateX(-50%); }
}

@media (max-width: 560px) {
    .ticker__inner { gap: .6rem; }
    /* Sur mobile, l'icône seule suffit : la place va aux titres. */
    .ticker__label span { display: none; }
    .ticker__label { padding: .45rem; }
}

/* Mouvement réduit : pas de défilement automatique, la liste se parcourt au doigt. */
@media (prefers-reduced-motion: reduce) {
    .ticker__track { animation: none; }
    .ticker__viewport { overflow-x: auto; mask-image: none; }
    .ticker__group[aria-hidden] { display: none; }
    .ticker__group { justify-content: flex-start; }
    .ticker__toggle { display: none; }
}

/* --------------------------------------------------------------------------
   7. Cartes
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(73, 176, 168, .35);
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(140deg, var(--brand-soft), var(--brand-softer));
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--brand);
    opacity: .55;
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.4rem 1.5rem 1.6rem;
}
.card__title {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    transition: color var(--t-fast);
}
.card:hover .card__title { color: var(--brand-dark); }
.card__excerpt {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 1.15rem;
}
.card__footer { margin-top: auto; }

.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-bottom: .65rem; }
.card__meta .card__date { margin-bottom: 0; }
.card__tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .12rem .5rem;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-darker);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.card__date {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: .65rem;
}

/* Rend toute la carte cliquable sans imbriquer de liens. */
.stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-darker);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.badge--neutral { background: var(--border-soft); color: var(--muted); }
.badge--warn { background: #fff7ed; color: #b45309; }

/* --------------------------------------------------------------------------
   7 bis. Évangile du jour (accueil)
   -------------------------------------------------------------------------- */
.gospel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    background: #fff;
    border: 1px solid rgba(73, 176, 168, .32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow var(--t), border-color var(--t);
}
.gospel:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

/* Bloc « éphéméride » : rappelle que le contenu change tous les jours. */
.gospel__date {
    width: 118px;
    justify-self: start;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t);
}
.gospel:hover .gospel__date { transform: translateY(-3px) rotate(-2deg); }

.gospel__weekday {
    display: block;
    padding: .45rem .5rem;
    background: linear-gradient(140deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.gospel__day {
    display: block;
    padding: .55rem 0 .1rem;
    font-family: var(--font-display);
    font-size: 2.9rem;
    line-height: 1;
    color: var(--ink);
}
.gospel__month {
    display: block;
    padding-bottom: .75rem;
    font-size: .8rem;
    color: var(--muted);
}

.gospel__body { min-width: 0; }
.gospel__body h2 { margin-bottom: .5rem; }
.gospel__body p {
    color: var(--muted);
    max-width: 58ch;
    margin-bottom: 1.4rem;
}

/* Filigrane décoratif, masqué tant qu'il n'y a pas la place. */
.gospel__decor {
    display: none;
    color: var(--brand);
    opacity: .1;
    pointer-events: none;
}

@media (min-width: 760px) {
    .gospel { grid-template-columns: auto 1fr; gap: 2.25rem; }
}
@media (min-width: 1040px) {
    .gospel { grid-template-columns: auto 1fr auto; }
    .gospel__decor { display: block; margin-right: -1.5rem; }
}

/* --------------------------------------------------------------------------
   8. Horaires
   -------------------------------------------------------------------------- */
.schedule-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.schedule-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.schedule-card__head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-soft);
}
.schedule-card__head h3 { margin: 0; font-size: 1.1rem; }

/* Lien de bas d'encart, sur sa propre ligne, séparé du contenu comme l'en-tête. */
.schedule-card__foot {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-soft);
}

.icon-circle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.schedule-list { list-style: none; margin: 0; padding: 0; }
.schedule-list li + li {
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px dashed var(--border);
}
.schedule-list strong { display: block; color: var(--ink); font-size: .95rem; }
.schedule-list span { color: var(--muted); font-size: .9rem; }

.hours-strip {
    display: grid;
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
/* Une colonne par célébration, quel qu'en soit le nombre. `auto-fit` laisserait
   des pistes vides et un filet parasite à droite (le séparateur est un gap de 1px). */
@media (min-width: 720px) {
    .hours-strip { grid-auto-flow: column; grid-auto-columns: 1fr; }
}

.hours-strip__item {
    background: #fff;
    padding: 1.5rem;
    text-align: center;
    transition: background var(--t);
}
.hours-strip__item:hover { background: var(--brand-softer); }
.hours-strip__day {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-dark);
}
.hours-strip__time {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--ink);
    line-height: 1.2;
    margin: .3rem 0 .35rem;
}
.hours-strip__place { font-size: .88rem; color: var(--muted); }

/* Lien vers le calendrier complet (MessesInfo), sous le bandeau des horaires. */
.hours-strip__more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .6rem 1.1rem;
    margin-top: 1.5rem;
    text-align: center;
}
.hours-strip__more span { font-size: .88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Accordéons (page Équipes)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 1rem; }

.accordion__item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--t), box-shadow var(--t);
}
.accordion__item:hover { border-color: rgba(73, 176, 168, .45); }
.accordion__item.is-open {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.accordion__trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.4rem;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    transition: background var(--t-fast), color var(--t-fast);
}
.accordion__trigger:hover { background: var(--brand-softer); }
.accordion__item.is-open .accordion__trigger { background: var(--brand-softer); }

.accordion__title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    flex: 1;
    margin: 0;
}
.accordion__count {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface-alt);
    border: 1px solid var(--border-soft);
    padding: .2rem .65rem;
    border-radius: var(--radius-pill);
}
.accordion__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    transition: transform var(--t), background var(--t), color var(--t);
}
.accordion__item.is-open .accordion__icon {
    transform: rotate(180deg);
    background: var(--brand);
    color: #fff;
}

/*
   Ouverture animée : la hauteur cible est mesurée par le contrôleur Stimulus.
   L'astuce CSS grid-template-rows 0fr -> 1fr n'est pas utilisable ici : le
   overflow:hidden nécessaire au rognage annule la taille minimale automatique
   de l'élément de grille, et la piste flexible se résout alors à 0.
*/
.accordion__panel {
    height: 0;
    overflow: hidden;
    transition: height var(--t-slow);
}
.accordion__panel-inner { display: flow-root; }
.accordion__content {
    padding: 1.4rem 1.4rem 1.5rem;
    border-top: 1px solid var(--border-soft);
}

/* --------------------------------------------------------------------------
   10. Fiches membres
   -------------------------------------------------------------------------- */
.member-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}

.member {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-alt);
    transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
}
.member:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: rgba(73, 176, 168, .4);
    box-shadow: var(--shadow);
}

.avatar {
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
}
.avatar--initials {
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: var(--shadow-brand);
    border-color: #fff;
}
.avatar--lg { width: 76px; height: 76px; font-size: 1.5rem; }

.member__body { min-width: 0; flex: 1; }
.member__name {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 .45rem;
}
.member__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .2rem;
    font-size: .86rem;
}
.member__contact li { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.member__contact a { color: var(--body); word-break: break-word; }
.member__contact a:hover { color: var(--brand-dark); }
.member__contact svg { flex: none; color: var(--brand); }

/* --------------------------------------------------------------------------
   10 bis. Bandeau des églises de la communauté
   -------------------------------------------------------------------------- */
.parish-banner {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/*
   L'image fait 1920×576 (ratio 3,3:1) : à pleine largeur sur un téléphone elle
   ne ferait qu'une centaine de pixels de haut et son titre deviendrait illisible.
   On la recadre donc sur sa partie gauche, qui porte la première église et le
   bandeau de titre.

   On impose un aspect-ratio plutôt qu'une hauteur fixe : avec object-fit: cover,
   la largeur de source visible vaut alors 576 × ratio, soit ~1037 px quelle que
   soit la largeur de l'écran. Le titre complet tient jusqu'à x = 1000 environ,
   donc il reste entier même sur les plus petits téléphones.
*/
@media (max-width: 640px) {
    .parish-banner {
        aspect-ratio: 1.8;
        height: auto;
        object-fit: cover;
        object-position: left center;
    }
}

/* --------------------------------------------------------------------------
   11. Lieux
   -------------------------------------------------------------------------- */
.place {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.place:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(73, 176, 168, .35);
}
/* Sur l'accueil, la carte est un lien : elle ne doit pas hériter du bleu d'ancre. */
a.place { color: inherit; }
a.place:hover { color: inherit; }
a.place:hover .link-arrow svg { transform: translateX(4px); }
.place__visual {
    position: relative;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, var(--brand-soft), var(--brand-softer) 60%, #fff);
    color: var(--brand);
    overflow: hidden;
}
.place__visual::after {
    content: '';
    position: absolute;
    inset: auto -20% -55% -20%;
    height: 70%;
    border-radius: 50%;
    background: rgba(73, 176, 168, .12);
    transition: transform var(--t-slow);
}
.place:hover .place__visual::after { transform: translateY(-14px); }
.place__visual svg { position: relative; z-index: 1; transition: transform var(--t-slow); }
.place:hover .place__visual svg { transform: translateY(-6px) scale(1.05); }

/* Variante avec la photo de l'église : elle remplit le cadre, sans le décor teal. */
.place__visual--photo::after { display: none; }
.place__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.place:hover .place__photo { transform: scale(1.04); }

.place__tag {
    position: absolute;
    z-index: 2;
    top: .9rem;
    left: .9rem;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
}
.place__body { padding: 1.4rem 1.5rem 1.6rem; }
/* Le nom de l'église est le premier élément du corps : pas de marge haute, et la
   description — facultative — porte son propre espacement. */
.place__body h3 { margin: 0; font-size: 1.2rem; }
.place__body p { color: var(--muted); font-size: .95rem; margin: .55rem 0 0; }

/* --------------------------------------------------------------------------
   11 bis. Pages de présentation : prose longue, sommaire, citations
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }

/* Texte + encart des permanences côte à côte sur grand écran. */
.parish-layout { display: grid; gap: 2rem; align-items: start; }

/* Colonne latérale d'une paroisse : photo de l'église au-dessus des permanences. */
.parish-aside { display: grid; gap: 1.25rem; }
.parish-photo {
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--brand-softer);
    box-shadow: var(--shadow-sm);
}
.parish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 940px) {
    .parish-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }
    .parish-layout .prose { max-width: none; }
}

/* Sommaire des paroisses. */
.anchor-nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.anchor-nav a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
    transition: border-color var(--t-fast), background var(--t-fast),
                color var(--t-fast), transform var(--t-fast);
}
.anchor-nav a:hover {
    border-color: var(--brand);
    background: var(--brand-softer);
    color: var(--brand-dark);
    transform: translateY(-2px);
}
.anchor-nav a svg { color: var(--brand); }
.anchor-nav small { color: var(--muted); font-weight: 500; }

/* Citation longue d'une source externe (panneau explicatif, archive) : encadré
   lisible, sans italique — la mise en exergue passe par le fond et la source. */
.source-quote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--brand-softer);
    border: 1px solid rgba(73, 176, 168, .28);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.source-quote blockquote { margin: 0; }
.source-quote p { margin-bottom: 1em; }
.source-quote p:last-child { margin-bottom: 0; }
.source-quote figcaption {
    margin-top: 1.1rem;
    padding-top: .8rem;
    border-top: 1px dashed rgba(73, 176, 168, .4);
    font-size: .84rem;
    color: var(--muted);
}

/* Dicton, proverbe : mis en exergue sans être confondu avec le corps du texte. */
.pull-quote {
    margin: 1.6rem 0;
    padding: .9rem 0 .9rem 1.35rem;
    border-left: 3px solid var(--brand);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-style: italic;
    color: var(--ink-soft);
}

/* Intertitre d'un bloc de permanences (page Contact). */
.permanence-parish {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 1.25rem 0 .5rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-dark);
}
.permanence-parish:first-of-type { margin-top: 0; }
.permanence-parish svg { color: var(--brand); }

/* --------------------------------------------------------------------------
   12. Frise historique
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(var(--brand), var(--brand-soft));
}
.timeline li { position: relative; padding: 0 0 1.6rem 2.2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--brand);
    transition: transform var(--t), box-shadow var(--t);
}
.timeline li:hover::before { transform: scale(1.2); box-shadow: 0 0 0 6px var(--brand-soft); }
.timeline__year {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 1.02rem;
}
.timeline p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   13. Article
   -------------------------------------------------------------------------- */
.article__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}
.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1.25rem;
}
.article__lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    padding-left: 1.1rem;
    border-left: 3px solid var(--brand);
    margin-bottom: 2rem;
}
.article__content { font-size: 1.03rem; line-height: 1.85; }
.article__content p { margin-bottom: 1.3em; }

/* Document PDF joint à une actualité (news/show.html.twig). */
.pdf-viewer {
    margin-top: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pdf-viewer__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}
.pdf-viewer__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-darker);
}
.pdf-viewer__text { flex: 1; min-width: 9rem; font-size: .84rem; color: var(--muted); }
.pdf-viewer__title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0; }
.pdf-viewer__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pdf-viewer__frame {
    display: block;
    width: 100%;
    /* Une page A4 presque entière à l'écran, sans dépasser la fenêtre. */
    height: min(85vh, 1000px);
    border: 0;
    background: var(--border-soft);
}
/* Téléphones : pas de visionneuse intégrée fiable, les boutons suffisent. */
@media (max-width: 767px) {
    .pdf-viewer { border-radius: var(--radius); }
    .pdf-viewer__frame { display: none; }
    .pdf-viewer__head { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   14. Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
}
.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding-inline: .75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: #fff;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.pagination a:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: var(--brand-softer);
    transform: translateY(-2px);
}
.pagination .is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.pagination .is-disabled { opacity: .4; }
.pagination .is-gap { border-color: transparent; background: none; }

/* --------------------------------------------------------------------------
   15. Formulaires
   -------------------------------------------------------------------------- */
.form-row { margin-bottom: 1.15rem; }
.form-row > label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .4rem;
}
.form-row .required::after { content: ' *'; color: var(--brand-dark); }

.form-control {
    width: 100%;
    padding: .8rem 1rem;
    font: inherit;
    font-size: .96rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-control::placeholder { color: var(--faint); }
.form-control:hover { border-color: #d1d5db; }
.form-control:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(73, 176, 168, .16);
}
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.65; }
select.form-control { cursor: pointer; }

.form-help { display: block; font-size: .82rem; color: var(--muted); margin-top: .35rem; }

.form-error {
    list-style: none;
    margin: .4rem 0 0;
    padding: 0;
    font-size: .84rem;
    color: var(--danger);
}
.form-row.has-error .form-control {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.form-check { display: flex; align-items: center; gap: .55rem; }
.form-check input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.form-check label { margin: 0; font-weight: 500; font-size: .92rem; cursor: pointer; }

.form-file {
    display: block;
    width: 100%;
    padding: .7rem 1rem;
    font-size: .9rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.form-file:hover { border-color: var(--brand); background: var(--brand-softer); }

.honeypot { position: absolute !important; left: -9999px !important; }

/* Captcha : encadré discret, champ étroit (la réponse tient en deux chiffres). */
.form-captcha {
    padding: 1rem 1.1rem;
    background: var(--brand-softer);
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius-sm);
}
.form-captcha .form-control { max-width: 7rem; text-align: center; font-weight: 600; }

.form-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   16. Messages flash & états vides
   -------------------------------------------------------------------------- */
.flash {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid;
    font-size: .94rem;
    margin-bottom: 1rem;
    animation: flash-in var(--t-slow) both;
}
.flash svg { flex: none; margin-top: 2px; }
.flash--success { background: var(--success-soft); border-color: #bbf7d0; color: var(--success); }
.flash--danger { background: var(--danger-soft); border-color: #fecaca; color: var(--danger); }
.flash--info { background: var(--brand-soft); border-color: rgba(73, 176, 168, .35); color: var(--brand-darker); }

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    color: var(--muted);
}
.empty-state svg { color: var(--brand); opacity: .6; margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: .4rem; }
.empty-state p { margin: 0 auto; max-width: 46ch; }

/* Page 404 (templates/bundles/TwigBundle/Exception/error404.html.twig) :
   bouton d'accueil puis liste des pages réelles du site. */
.error-page__home { justify-content: flex-start; margin-bottom: 2.5rem; }
.error-page__title { font-size: 1.25rem; margin-bottom: 1rem; }
.error-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
    max-width: 780px;
}
@media (min-width: 640px) {
    .error-links { grid-template-columns: repeat(2, 1fr); }
}
.error-links a {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    height: 100%;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    font-size: .9rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.error-links a:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.error-links svg { flex: none; margin-top: .15rem; color: var(--brand-dark); }
.error-links strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: .1rem; }
.error-links a:hover strong { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   17. Bandeau CTA & coordonnées
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.25rem);
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-info li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-info span, .contact-info a { color: var(--muted); font-size: .93rem; }
.contact-info a:hover { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   18. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: #d1d5db;
    padding-top: clamp(2.75rem, 6vw, 4rem);
    font-size: .93rem;
}
.site-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: var(--brand); }

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1.2fr; } }

/* Sur le fond sombre du pied de page, le logo révèle en plus sa ligne
   « AUGNY · MAGNY · MARLY », blanche et invisible sur fond clair. */
.footer-logo { height: 56px; width: auto; margin-bottom: 1.1rem; }
.footer-about { color: #9ca3af; max-width: 42ch; }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-list a {
    display: inline-block;
    transition: transform var(--t-fast), color var(--t-fast);
}
.footer-list a:hover { transform: translateX(4px); }

.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #d1d5db;
    transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
}
.footer-social a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-block: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    font-size: .84rem;
    color: #9ca3af;
}

/* --------------------------------------------------------------------------
   19. Révélation au défilement
   -------------------------------------------------------------------------- */
/* Sans JavaScript, le contenu doit rester visible : on ne masque que si la
   classe .js a été posée par assets/app.js. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Utilitaires
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   20. Cookies : bandeau de consentement et page « Cookies »
   -------------------------------------------------------------------------- */
.footer-bottom__links { display: inline-flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* Bandeau non bloquant, en bas de l'écran. Masqué sans JavaScript : la mesure
   en dépend, inutile de demander un accord qu'on ne pourrait pas exploiter. */
.consent { display: none; }
.js .consent {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    padding: 0 16px 16px;
    pointer-events: none;
    animation: consent-in 360ms var(--ease) both;
    transition: opacity var(--t), transform var(--t);
}
.consent.is-leaving { opacity: 0; transform: translateY(12px); }

.consent__inner {
    pointer-events: auto;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.15rem 1.35rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.consent__text { flex: 1 1 360px; }
.consent__title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 .3rem; }
.consent__text p { margin: 0; font-size: .9rem; color: var(--body); }
.consent__text a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Les deux boutons ont la même taille : refuser doit être aussi simple qu'accepter. */
.consent__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.consent__actions .btn { min-width: 7.5rem; justify-content: center; }
@media (max-width: 560px) {
    .consent__actions { flex: 1 1 100%; }
    .consent__actions .btn { flex: 1 1 0; min-width: 0; }
}

@keyframes consent-in {
    from { opacity: 0; transform: translateY(16px); }
}

/* Page « Cookies » */
.prose-wrap { max-width: 820px; }
.prose-wrap .prose { max-width: none; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }

.consent-panel {
    padding: 1.4rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--brand-softer);
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
}
.consent-panel h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.consent-panel p { margin: 0 0 .75rem; font-size: .95rem; }
.consent-panel__status { font-weight: 600; color: var(--ink); }
.btn-row--start { justify-content: flex-start; }

.table-scroll { overflow-x: auto; margin: .5rem 0 1.5rem; }
.cookie-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.cookie-table th,
.cookie-table td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cookie-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cookie-table code { font-size: .85rem; color: var(--brand-darker); background: var(--brand-softer); padding: .1rem .35rem; border-radius: 4px; }
