/* =========================================================================
   VieCity — Églises & Paroisses
   Univers propre au module : pierre claire, ivoire chaud, bleu nuit, or discret
   et lumière chaude. Aucune dépendance distante, aucune police externe.
   Préfixe : .ch-
   ========================================================================= */

:root {
    --ch-stone: #faf8f4;
    --ch-stone-deep: #f1ece3;
    --ch-ivory: #f6efe4;
    --ch-ivory-deep: #e7dcc9;

    --ch-night: #0f1c34;
    --ch-night-deep: #091223;
    --ch-blue: #1b3b6f;
    --ch-blue-soft: #26518f;
    --ch-marial: #4a6fa5;

    --ch-gold: #9a7826;
    /* Or textuel : assombri pour rester lisible sur pierre, ivoire et pastille dorée. */
    --ch-gold-ink: #7a5e14;
    --ch-gold-bright: #d9b95c;
    --ch-warm: #ffd9a0;
    --ch-wood: #c8a97e;

    --ch-ink: #14213a;
    --ch-ink-soft: #55647c;
    --ch-line: rgba(20, 33, 58, 0.12);
    --ch-line-light: rgba(240, 235, 225, 0.18);

    --ch-radius-sm: 12px;
    --ch-radius-md: 20px;
    --ch-radius-lg: 30px;
    --ch-container: 1240px;

    --ch-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --ch-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --ch-shadow-sm: 0 10px 26px rgba(20, 33, 58, 0.07);
    --ch-shadow-md: 0 22px 52px rgba(20, 33, 58, 0.12);
    --ch-shadow-dark: 0 24px 60px rgba(4, 10, 22, 0.45);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

.ch-body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--ch-stone);
    color: var(--ch-ink);
    font-family: var(--ch-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.ch-body.ch-menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--ch-serif);
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.14;
}

p,
dl,
dd {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--ch-blue-soft);
    outline-offset: 3px;
    border-radius: 6px;
}

.ch-container {
    width: min(100% - 40px, var(--ch-container));
    margin-inline: auto;
}

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

.ch-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 80;
    padding: 12px 18px;
    background: var(--ch-blue);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 12px 0;
}

.ch-skip:focus {
    left: 0;
}

.ch-muted {
    color: var(--ch-ink-soft);
}

/* ---------------------------------------------------------------- En-tête */

.ch-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 244, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ch-line);
}

.ch-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    min-height: 76px;
}

.ch-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.ch-brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(155deg, var(--ch-blue-soft), var(--ch-night) 72%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ch-brand__mark svg {
    width: 22px;
    height: 22px;
    fill: var(--ch-gold-bright);
}

.ch-brand__text {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    line-height: 1.18;
    font-size: 1.02rem;
}

.ch-brand__name {
    white-space: nowrap;
}

.ch-brand__text strong {
    font-weight: 700;
}

.ch-brand__text small {
    color: var(--ch-ink-soft);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ch-menu-button {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--ch-line);
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.ch-menu-button i {
    position: relative;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.ch-menu-button i::before,
.ch-menu-button i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.ch-menu-button i::before { top: -5px; }
.ch-menu-button i::after { top: 5px; }

.ch-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.94rem;
}

.ch-nav a {
    position: relative;
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--ch-ink-soft);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ch-nav a:hover {
    color: var(--ch-ink);
    background: rgba(27, 59, 111, 0.07);
}

.ch-nav a[aria-current="page"] {
    color: var(--ch-blue);
    font-weight: 600;
}

.ch-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--ch-gold);
}

.ch-nav__back {
    margin-left: 6px;
    border: 1px solid var(--ch-line);
    color: var(--ch-blue) !important;
    font-weight: 600;
}

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

.ch-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(94vh, 860px);
    display: flex;
    align-items: center;
    padding: clamp(52px, 7vw, 96px) 0 clamp(96px, 13vw, 170px);
    background: #0a0f1c;
    color: var(--ch-stone);
}

/* Décor : une photographie de nef, rien de dessiné.

   Le cadre `.ch-hero__frame` porte exactement le rapport de l'image
   (1672 × 941). Les unités de conteneur lui font recouvrir le hero comme le
   ferait `object-fit: cover`, mais en gardant un repère stable : un halo placé
   à 86,72 % / 76,32 % tombe sur la même flamme à 390 comme à 1920 pixels.
   Le cadre est calé à droite pour que les cierges restent toujours dans le
   champ ; c'est la zone sombre de gauche qui est rognée en premier. */

.ch-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    container-type: size;
    background: #070b16;
}

.ch-hero__frame {
    position: absolute;
    top: 50%;
    right: 0;
    translate: 0 -50%;
    width: 100%;
    height: 100%;
    /* 1672 / 941 = 177.6833 ; 941 / 1672 = 56.2799 */
    width: max(100cqw, 177.6833cqh);
    height: max(56.2799cqw, 100cqh);
}

.ch-hero__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Respiration de la lumière : seuls les rais s'éclaircissent, très lentement.
   L'image n'est jamais déplacée. */
.ch-hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 27% 19% at 72% 21%,
        rgba(255, 240, 205, 0.5) 0%,
        rgba(255, 228, 174, 0.24) 34%,
        rgba(255, 220, 160, 0.08) 64%,
        rgba(255, 216, 155, 0) 100%
    );
    mix-blend-mode: screen;
    opacity: 0.5;
    pointer-events: none;
    animation: ch-light-breath 14s ease-in-out infinite alternate;
}

/* Poussières dans les rais : une douzaine de points, jamais une pluie. */
.ch-dust {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ch-dust i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 240, 214, 0.9);
    box-shadow: 0 0 5px 1px rgba(255, 224, 176, 0.5);
    opacity: 0.28;
    animation: ch-dust 19s ease-in-out infinite;
    animation-delay: var(--d);
}

