:root {
    --color-primary: #2a5059;
    --color-secondary: #e5a118;
    --color-accent: #f2eee3;
    --color-dark: #1b2a30;
    --color-text: #2d2d2d;
    --color-text-light: #555555;
    --color-orange: #e67e22;
    --color-fete: #8e44ad;
    --color-enfants: #27ae60;
    --color-ceremonie: #2980b9;
    --color-solidarite: #e91e8c;
    --max-width: 1200px;
    --section-spacing: 5.5rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--color-text);
    background: #faf9f6;
    line-height: 1.75;
    font-size: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    min-height: 80vh;
    padding: 2rem clamp(1.5rem, 4vw, 4rem) 4rem;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.4)),
        url('header.jpg') center/cover no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.25rem;
    margin-left: auto;
    cursor: pointer;
}

.nav__toggle-line {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 999px;
    margin: 5px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__menu {
    display: flex;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav a {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav a:hover {
    color: var(--color-secondary);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.brand img {
    width: clamp(180px, 20vw, 280px);
    height: auto;
}

.brand__title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.brand__subtitle {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero__content {
    max-width: 600px;
    margin-top: auto;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__logo {
    width: clamp(140px, 20vw, 220px);
    margin-bottom: 1.5rem;
    display: block;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-dark);
    line-height: 1.25;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.hero--sub {
    min-height: 50vh;
}

.lede {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    background: var(--color-secondary);
    color: #1b2a30;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(33, 33, 33, 0.25);
}

.btn--ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

main {
    width: min(var(--max-width), 94%);
    margin: -4rem auto 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.08);
    padding-bottom: 4rem;
    overflow: hidden;
}

.section {
    padding: var(--section-spacing) clamp(1.5rem, 5vw, 4rem);
    position: relative;
}

.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

.section__intro {
    max-width: 700px;
    margin-bottom: 3rem;
}

.section__intro p {
    font-size: 1.1rem;
    max-width: 600px;
}

.section--accent {
    background: linear-gradient(180deg, var(--color-accent) 0%, #faf8f2 100%);
}

.page-actualites .section--accent {
    border-radius: 24px;
}

.section--gallery {
    background: #fdfcf9;
}

.grid {
    display: grid;
    gap: 1.6rem;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.timeline__item,
.contact-card,
.cta-panel {
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.section--accent .timeline__item {
    background: #fffef8;
}

.events-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.event-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--color-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.event-card--fete {
    border-left-color: var(--color-fete);
}

.event-card--enfants {
    border-left-color: var(--color-enfants);
}

.event-card--ceremonie {
    border-left-color: var(--color-ceremonie);
}

.event-card--solidarite {
    border-left-color: var(--color-solidarite);
}

.event-card__icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.event-card__icon--flag {
    width: 36px;
    height: 24px;
    border-radius: 3px;
    background: linear-gradient(to right, #002395 33.33%, #fff 33.33%, #fff 66.66%, #ed2939 66.66%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.event-card__date {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.event-card__title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-dark);
}

.event-card__location {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0 0 0.75rem 0;
}

.event-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.7;
    flex-grow: 1;
}

.timeline {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline__item time {
    font-weight: 700;
    color: var(--color-orange);
    letter-spacing: 0.02em;
    font-size: 1rem;
}

.gallery__placeholder {
    border: 2px dashed #cfc7b8;
    border-radius: 18px;
    padding: 3rem;
    text-align: center;
    font-style: italic;
    color: #857b6a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-card__content {
    padding: 1.6rem;
}

.news-card__content h3 {
    margin: 0 0 0.75rem 0;
}

.news-card__content p {
    margin: 0 0 1.25rem 0;
    font-size: 0.95rem;
}

.news-card__link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-card__link:hover {
    color: var(--color-secondary);
}

.news-empty {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 2rem;
}

.section--news-highlight {
    background: var(--color-accent);
}

.news-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.4rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.news-highlight--compact {
    max-width: 820px;
    margin: 0 auto;
}

.news-highlight__media {
    border-radius: 18px;
    overflow: hidden;
    background: #f0ede6;
}

.news-highlight__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.news-highlight__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(229, 161, 24, 0.15);
    color: var(--color-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
}

.news-highlight__content h3 {
    margin-top: 0;
}

.news-highlight__content p {
    display: inline;
    margin: 0 0.35rem 0 0;
}

.news-highlight__title-link {
    text-decoration: none;
    color: inherit;
}

.news-highlight__title-link:hover h3 {
    color: var(--color-primary);
}

.news-highlight__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-highlight__cta-row {
    display: block;
}

.news-highlight__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(42, 80, 89, 0.18);
}

.news-highlight__cta:hover {
    background: #1f3f46;
}

@media (max-width: 900px) {
    .news-highlight {
        grid-template-columns: 1fr;
    }

    .news-highlight--compact {
        max-width: 520px;
    }
}

@media (max-width: 600px) {
    .news-highlight__media {
        position: relative;
    }

    .news-highlight__badge {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        margin: 0;
        background: rgba(255, 255, 255, 0.9);
        color: var(--color-primary);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    .news-highlight__content {
        padding-top: 0.15rem;
    }

    .news-highlight__content p,
    .news-highlight__link {
        display: none;
    }

    .news-highlight__content h3 {
        margin-top: 0.15rem;
    }

    .news-highlight__cta {
        margin-top: 0.6rem;
    }
}

.gallery-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    margin: 0;
    padding: 1rem 1.2rem 1.2rem;
    font-weight: 600;
    color: var(--color-dark);
}

.gallery-albums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.album-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-secondary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

.cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(120deg, #fff7e5, #fbe4c4);
}

.carousel__dots {
    display: none;
}

.section--contact {
    background: linear-gradient(180deg, #f6f8f8 0%, #eef1f1 100%);
}

.contact-card h3 {
    margin-top: 0;
}

.contact-card a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-card a:hover {
    color: var(--color-secondary);
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.volunteer-form {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(42, 80, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #eee;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.btn--form {
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.form-aside {
    background: linear-gradient(135deg, var(--color-accent), #faf8f2);
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.adhesion-info {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.adhesion-price {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.adhesion-info p {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.form-aside h3 {
    margin-top: 0;
    color: var(--color-dark);
}

.form-aside ul {
    padding-left: 0;
    list-style: none;
}

.form-aside li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.form-aside li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-enfants);
    font-weight: 700;
}

@media (max-width: 900px) {
    .form-container {
        grid-template-columns: 1fr;
    }

    .form-aside {
        position: static;
        order: -1;
    }
}

.footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
    font-size: 0.9rem;
    color: #6c6c6c;
}

.footer a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer a:hover {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .nav {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav ul {
        display: none;
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
        margin-top: 0.5rem;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(6px);
        border-radius: 14px;
        padding: 0.9rem;
    }

    .nav li {
        flex: 0 1 auto;
    }

    .nav li a {
        display: block;
        padding: 0.45rem 0.7rem;
        font-size: 0.85rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(4px);
    }

    .nav__toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }

    .nav.is-open .nav__menu {
        display: flex;
    }

    .nav.is-open .nav__toggle-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav.is-open .nav__toggle-line:nth-child(2) {
        opacity: 0;
    }

    .nav.is-open .nav__toggle-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .brand > div {
        display: none;
    }

    .brand {
        justify-content: center;
    }

    .brand img {
        width: clamp(240px, 55vw, 340px);
    }

    .hero {
        min-height: 60vh;
        padding: 2rem 1.5rem 3rem;
        background: linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.4)),
            url('header-mobile.jpg') center/cover no-repeat;
    }

    .hero__content {
        text-align: center;
        margin-top: 2rem;
    }

    .hero__cta {
        width: 100%;
        flex-direction: column;
    }

    main {
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .section + .section::before {
        width: 60%;
    }

    .carousel {
        position: relative;
    }

    .carousel__track {
        display: flex;
        overflow-x: auto;
        gap: 1.25rem;
        padding-bottom: 1.75rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .carousel__track::-webkit-scrollbar {
        display: none;
    }

    .carousel__track > * {
        min-width: clamp(240px, 80vw, 320px);
        scroll-snap-align: start;
    }

    .timeline.carousel__track > *,
    .events-grid.carousel__track > * {
        min-width: clamp(270px, 85vw, 340px);
    }

    .event-card {
        padding: 1.5rem;
    }

    .event-card__date {
        font-size: 1rem;
    }

    .event-card__title {
        font-size: 1.15rem;
    }

    .carousel__dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gallery-item img {
        height: 220px;
    }

    .gallery-albums {
        grid-template-columns: 1fr;
    }

    .carousel__dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background: rgba(27, 42, 48, 0.25);
        transition: background 0.2s ease;
        cursor: pointer;
    }

    .carousel__dot.is-active {
        background: var(--color-secondary);
    }

    .cta-panel {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .hero__content h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 2.5rem 1.2rem;
    }
}
