﻿/*
Theme Name: Moulin-Olivet
Version: 3.0 - NettoyÃ© & rÃ©organisÃ©
*/

:root {
    --color-page: #f4f7f6;
    --color-surface: #fff;
    --color-surface-muted: #f8fbfa;
    --color-surface-soft: #eef4f3;
    --color-border: #dfe9e7;
    --color-border-soft: #e8eeee;
    --color-text: #111827;
    --color-text-muted: #4b5563;
    --color-text-soft: #6b7280;
    --color-primary: #4faaa3;
    --color-primary-dark: #2f7f79;
    --color-primary-deep: #246965;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-card: 0 18px 45px rgba(16, 42, 40, 0.08);
    --shadow-card-medium: 0 18px 45px rgba(16, 42, 40, 0.12);
    --shadow-card-soft: 0 14px 35px rgba(16, 42, 40, 0.07);
    --shadow-panel: 0 24px 60px rgba(16, 42, 40, 0.1);
    --focus-ring: 0 0 0 4px rgba(79, 170, 163, 0.18);
}
/* =========================
   RESET & BASE
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: var(--color-page);
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Ã©vite les dÃ©bordements horizontaux */

}

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

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

h2,
h3 {
    color: var(--color-text);
}


/* =========================
   LAYOUT GLOBAL
   ========================= */

/* .site-content et main servent tous deux de flex-child selon le template */