.ch-dust i:nth-child(3n) { width: 3px; height: 3px; animation-duration: 24s; }
.ch-dust i:nth-child(4n) { animation-duration: 29s; }

/* Cierges : on renforce les flammes de la photo, on n'en dessine pas d'autres.
   Chaque halo est un dégradé radial sans contour, centré sur une flamme réelle. */
.ch-flames {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ch-flame {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: calc(3.5% * var(--s, 1));
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 244, 214, 0.98) 0%,
        rgba(255, 216, 144, 0.62) 24%,
        rgba(255, 186, 92, 0.28) 48%,
        rgba(255, 166, 66, 0.09) 66%,
        rgba(255, 160, 60, 0) 80%
    );
    mix-blend-mode: screen;
    filter: blur(2px);
    animation: ch-flame-flicker var(--t, 2s) ease-in-out infinite alternate;
    animation-delay: var(--d, 0s);
}

/* Halo secondaire : plus large, plus doux, il éclaire discrètement le support. */
.ch-flame::after {
    content: '';
    position: absolute;
    inset: -175%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 196, 116, 0.32) 0%,
        rgba(255, 172, 80, 0.13) 40%,
        rgba(255, 155, 62, 0.04) 60%,
        rgba(255, 150, 60, 0) 78%
    );
    filter: blur(7px);
}

/* Lueur d'ensemble du groupe de cierges : une respiration chaude, jamais une
   boule orange. */
.ch-flames__warm {
    position: absolute;
    left: 87.5%;
    top: 80%;
    width: 34%;
    aspect-ratio: 1.45;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(255, 186, 104, 0.3) 0%,
        rgba(255, 162, 72, 0.12) 42%,
        rgba(255, 150, 58, 0.04) 62%,
        rgba(255, 145, 55, 0) 80%
    );
    mix-blend-mode: screen;
    filter: blur(16px);
    opacity: 0.2;
    animation: ch-warm-breath 6.4s ease-in-out infinite alternate;
}

/* Voile : lisibilité du texte à gauche, sans jamais toucher le vitrail. */
.ch-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(6, 10, 22, 0.95) 0%, rgba(6, 10, 22, 0.88) 20%, rgba(7, 12, 26, 0.6) 38%, rgba(8, 13, 28, 0.24) 54%, rgba(8, 13, 28, 0.05) 68%, rgba(8, 13, 28, 0) 80%),
        linear-gradient(180deg, rgba(6, 10, 22, 0.3) 0%, rgba(6, 10, 22, 0.15) 11%, rgba(6, 10, 22, 0.05) 22%, rgba(6, 10, 22, 0) 38%, rgba(6, 10, 22, 0) 68%, rgba(5, 9, 20, 0.55) 100%);
    pointer-events: none;
}

/* Sans unités de conteneur, le repère des halos n'est plus fiable : on ne
   montre pas de flammes flottantes, on retire simplement la couche. */
@supports not (width: 1cqw) {
    .ch-flames,
    .ch-dust {
        display: none;
    }
}

.ch-hero__base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(52px, 6vw, 92px);
    background: linear-gradient(180deg, rgba(250, 248, 244, 0) 0%, rgba(250, 248, 244, 0.03) 58%, rgba(250, 248, 244, 0.34) 82%, var(--ch-stone) 100%);
    pointer-events: none;
}


.ch-hero__content {
    position: relative;
    z-index: 2;
}

.ch-hero__content > * {
    max-width: 36rem;
}

.ch-hero__content > .ch-actions--hero {
    max-width: 44rem;
}

.ch-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid rgba(217, 185, 92, 0.4);
    background: rgba(217, 185, 92, 0.12);
    color: #f0dfb4;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ch-hero__content h1 {
    margin-top: 22px;
    font-size: clamp(2.5rem, 5.8vw, 4.2rem);
    text-shadow: 0 14px 44px rgba(4, 8, 18, 0.6);
}

.ch-hero__content h1 em {
    font-style: normal;
    background: linear-gradient(96deg, #f6e9cd 0%, var(--ch-gold-bright) 46%, var(--ch-warm) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ch-hero__lead {
    margin-top: 18px;
    color: rgba(240, 238, 232, 0.88);
    font-size: clamp(1rem, 1.6vw, 1.13rem);
    text-shadow: 0 4px 18px rgba(4, 8, 18, 0.5);
}

.ch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ch-actions--hero {
    margin-top: clamp(28px, 3.4vw, 40px);
}

.ch-hero__note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: clamp(26px, 3vw, 34px);
    color: rgba(236, 234, 228, 0.78);
    font-size: 0.9rem;
}

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

.ch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.96rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ch-button--primary {
    background: linear-gradient(140deg, var(--ch-blue-soft) 0%, var(--ch-blue) 58%, #14315c 100%);
    color: #fdfaf4;
    box-shadow: 0 14px 30px rgba(20, 49, 92, 0.3);
}

.ch-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(20, 49, 92, 0.36);
}

.ch-button--ghost {
    border: 1px solid var(--ch-line-light);
    background: rgba(250, 248, 244, 0.1);
    color: inherit;
    backdrop-filter: blur(8px);
}

.ch-button--ghost:hover {
    transform: translateY(-2px);
    background: rgba(250, 248, 244, 0.18);
}

.ch-button--outline {
    border: 1px solid rgba(27, 59, 111, 0.28);
    color: var(--ch-blue);
    background: #fff;
}

.ch-button--outline:hover {
    transform: translateY(-2px);
    border-color: var(--ch-blue);
    box-shadow: var(--ch-shadow-sm);
}

