* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #e7ebd7;
    color: #333;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

header {
    position: relative;
    color: #fff;
    min-height: clamp(320px, 45vh, 500px);
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 0;
    background: linear-gradient(rgba(53, 75, 32, 0.55), rgba(53, 75, 32, 0.55)), url("header-image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    text-align: center;
}

.header-overlay {
    position: absolute;
    inset: 0;
    
}

header .header-content {
    position: relative;
    z-index: 1;
    padding: 4rem 1rem 3rem;
}

header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 3vw, 3.2rem);
}

.header-verse {
    margin: 0 auto 1.5rem;
    max-width: 700px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f9f7ef;
}

.welcome-section {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.home-card {
    background: linear-gradient(180deg, #f8fbf3, #edf4df);
    border: 1px solid rgba(53, 75, 32, 0.12);
    border-radius: 1rem;
    padding: 1.4rem;
}

.home-icon {
    display: inline-grid;
    place-items: center;
    width: 3.8rem;
    height: 3.8rem;
    min-width: 3.8rem;
    min-height: 3.8rem;
    border-radius: 50%;
    background: #354b20;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

.home-card h3 {
    margin: 0;
    color: #2f4620;
}

.home-card p {
    margin-bottom: 0;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.3rem;
}

.info-card {
    padding: 1.2rem;
    border: 1px solid rgba(53, 75, 32, 0.16);
    border-radius: 0.8rem;
    background: #f8fbf4;
}

.info-card h3 {
    margin: 0 0 0.5rem;
    color: #2f4620;
}

.info-card p {
    margin: 0;
}

.info-card-wide {
    grid-column: span 2;
}

.route-link,
.organizer-phone {
    display: inline-block;
    margin-top: 0.8rem;
    color: #23432e;
    font-weight: 700;
}

.organizer-card {
    background: #eef3df;
}

.organizer-phone {
    display: block;
    font-size: 1.2rem;
    text-decoration: none;
}

.privacy-list {
    display: grid;
    gap: 0.7rem;
    padding-left: 1.3rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

nav a {
    flex: 1 1 9rem;
    max-width: 11rem;
    text-align: center;
    color: #f1f0e6;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

nav a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

nav a:focus-visible,
button:focus-visible,
textarea:focus-visible {
    outline: 3px solid #f5c518;
    outline-offset: 3px;
}

.section {
    background: #ffffff;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(31, 68, 40, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.section + .section {
    margin-top: 2.5rem;
}

.section h2 {
    margin-top: 0;
    color: #2f4620;
    font-size: clamp(1.75rem, 2.3vw, 2.4rem);
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 0.65rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4.5rem;
    height: 4px;
    background: #354b20;
    border-radius: 999px;
}

.section p,
.section li,
.section td,
.section th,
.section label {
    color: #3d4b38;
    line-height: 1.75;
}

.section fieldset {
    border: 1px solid rgba(53, 75, 32, 0.18);
    padding: 1.2rem 1.3rem;
    border-radius: 1rem;
    background: #f8fbf4;
}

.section legend {
    font-weight: 700;
    color: #23432e;
    padding: 0 0.3rem;
}

.section table {
    background: #fbfbfb;
    border: 1px solid rgba(31, 68, 40, 0.08);
}

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

.page-card {
    display: block;
    padding: 1rem;
    background: #eef3df;
    color: #20331c;
    text-decoration: none;
    border-radius: 0.7rem;
    border: 1px solid rgba(53, 75, 32, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.page-card:hover {
    transform: translateY(-2px);
    background: #e3ecce;
}

ul {
    padding-left: 1.3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

thead {
    background: #e4ecd8;
}

th,
td {
    padding: 0.9rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid #dde2d0;
}

.upload-form,
.rating-form {
    display: grid;
    gap: 1rem;
}

label {
    font-weight: 600;
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 400;
}

.privacy-consent input {
    margin-top: 0.45rem;
    accent-color: #354b20;
}

input[type="file"],
textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #c7c9bd;
    border-radius: 0.5rem;
    background: #fafafa;
}

textarea {
    resize: vertical;
}

iframe[src*="drive.google.com"] {
    display: block;
    border: 0;
    overflow: hidden;
}

iframe[src*="drive.google.com"]::-webkit-scrollbar {
    display: none;
}

iframe[src*="drive.google.com"] {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

button {
    width: fit-content;
    background: #354b20;
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.cta-row {
    margin-top: 1.2rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(18, 140, 126, 0.28);
    background: linear-gradient(135deg, #22c55e, #0f766e);
}

.btn-whatsapp svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

button:hover {
    background: #2a3d18;
}

.comments-list {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: #f8fbf4;
    border: 1px solid rgba(53, 75, 32, 0.12);
    border-radius: 1rem;
}

.comments-list h3 {
    margin: 0 0 0.8rem;
    color: #2f4620;
}

.comment-item {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(53, 75, 32, 0.12);
    color: #3d4b38;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-rating {
    color: #f4b400;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.empty-comments {
    margin: 0;
    color: #6c7a64;
    font-style: italic;
}

.submit-status {
    margin-top: 0.6rem;
    font-weight: 600;
}

.stars {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stars label {
    font-weight: normal;
}

.note-form {
    font-size: 0.95rem;
    color: #5c5b55;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: #5c5b55;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 420px;
}

iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

@media (max-width: 900px) {
    .container {
        width: min(100%, calc(100% - 1.5rem));
    }

    .section {
        padding: 1.4rem;
    }

    .home-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .page-links {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 720px) {
    header {
        min-height: 320px;
    }

    header .header-content {
        padding: 4.2rem 0.5rem 2rem;
    }

    nav {
        gap: 0.5rem;
    }

    nav a {
        flex: 1 1 calc(50% - 0.25rem);
        max-width: none;
    }

    .section {
        padding: 1.1rem;
        margin: 1.25rem 0;
    }

    .rating-card {
        flex-direction: column;
    }

    .rating-left {
        flex: unset;
    }

    .bar-count {
        width: 58px;
        font-size: 0.8rem;
    }

    .info-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    header {
        min-height: 280px;
    }

    nav a {
        flex-basis: 100%;
    }

    .section h2 {
        font-size: clamp(1.45rem, 7vw, 1.75rem);
    }

    .site-logo {
        width: 92px;
        top: 0.8rem;
        left: 0.8rem;
    }
}

/* Rating card styles (Play Store inspired) */
.rating-section .rating-card{
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.8rem;
    max-width: 900px;
    margin: 0 auto;
}
.rating-left{
    flex: 0 0 220px;
    text-align: center;
}
.average{
    display:flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
}
.avg-number{
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a12;
}
.avg-scale{color:#567644}
.avg-stars{margin-top:0.5rem; display:flex; justify-content:center; font-size:2.2rem; line-height:1; letter-spacing:0.08em}
.rating-star.is-filled{color:#f5c518}
.rating-star.is-empty{color:#ddd}
.rating-star[class*="is-partial-"]{position:relative; display:inline-block; color:#ddd}
.rating-star[class*="is-partial-"]::before{content:'★'; position:absolute; top:0; left:0; overflow:hidden; color:#f5c518}
.rating-star.is-partial-10::before{width:10%}
.rating-star.is-partial-20::before{width:20%}
.rating-star.is-partial-30::before{width:30%}
.rating-star.is-partial-40::before{width:40%}
.rating-star.is-partial-50::before{width:50%}
.rating-star.is-partial-60::before{width:60%}
.rating-star.is-partial-70::before{width:70%}
.rating-star.is-partial-80::before{width:80%}
.rating-star.is-partial-90::before{width:90%}
.star-shell{position:relative; display:inline-block; font-size:2rem; line-height:2;}
.star-empty{color:#ddd}
.star-fill{position:absolute; left:0; top:0; white-space:nowrap; overflow:hidden; color:#f5c518}
.reviews-count{margin-top:0.6rem; color:#4b5b3a; font-weight: 200;}

.rating-right{flex:1}
.bars{display:flex; flex-direction:column; gap:1rem}
.bar-row{display:flex; align-items:center; gap:0.6rem}
.bar-label{width:36px; color:#5b5b5b}
.bar-track{flex:1; background:#eee; height:12px; border-radius:8px; overflow:hidden}
.bar-fill{height:100%; background:linear-gradient(90deg,#f5c518,#f1a10a)}
.bar-count{width:80px; text-align:right; color:#5b5b5b}

.interactive-stars{display:flex; justify-content:center; gap:10px; margin:0.6rem 0}
.interactive-stars .star{font-size:2.6rem; width:3rem; height:3rem; background:none; border:none; cursor:pointer; color:#ddd}
.interactive-stars .star.filled{color:#f5c518}

.form-actions{display:flex; gap:1rem; align-items:center; margin-top:0.6rem}
.auto-summary{color:#2f4620; font-weight:600}

@media (max-width:720px){
    .rating-card{flex-direction:column}
    .rating-left{flex:unset}
}

header{
    position: relative;
}

.site-logo{
    position: absolute;
    top: 1rem;
    left: 2rem;
    width: auto;
    max-width: 250px;
    height: auto;
    max-height: 120px;
    display: block;
    object-fit: contain;
    z-index: 2;
    filter: brightness(0) invert(1);
}

@media (max-width:720px){
    .site-logo{
        max-width: 140px;
        max-height: 90px;
    }

    /* On small screens, increase the header image so it's more visible */
    header {
        background-size: cover;
        background-position: center;
    }
}

.show-more-button {
    display: block;
    margin: 1rem auto 0;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}
/* Production and accessibility refinements */
.submit-status.is-success { color: #2e7d32; }
.submit-status.is-error { color: #c62828; }
.field-hint { color: #6c7a64; font-size: 0.9em; font-weight: 400; }
.bar-track { appearance: none; border: 0; overflow: hidden; }
.bar-track::-webkit-progress-bar { background: #eee; border-radius: 8px; }
.bar-track::-webkit-progress-value { background: linear-gradient(90deg, #f5c518, #f1a10a); border-radius: 8px; }
.bar-track::-moz-progress-bar { background: linear-gradient(90deg, #f5c518, #f1a10a); border-radius: 8px; }
.gallery-frame { overflow: hidden; border-radius: 0.75rem; }
.gallery-frame iframe { display: block; height: 600px; }

/* Forum des jeunes - visual redesign */
:root {
    --night: #13082b;
    --violet: #4b1ea2;
    --electric: #7c3aed;
    --coral: #ff5d56;
    --gold: #ffc928;
    --cream: #fff9ec;
    --mint: #d9ffe7;
    --ink: #24113f;
    --line: rgba(71, 24, 134, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 201, 40, 0.34), transparent 20rem),
        radial-gradient(circle at 95% 18%, rgba(255, 93, 86, 0.26), transparent 25rem),
        linear-gradient(150deg, #fbf5ff 0%, #fff8e8 48%, #eefdf4 100%);
}

.container {
    width: min(1160px, calc(100% - 2rem));
}

header {
    min-height: 410px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0 0 2.5rem 2.5rem;
    background: linear-gradient(rgba(53, 75, 32, 0.55), rgba(53, 75, 32, 0.55)), url("header-image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    box-shadow: 0 1.2rem 3rem rgba(36, 17, 63, 0.22);
}

header::before,
header::after {
    display: none;
}

header::before {
    width: 22rem;
    height: 22rem;
    top: -12rem;
    right: -5rem;
    background: rgba(255, 201, 40, 0.75);
}

header::after {
    width: 13rem;
    height: 13rem;
    bottom: -7rem;
    left: 18%;
    background: rgba(83, 255, 176, 0.32);
}

header .container,
header .container.header-content {
    position: relative;
    z-index: 1;
    padding: 6.5rem 1rem 2.5rem;
}

header h1 {
    max-width: 820px;
    margin: 0 auto 0.3rem;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(2.7rem, 5.8vw, 5.25rem);
    line-height: 0.92;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    text-shadow: 0.18rem 0.18rem 0 rgba(19, 8, 43, 0.35);
}

.site-logo {
    top: 1.2rem;
    left: clamp(1rem, 4vw, 3.5rem);
    max-width: 210px;
    max-height: 92px;
    filter: brightness(0) invert(1) drop-shadow(0 0.25rem 0.4rem rgba(19, 8, 43, 0.4));
}

.diocese-logo {
    position: absolute;
    z-index: 2;
    top: 0.65rem;
    right: clamp(-0.9rem, -0.5vw, -0.3rem);
    width: clamp(6rem, 9vw, 8.5rem);
    height: clamp(5rem, 7vw, 6.25rem);
    object-fit: cover;
    object-position: center;
    filter: invert(1) drop-shadow(0 0.15rem 0.28rem rgba(19, 8, 43, 0.5));
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1.1rem auto 0;
    padding: 0.48rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.hero-label span {
    color: #fff;
}

.page-flare {
    margin: 1rem auto 1.35rem;
    color: var(--gold);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-flare span {
    color: #fff;
}

header:not(.site-header) {
    min-height: 350px;
}

header:not(.site-header) h1 {
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
}

.header-verse {
    margin: 1.2rem auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    font-style: italic;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.25rem auto 1.5rem;
}

.hero-meta div {
    min-width: 130px;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.85rem;
    background: rgba(19, 8, 43, 0.3);
    color: #fff;
}

.hero-meta span,
.hero-meta strong {
    display: block;
}

.hero-meta span {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-meta strong {
    margin-top: 0.15rem;
    font-size: 0.96rem;
}

nav {
    gap: 0.55rem;
}

nav a {
    flex: 0 1 auto;
    max-width: none;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--gold);
    color: var(--night);
}

.home-main {
    padding-bottom: 1rem;
}

.section {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    padding: clamp(1.4rem, 4vw, 2.7rem);
    border: 1px solid var(--line);
    border-radius: 1.55rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1rem 2.5rem rgba(61, 22, 111, 0.1);
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5.5rem;
    height: 0.4rem;
    border-radius: 0 0 999px 0;
    background: linear-gradient(90deg, var(--coral), var(--gold));
}

.welcome-section {
    margin-top: -1.8rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 231, 0.94)),
        var(--cream);
}

.section h2 {
    max-width: 760px;
    color: var(--night);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(1.8rem, 3.25vw, 2.7rem);
    letter-spacing: 0.01em;
    line-height: 1;
}

.section h2::after {
    display: none;
}

.section p,
.section li,
.section td,
.section th,
.section label {
    color: #412760;
    font-size: 1rem;
    line-height: 1.72;
}

.home-grid,
.event-details-grid {
    gap: 1rem;
}

.home-card,
.info-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 1.1rem;
    box-shadow: 0 0.7rem 1.4rem rgba(62, 24, 112, 0.1);
}

.home-card {
    min-height: 100%;
    padding: 1.45rem;
    background: linear-gradient(145deg, #fff, #f0e9ff);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
    transform: translateY(-0.35rem) rotate(-0.3deg);
    box-shadow: 0 1.15rem 2rem rgba(62, 24, 112, 0.18);
}

.home-card:nth-child(2n) { background: linear-gradient(145deg, #fff9df, #ffe5ca); }
.home-card:nth-child(3n) { background: linear-gradient(145deg, #edfff3, #d7fff1); }

.home-icon {
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 1rem;
    border: 0.22rem solid #fff;
    background: linear-gradient(135deg, var(--violet), var(--coral));
    box-shadow: 0 0.5rem 0 var(--gold);
    font-size: 2.1rem;
}

.home-card h3,
.info-card h3 {
    color: var(--night);
    font-family: "Arial Black", Arial, sans-serif;
}

.info-card {
    padding: 1.35rem;
    background: linear-gradient(145deg, #fff, #f5efff);
}

.info-card:nth-child(2n) { background: linear-gradient(145deg, #fff6dc, #fff); }
.organizer-card { background: linear-gradient(135deg, #3f147f, #702cbd) !important; }
.organizer-card h3,
.organizer-card p,
.organizer-card .organizer-phone,
.organizer-card .route-link { color: #fff; }
.organizer-card .route-link { color: var(--gold); }

.route-link,
.organizer-phone {
    color: #6423ae;
    text-decoration-thickness: 0.14em;
    text-underline-offset: 0.18em;
}

.route-link:hover,
.organizer-phone:hover { color: var(--coral); }

.btn-whatsapp {
    padding: 1rem 1.35rem;
    background: linear-gradient(135deg, #26d366, #0c9b67);
    box-shadow: 0 0.55rem 0 #097452, 0 1rem 1.6rem rgba(12, 155, 103, 0.22);
}

.btn-whatsapp:hover {
    transform: translateY(-0.25rem);
    background: linear-gradient(135deg, #39e57d, #0c9b67);
    box-shadow: 0 0.75rem 0 #097452, 0 1rem 1.6rem rgba(12, 155, 103, 0.25);
}

.why-forum {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 201, 40, 0.18), transparent 20rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 241, 255, 0.95));
}

.why-forum-intro {
    max-width: 840px;
}

.section-kicker {
    margin: 0 0 0.55rem;
    color: var(--coral) !important;
    font-size: 0.78rem !important;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.why-lead {
    max-width: 780px;
    margin: 1.1rem 0 0;
    color: #38215e !important;
    font-size: clamp(1.05rem, 2vw, 1.22rem) !important;
    font-weight: 600;
}

.why-forum-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 1.25rem;
}

.why-benefit {
    position: relative;
    padding: 1.45rem 1.35rem 1.35rem;
    border: 1px solid rgba(118, 58, 237, 0.16);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 0.7rem 1.5rem rgba(62, 24, 112, 0.08);
}

.why-benefit:nth-child(2) {
    background: linear-gradient(145deg, #fff8df, #fff);
}

.why-benefit:nth-child(3) {
    background: linear-gradient(145deg, #edfff3, #fff);
}

.why-number {
    display: block;
    margin-bottom: 1rem;
    color: var(--coral);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.why-benefit h3,
.whatsapp-callout h3 {
    margin: 0;
    color: var(--night);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1.08rem;
}

.why-benefit p {
    margin: 0.75rem 0 0;
}

.why-forum-reassurance {
    margin: 0;
    padding: 1.15rem 1.3rem;
    border-radius: 1rem;
    background: linear-gradient(105deg, var(--night), var(--violet));
    box-shadow: 0 0.8rem 1.4rem rgba(30, 10, 66, 0.18);
}

.why-forum-reassurance p {
    margin: 0;
    color: #fff !important;
    font-size: 1.02rem !important;
}

.why-forum-reassurance strong {
    color: var(--gold);
}

.whatsapp-callout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 0.8fr);
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.3rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgba(12, 155, 103, 0.2);
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #e7fff0, #f8ffec);
}

.whatsapp-copy > p:not(.section-kicker) {
    margin: 0.75rem 0 0;
}

.whatsapp-benefits {
    display: grid;
    gap: 0.3rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.whatsapp-benefits li {
    position: relative;
    padding-left: 1.4rem;
}

.whatsapp-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #09915e;
    font-weight: 900;
}

.whatsapp-action {
    display: grid;
    justify-items: start;
    gap: 0.9rem;
}

.whatsapp-action .btn-whatsapp {
    text-align: center;
}

.whatsapp-action p {
    margin: 0;
    color: #347050 !important;
    font-size: 0.86rem !important;
}

@media (max-width: 820px) {
    .why-forum-grid,
    .whatsapp-callout {
        grid-template-columns: 1fr;
    }
}

.privacy-policy { background: linear-gradient(135deg, #201044, #4a1e8f); }
.privacy-policy h2,
.privacy-policy p,
.privacy-policy li { color: #fff; }
.privacy-policy strong { color: var(--gold); }
.privacy-policy a { color: var(--mint); font-weight: 700; }

table {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0.7rem 1.4rem rgba(62, 24, 112, 0.08);
}

thead { background: linear-gradient(90deg, var(--violet), #7c3aed); }
th { color: #fff !important; }
tbody tr:nth-child(even) { background: #f7f1ff; }
tbody tr:hover { background: #fff3ca; }

.rating-section .rating-card {
    border: 1px solid rgba(118, 58, 237, 0.15);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #fff8df, #f7f1ff);
}

.avg-number { color: var(--violet); }
.avg-stars { color: var(--gold); }
.reviews-count { color: #6b477e; font-weight: 700; }
.bar-track { background: #eadff8; }
.bar-track::-webkit-progress-bar { background: #eadff8; }
.bar-track::-webkit-progress-value,
.bar-track::-moz-progress-bar { background: linear-gradient(90deg, var(--coral), var(--gold)); }

.section fieldset,
.comments-list {
    border-color: rgba(118, 58, 237, 0.2);
    background: linear-gradient(135deg, #fff, #faf4ff);
}

textarea {
    border-color: rgba(118, 58, 237, 0.25);
    background: #fff;
}

textarea:focus {
    border-color: var(--coral);
    outline: 0.2rem solid rgba(255, 93, 86, 0.16);
}

.turnstile-container {
    min-height: 68px;
    margin: 1rem 0;
}

.turnstile-container p {
    margin: 0;
}

.turnstile-error {
    color: #a12c41 !important;
}

.spam-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.form-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

button,
.show-more-button {
    border: 0;
    background: linear-gradient(135deg, var(--coral), #f43f77);
    box-shadow: 0 0.3rem 0 #bd2f4f;
    font-weight: 800;
}

button:hover,
.show-more-button:hover {
    background: linear-gradient(135deg, #ff7069, #f43f77);
    transform: translateY(-0.12rem);
}

.interactive-stars .star { box-shadow: none; }
.interactive-stars .star:hover { background: transparent; }
.comment-item { border-color: rgba(118, 58, 237, 0.15); }
.comment-rating { color: #ffae00; }

footer {
    margin-top: 2rem;
    padding: 2.5rem 0;
    background: var(--night);
    color: rgba(255, 255, 255, 0.72);
}

footer p { margin: 0.25rem 0; }

@media (max-width: 720px) {
    header { min-height: 520px; border-radius: 0 0 1.7rem 1.7rem; }
    header:not(.site-header) { min-height: 390px; }
    header .container,
    header .container.header-content { padding: 6.9rem 0.3rem 2rem; }
    header h1 { font-size: clamp(2.55rem, 11.5vw, 3.9rem); }
    .site-logo { max-width: 130px; max-height: 65px; }
    .diocese-logo { top: 0.6rem; right: -0.5rem; width: 5.5rem; height: 4.5rem; }
    .hero-meta { gap: 0.45rem; }
    .hero-meta div { min-width: 94px; padding: 0.55rem 0.45rem; }
    nav a { flex: 1 1 calc(50% - 0.3rem); }
    .info-card-wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Galerie de souvenirs : les fichiers restent sur Google Drive, l'affichage est uniforme. */
.memories-section {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 201, 40, 0.2), transparent 19rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 238, 255, 0.94));
}

.memories-intro {
    max-width: 780px;
}

.memories-lead {
    margin: 1rem 0 0;
    font-size: clamp(1.02rem, 2vw, 1.15rem) !important;
}

.gallery-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.8rem 0 1.15rem;
}

.gallery-filter,
.gallery-dialog-close,
.gallery-share-link {
    border: 1px solid rgba(118, 58, 237, 0.22);
    border-radius: 999px;
    box-shadow: none;
}

.gallery-filter {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.88);
    color: var(--violet);
}

.gallery-filter:hover,
.gallery-filter:focus-visible,
.gallery-filter.is-active {
    background: var(--violet);
    color: #fff;
    transform: translateY(-0.1rem);
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-card {
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(118, 58, 237, 0.16);
    border-radius: 1.1rem;
    background: #fff;
    color: var(--ink);
    text-align: left;
    box-shadow: 0 0.7rem 1.3rem rgba(62, 24, 112, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-0.28rem);
    box-shadow: 0 1rem 1.8rem rgba(62, 24, 112, 0.19);
}

.gallery-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--night), var(--violet));
}

.gallery-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-card:hover .gallery-card-media img,
.gallery-card:focus-visible .gallery-card-media img {
    transform: scale(1.04);
}

.gallery-card-media-unavailable::after {
    content: "Aperçu indisponible";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.gallery-video-badge {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(19, 8, 43, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.gallery-card-content {
    padding: 1rem 1rem 1.1rem;
}

.gallery-card-type {
    color: var(--coral);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.gallery-card h3 {
    margin: 0.35rem 0 0;
    color: var(--night);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.25;
}

.gallery-card p {
    margin: 0.5rem 0 0;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
}

.gallery-empty {
    margin: 1rem 0 0;
    padding: 1.2rem;
    border: 1px dashed rgba(118, 58, 237, 0.35);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.memories-process {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.35rem;
    border-radius: 1.15rem;
    background: linear-gradient(120deg, #e7fff0, #fff9e4);
}

.memories-process h3 {
    margin: 0;
    color: var(--night);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1.05rem;
}

.memories-process ol {
    margin: 0;
    padding-left: 1.25rem;
}

.memories-process li {
    margin: 0.25rem 0;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
}

.gallery-share-link {
    display: inline-flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: #0c9b67;
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.gallery-share-link:hover,
.gallery-share-link:focus-visible {
    background: #087c52;
    color: #fff;
    transform: translateY(-0.1rem);
}

.gallery-dialog {
    width: min(920px, calc(100vw - 1.5rem));
    max-height: min(860px, calc(100vh - 1.5rem));
    overflow: auto;
    padding: 1.2rem;
    border: 0;
    border-radius: 1.25rem;
    background: #fffdf7;
    color: var(--ink);
    box-shadow: 0 1.5rem 4rem rgba(19, 8, 43, 0.4);
}

.gallery-dialog::backdrop {
    background: rgba(19, 8, 43, 0.75);
    backdrop-filter: blur(3px);
}

.gallery-dialog-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.gallery-dialog h2 {
    margin: 0;
    color: var(--night);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.gallery-dialog-close {
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    background: #f0eaff;
    color: var(--violet);
}

.gallery-dialog-close:hover,
.gallery-dialog-close:focus-visible {
    background: #e2d6ff;
    transform: none;
}

.gallery-dialog-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 0.85rem;
    background: var(--night);
}

.gallery-dialog-media iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.gallery-dialog-description {
    margin: 0.9rem 0 0;
}

@media (max-width: 760px) {
    .memories-process {
        grid-template-columns: 1fr;
    }

    .gallery-share-link {
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .memories-grid {
        grid-template-columns: 1fr;
    }

    .gallery-dialog {
        padding: 1rem;
    }

    .gallery-dialog-top {
        display: grid;
    }
}

/* Horaire dynamique */
.schedule-section {
    background:
        radial-gradient(circle at 100% 0%, rgba(83, 255, 176, 0.25), transparent 20rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 241, 255, 0.94));
}

.schedule-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.2rem;
}

.schedule-heading h2 {
    margin-bottom: 0;
}

.schedule-lead {
    max-width: 760px;
    margin: 1rem 0 0;
    font-size: clamp(1rem, 2vw, 1.12rem) !important;
}

.schedule-refresh {
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(118, 58, 237, 0.22);
    border-radius: 999px;
    background: var(--violet);
    box-shadow: none;
    color: #fff;
    white-space: nowrap;
}

.schedule-refresh:hover,
.schedule-refresh:focus-visible {
    background: #371275;
    transform: translateY(-0.12rem);
}

.schedule-status {
    margin: 1.3rem 0 0.4rem;
    padding: 0.7rem 0.9rem;
    border-left: 0.28rem solid var(--gold);
    border-radius: 0 0.7rem 0.7rem 0;
    background: #fff9e4;
    color: #4c356a !important;
    font-size: 0.9rem !important;
    font-weight: 700;
}

.schedule-status.is-fallback {
    border-left-color: var(--coral);
    background: #fff1ed;
}

.schedule-day {
    margin-top: 1.7rem;
}

.schedule-day h3 {
    display: inline-flex;
    margin: 0 0 0.7rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--night), var(--violet));
    color: #fff;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1rem;
}

.schedule-day table {
    width: 100%;
    margin: 0;
}

.schedule-day th,
.schedule-day td {
    vertical-align: top;
}

.schedule-time {
    color: var(--violet) !important;
    font-weight: 900;
    white-space: nowrap;
}

.schedule-title {
    color: var(--night) !important;
    font-weight: 800;
}

.schedule-badge {
    display: inline-block;
    margin: 0 0.45rem 0.25rem 0;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-badge-changed {
    background: #fff0b9;
    color: #7d4c00;
}

.schedule-badge-cancelled {
    background: #ffe0df;
    color: #a12c41;
}

.schedule-details {
    display: inline;
}

.schedule-row-cancelled td:not(:last-child) {
    color: #896e83 !important;
    text-decoration: line-through;
}

.schedule-empty {
    margin: 1.2rem 0 0;
    padding: 1.2rem;
    border: 1px dashed rgba(118, 58, 237, 0.35);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

@media (max-width: 680px) {
    .schedule-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-refresh {
        width: 100%;
    }
}

/* Carnets de chant t&eacute;l&eacute;chargeables */
.songbook-section {
    background:
        radial-gradient(circle at 98% 4%, rgba(255, 201, 40, 0.25), transparent 19rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 255, 243, 0.94));
}

.songbook-intro {
    max-width: 800px;
}

.songbook-intro > p:last-child {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 2vw, 1.12rem) !important;
}

.songbook-card {
    margin-top: 1.8rem;
    padding: clamp(1.2rem, 3vw, 1.7rem);
    border: 1px solid rgba(12, 155, 103, 0.2);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0.85rem 1.7rem rgba(62, 24, 112, 0.1);
}

.songbook-card-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
}

.songbook-state,
.songbook-format {
    display: inline-flex;
    align-items: center;
    min-height: 1.95rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.songbook-state {
    background: #fff0b9;
    color: #7d4c00;
}

.songbook-format {
    background: #e6fff0;
    color: #087c52;
}

.songbook-card-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.15rem;
}

.songbook-cover {
    display: grid;
    place-items: center;
    width: 6.5rem;
    aspect-ratio: 3 / 4;
    border: 0.24rem solid #fff;
    border-radius: 0.8rem;
    background: linear-gradient(150deg, var(--violet), var(--coral));
    box-shadow: 0 0.55rem 0 var(--gold), 0 0.9rem 1.4rem rgba(62, 24, 112, 0.2);
    color: #fff;
}

.songbook-cover span {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
}

.songbook-card h3,
.songbook-guide h3 {
    margin: 0;
    color: var(--night);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.25;
}

.songbook-card h3 + p {
    margin: 0.65rem 0 0;
}

.songbook-features {
    display: grid;
    gap: 0.3rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.songbook-features li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

.songbook-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #09915e;
    font-weight: 900;
}

.songbook-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.songbook-actions button,
.songbook-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.65rem 0.95rem;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.songbook-actions button:disabled {
    cursor: not-allowed;
    background: #e8e2ef;
    color: #756a82;
    opacity: 1;
}

.songbook-read-button {
    background: transparent !important;
    border: 1px solid rgba(118, 58, 237, 0.2) !important;
}

.songbook-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1.6rem;
    padding: 1.35rem;
    border-radius: 1.15rem;
    background: linear-gradient(120deg, #fff8dc, #e7fff0);
}

.songbook-guide ol {
    margin: 0;
    padding-left: 1.25rem;
}

.songbook-guide li {
    margin: 0.25rem 0;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
}

.songbook-whatsapp-link {
    display: inline-flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #0c9b67;
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.songbook-whatsapp-link:hover,
.songbook-whatsapp-link:focus-visible {
    background: #087c52;
    color: #fff;
    transform: translateY(-0.1rem);
}

@media (max-width: 760px) {
    .songbook-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .songbook-card-content {
        grid-template-columns: 1fr;
    }

    .songbook-cover {
        width: 5.5rem;
    }

    .songbook-actions > * {
        width: 100%;
    }
}