.site-content,
main {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

@media (max-width: 1230px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* =========================
   HEADER
   ========================= */

.site-header {
    background: #f8f8f8;
    padding: 5px;
}

.site-header .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 10px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Branding --- */

.branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.branding img {
    height: 105px;
    width: auto;
}

.site-title {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    line-height: 1.2;
    font-weight: bold;
}

/* --- Navigation desktop --- */

.site-header nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.site-header nav a {
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

.site-header nav a:hover {
    opacity: 0.7;
}

.site-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #6ca8a0;
    transition: width 0.3s ease;
}

.site-header nav a:hover::after,
.site-header nav .current-menu-item > a::after,
.site-header nav .current_page_item > a::after {
    width: 100%;
}

.site-header nav .current-menu-item > a,
.site-header nav .current_page_item > a {
    font-weight: bold;
}

/* --- Burger (cachÃ© par dÃ©faut sur desktop) --- */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Overlay --- */

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* --- Responsive header (â‰¤ 1230px) --- */

@media (max-width: 1230px) {
    .site-header .container {
        padding: 0 20px 10px;
    }

    .branding img {
        height: 60px;
        width: auto;
    }

    .site-title {
        font-size: 15px;
    }

    /* Burger visible */

.menu-toggle {
        display: block;
    }

    /* Navigation panneau latÃ©ral */

.site-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-surface);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .site-header nav.active {
        right: 0;
    }

    .site-header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .site-header nav li {
        border-bottom: 1px solid #eee;
    }

    .site-header nav a {
        display: block;
        padding: 15px 10px;
        font-size: 18px;
    }

    .site-header nav a::after {
        display: none;
    }
}


/* =========================
   HERO
   ========================= */

.hero {
    background: linear-gradient(135deg, #286b68, #6ca8a0);
    color: white;
    padding: 20px 0;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 1100px; /* CorrigÃ© : Ã©tait width: 1100px fixe, cassait sur Ã©crans moyens */

width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    font-size: 32px;
    margin: 15px 0;
}

.hero-text p {
    font-size: 18px;
}

.hero-image img {
    max-height: 250px;
    border-radius: 20px;
}

/* --- Variantes par page --- */

.events-page .hero-content,
.about-page .hero-content,
.contact-page .hero-content,
.join-page .hero-content {
    max-width: 900px;
}

.events-page .hero-text,
.about-page .hero-text,
.contact-page .hero-text {
    text-align: justify;
}

.about-page .hero-image img {
    padding: 20px;
}

/* --- Responsive hero --- */

@media (max-width: 1230px) {
    .hero {
        padding: 15px 0;
        margin-bottom: 30px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 22px;
        margin: 10px 0;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-image {
        display: none;
    }
}


/* =========================
   FRONT PAGE â€” PRÃ‰SIDENT
   ========================= */

.president-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin-bottom: 50px;
}

.president-photo img {
    width: 160px;
    border-radius: 50%;
}

.president-text {
    max-width: 700px;
    text-align: justify;
}

.president-text h2 {
    margin-bottom: 20px;
}

.president-text blockquote {
    font-style: italic;
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
}

.president-text blockquote::before {
    content: "\201C";
    position: absolute;
    left: -15px;
    top: -20px;
    font-size: 50px;
    color: var(--color-primary);
}

.president-signature {
    margin-top: 20px;
    text-align: right;
}

/* --- Responsive prÃ©sident --- */

@media (max-width: 1230px) {
    .president-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .president-photo img {
        display: none;
    }

    .president-text {
        max-width: 100%;
    }

    .president-text blockquote::before {
        left: 0;
        top: -15px;
        font-size: 40px;
    }
}


/* =========================
   FRONT PAGE â€” Ã‰VÃ‰NEMENTS (grid homepage)
   ========================= */

.events-container {
    max-width: 900px;
    margin: 0 auto;
}

.events-container h2 {
    padding-bottom: 20px;
}

/* Grid 3 colonnes sur la homepage */

.cards-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cartes fixes pour garantir 3 en ligne */

.events-section .cards-event {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.events-section .card-event {
    width: 300px;
    flex: 0 0 300px;
}

.events-section .card-event img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.events-section .card-event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Lien toujours en bas */

.events-section .card-event-link {
    margin-top: auto;
}

/* Bouton "Voir tous les Ã©vÃ©nements" */

.events-more {
    text-align: center;
    margin-top: 40px;
}

.btn-events {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-events:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* --- Responsive homepage Ã©vÃ©nements --- */

@media (max-width: 768px) {
    .events-section .cards-event {
        flex-direction: column;
        align-items: center;
    }

    .events-section .card-event {
        width: 100%;
        max-width: 400px;
        height: auto;
        overflow: visible;
        flex: unset;
    }

    .events-section .card-event-content {
        display: flex;
        flex-direction: column;
    }

    .events-section .card-event-link {
        margin-top: 15px;
    }

    .events-container {
        padding: 0 15px;
    }
}


/* =========================
   PAGE NOS RENDEZ-VOUS â€” SLIDER
   ========================= */

.events-page h2 {
    padding-bottom: 20px;
    margin-top: 40px;
}

.events-slider {
    width: 100%;
    overflow: visible;
}

.cards-event-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.events-page .cards-event-wrapper {
    padding-bottom: 8px;
}

.cards-event-wrapper::-webkit-scrollbar {
    display: none;
}

.cards-event {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.card-event {
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
}

/* FlÃ¨ches de navigation */

.events-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.events-nav button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.events-nav button:hover {
    background: var(--color-primary-dark);
}

/* --- Responsive slider --- */

@media (max-width: 768px) {
    .events-slider .cards-event {
        gap: 15px;
    }

    .events-slider .card-event {
        flex: 0 0 100%; /* effet swipe */

scroll-snap-align: start;
    }

        .cards-event {
        padding: 20px 0;
    }

    .events-slider .card-event {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        scroll-snap-align: center;
        padding: 0 12px;
    }
}


/* =========================
   CARTES Ã‰VÃ‰NEMENT (communes)
   ========================= */

.card-event {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-event img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.card-event-content {
    padding: 20px;
}

.card-event-date {
    font-size: 16px;
    font-weight: 700;
    color: #5c9f9a;
    margin-bottom: 8px;
}

.card-event-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.card-event-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 8px 14px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: background 0.2s;
}

.card-event-link:hover {
    background: #3a6663;
}


/* =========================
   DÃ‰TAIL Ã‰VÃ‰NEMENT (single-event.php)
   ========================= */

.card-event-detail {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    background: var(--color-surface);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-card-medium);
    margin: 40px auto;
    max-width: 1000px;
}

.card-event-detail-left img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--color-text-muted);
}

.back-link:hover {
    text-decoration: underline;
}

.card-event-detail-date {
    font-size: 14px;
    color: #4aa39a;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-event-detail h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.card-event-detail-content {
    margin-top: 15px;
    line-height: 1.6;
}

.card-event-detail-content p {
    margin-bottom: 15px;
}

.card-event-detail-content ul {
    margin: 15px 0;
    padding-left: 20px;
    list-style: disc;
}

.card-event-detail-content li {
    margin-bottom: 5px;
}

.card-event-detail-content h2,
.card-event-detail-content h3 {
    margin: 20px 0 10px;
}

.card-event-detail-content a {
    color: #6c2bd9;
    text-decoration: underline;
}

/* --- Responsive dÃ©tail Ã©vÃ©nement --- */

@media (max-width: 1230px) {
    .card-event-detail {
        grid-template-columns: 1fr;
        padding: 20px;
        margin: 20px auto;
    }

    .card-event-detail-left {
        text-align: center;
    }

    .card-event-detail h1 {
        font-size: 24px;
    }
}


/* =========================
   PAGE QUI SOMMES-NOUS
   ========================= */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- Membres du CA --- */

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 30px;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.member-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.member-card h3 {
    font-size: 15px;
}

.member-role {
    font-size: 13px;
    color: #777;
}

/* --- Documents PDF --- */

.about-documents {
    background: var(--color-surface-soft);
    padding: 25px;
    border-radius: var(--radius-md);
    position: sticky;
    top: 100px;
}

.documents-list {
    list-style: none;
    padding-top: 30px;
    margin: 0;
}

.documents-list li {
    margin-bottom: 10px;
}

.documents-list a {
    display: block;
    color: #333;
}

.documents-list a:hover {
    text-decoration: underline;
}

/* --- Responsive qui-sommes-nous --- */

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1230px) {
    .members-grid {
        padding-top: 20px;
    }

    .about-documents {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 500px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   INFORMATIONS UTILES
   ========================= */

.useful-info-section {
    min-height: calc(100vh - 260px);
    padding: 60px 0 80px;
}

.useful-info-header {
    margin-bottom: 35px;
}

.useful-info-header h1 {
    font-size: 28px;
    color: var(--color-text);
}

.useful-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.useful-info-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 210px;
    max-height: 210px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.useful-info-card-image {
    height: 210px;
    background: var(--color-surface);
    padding: 16px;
}

.useful-info-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.useful-info-card-content {
    padding: 24px;
    overflow: hidden;
}

.useful-info-date {
    margin-bottom: 8px;
    color: var(--color-text-soft);
    font-size: 13px;
}

.useful-info-card-content h2 {
    margin-bottom: 12px;
    font-size: 21px;
}

.useful-info-card-text {
    color: var(--color-text-muted);
    line-height: 1.6;
    max-height: 76px;
    overflow: hidden;
}

.useful-info-read-more {
    display: inline-flex;
    margin-top: 8px;
    color: var(--color-primary);
    font-weight: 700;
}

.useful-info-read-more:hover {
    text-decoration: underline;
}

.useful-info-card-text p,
.useful-info-card-text ul,
.useful-info-card-text ol {
    margin-bottom: 14px;
}

.useful-info-card-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.useful-info-empty {
    color: var(--color-text-muted);
}

.useful-info-single-section {
    min-height: calc(100vh - 260px);
    padding: 60px 0 80px;
}

.useful-info-single-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 34px;
    box-shadow: var(--shadow-card);
}

.useful-info-single-card .back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--color-primary);
    font-weight: 700;
}