.ch-button--search {
    min-height: 46px;
    padding: 12px 22px;
    background: linear-gradient(140deg, var(--ch-blue-soft), var(--ch-blue));
    color: #fdfaf4;
    box-shadow: 0 12px 24px rgba(20, 49, 92, 0.24);
}

.ch-button--wide {
    width: 100%;
}

.ch-button:disabled,
.ch-city-search input:disabled,
.ch-form select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.ch-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    gap: 8px;
    color: var(--ch-blue);
    font-weight: 600;
    box-shadow: inset 0 -1px 0 rgba(27, 59, 111, 0.3);
}

.ch-text-link:hover {
    box-shadow: inset 0 -1px 0 var(--ch-blue);
}

/* --------------------------------------------------------------- Sections */

.ch-section {
    position: relative;
    padding: clamp(52px, 7vw, 92px) 0;
}

.ch-section--tight {
    padding: clamp(34px, 5vw, 60px) 0;
}

.ch-section--search {
    padding-top: clamp(0px, 1vw, 12px);
    margin-top: clamp(-70px, -7vw, -40px);
}

.ch-section--celebrations,
.ch-section--services {
    background: var(--ch-ivory);
}

.ch-section--practical {
    background: var(--ch-stone-deep);
}

.ch-kicker {
    color: var(--ch-gold-ink);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ch-step {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ch-ink-soft);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ch-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: clamp(26px, 3.6vw, 40px);
}

.ch-heading h2 {
    margin-top: 10px;
    font-size: clamp(1.75rem, 3.3vw, 2.5rem);
}

.ch-heading__aside {
    color: var(--ch-ink-soft);
    max-width: 46ch;
    font-size: 0.98rem;
}

.ch-heading--light h2 {
    color: var(--ch-stone);
}

.ch-heading--light .ch-heading__aside {
    color: rgba(236, 233, 226, 0.78);
}

.ch-note {
    margin-top: 22px;
    color: var(--ch-ink-soft);
    font-size: 0.9rem;
}

.ch-panel {
    border-radius: var(--ch-radius-md);
    border: 1px solid var(--ch-line);
    background: #fff;
    box-shadow: var(--ch-shadow-sm);
    padding: clamp(18px, 2.6vw, 28px);
}

.ch-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
}

.ch-prose {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    color: var(--ch-ink-soft);
    font-size: 1.02rem;
}

.ch-prose > * {
    max-width: 64ch;
}

/* Quand .ch-prose est porté par le conteneur lui-même, la colonne de texte
   reste calée à gauche au lieu d'être centrée par les marges automatiques. */
.ch-container.ch-prose {
    max-width: min(100% - 40px, var(--ch-container));
}

.ch-prose--light {
    color: rgba(236, 233, 226, 0.82);
}

.ch-prose--light > * {
    max-width: 68ch;
}

.ch-prose--article {
    color: var(--ch-ink);
}

/* -------------------------------------------------------- Recherche commune */

.ch-search-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--ch-radius-lg);
    border: 1px solid var(--ch-line);
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(74, 111, 165, 0.08), transparent 62%),
        linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
    box-shadow: var(--ch-shadow-md);
    padding: clamp(26px, 4vw, 46px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(26px, 3.4vw, 40px);
}

.ch-search-card__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

.ch-search-card__main h2 {
    margin-top: 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ch-search-card__lead {
    margin-top: 12px;
    color: var(--ch-ink-soft);
    max-width: 46ch;
}

/* Séparation nette entre le discours et l'action. */
.ch-search-card__promise {
    margin-top: clamp(24px, 3vw, 32px);
    padding-top: clamp(20px, 2.6vw, 26px);
    border-top: 1px solid var(--ch-line);
}

.ch-search-card__promise > span {
    display: block;
    color: var(--ch-ink-soft);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ch-search-card__aside {
    display: grid;
    align-content: start;
    gap: 16px;
}

.ch-search-card__more {
    color: var(--ch-ink-soft);
    font-size: 0.86rem;
}

.ch-search-card__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ch-search-card__list li {
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(27, 59, 111, 0.07);
    color: var(--ch-blue);
    font-size: 0.83rem;
    font-weight: 500;
}

.ch-city-search {
    margin-top: clamp(22px, 2.8vw, 30px);
}

.ch-city-search label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.93rem;
}

.ch-city-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(20, 33, 58, 0.2);
    background: #fff;
    box-shadow: var(--ch-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ch-city-search__field:focus-within {
    border-color: var(--ch-blue-soft);
    box-shadow: 0 12px 30px rgba(27, 59, 111, 0.14);
}

.ch-city-search__icon {
    color: var(--ch-blue-soft);
    font-size: 1.1rem;
}

.ch-city-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 4px;
    border: 0;
    background: none;
    font-size: 1.02rem;
    color: var(--ch-ink);
}

.ch-city-search input::placeholder {
    color: rgba(20, 33, 58, 0.42);
}

.ch-city-search input:disabled {
    cursor: not-allowed;
}

.ch-city-search input:focus {
    outline: none;
}

.ch-city-search__status {
    margin-top: 12px;
    color: var(--ch-ink-soft);
    font-size: 0.88rem;
}

.ch-city-search__status.is-error {
    color: #9d2f2f;
}

.ch-city-search__status.is-success {
    color: #1d5c46;
    font-weight: 600;
}

.ch-city-suggestions > span {
    display: block;
    margin-bottom: 12px;
    color: var(--ch-ink-soft);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ch-city-suggestions > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
    gap: 10px;
}

.ch-city-suggestions a {
    display: grid;
    gap: 2px;
    min-height: 62px;
    padding: 12px 16px;
    border-radius: var(--ch-radius-sm);
    border: 1px solid var(--ch-line);
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ch-city-suggestions a strong {
    font-weight: 600;
}

.ch-city-suggestions a small {
    color: var(--ch-ink-soft);
    font-size: 0.78rem;
}

.ch-city-suggestions a:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 59, 111, 0.35);
    box-shadow: var(--ch-shadow-sm);
}

/* ---------------------------------------------------------- Célébrations */

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

.ch-celebrations__day {
    margin-top: 14px;
    padding: 6px 0 4px;
    color: var(--ch-gold-ink);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ch-line);
}

.ch-celebrations__day:first-child {
    margin-top: 0;
}

.ch-celebration {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(20, 33, 58, 0.06);
}

.ch-celebration:last-child {
    border-bottom: 0;
}

.ch-celebration__time {
    font-family: var(--ch-serif);
    font-size: 1.24rem;
    color: var(--ch-blue);
}

.ch-celebration__type {
    font-weight: 600;
}

.ch-celebration__label,
.ch-celebration__place,
.ch-celebration__note {
    color: var(--ch-ink-soft);
    font-size: 0.92rem;
}

.ch-celebration__place a {
    color: var(--ch-blue);
    font-weight: 500;
}

.ch-celebration.is-exception .ch-celebration__time {
    color: var(--ch-gold);
}

.ch-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(154, 120, 38, 0.14);
    color: var(--ch-gold-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    vertical-align: 1px;
}

.ch-timetable {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
}

.ch-timetable__day {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(20, 33, 58, 0.07);
}

.ch-timetable__day:last-child {
    border-bottom: 0;
}

.ch-timetable dt {
    font-weight: 600;
    color: var(--ch-blue);
}

.ch-timetable dd ul {
    display: grid;
    gap: 7px;
}

.ch-timetable li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.ch-timetable__time {
    font-family: var(--ch-serif);
    font-size: 1.06rem;
    min-width: 46px;
}

.ch-timetable__label {
    color: var(--ch-ink-soft);
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------ Cartes */

.ch-church-grid,
.ch-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 20px;
}

.ch-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ch-church-card,
.ch-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--ch-radius-md);
    border: 1px solid var(--ch-line);
    background: #fff;
    box-shadow: var(--ch-shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ch-church-card:hover,
.ch-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ch-shadow-md);
}

.ch-church-card__media,
.ch-news-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    background: linear-gradient(150deg, #e9e2d5, #dfd6c5);
    overflow: hidden;
}

.ch-church-card__media img,
.ch-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ch-church-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.ch-church-card__placeholder svg {
    width: 62%;
    height: auto;
    fill: rgba(27, 59, 111, 0.28);
}

.ch-news-card__placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 60% at 30% 20%, rgba(217, 185, 92, 0.3), transparent 70%),
        linear-gradient(150deg, #e4dccd, #d7cbb6);
}

.ch-church-card__body,
.ch-news-card__body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 20px 20px 22px;
    flex: 1 1 auto;
}

.ch-church-card__body h3,
.ch-news-card__body h3 {
    font-size: 1.2rem;
}

.ch-church-card__body h3 a:hover,
.ch-news-card__body h3 a:hover {
    color: var(--ch-blue);
}

.ch-church-card__place,
.ch-church-card__parish {
    display: flex;
    gap: 8px;
    color: var(--ch-ink-soft);
    font-size: 0.92rem;
}

.ch-church-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ch-church-card__tags span {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(154, 120, 38, 0.12);
    color: var(--ch-gold-ink);
    font-size: 0.74rem;
    font-weight: 600;
}

.ch-church-card .ch-text-link,
.ch-news-card .ch-text-link {
    margin-top: auto;
    align-self: flex-start;
}

.ch-news-card__origin {
    color: var(--ch-gold-ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ch-news-card__excerpt {
    color: var(--ch-ink-soft);
    font-size: 0.94rem;
}

.ch-news-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--ch-ink-soft);
    font-size: 0.86rem;
}

.ch-event-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-radius: var(--ch-radius-md);
    border: 1px solid var(--ch-line);
    background: #fff;
    box-shadow: var(--ch-shadow-sm);
}

.ch-event-card__date {
    display: grid;
    place-content: center;
    justify-items: center;
    height: 72px;
    border-radius: var(--ch-radius-sm);
    background: linear-gradient(160deg, var(--ch-blue-soft), var(--ch-blue));
    color: #fdfaf4;
}

.ch-event-card__date span {
    font-family: var(--ch-serif);
    font-size: 1.5rem;
    line-height: 1;
}

.ch-event-card__date small {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
}

.ch-event-card__category {
    color: var(--ch-gold-ink);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ch-event-card__body h3 {
    margin-top: 5px;
    font-size: 1.12rem;
}

.ch-event-card__summary,
.ch-event-card__place {
    margin-top: 7px;
    color: var(--ch-ink-soft);
    font-size: 0.9rem;
}

.ch-event-card__place a {
    color: var(--ch-blue);
    font-weight: 500;
}

/* -------------------------------------------------------------- Services */

.ch-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
    gap: 18px;
}

.ch-service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px 24px;
    border-radius: var(--ch-radius-md);
    border: 1px solid var(--ch-line);
    background: #fff;
    box-shadow: var(--ch-shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ch-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ch-shadow-md);
}

.ch-service-card__symbol {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(74, 111, 165, 0.16), rgba(74, 111, 165, 0.05));
    font-size: 1.5rem;
    line-height: 1;
}

.ch-service-card h3 {
    font-size: 1.22rem;
}

.ch-service-card p {
    color: var(--ch-ink-soft);
    font-size: 0.94rem;
}