.useful-info-single-card .useful-info-date {
    margin-bottom: 10px;
}

.useful-info-single-image {
    margin-bottom: 26px;
}

.useful-info-single-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.useful-info-single-card h1 {
    margin-bottom: 22px;
    font-size: 34px;
}

.useful-info-single-content {
    color: #444;
    line-height: 1.7;
}

.useful-info-single-content p,
.useful-info-single-content ul,
.useful-info-single-content ol {
    margin-bottom: 16px;
}

.useful-info-single-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .useful-info-card {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 600px) {
    .useful-info-section {
        padding: 40px 0 60px;
    }

    .useful-info-card {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }

    .useful-info-card-image {
        height: 190px;
        padding: 14px;
    }

    .useful-info-card-image img {
        height: 190px;
    }

    .useful-info-card-text {
        max-height: none;
    }

    .useful-info-single-card {
        padding: 24px 20px;
    }

    .useful-info-single-card h1 {
        font-size: 28px;
    }
}


/* =========================
   PAGE CONTACT
   ========================= */

.contact-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-panel);
}

.contact-card h2 {
    margin-bottom: 30px;
    font-size: 26px;
}

/* --- Formulaire custom --- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row > * {
    flex: 1;
}

.contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-form textarea,
.contact-form .wpcf7-form-control:not(.wpcf7-acceptance):not(.wpcf7-checkbox):not(.wpcf7-submit) {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--color-surface-muted);
    outline: none;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: var(--color-surface);
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.contact-form ::placeholder {
    color: #aaa;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button,
.form-submit input,
.contact-form input[type="submit"] {
    align-self: flex-end;
    margin-top: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-form button:hover,
.form-submit input:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}



/* --- Contact Form 7 --- */

.wpcf7 {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.wpcf7-form p {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--color-surface-muted);
    outline: none;
    transition: border-color 0.2s ease;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.wpcf7 textarea:focus {
    background: var(--color-surface);
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--color-primary-dark);
}

.event-registration-form input[name="total"] {
    font-weight: 700;
    color: var(--color-primary-dark);
    background: var(--color-surface);
}

.event-registration-page {
    min-height: calc(100vh - 260px);
    padding: 54px 0 80px;
}

.event-registration-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
    max-width: 1220px;
    margin: 0 auto;
}

.event-registration-card,
.event-payment-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card-soft);
}

.event-registration-card {
    padding: 38px;
}

.event-registration-card h1 {
    margin-bottom: 18px;
    font-size: 30px;
    letter-spacing: -0.025em;
}

.event-registration-card .wpcf7-form {
    gap: 10px;
}

.event-registration-form h3 {
    margin: 18px 0 14px;
    font-size: 20px;
}

.event-registration-form p {
    margin-bottom: 12px;
}

.event-registration-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.event-registration-form textarea,
.event-registration-form select {
    padding: 11px 14px;
}

.event-registration-form textarea {
    min-height: 92px;
    height: 92px;
}

.event-registration-form .event-radio-field .wpcf7-list-item {
    margin-bottom: 6px;
}

.event-registration-form .event-radio-field .wpcf7-list-item:last-child {
    margin-bottom: 0;
}

.event-registration-intro > p:first-child {
    color: var(--color-text-muted);
    line-height: 1.65;
}

.event-registration-intro,
.event-registration-intro p,
.event-registration-intro pre {
    font-family: inherit;
}

.event-registration-intro pre {
    margin: 0 0 24px;
    padding: 0;
    color: var(--color-text-muted);
    background: transparent;
    white-space: normal;
}

.event-payment-card {
    padding: 28px;
    position: sticky;
    top: 110px;
}

.event-payment-card h2 {
    margin-bottom: 14px;
    font-size: 22px;
}

.event-payment-card h3 {
    margin-bottom: 10px;
    font-size: 17px;
}

.event-payment-card p,
.event-payment-card li {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.event-payment-card ul {
    margin: 14px 0 20px;
    padding-left: 20px;
}

.event-payment-bank {
    margin: 22px 0;
    padding: 18px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
}

.event-payment-bank p {
    margin-bottom: 12px;
}

.event-payment-bank p:last-child {
    margin-bottom: 0;
}

.event-payment-note {
    font-size: 14px;
}

.event-registration-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 20px;
    color: #fff;
    background: var(--color-primary);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.event-registration-link:hover {
    color: #fff;
    background: var(--color-primary-dark);
}

.event-registration-form .event-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.event-registration-form .event-prices label {
    display: block;
    white-space: nowrap;
    font-size: 14px;
}

.event-registration-form .wpcf7-acceptance {
    margin-bottom: 18px;
}

.event-registration-form .event-hidden-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .event-registration-form .event-prices {
        grid-template-columns: 1fr;
    }

    .event-registration-layout {
        grid-template-columns: 1fr;
    }

    .event-registration-card,
    .event-payment-card {
        padding: 26px 20px;
    }

    .event-payment-card {
        position: static;
    }
}

/* --- Checkboxes CF7 --- */

.wpcf7-acceptance,
.wpcf7-checkbox {
    display: block;
    width: 100%;
}

.wpcf7-list-item {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
}

.wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.wpcf7-list-item input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

/* Supprime le span fantÃ´me sous les checkboxes */

.wpcf7-form-control-wrap .wpcf7-acceptance,
.wpcf7-form-control-wrap .wpcf7-checkbox {
    line-height: 0;
}

.wpcf7-form-control-wrap .wpcf7-acceptance .wpcf7-list-item,
.wpcf7-form-control-wrap .wpcf7-checkbox .wpcf7-list-item {
    line-height: 1.5;
}

/* Consentement */

.cf7-consent a {
    text-decoration: underline;
    color: #2a7f7a;
    font-weight: 500;
}