.ch-service-card .ch-button {
    margin-top: auto;
    align-self: flex-start;
}

.ch-services__disclaimer {
    margin-top: 22px;
    color: var(--ch-ink-soft);
    font-size: 0.9rem;
    max-width: 64ch;
}

/* ---------------------------------------------------------- Pages internes */

.ch-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 6vw, 76px) 0 clamp(34px, 4.6vw, 56px);
    background: linear-gradient(165deg, var(--ch-night) 0%, #14294a 62%, #1a3358 100%);
    color: var(--ch-stone);
}

.ch-page-hero__scene {
    position: absolute;
    inset: 0;
}

.ch-page-hero__beam {
    position: absolute;
    top: -40%;
    right: 12%;
    width: clamp(180px, 26vw, 380px);
    height: 180%;
    background: linear-gradient(184deg, rgba(255, 231, 190, 0.3), rgba(255, 217, 160, 0) 74%);
    transform: skewX(-14deg);
    filter: blur(30px);
    mix-blend-mode: screen;
    animation: ch-beam 26s ease-in-out infinite alternate;
}

.ch-page-hero .ch-container {
    position: relative;
    z-index: 1;
}

.ch-page-hero h1 {
    margin-top: 16px;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.ch-page-hero h1 em {
    font-style: normal;
    color: var(--ch-gold-bright);
}

.ch-page-hero__meta {
    margin-top: 14px;
    color: rgba(236, 233, 226, 0.82);
    max-width: 58ch;
}

.ch-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ch-ink-soft);
    font-size: 0.86rem;
}

.ch-page-hero .ch-breadcrumb,
.ch-breadcrumb--light {
    color: rgba(236, 233, 226, 0.7);
}

.ch-page-hero .ch-breadcrumb a:hover,
.ch-breadcrumb--light a:hover {
    color: var(--ch-gold-bright);
}

/* ------------------------------------------------------------ Fiche église */

.ch-church-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(300px, 42vw, 480px);
    display: flex;
    align-items: flex-end;
    padding: clamp(52px, 7vw, 88px) 0 clamp(30px, 4vw, 46px);
    background: linear-gradient(160deg, var(--ch-night) 0%, #15294a 70%, #1c3a63 100%);
    color: var(--ch-stone);
}

.ch-church-hero__media {
    position: absolute;
    inset: 0;
}

.ch-church-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* L'illustration commune a son sujet à droite : on cadre dessus plutôt que
   sur le centre, qui n'est qu'une nef sombre. */
.ch-church-hero__media.is-default img {
    object-position: 66% 42%;
}

.ch-church-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(9, 18, 35, 0.94) 0%, rgba(9, 18, 35, 0.78) 42%, rgba(9, 18, 35, 0.32) 74%, rgba(9, 18, 35, 0.16) 100%),
        linear-gradient(180deg, rgba(9, 18, 35, 0.5) 0%, rgba(9, 18, 35, 0) 40%);
}

.ch-church-hero:not(.has-media) .ch-church-hero__veil {
    background:
        radial-gradient(60% 70% at 82% 24%, rgba(74, 111, 165, 0.34), transparent 68%),
        linear-gradient(180deg, rgba(9, 18, 35, 0.42) 0%, rgba(9, 18, 35, 0) 46%);
}

.ch-church-hero__content {
    position: relative;
    z-index: 1;
}

.ch-church-hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    max-width: 20ch;
}

.ch-church-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 16px;
}

.ch-church-hero__meta span {
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--ch-line-light);
    background: rgba(250, 248, 244, 0.1);
    font-size: 0.84rem;
    backdrop-filter: blur(6px);
}

.ch-church-hero__address {
    margin-top: 14px;
    color: rgba(236, 233, 226, 0.86);
    font-size: 0.96rem;
}

.ch-church-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.ch-practical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 18px;
}

.ch-practical__item {
    padding: 22px;
    border-radius: var(--ch-radius-md);
    border: 1px solid var(--ch-line);
    background: #fff;
}

.ch-practical__item h3 {
    font-size: 1.06rem;
    margin-bottom: 10px;
}

.ch-practical__item p {
    color: var(--ch-ink-soft);
    font-size: 0.94rem;
}

.ch-contact-list {
    display: grid;
    gap: 9px;
    color: var(--ch-ink-soft);
    font-size: 0.94rem;
}

.ch-contact-list li {
    display: flex;
    gap: 9px;
    align-items: baseline;
}

.ch-contact-list a {
    color: var(--ch-blue);
    font-weight: 500;
    border-bottom: 1px solid rgba(27, 59, 111, 0.25);
}

/* --------------------------------------------------------------- Patrimoine */

.ch-section--heritage {
    position: relative;
    overflow: hidden;
    background: linear-gradient(168deg, var(--ch-night-deep) 0%, var(--ch-night) 58%, #16294a 100%);
    color: var(--ch-stone);
}

.ch-heritage__aura {
    position: absolute;
    top: -22%;
    right: 6%;
    width: min(46vw, 520px);
    height: min(46vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 224, 175, 0.16), transparent 68%);
    animation: ch-aura 18s ease-in-out infinite;
    pointer-events: none;
}

.ch-heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 20px;
}

.ch-heritage-card {
    overflow: hidden;
    border-radius: var(--ch-radius-md);
    border: 1px solid var(--ch-line-light);
    background: rgba(250, 248, 244, 0.05);
    backdrop-filter: blur(4px);
}

.ch-heritage-card__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.ch-heritage-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ch-heritage-card__body {
    padding: 20px;
}

.ch-heritage-card__body h3 {
    font-size: 1.18rem;
    color: var(--ch-gold-bright);
}