.cf7-consent .wpcf7-list-item {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

/* Checkbox custom */

.form-checkbox {
    margin: 10px 0;
    font-size: 14px;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

/* --- Responsive contact --- */

@media (max-width: 1230px) {
    .contact-section {
        padding: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-card h2 {
        font-size: 22px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 16px; /* Ã‰vite le zoom sur iOS */

}

    .contact-form button,
    .form-submit input {
        width: 100%;
        padding: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}


/* =========================
   PAGE REJOIGNEZ-NOUS
   ========================= */

.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.join-grid-single {
    grid-template-columns: minmax(0, 1120px);
    justify-content: center;
}

.join-card-wide {
    width: 100%;
}

.join-page > .container {
    max-width: 1280px;
}

.join-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: start;
    margin-top: 28px;
}

.join-form-main {
    max-width: 560px;
}

.join-card {
    background: var(--color-surface);
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card-soft);
}

.join-card h2 {
    margin-bottom: 10px;
}

.join-card p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.mail-consent-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mail-consent-modal.is-open {
    display: flex;
}

.mail-consent-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.mail-consent-modal__dialog {
    position: relative;
    width: min(100%, 520px);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mail-consent-modal__dialog h3 {
    margin-bottom: 15px;
}

.mail-consent-modal__dialog p {
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

.mail-consent-modal__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 13px 22px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.mail-consent-modal__button:hover {
    background: var(--color-primary-dark);
}

.join-links {
    margin-top: 20px;
}

.join-links a:hover {
    text-decoration: underline;
}

.join-info {
    margin-top: 15px;
    font-size: 16px;
    color: var(--color-text-muted);
}

.join-info-unified {
    margin-top: 0;
    padding: 24px;
    background: var(--color-page);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
}

.join-info-unified h3 {
    margin-bottom: 15px;
}

.join-info a {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 500;
}

.join-info-links {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.join-contact-card {
    max-width: 600px;
    margin: 60px auto 0;
    padding: 30px;
    background: var(--color-surface-soft);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-card-soft);
}

.join-contact-card h3 {
    margin-bottom: 15px;
}

.contact-email {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-people p {
    margin: 5px 0;
    color: var(--color-text-muted);
}

/* --- Responsive rejoignez-nous --- */

@media (max-width: 1230px) {
    .join-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .join-card {
        padding: 25px 20px;
    }

    .join-contact-card {
        margin: 40px auto 0;
        padding: 25px 20px;
    }

    .join-form-layout {
        grid-template-columns: 1fr;
    }

    .join-form-main {
        max-width: none;
    }
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
    margin-top: 60px;
}

.footer-top {
    background: var(--color-surface);
    border-top: 1px solid var(--color-primary);
    padding: 30px 0;
}

.footer-top-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-top-content a {
    color: #444;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-top-content a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    background: var(--color-primary);
    color: #fff;
    padding: 18px 0;
}

.footer-bottom-content {
    text-align: center;
    font-size: 14px;
}

.footer-bottom-content a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-top-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom-content {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* =========================
   PAGE LÃ‰GALE
   ========================= */

.legal-section {
    padding: 60px 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 45px 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card-soft);
    color: #444;
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--color-text);
}

.legal-content h2 {
    font-size: 30px;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.legal-content p {
    margin-bottom: 18px;
}

.legal-content ul {
    margin: 0 0 20px 22px;
    padding-left: 18px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 30px 0;
    }

    .legal-content {
        padding: 28px 22px;
    }

    .legal-content h1 {
        font-size: 32px;
    }

    .legal-content h2 {
        font-size: 24px;
    }
}


/* =========================
   MODERNISATION GLOBALE
   ========================= */

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.55;
}

.container {
    max-width: 1180px;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border-soft);
    padding: 0;
}

.site-header .container {
    padding: 8px 32px;
}

.branding {
    gap: 14px;
}

.branding img {
    height: 78px;
}

.site-title {
    font-size: 17px;
    line-height: 1.16;
    letter-spacing: -0.01em;
}

.site-header nav ul {
    gap: 24px;
    align-items: center;
}

.site-header nav a {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
}

.site-header nav a::after {
    bottom: -7px;
    height: 3px;
    border-radius: 999px;
    background: var(--color-primary);
}

.site-header nav a:hover {
    color: var(--color-primary-dark);
    opacity: 1;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 58px;
    padding: 44px 0 22px;
    background: var(--color-page);
}

.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    gap: 64px;
    max-width: 1120px;
    padding: 42px 54px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, #246965 0%, #4faaa3 62%, #8fc9bd 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: none;
}

.hero-text {
    max-width: 560px;
}

.hero-text h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 2.75vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero-text p {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
}

.hero-image img {
    max-height: 260px;
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 48, 45, 0.22);
}