.ch-heritage-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    color: rgba(236, 233, 226, 0.72);
    font-size: 0.84rem;
}

.ch-heritage-card__text {
    margin-top: 12px;
    color: rgba(236, 233, 226, 0.8);
    font-size: 0.93rem;
}

.ch-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 14px;
    margin-top: clamp(26px, 3.4vw, 40px);
}

.ch-gallery li {
    overflow: hidden;
    border-radius: var(--ch-radius-sm);
    border: 1px solid var(--ch-line-light);
}

.ch-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* -------------------------------------------------------------- Article */

.ch-article__media {
    margin-top: clamp(-40px, -4vw, -24px);
    position: relative;
    z-index: 2;
}

.ch-article__media img {
    width: 100%;
    border-radius: var(--ch-radius-md);
    box-shadow: var(--ch-shadow-md);
}

.ch-article__excerpt {
    font-family: var(--ch-serif);
    font-size: 1.2rem;
    color: var(--ch-ink);
}

.ch-article__back {
    margin-top: 10px;
}

/* -------------------------------------------------------------- États vides */

.ch-empty {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: clamp(34px, 5vw, 56px) 24px;
    border-radius: var(--ch-radius-lg);
    border: 1px dashed rgba(20, 33, 58, 0.2);
    background: rgba(255, 255, 255, 0.7);
}

.ch-empty--compact {
    padding: clamp(24px, 3.4vw, 34px) 20px;
    border-radius: var(--ch-radius-md);
}

.ch-empty__icon svg {
    width: 46px;
    height: 46px;
    stroke: rgba(27, 59, 111, 0.4);
}

.ch-empty__title {
    font-family: var(--ch-serif);
    font-size: 1.28rem;
    color: var(--ch-ink);
}

.ch-empty__text {
    max-width: 54ch;
    color: var(--ch-ink-soft);
}

.ch-empty .ch-button--ghost {
    border-color: rgba(27, 59, 111, 0.28);
    background: #fff;
    color: var(--ch-blue);
}

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

.ch-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
}

.ch-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 3vw, 28px);
    padding: clamp(22px, 3.4vw, 36px);
    border-radius: var(--ch-radius-lg);
    border: 1px solid var(--ch-line);
    background: #fff;
    box-shadow: var(--ch-shadow-sm);
}

.ch-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.ch-fieldset legend {
    padding: 0;
    margin-bottom: 4px;
    color: var(--ch-gold-ink);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ch-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.ch-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.93rem;
}

.ch-field__optional {
    color: var(--ch-ink-soft);
    font-weight: 400;
    font-size: 0.85rem;
}

.ch-field input,
.ch-field select,
.ch-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--ch-radius-sm);
    border: 1px solid rgba(20, 33, 58, 0.18);
    background: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ch-field textarea {
    min-height: 128px;
    resize: vertical;
}

.ch-field input:focus,
.ch-field select:focus,
.ch-field textarea:focus {
    outline: none;
    border-color: var(--ch-blue-soft);
    box-shadow: 0 0 0 3px rgba(38, 81, 143, 0.16);
}

.ch-field__help {
    margin-top: 6px;
    color: var(--ch-ink-soft);
    font-size: 0.85rem;
}

.ch-field__error {
    margin-top: 6px;
    color: #9d2f2f;
    font-size: 0.87rem;
    font-weight: 500;
}

.ch-form__errors {
    padding: 16px 18px;
    border-radius: var(--ch-radius-sm);
    border: 1px solid rgba(157, 47, 47, 0.28);
    background: rgba(157, 47, 47, 0.06);
    color: #7c2626;
}

.ch-form__errors ul {
    margin-top: 8px;
    display: grid;
    gap: 4px;
    list-style: disc;
    padding-left: 20px;
}

.ch-form-aside {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: clamp(22px, 3vw, 30px);
    border-radius: var(--ch-radius-lg);
    background: var(--ch-ivory);
    border: 1px solid var(--ch-line);
    color: var(--ch-ink-soft);
    font-size: 0.94rem;
}

.ch-form-aside h2 {
    font-size: 1.1rem;
    color: var(--ch-ink);
}

.ch-form-aside h2 + p,
.ch-form-aside ul + h2 {
    margin-top: 2px;
}

.ch-form-aside__list {
    display: grid;
    gap: 10px;
}

.ch-form-aside__list li {
    padding-left: 18px;
    position: relative;
}

.ch-form-aside__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ch-gold-ink);
}

.ch-form-aside strong {
    color: var(--ch-ink);
}

/* ------------------------------------------------------------- Confirmation */

.ch-page-hero--confirm,
.ch-page-hero--form {
    padding-bottom: clamp(40px, 5vw, 64px);
}

.ch-receipt {
    max-width: 62ch;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: clamp(26px, 4vw, 44px);
    border-radius: var(--ch-radius-lg);
    border: 1px solid var(--ch-line);
    background: #fff;
    box-shadow: var(--ch-shadow-md);
}

.ch-receipt__lead {
    font-family: var(--ch-serif);
    font-size: 1.24rem;
}

.ch-receipt__reference {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: var(--ch-radius-sm);
    background: var(--ch-ivory);
    color: var(--ch-ink-soft);
    font-size: 0.84rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ch-receipt__reference strong {
    font-family: var(--ch-serif);
    font-size: 1.5rem;
    letter-spacing: 0.16em;
    color: var(--ch-blue);
    text-transform: none;
}

.ch-receipt__steps {
    display: grid;
    gap: 10px;
}

.ch-receipt__steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ch-ink-soft);
}

.ch-receipt__steps span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(27, 59, 111, 0.1);
    color: var(--ch-blue);
    font-size: 0.84rem;
    font-weight: 700;
}