body.home .hero {
    display: flex;
    align-items: center;
    min-height: auto;
    margin-bottom: 32px;
    padding: 34px 0 12px;
}

body.home .hero-content {
    min-height: 230px;
    gap: 42px;
}

body.home .hero-text {
    max-width: 640px;
    flex: 0 1 640px;
}

body.home .hero-text h1 {
    font-size: clamp(31px, 2.25vw, 36px);
    line-height: 1.14;
}

body.home .hero-image img {
    max-height: 220px;
    aspect-ratio: 2.15 / 1;
    object-fit: cover;
}

.site-content .hero {
    min-height: 255px;
    padding: 38px 0 18px;
    margin-bottom: 48px;
}

.site-content .hero-content {
    max-width: 980px;
    gap: 46px;
    padding: 36px 48px;
}

.site-content .hero-text {
    max-width: 520px;
}

.site-content .hero-text h1 {
    margin-bottom: 12px;
    font-size: clamp(28px, 2.15vw, 35px);
}

.site-content .hero-text p {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.58;
    font-weight: 500;
}

.site-content .hero-image {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
}

.site-content .hero-image img {
    width: auto;
    max-width: 240px;
    max-height: 170px;
    object-fit: contain;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: none;
}

.about-page .hero-image img {
    max-width: 270px;
    max-height: 170px;
}

.about-page .hero-image img {
    padding: 12px;
    box-shadow: none;
}

.events-page .hero-text,
.about-page .hero-text,
.contact-page .hero-text {
    text-align: left;
}

.president-content {
    max-width: 940px;
    margin: 0 auto 38px;
    padding: 26px 38px;
    background: var(--color-surface);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(16, 42, 40, 0.045);
}

body.home .president-content {
    max-width: 940px;
    padding: 0 38px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.president-photo img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(16, 42, 40, 0.12);
}

.president-text {
    text-align: left;
}

.president-text h2,
.section-title,
.events-page h2,
.about-members h2,
.contact-card h2,
.join-card h2,
.useful-info-header h1 {
    letter-spacing: -0.025em;
}

.president-text blockquote {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.72;
    font-weight: 500;
    font-style: normal;
}

.president-text h2 {
    margin-bottom: 14px;
}

.president-signature {
    margin-top: 14px;
}

.events-container {
    max-width: 1040px;
}

.cards-event-grid,
.events-section .cards-event {
    gap: 28px;
}

.card-event {
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-event:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-medium);
}

.events-page .card-event {
    box-shadow: 0 6px 18px rgba(16, 42, 40, 0.045);
}

.events-page .card-event:hover {
    box-shadow: 0 10px 24px rgba(16, 42, 40, 0.07);
}

.card-event img,
.events-section .card-event img {
    height: 190px;
    border-radius: 0;
}

.card-event-content {
    padding: 22px;
}

.card-event-date {
    color: var(--color-primary-dark);
    font-size: 14px;
    letter-spacing: 0.01em;
}

.card-event-title {
    font-size: 17px;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.card-event-link,
.btn-events,
.wpcf7 input[type="submit"],
.contact-form input[type="submit"],
.mail-consent-modal__button {
    border-radius: 999px;
    font-weight: 700;
}

.card-event-link {
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.btn-events {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
}

.events-nav button {
    border-radius: 999px;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 18px;
}

.about-grid {
    gap: 48px;
}

.members-grid {
    gap: 22px;
}

.member-card {
    min-height: 210px;
    padding: 24px 14px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-soft);
}

.member-card img {
    width: 108px;
    height: 108px;
    margin-bottom: 14px;
}

.member-card h3 {
    font-size: 15px;
    line-height: 1.2;
}

.member-role {
    margin-top: 3px;
    color: var(--color-text-soft);
}

.about-documents {
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-soft);
}

.documents-list {
    padding-top: 22px;
}

.documents-list a {
    padding: 8px 0;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.contact-card,
.join-card,
.useful-info-single-card,
.legal-content {
    border: 1px solid var(--color-border-soft);
}

.contact-card {
    max-width: 1040px;
    padding: 44px 50px;
}

.contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-form textarea,
.contact-form .wpcf7-form-control:not(.wpcf7-acceptance):not(.wpcf7-checkbox):not(.wpcf7-submit),
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
    border-color: var(--color-border);
    background: var(--color-surface-muted);
    font-size: 15px;
}

.wpcf7-list-item {
    border-color: var(--color-border);
    background: var(--color-surface-muted);
}

.join-page > .container {
    max-width: 1320px;
}

.join-grid-single {
    grid-template-columns: minmax(0, 1180px);
}

.join-card {
    padding: 40px;
}

.join-info-unified {
    background: var(--color-surface-muted);
    border-color: var(--color-border);
}

.join-info-unified .join-contact-card {
    max-width: none;
    margin: 24px 0 0;
    padding: 22px;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.join-info-unified .join-contact-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.join-info-unified .contact-email {
    margin-bottom: 12px;
    font-size: 16px;
}

.join-info-unified .contact-people p {
    margin: 6px 0;
}

.useful-info-card {
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
}

.useful-info-card-content h2 {
    line-height: 1.25;
}

.useful-info-read-more {
    color: var(--color-primary-dark);
}

.site-footer {
    margin-top: 72px;
}

.footer-top {
    border-top: 1px solid var(--color-border-soft);
}

.footer-bottom {
    background: var(--color-primary-deep);
}

@media (max-width: 1230px) {
    .site-header .container {
        padding: 10px 20px;
    }

    .branding img {
        height: 64px;
    }

    .site-title {
        font-size: 15px;
    }

    .hero {
        padding: 42px 0;
    }

    .site-content .hero {
        min-height: auto;
        padding: 28px 0 12px;
    }

    .site-content .hero-content {
        gap: 24px;
        border-radius: 22px;
        padding: 30px 26px;
    }

    .site-content .hero-image {
        display: none;
    }

    body.home .hero {
        min-height: auto;
        margin-bottom: 32px;
        padding: 24px 0 10px;
    }

    body.home .hero-content {
        min-height: auto;
        padding: 30px 24px;
    }

    body.home .hero-text {
        max-width: 420px;
        flex: none;
    }

    body.home .hero-text h1 {
        font-size: 26px;
        line-height: 1.18;
    }

    body.home .hero-text p {
        font-size: 15px;
        font-weight: 500;
    }

    .president-content {
        padding: 34px 26px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-bottom: 42px;
        padding: 24px 0 12px;
    }

    .hero::after {
        height: 1px;
    }

    body.home .hero {
        margin-bottom: 32px;
        padding: 20px 0 8px;
    }

    body.home .hero-content,
    .site-content .hero-content {
        width: calc(100% - 24px);
        padding: 26px 18px;
        border-radius: 20px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    body.home .hero-text h1 {
        font-size: 23px;
        line-height: 1.18;
    }

    .president-content {
        margin-bottom: 52px;
    }

    .contact-card,
    .join-card {
        padding: 28px 20px;
    }

    .member-card {
        min-height: 190px;
    }
}

@media (min-width: 2200px) {
    body {
        font-size: 19px;
    }

    .container {
        max-width: 1360px;
    }

    .site-header .container {
        max-width: 1500px;
    }

    .branding img {
        height: 90px;
    }

    .site-title {
        font-size: 19px;
    }

    .site-header nav a {
        font-size: 16px;
    }

    .hero {
        padding-top: 52px;
    }

    .hero-content {
        max-width: 1360px;
        padding: 52px 68px;
    }

    body.home .hero-content {
        min-height: 260px;
    }

    body.home .hero-text {
        max-width: 700px;
        flex-basis: 700px;
    }

    body.home .hero-text h1 {
        font-size: 42px;
    }

    body.home .hero-text p {
        font-size: 19px;
        font-weight: 500;
    }

    body.home .hero-image img {
        max-height: 250px;
    }

    .president-content {
        max-width: 1080px;
        padding: 32px 48px;
    }

    body.home .president-content {
        max-width: 1080px;
        padding: 0 48px;
    }

    .events-container {
        max-width: 1260px;
    }

    .useful-info-card {
        grid-template-columns: 280px 1fr;
        min-height: 245px;
        max-height: 245px;
    }

    .useful-info-card-image {
        height: 245px;
        padding: 18px;
    }

    .useful-info-card-content {
        padding: 28px;
    }

    .useful-info-card-text {
        max-height: 92px;
    }
}