.ch-receipt__note {
    color: var(--ch-ink-soft);
    font-size: 0.92rem;
}

/* ----------------------------------------------------------------- Footer */

.ch-footer {
    position: relative;
    padding: clamp(44px, 6vw, 70px) 0 28px;
    background: var(--ch-night);
    color: rgba(236, 233, 226, 0.78);
    border-top: 4px solid var(--ch-gold);
}

.ch-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
}

.ch-footer strong {
    display: block;
    font-family: var(--ch-serif);
    font-size: 1.16rem;
    color: var(--ch-stone);
}

.ch-footer p {
    margin-top: 9px;
    font-size: 0.92rem;
    max-width: 46ch;
}

.ch-footer__note {
    color: rgba(236, 233, 226, 0.7);
}

.ch-footer nav {
    display: grid;
    gap: 8px;
    align-content: start;
}

.ch-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ch-gold-bright);
    font-weight: 600;
    font-size: 0.94rem;
}

.ch-footer__legal {
    width: min(100% - 40px, var(--ch-container));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--ch-line-light);
    text-align: center;
    color: rgba(236, 233, 226, 0.62);
    font-size: 0.82rem;
    max-width: none;
}

/* -------------------------------------------------------------- Animations */

/* Rai de lumière : dérive très lente et respiration d'intensité. */
/* Flamme : oscillation crédible, amplitude volontairement faible. */
/* Lumière du chœur et vitraux : respiration très lente. */
@keyframes ch-flame-flicker {
    0% {
        opacity: 0.62;
        transform: translateY(0) scale(0.9);
    }

    22% {
        opacity: 1;
        transform: translateY(-1px) scale(1.07);
    }

    46% {
        opacity: 0.78;
        transform: translateX(1px) scale(0.96);
    }

    72% {
        opacity: 0.96;
        transform: translateY(-2px) scale(1.04);
    }

    100% {
        opacity: 0.84;
        transform: translateY(-1px) scale(1);
    }
}

@keyframes ch-warm-breath {
    0% { opacity: 0.16; }
    45% { opacity: 0.32; }
    100% { opacity: 0.22; }
}

@keyframes ch-light-breath {
    0% { opacity: 0.44; }
    50% { opacity: 0.58; }
    100% { opacity: 0.47; }
}

@keyframes ch-dust {
    0%, 100% {
        opacity: 0.16;
        transform: translate3d(0, 0, 0);
    }
    50% {
        opacity: 0.52;
        transform: translate3d(-12px, -26px, 0);
    }
}

@keyframes ch-aura {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Sortie d'écran : les scènes sont suspendues, pas seulement invisibles. */
.ch-hero.is-idle .ch-flame,
.ch-hero.is-idle .ch-flames__warm,
.ch-hero.is-idle .ch-hero__glow,
.ch-hero.is-idle .ch-dust i,
.ch-section--heritage.is-idle .ch-heritage__aura {
    animation-play-state: paused;
}

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

@media (min-width: 900px) {
    /* L'action à gauche, les communes déjà référencées à droite. */
    .ch-search-card {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        column-gap: clamp(30px, 3.6vw, 52px);
    }

    .ch-search-card__aside {
        padding-left: clamp(26px, 2.8vw, 40px);
        border-left: 1px solid var(--ch-line);
    }
}

@media (min-width: 760px) {
    .ch-heading {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: end;
    }

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

    .ch-footer__inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
        gap: 34px;
    }
}


@media (min-width: 1000px) {
    .ch-two-columns {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ch-form-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
        align-items: start;
    }
}

@media (max-width: 1023px) {
    .ch-menu-button {
        display: inline-flex;
    }

    .ch-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        border-radius: var(--ch-radius-md);
        border: 1px solid var(--ch-line);
        background: #fff;
        box-shadow: var(--ch-shadow-md);
    }

    .ch-nav.is-open {
        display: flex;
    }

    .ch-nav a {
        padding: 13px 14px;
        border-radius: 10px;
    }

    .ch-nav a[aria-current="page"]::after {
        display: none;
    }

    .ch-nav__back {
        margin-left: 0;
        margin-top: 4px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 76px;
    }

    .ch-container {
        width: min(100% - 32px, var(--ch-container));
    }

    .ch-hero {
        min-height: auto;
        align-items: flex-start;
        padding: clamp(40px, 9vw, 56px) 0 clamp(90px, 18vw, 130px);
    }

    .ch-hero__content > * {
        max-width: none;
    }

    /* Téléphone : le cadrage ne peut pas tout montrer. Priorité au texte, puis
       à la verrière. Le hero se lit alors de haut en bas — chevet lumineux,
       puis contenu — au lieu de gauche à droite. */
    .ch-hero {
        align-items: flex-start;
        padding: clamp(178px, 47vw, 268px) 0 clamp(80px, 16vw, 120px);
    }

    /* Zoom uniforme de 118 % : largeur et hauteur suivent la même échelle, donc
       le rapport de la photo est conservé et les repères internes restent
       valides. Le cadre est ensuite calé pour amener la rosace — 71,8 % / 18,5 %
       de l'image — en haut de l'écran. */
    .ch-hero__frame {
        left: 50%;
        right: auto;
        top: 17%;
        width: max(118cqw, 209.667cqh);
        height: max(66.410cqw, 118cqh);
        translate: -71.8% -18.5%;
    }

    .ch-hero__veil {
        background:
            linear-gradient(180deg, rgba(6, 10, 22, 0.5) 0%, rgba(6, 10, 22, 0.1) 14%, rgba(6, 10, 22, 0.22) 28%, rgba(6, 10, 22, 0.74) 44%, rgba(6, 10, 22, 0.93) 58%, rgba(6, 10, 22, 0.97) 100%);
    }

    /* Les cierges sortent du cadrage : leurs halos disparaissent avec eux.
       Jamais de flamme flottante sans son cierge. */
    .ch-flames {
        display: none;
    }

    /* Moins de particules sur téléphone. */
    .ch-dust i:nth-child(n + 7) {
        display: none;
    }

    /* Fiche église : le texte est en bas du hero, le voile devient vertical
       pour que l'image reste visible au-dessus au lieu d'être noyée. */
    .ch-church-hero__veil {
        background:
            linear-gradient(180deg, rgba(9, 18, 35, 0.62) 0%, rgba(9, 18, 35, 0.28) 22%, rgba(9, 18, 35, 0.44) 46%, rgba(9, 18, 35, 0.84) 70%, rgba(9, 18, 35, 0.94) 100%);
    }

    .ch-church-hero__media.is-default img {
        object-position: 72% 44%;
    }

    .ch-church-hero {
        min-height: clamp(340px, 78vw, 460px);
    }

    .ch-section--search {
        margin-top: clamp(-56px, -12vw, -34px);
    }

    .ch-search-card {
        padding: 24px 20px 28px;
    }

    /* Le champ garde une largeur utile : le bouton passe sous la saisie. */
    .ch-city-search__field {
        flex-wrap: wrap;
        border-radius: var(--ch-radius-md);
        padding: 10px;
        gap: 8px;
    }

    .ch-city-search__icon {
        padding-left: 6px;
    }

    .ch-city-search input {
        flex: 1 1 140px;
    }

    /* Sur téléphone le bouton prend toute la largeur : cible plus sûre. */
    .ch-city-search__field .ch-button {
        flex: 1 1 100%;
        justify-content: center;
    }

    .ch-button--search {
        flex: 1 1 100%;
    }

    .ch-celebration {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }

    .ch-timetable__day {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ch-city-suggestions > div {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
    }

    .ch-church-hero__actions .ch-button {
        flex: 1 1 100%;
    }

    .ch-event-card {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 13px;
        padding: 16px;
    }

    .ch-event-card__date {
        height: 60px;
    }
}

@media (max-width: 420px) {
    .ch-brand__text small {
        display: none;
    }

    .ch-church-grid,
    .ch-news-grid,
    .ch-event-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------ Mouvement réduit */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ch-flame,
    .ch-flames__warm,
    .ch-hero__glow,
    .ch-dust i,
    .ch-heritage__aura,
    .ch-page-hero__beam {
        animation: none !important;
    }

    /* La photographie, les halos et le vitrail restent là, simplement immobiles. */
    .ch-flame {
        opacity: 0.9;
    }

    .ch-flames__warm {
        opacity: 0.24;
    }

    .ch-hero__glow {
        opacity: 0.5;
    }

    .ch-page-hero__beam {
        opacity: 0.9;
    }

    .ch-dust i {
        opacity: 0.3;
    }

    .ch-button:hover,
    .ch-church-card:hover,
    .ch-news-card:hover,
    .ch-service-card:hover,
    .ch-city-suggestions a:hover {
        transform: none;
    }

    * {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------- Rattachement paroissial */

.ch-section--parish {
    padding-bottom: clamp(56px, 8vw, 96px);
}

.ch-parish-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3vw, 36px);
    padding: clamp(26px, 4vw, 44px);
    border-radius: var(--ch-radius-lg);
    border: 1px solid var(--ch-line);
    background:
        radial-gradient(80% 100% at 0% 0%, rgba(74, 111, 165, 0.07), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
    box-shadow: var(--ch-shadow-md);
}

.ch-parish-panel__intro h2 {
    margin-top: 10px;
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
}

.ch-parish-panel__intro p {
    margin-top: 12px;
    color: var(--ch-ink-soft);
    max-width: 52ch;
}

.ch-parish-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ch-parish-panel__list > span {
    display: block;
    margin-bottom: 12px;
    color: var(--ch-ink-soft);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ch-parish-panel__list ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ch-parish-panel__list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 14px;
    min-height: 62px;
    padding: 13px 18px;
    border-radius: var(--ch-radius-sm);
    border: 1px solid var(--ch-line);
    background: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ch-parish-panel__list a strong {
    grid-column: 1;
    font-weight: 600;
}

.ch-parish-panel__list a small {
    grid-column: 1;
    color: var(--ch-ink-soft);
    font-size: 0.8rem;
}

.ch-parish-panel__list a span {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--ch-blue);
}

.ch-parish-panel__list a:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 59, 111, 0.35);
    box-shadow: var(--ch-shadow-sm);
}

@media (min-width: 900px) {
    .ch-parish-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        align-items: start;
        column-gap: clamp(30px, 3.6vw, 52px);
    }
}

/* ------------------------------------------ Raccourci vers l'espace paroissial */

.ch-nav__parish {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(217, 185, 92, 0.42);
    background: rgba(217, 185, 92, 0.13);
    color: var(--ch-gold-ink);
    font-weight: 600;
}

.ch-nav__parish:hover,
.ch-nav__parish[aria-current='page'] {
    border-color: rgba(217, 185, 92, 0.7);
    background: rgba(217, 185, 92, 0.22);
}

/* Rappel discret sur la fiche publique, pour la personne qui gère l'église. */
.ch-manage-hint {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 18px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(250, 248, 244, 0.24);
    background: rgba(250, 248, 244, 0.1);
    color: rgba(240, 238, 232, 0.92);
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

.ch-manage-hint__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(250, 248, 244, 0.96);
    color: var(--ch-night);
    font-weight: 600;
    text-decoration: none;
}

.ch-manage-hint__link:hover {
    background: #fff;
}
