/* ========================================
   CRN7 — Base
   ======================================== */

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

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    color: #0b2942;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

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

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


/* ========================================
   Header
   ======================================== */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.site-header__inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 40px;
}

.site-header__brand {
    flex: 0 0 auto;
}

.site-header__brand .custom-logo-link {
    display: block;
}

.site-header__brand .custom-logo {
    width: 92px;
    height: 72px;
    object-fit: contain;
}

.site-header__nav {
    flex: 1;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu a {
    display: block;
    padding: 30px 0 27px;

    color: #0b2942;
    font-size: 14px;
    font-weight: 600;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
    color: #ff174f;
}

.main-menu .current-menu-item > a {
    border-bottom: 3px solid #ff174f;
}


/* ========================================
   Contenu provisoire
   ======================================== */

.site-main {
    min-height: 400px;
}

.home-test {
    width: min(1200px, calc(100% - 40px));
    margin: 60px auto;
}


/* ========================================
   Footer provisoire
   ======================================== */

.site-footer {
    padding: 30px 0;
    background: #0b2942;
    color: #ffffff;
}

.site-footer__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-footer .custom-logo {
    width: 70px;
    height: auto;
}
/* ========================================
   Accueil — Hero
   ======================================== */

.home-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 27, 46, 0.82) 0%,
            rgba(5, 27, 46, 0.60) 38%,
            rgba(5, 27, 46, 0.10) 72%,
            rgba(5, 27, 46, 0.00) 100%
        );
}

.home-hero__inner {
    position: relative;
    z-index: 1;

    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0;
}

.home-hero__title {
    max-width: none;
    white-space: nowrap;
    margin: 0 0 6px;

    color: #ffffff;
    font-size: clamp(42px, 5vw, 56px);
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
}

.home-hero__tagline {
    margin: 0 0 28px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-style: italic;
}

.home-hero__location {
    margin: 0 0 28px;
    font-size: 15px;
    font-weight: 600;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 22px;
    border: 2px solid #ffffff;
    border-radius: 24px;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.button--primary {
    border-color: #ff174f;
    background: #ff174f;
    color: #ffffff;
}

.button--primary:hover {
    border-color: #d9003b;
    background: #d9003b;
}

.button--secondary {
    background: rgba(5, 27, 46, 0.55);
    color: #ffffff;
}

.button--secondary:hover {
    background: #ffffff;
    color: #0b2942;
}
/* =========================================================
   FICHE ÉVÉNEMENT
   ========================================================= */

.event-single {
    padding: 48px 24px 70px;
    background: #fff;
}

.event-single__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.event-single__back {
    display: inline-block;
    margin-bottom: 28px;
    color: #ff174d;
    font-weight: 700;
    text-decoration: none;
}

.event-single__back:hover {
    text-decoration: underline;
}

.event-single__grid {
    display: grid;
    grid-template-columns: minmax(240px, 330px) 1fr 290px;
    gap: 38px;
    align-items: start;
}

/* Affiche */

.event-single__poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-single__poster-placeholder {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 8px;
    background: #f5efe8;
    color: #0c304b;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

/* Contenu */

.event-single__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ff174d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-single__title {
    margin: 0 0 22px;
    color: #0c304b;
    font-family: Georgia, serif;
    font-size: 36px;
    line-height: 1.1;
}

.event-single__description {
    color: #333;
    font-size: 16px;
    line-height: 1.65;
}

/* Informations pratiques */

.event-single__info {
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #faf8f5;
}

.event-single__info h2 {
    margin: 0 0 22px;
    color: #0c304b;
    font-family: Georgia, serif;
    font-size: 22px;
}

.event-single__info-item {
    margin-bottom: 18px;
}

.event-single__info-item:last-child {
    margin-bottom: 0;
}

.event-single__info-item strong,
.event-single__info-item span {
    display: block;
}

.event-single__info-item strong {
    margin-bottom: 3px;
    color: #0c304b;
    font-size: 13px;
}

.event-single__info-item span {
    color: #444;
    line-height: 1.4;
}

/* Responsive */

@media (max-width: 900px) {
    .event-single__grid {
        grid-template-columns: minmax(200px, 280px) 1fr;
    }

    .event-single__info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .event-single {
        padding: 30px 18px 50px;
    }

    .event-single__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .event-single__poster {
        max-width: 360px;
        margin: 0 auto;
    }

    .event-single__info {
        grid-column: auto;
    }

    .event-single__title {
        font-size: 30px;
    }
}
/* =========================================================
   AGENDA
   ========================================================= */

.agenda {
    padding: 48px 24px 70px;
    background: #fff;
}

.agenda__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.agenda__header {
    margin-bottom: 38px;
}

.agenda__header h1 {
    margin: 0 0 10px;
    color: #0c304b;
    font-family: Georgia, serif;
    font-size: 42px;
}

.agenda__header p {
    margin: 0;
    color: #555;
    font-size: 17px;
}

/* Liste des événements */

.agenda__events {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.agenda-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
}

/* Affiche */

.agenda-card__image {
    display: block;
    background: #f5efe8;
}

.agenda-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

/* Contenu */

.agenda-card__content {
    padding: 30px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.agenda-card__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ff174d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.agenda-card__date {
    margin: 0 0 8px;
    color: #ff174d;
    font-size: 15px;
    font-weight: 700;
}

.agenda-card h2 {
    margin: 0 0 14px;
    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 1.15;
}

.agenda-card h2 a {
    color: #0c304b;
    text-decoration: none;
}

.agenda-card h2 a:hover {
    color: #ff174d;
}

.agenda-card__details {
    margin: 0 0 24px;
    color: #555;
    font-size: 16px;
}

.agenda-card__link {
    display: inline-block;
    margin-top: auto;
    padding: 11px 18px;
    border: 2px solid #0c304b;
    border-radius: 999px;
    color: #0c304b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.agenda-card__link:hover {
    background: #0c304b;
    color: #fff;
}

/* Aucun événement */

.agenda__empty {
    padding: 30px;
    border-radius: 8px;
    background: #f5efe8;
    color: #0c304b;
}

/* Mobile */

@media (max-width: 650px) {

    .agenda {
        padding: 32px 18px 50px;
    }

    .agenda__header h1 {
        font-size: 34px;
    }

    .agenda-card {
        grid-template-columns: 1fr;
    }

    .agenda-card__image img {
        height: 300px;
        min-height: 0;
        object-fit: cover;
        object-position: center;
    }

    .agenda-card__content {
        padding: 24px;
    }

    .agenda-card h2 {
        font-size: 26px;
    }
}
/* Séparation entre événements à venir et événements passés */

.agenda-section--past {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #d9d9d9;
}

.agenda-section__title {
    margin: 0 0 18px;
    color: #0c304b;
    font-size: 22px;
    font-weight: 700;
}

.agenda-section--future {
    margin-top: 26px;
}
/* Agenda — affichage compact sur mobile */

@media (max-width: 650px) {

    .agenda-card {
        grid-template-columns: 36% 64%;
        min-height: 240px;
    }

    .agenda-card__image {
        height: 100%;
    }

    .agenda-card__image img {
        width: 100%;
        height: 100%;
        min-height: 240px;
        object-fit: cover;
        object-position: center;
    }

    .agenda-card__content {
        padding: 20px 16px;
    }

    .agenda-card h2 {
        font-size: 24px;
    }

    .agenda-card__details {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .agenda-card__link {
        padding: 9px 12px;
        font-size: 11px;
    }

    .agenda-section--past {
        margin-top: 40px;
        padding-top: 26px;
    }
}
/* Agenda — cartes compactes sur smartphone */
@media (max-width: 650px) {

    .agenda-card {
        grid-template-columns: 36% 64%;
        min-height: 0;
    }

    .agenda-card__image {
        min-width: 0;
    }

    .agenda-card__image img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center;
    }

    .agenda-card__content {
        min-width: 0;
        padding: 18px 16px;
    }

    .agenda-card h2 {
        font-size: 24px;
        line-height: 1.1;
    }

    .agenda-card__details {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .agenda-card__link {
        padding: 9px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
}
/* ========================================
   Accueil — prochain événement
   ======================================== */

.home-next-event {
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
    background-color: #f5efe8;
}

.home-next-event__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 38px;
}

.home-next-event__content {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
}

.home-next-event__eyebrow {
    margin: 0 0 10px;
    color: #ff174d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.home-next-event__date {
    margin: 0 0 6px;
    color: #ff174d;
    font-size: 16px;
    font-weight: 700;
}

.home-next-event__title {
    margin: 0 0 12px;
    color: #0c304b;
    font-family: Georgia, serif;
    font-size: 32px;
    line-height: 1.1;
}

.home-next-event__details {
    margin: 0 0 22px;
    color: #555;
    font-size: 16px;
}

.home-next-event__image {
    grid-column: 1;
    grid-row: 1;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.home-next-event__image img {
    display: block;
    width: auto;
    height: 190px;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.home-next-event__decoration {
    position: absolute;
    z-index: 0;
    right: 0;
    top: 50%;
    width: min(44vw, 560px);
    max-width: none;
    height: auto;
    transform: translateY(-50%);
    opacity: .45;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 700px) {
    .home-next-event {
        padding: 28px 18px;
    }

    .home-next-event__inner {
        grid-template-columns: 36% 1fr;
        gap: 18px;
        align-items: center;
    }

    .home-next-event__image {
        grid-column: 1;
        grid-row: 1;
    }

    .home-next-event__image img {
        width: 100%;
        height: auto;
        max-height: 190px;
    }

    .home-next-event__content {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .home-next-event__title {
        font-size: 26px;
    }

    .home-next-event__details {
        margin-bottom: 18px;
        font-size: 14px;
    }

    .home-next-event__decoration {
        display: none;
    }
}

/* ========================================
   Header — logo agrandi et débordant
   ======================================== */

.site-header {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.site-header__inner {
    position: relative;
    overflow: visible;
}

.site-header__brand {
    position: relative;
    z-index: 22;
    align-self: stretch;
    width: 122px;
    flex: 0 0 122px;
}

.site-header__brand .custom-logo-link {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.site-header__brand .custom-logo {
    width: 122px;
    height: 110px;
    max-width: none;
    object-fit: contain;
}

/* ========================================
   Header — déchirure en masque, responsive
   ======================================== */

.site-header::after {
    content: "";
    position: absolute;
    z-index: 21;
    left: 0;
    top: calc(100% - 1px);
    width: 100%;
    height: clamp(38px, 5vw, 78px);

    background: #ffffff;
    -webkit-mask-image: url("/wp-content/uploads/2026/10/fond-dechire.png");
    mask-image: url("/wp-content/uploads/2026/10/fond-dechire.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center top;
    mask-position: center top;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

    pointer-events: none;
}

.site-header__inner {
    z-index: 22;
}

.site-header__brand {
    z-index: 23;
}

@media (max-width: 700px) {
    .site-header::after {
        height: clamp(34px, 10vw, 52px);
    }
}

/* ========================================
   Pages internes — Hero
   ======================================== */

.inner-hero {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inner-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 27, 46, 0.84) 0%,
            rgba(5, 27, 46, 0.62) 45%,
            rgba(5, 27, 46, 0.18) 100%
        );
}

.inner-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0;
}

.inner-hero__title {
    margin: 0 0 8px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 56px);
    line-height: 1;
    text-transform: uppercase;
}

.inner-hero__tagline {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-style: italic;
}

@media (max-width: 650px) {
    .inner-hero {
        min-height: 220px;
    }

    .inner-hero__inner {
        width: calc(100% - 36px);
        padding: 42px 0;
    }

    .inner-hero__title {
        font-size: 38px;
    }

    .inner-hero__tagline {
        font-size: 20px;
    }
}


/* ========================================
   Agenda V2
   ======================================== */

.agenda-v2 {
    padding: 34px 24px 70px;
    background: #fff;
}

.agenda-v2 .agenda__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.agenda-filters {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.agenda-filters__types,
.agenda-filters__selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.agenda-filter-pill,
.agenda-filters select {
    min-height: 40px;
    border: 1px solid #d9dde1;
    border-radius: 999px;
    background: #fff;
    color: #0c304b;
    padding: 0 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.agenda-filter-pill.is-active {
    border-color: #ff174d;
    background: #ff174d;
    color: #fff;
}

.agenda-section {
    margin-top: 38px;
}

.agenda-section__title {
    margin: 0 0 22px;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
}

.agenda-section__title::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 8px;
    background: #ff174d;
}

.agenda-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.agenda-featured-card {
    overflow: hidden;
    border: 1px solid #e1e4e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(12, 48, 75, .08);
}

.agenda-featured-card__image {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    background: #f5efe8;
}

.agenda-featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-featured-card__date,
.agenda-featured-card__type {
    position: absolute;
    z-index: 1;
    background: #ff174d;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.agenda-featured-card__date {
    top: 14px;
    left: 14px;
    max-width: 105px;
    padding: 9px 11px;
    border-radius: 6px;
    text-align: center;
}

.agenda-featured-card__type {
    left: 14px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.agenda-featured-card__content {
    padding: 18px;
}

.agenda-featured-card__content h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.agenda-featured-card__content h3 a {
    color: #0c304b;
    text-decoration: none;
}

.agenda-featured-card__content p {
    margin: 5px 0;
    color: #555;
}

.agenda-featured-card__link {
    display: inline-block;
    margin-top: 15px;
    color: #ff174d;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
}

.agenda-compact-list,
.agenda-past-list {
    margin-top: 24px;
    border: 1px solid #e1e4e7;
    border-radius: 7px;
    overflow: hidden;
}

.agenda-compact-row {
    display: grid;
    grid-template-columns: 160px minmax(220px, 1.4fr) 130px minmax(170px, 1fr) 24px;
    gap: 16px;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #e8eaec;
    color: #0c304b;
    text-decoration: none;
}

.agenda-compact-row:last-child {
    border-bottom: 0;
}

.agenda-compact-row:hover {
    background: #faf8f5;
}

.agenda-compact-row__date {
    font-size: 13px;
    color: #59636b;
}

.agenda-compact-row__type {
    justify-self: start;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f4e7ec;
    color: #c31342;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-compact-row__location {
    color: #59636b;
    font-size: 13px;
}

.agenda-compact-row__arrow {
    color: #ff174d;
    font-weight: 800;
}

.agenda-section--past {
    margin-top: 52px;
}

.agenda-compact-row--past {
    opacity: .88;
}

.agenda-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.agenda-pagination a {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #d9dde1;
    border-radius: 999px;
    color: #0c304b;
    text-decoration: none;
    font-weight: 700;
}

.agenda-pagination a.is-current {
    border-color: #ff174d;
    background: #ff174d;
    color: #fff;
}

@media (max-width: 800px) {
    .agenda-v2 {
        padding: 26px 18px 50px;
    }

    .agenda-filters {
        align-items: stretch;
    }

    .agenda-filters__types {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .agenda-filter-pill {
        flex: 0 0 auto;
    }

    .agenda-featured-grid {
        grid-template-columns: 1fr;
    }

    .agenda-featured-card {
        display: grid;
        grid-template-columns: 38% 1fr;
    }

    .agenda-featured-card__image {
        height: 100%;
        min-height: 220px;
    }

    .agenda-compact-row {
        grid-template-columns: 1fr auto;
        gap: 6px 12px;
    }

    .agenda-compact-row__date,
    .agenda-compact-row__location {
        grid-column: 1;
    }

    .agenda-compact-row__type,
    .agenda-compact-row__arrow {
        grid-column: 2;
        grid-row: auto;
    }

    .agenda-compact-row strong {
        grid-column: 1;
    }
}

/* ========================================
   Agenda V2 — finitions
   ======================================== */

/* Les affiches restent entièrement visibles dans leur cadre. */
.agenda-featured-card__image img {
    object-fit: contain;
    background: #f5efe8;
}

/* Resserre légèrement la transition futur / passé. */
.agenda-section--past {
    margin-top: 38px;
}

/* Mobile : conserver la carte horizontale sans laisser
   une affiche verticale dicter toute la hauteur de la carte. */
@media (max-width: 800px) {
    .agenda-featured-card {
        grid-template-columns: 38% 1fr;
        align-items: stretch;
    }

    .agenda-featured-card__image {
        height: 220px;
        min-height: 0;
        align-self: start;
    }

    .agenda-featured-card__image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ========================================
   Accueil — Nos cours
   ======================================== */

.home-courses {
    padding: 54px 24px 62px;
    background: #ffffff;
}

.home-courses__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.home-courses__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.home-courses__title {
    margin: 0;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.1;
}

.home-courses__underline {
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 9px;
    background: #ff174d;
}

.home-courses__more.button--secondary {
    flex: 0 0 auto;
    border-color: #0c304b;
    background: #ffffff;
    color: #0c304b;
}

.home-courses__more.button--secondary:hover {
    border-color: #0c304b;
    background: #0c304b;
    color: #ffffff;
}

.home-courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.home-course-card {
    --course-color: #2878c8;
    position: relative;
    min-width: 0;
    padding: 24px 20px 22px;
    border: 1px solid #e1e4e7;
    border-top: 3px solid var(--course-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(12, 48, 75, .07);
}

.home-course-card--blue   { --course-color: #2878c8; }
.home-course-card--green  { --course-color: #399447; }
.home-course-card--orange { --course-color: #e98221; }
.home-course-card--red    { --course-color: #d83c45; }
.home-course-card--purple { --course-color: #7a58a6; }

/* Chapeau western : image unique, recolorée selon le niveau. */
.home-course-card__hat {
    width: 104px;
    height: 76px;
    margin: 0 auto 14px;
    background-color: var(--course-color);
    -webkit-mask-image: url("/wp-content/uploads/2026/10/chapeau-cours-traits.png");
    mask-image: url("/wp-content/uploads/2026/10/chapeau-cours-traits.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.home-course-card__hat-crown,
.home-course-card__hat-brim,
.home-course-card__hat-band {
    display: none;
}

.home-course-card__title {
    margin: 0 0 15px;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.15;
}

.home-course-card__facts {
    margin-bottom: 17px;
    color: #34434f;
    font-size: 14px;
    line-height: 1.45;
}

.home-course-card__facts p {
    margin: 5px 0;
}

.home-course-card__facts p span {
    display: inline-block;
    width: 18px;
    color: var(--course-color);
    font-size: 12px;
    font-weight: 800;
}

.home-course-card__description {
    padding-top: 15px;
    border-top: 1px solid #eceff1;
    color: #59636b;
    font-size: 14px;
    line-height: 1.55;
}

.home-course-card__description p {
    margin: 0;
}

@media (max-width: 900px) {
    .home-courses__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-courses {
        padding: 40px 18px 48px;
    }

    .home-courses__heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .home-courses__title {
        font-size: 30px;
    }

    .home-courses__more {
        align-self: flex-start;
    }

    .home-courses__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-course-card {
        padding: 22px 20px;
    }
}


/* =========================================================
   Album CRN7 — affichage public
   ========================================================= */

.album-single {
    background: #faf8f5;
    min-height: 60vh;
}

.album-single__header {
    background: #f5efe8;
    padding: 58px 24px 42px;
    text-align: center;
}

.album-single__header-inner,
.album-single__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.album-single__eyebrow {
    margin: 0 0 8px;
    color: #ff174f;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.album-single__title {
    margin: 0;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.album-single__date {
    margin: 14px 0 0;
    color: #5f6670;
    font-weight: 700;
}

.album-single__intro {
    max-width: 720px;
    margin: 22px auto 0;
    color: #34424d;
    line-height: 1.7;
}

.album-single__intro > :first-child {
    margin-top: 0;
}

.album-single__intro > :last-child {
    margin-bottom: 0;
}

.album-single__inner {
    padding-top: 46px;
    padding-bottom: 70px;
}

.album-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.album-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #e9e4de;
    box-shadow: 0 8px 24px rgba(12, 48, 75, 0.08);
    aspect-ratio: 4 / 3;
}

.album-gallery__image,
.album-gallery__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-gallery__item--image {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.album-gallery__item--image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(12, 48, 75, 0.14);
}

.album-gallery__item--external {
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-gallery__item--external iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.album-gallery__external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ff174f;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.album-single__empty {
    text-align: center;
    color: #5f6670;
}

@media (max-width: 900px) {
    .album-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .album-single__header {
        padding: 42px 18px 32px;
    }

    .album-single__header-inner,
    .album-single__inner {
        width: min(100% - 28px, 1180px);
    }

    .album-single__inner {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .album-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .album-gallery__item {
        border-radius: 10px;
    }
}

/* ========================================
   Pages éditoriales WordPress
   ======================================== */
.page .page-content {
    padding: 56px 24px 72px;
    background: #fff;
}
.page .page-content__inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}
.page .page-content .entry-title { display: none; }
.page .page-content .entry-content {
    color: #34434f;
    font-size: 16px;
    line-height: 1.65;
}
.page .page-content .entry-content > *:first-child { margin-top: 0; }
.page .page-content .entry-content > *:last-child { margin-bottom: 0; }
.page .page-content .entry-content h2 {
    margin: 0 0 28px;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.15;
}
.page .page-content .entry-content h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 10px;
    background: #ff174d;
}
.page .page-content .entry-content h3 {
    margin: 34px 0 16px;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.2;
}
.page .page-content .entry-content p { margin: 0 0 18px; }
.page .page-content .entry-content a {
    color: #ff174d;
    font-weight: 700;
}
.page .page-content .entry-content a:hover { text-decoration: underline; }
.page .page-content .wp-block-columns {
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
    margin: 0;
}
.page .page-content .wp-block-column { min-width: 0; }
.page .page-content .wp-block-image { margin: 0; }
.page .page-content .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.page .page-content .entry-content > .wp-block-columns + *,
.page .page-content .entry-content > * + .wp-block-columns {
    margin-top: 56px;
}
@media (max-width: 781px) {
    .page .page-content { padding: 42px 18px 54px; }
    .page .page-content .entry-content h2 {
        font-size: 30px;
        margin-bottom: 22px;
    }
    .page .page-content .wp-block-columns { gap: 26px; }
    .page .page-content .entry-content > .wp-block-columns + *,
    .page .page-content .entry-content > * + .wp-block-columns {
        margin-top: 42px;
    }
}


/* Encadré objectif des pages éditoriales */
.page .page-content .crn7-objective {
    margin-top: 28px;
    padding: 18px 22px;
    background: #f5efe8;
    border-left: 4px solid #ff174d;
    border-radius: 6px;
    color: #0c304b;
}

/* ========================================
   Association — L'équipe
   ======================================== */
.page .page-content .crn7-team {
    margin-top: 0;
    display: grid;
    row-gap: 18px;
}

.page .page-content .crn7-team > .wp-block-columns {
    gap: 18px;
    align-items: stretch;
    margin: 0 0 14px;
}

.page .page-content .crn7-team > .wp-block-columns:last-child {
    margin-bottom: 0;
}

.page .page-content .crn7-team .wp-block-column {
    position: relative;
    min-height: 0;
    padding: 16px 20px 17px;
    overflow: hidden;
    border: 1px solid #e7e0d9;
    border-top: 3px solid #ff174d;
    border-radius: 8px;
    background: #f5efe8;
}

.page .page-content .crn7-team .wp-block-column p {
    margin: 0;
}

.page .page-content .crn7-team .wp-block-column p:first-child {
    margin-bottom: 3px;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page .page-content .crn7-team .wp-block-column p + p {
    color: #66717a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

@media (max-width: 781px) {
    /* Six cartes empilées : 26 px à l'intérieur et entre les deux groupes. */
    .page .page-content .crn7-team {
        row-gap: 0;
    }

    .page .page-content .crn7-team > .wp-block-columns {
        gap: 26px;
        margin-bottom: 0;
    }

    .page .page-content .crn7-team .wp-block-columns:first-child {
        margin-bottom: 26px;
    }

    .page .page-content .crn7-team .wp-block-column {
        padding: 15px 18px 16px;
    }
}

/* ========================================
   Association — Vie de CRN7
   ======================================== */

/* Sépare clairement L'équipe de la rubrique suivante. */
.page .page-content .crn7-team {
    margin-bottom: 48px;
}

/* Les trois photos sélectionnées dans la page Association. */
.page .page-content .crn7-life-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.page .page-content .crn7-life-photos__item {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: #f5efe8;
}

.page .page-content .crn7-life-photos__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 781px) {
    .page .page-content .crn7-team {
        margin-bottom: 36px;
    }

    .page .page-content .crn7-life-photos {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 22px;
    }
}

/* ========================================
   Accueil — La vie de l'association
   ======================================== */
.home-life {
    padding: 54px 24px 62px;
    background: #f5efe8;
}

.home-life__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.home-life__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.home-life__title {
    margin: 0;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.1;
}

.home-life__underline {
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 9px;
    background: #ff174d;
}

.home-life__more.button--secondary {
    flex: 0 0 auto;
    border-color: #0c304b;
    background: transparent;
    color: #0c304b;
}

.home-life__more.button--secondary:hover {
    border-color: #0c304b;
    background: #0c304b;
    color: #ffffff;
}

.home-life__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-life__item {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: #ffffff;
}

.home-life__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .home-life {
        padding: 40px 18px 48px;
    }

    .home-life__heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .home-life__title {
        font-size: 30px;
    }

    .home-life__more {
        align-self: flex-start;
    }

    .home-life__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ========================================
   Responsive global — header, menu et heroes
   ======================================== */
.site-header__toggle {
    display: none;
}

@media (max-width: 700px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-header__inner {
        width: calc(100% - 32px);
        min-height: 76px;
        gap: 16px;
    }

    .site-header__brand {
        width: 82px;
        flex: 0 0 82px;
    }

    .site-header__brand .custom-logo {
        width: 82px;
        height: 86px;
    }

    .site-header__toggle {
        position: relative;
        z-index: 25;
        display: flex;
        width: 46px;
        height: 46px;
        margin-left: auto;
        padding: 11px 9px;
        flex-direction: column;
        justify-content: space-between;
        border: 0;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
    }

    .site-header__toggle span {
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 3px;
        background: #0c304b;
        transition: transform .2s ease, opacity .2s ease;
    }

    .menu-open .site-header__toggle span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }

    .menu-open .site-header__toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-open .site-header__toggle span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }

    .site-header__nav {
        position: absolute;
        z-index: 24;
        top: 100%;
        left: -16px;
        right: -16px;
        display: none;
        background: #ffffff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 10px 24px rgba(12, 48, 75, .12);
    }

    .menu-open .site-header__nav {
        display: block;
    }

    .main-menu {
        display: block;
        margin: 0;
        padding: 18px 24px 26px;
    }

    .main-menu li {
        margin: 0;
    }

    .main-menu a {
        padding: 13px 0;
        border-bottom: 1px solid #edf0f2;
        font-size: 16px;
    }

    .main-menu li:last-child a {
        border-bottom: 0;
    }

    .main-menu .current-menu-item > a {
        border-bottom: 1px solid #edf0f2;
        color: #ff174f;
    }

    .home-hero {
        min-height: 0;
    }

    .home-hero__inner {
        width: calc(100% - 36px);
        padding: 64px 0 54px;
    }

    .home-hero__title {
        max-width: 100%;
        white-space: normal;
        font-size: clamp(34px, 11vw, 46px);
        line-height: 1.02;
    }

    .home-hero__tagline {
        font-size: 22px;
    }

    .home-hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .inner-hero {
        min-height: 210px;
    }

    .inner-hero__inner {
        width: calc(100% - 36px);
        padding: 54px 0 44px;
    }

    .inner-hero__title {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: clamp(30px, 10vw, 40px);
        line-height: 1.05;
    }

    .page .page-content {
        overflow: hidden;
    }

    .page .page-content .entry-content h2 {
        overflow-wrap: normal;
        word-break: normal;
        font-size: 28px;
        line-height: 1.12;
    }
}

/* ========================================
   Agenda V3 — filtres responsive
   ======================================== */

@media (max-width: 800px) {
    .agenda-v2 .agenda-filters {
        display: block;
        margin-bottom: 28px;
    }

    .agenda-v2 .agenda-filters__types {
        display: flex;
        width: 100%;
        gap: 8px;
        padding: 0 0 8px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .agenda-v2 .agenda-filters__types::-webkit-scrollbar {
        display: none;
    }

    .agenda-v2 .agenda-filter-pill {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 14px;
        white-space: nowrap;
        font-size: 13px;
    }

    .agenda-v2 .agenda-filters__selects {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }

    .agenda-v2 .agenda-filters__selects label {
        display: block;
        min-width: 0;
    }

    .agenda-v2 .agenda-filters select {
        width: 100%;
        min-width: 0;
        height: 40px;
        padding: 0 34px 0 13px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .agenda-v2 .agenda-filters__selects {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Footer CRN7
   ======================================== */

.site-footer {
    position: relative;
    padding: 54px 0 22px;
    background: #0b2942;
    color: #ffffff;
}

.site-footer__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr 1.35fr auto;
    gap: 38px;
    align-items: start;
}

.site-footer__brand .custom-logo {
    width: 86px;
    height: auto;
    margin-bottom: 12px;
}

.site-footer__name {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
}

.site-footer__tagline {
    margin: 0;
    max-width: 240px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
}

.site-footer__title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin: 0 0 7px;
}

.footer-menu a,
.site-footer__contact a {
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.45;
}

.footer-menu a:hover,
.site-footer__contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer__contact {
    font-style: normal;
}

.site-footer__contact p {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 0 0 9px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.45;
}

.site-footer__contact-icon {
    flex: 0 0 18px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

.site-footer__socials {
    display: flex;
    gap: 10px;
}

.site-footer__social {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.site-footer__social:hover {
    background: #ffffff;
    color: #0b2942;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.62);
    font-size: 11px;
}

.site-footer__copyright {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer__legal a {
    color: inherit;
}

.site-footer__legal a:hover {
    color: #ffffff;
}

@media (max-width: 800px) {
    .site-footer {
        padding: 44px 0 22px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
}

@media (max-width: 560px) {
    .site-footer__inner {
        width: calc(100% - 36px);
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .site-footer__brand .custom-logo {
        width: 82px;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 10px;
        margin-top: 28px;
    }
}

/* ========================================
   Page Cours
   ======================================== */

.courses-page {
    background: #ffffff;
    color: #0c304b;
}

.courses-page__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.courses-page__levels {
    padding: 50px 0 26px;
}

.courses-page__heading {
    margin-bottom: 28px;
}

.courses-page__heading h2,
.courses-page__practical-box h2,
.courses-page__trial h2 {
    margin: 0;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

.courses-page__heading h2 {
    font-size: 34px;
}

.courses-page__heading > span {
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 9px;
    background: #ff174d;
}

.courses-page__heading p {
    margin: 12px 0 0;
    color: #59636b;
    font-size: 15px;
}

/* Les cartes utilisent volontairement le composant déjà validé sur l'accueil. */
.courses-page__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.courses-page__grid .home-course-card {
    padding: 22px 18px 20px;
}

.courses-page__grid .home-course-card__hat {
    width: 96px;
    height: 70px;
    margin-bottom: 12px;
}

/* Informations pratiques : contenu administrable de la page WordPress. */
.courses-page__practical {
    padding: 20px 0 24px;
}

.courses-page__practical-box {
    padding: 26px 30px;
    border-radius: 8px;
    background: #f5efe8;
}

.courses-page__practical-box h2 {
    margin-bottom: 18px;
    font-size: 25px;
}

.courses-page__practical-content {
    color: #46545f;
    font-size: 14px;
    line-height: 1.6;
}

.courses-page__practical-content > :first-child {
    margin-top: 0;
}

.courses-page__practical-content > :last-child {
    margin-bottom: 0;
}

/* Appel à l'action final. */
.courses-page__trial {
    padding: 34px 0 58px;
}

.courses-page__trial-content {
    position: relative;
    max-width: 760px;
}

.courses-page__trial h2 {
    margin-bottom: 10px;
    font-size: 30px;
}

.courses-page__trial p {
    margin: 0 0 20px;
    color: #59636b;
    font-size: 15px;
    line-height: 1.55;
}

.courses-page__trial .button {
    min-height: 42px;
    padding: 0 20px;
}

/* Tablette */
@media (max-width: 900px) {
    .courses-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .courses-page__inner {
        width: calc(100% - 36px);
    }

    .courses-page__levels {
        padding: 38px 0 18px;
    }

    .courses-page__heading {
        margin-bottom: 22px;
    }

    .courses-page__heading h2 {
        font-size: 30px;
    }

    .courses-page__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .courses-page__grid .home-course-card {
        padding: 22px 20px;
    }

    .courses-page__grid .home-course-card__hat {
        width: 104px;
        height: 76px;
    }

    .courses-page__practical {
        padding: 18px 0;
    }

    .courses-page__practical-box {
        padding: 22px 20px;
    }

    .courses-page__practical-box h2 {
        font-size: 24px;
    }

    .courses-page__trial {
        padding: 28px 0 46px;
    }

    .courses-page__trial h2 {
        font-size: 28px;
    }
}

/* ========================================
   Page Contact
   ======================================== */

.contact-page {
    padding: 50px 0 64px;
    background: #ffffff;
    color: #0c304b;
}

.contact-page__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.contact-page__heading {
    margin-bottom: 30px;
}

.contact-page__heading h2 {
    margin: 0;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.15;
}

.contact-page__heading > span {
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 9px;
    background: #ff174d;
}

.contact-page__heading p {
    margin: 12px 0 0;
    color: #59636b;
    font-size: 15px;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr);
    gap: 28px;
    align-items: start;
}

.contact-page__details,
.contact-page__form-wrap {
    padding: 28px 30px;
    border: 1px solid #e4e7e9;
    border-radius: 8px;
}

.contact-page__details {
    background: #f5efe8;
}

.contact-page__form-wrap {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(12, 48, 75, .07);
}

.contact-page__details h3,
.contact-page__form-wrap h3 {
    margin: 0 0 24px;
    color: #0c304b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.2;
}

.contact-page__detail {
    margin-bottom: 22px;
}

.contact-page__detail:last-child {
    margin-bottom: 0;
}

.contact-page__detail strong {
    display: block;
    margin-bottom: 5px;
    color: #ff174d;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contact-page__detail p {
    margin: 0;
    color: #46545f;
    font-size: 14px;
    line-height: 1.55;
}

.contact-page__detail a {
    color: #0c304b;
    font-weight: 700;
}

.contact-page__detail a:hover {
    color: #ff174d;
}

.contact-page__socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-page__socials a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #0c304b;
    border-radius: 999px;
    font-size: 13px;
}

.contact-page__socials a:hover {
    background: #0c304b;
    color: #ffffff;
}

.contact-page__extra {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(12, 48, 75, .14);
    color: #46545f;
    font-size: 14px;
    line-height: 1.6;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    display: block;
    min-width: 0;
}

.contact-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #0c304b;
    font-size: 13px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    border: 1px solid #ccd3d8;
    border-radius: 6px;
    background: #ffffff;
    color: #253846;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form input {
    height: 44px;
    padding: 0 12px;
}

.contact-form textarea {
    min-height: 170px;
    padding: 12px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff174d;
    box-shadow: 0 0 0 3px rgba(255, 23, 77, .10);
}

.contact-form .button {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

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

.contact-form__notice {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form__notice--success {
    border-left: 4px solid #399447;
    background: #eef7ef;
    color: #245e2c;
}

.contact-form__notice--error {
    border-left: 4px solid #d83c45;
    background: #fff0f1;
    color: #8b2028;
}

@media (max-width: 800px) {
    .contact-page__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-page {
        padding: 38px 0 48px;
    }

    .contact-page__inner {
        width: calc(100% - 36px);
    }

    .contact-page__heading {
        margin-bottom: 24px;
    }

    .contact-page__heading h2 {
        font-size: 30px;
    }

    .contact-page__details,
    .contact-page__form-wrap {
        padding: 22px 20px;
    }

    .contact-page__details h3,
    .contact-page__form-wrap h3 {
        font-size: 23px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* Association — liste automatique des albums */
.page .page-content .crn7-albums-list { margin-top: 38px; scroll-margin-top: 100px; }
.page .page-content .crn7-albums-list h2 { margin-bottom: 22px; }
.crn7-albums-list__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.crn7-albums-list__card { min-width: 0; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.05); }
.page .page-content .crn7-albums-list__link { display: block; color: #092c48; text-decoration: none; }
.crn7-albums-list__image, .crn7-albums-list__placeholder { display: block; width: 100%; height: 145px; object-fit: cover; background: #f1ede8; }
.crn7-albums-list__details { display: grid; grid-template-columns: 1fr auto; padding: 12px; align-items: center; gap: 4px; }
.crn7-albums-list__name { grid-column: 1; font-weight: 700; overflow-wrap: anywhere; }
.crn7-albums-list__count { grid-column: 1; color: #566879; font-size: .85rem; }
.crn7-albums-list__arrow { grid-column: 2; grid-row: 1 / span 2; background: #ff1650; color: white; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; line-height: 1; }
.page .page-content .crn7-albums-list__link:hover .crn7-albums-list__name, .page .page-content .crn7-albums-list__link:focus-visible .crn7-albums-list__name { text-decoration: underline; }
@media (max-width: 900px) { .crn7-albums-list__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .crn7-albums-list__grid { grid-template-columns: 1fr; } }

/* Navigation interne L’association */
.crn7-association-layout { display:grid; grid-template-columns:205px minmax(0,1fr); gap:34px; align-items:start; }
.crn7-association-main { min-width:0; }
.crn7-association-nav { position:sticky; top:95px; }
.crn7-association-nav__list { list-style:none; margin:0; padding:12px; border:1px solid #e8e8e8; border-radius:8px; background:#fff; }
.crn7-association-nav__list li { margin:0; }
.crn7-association-nav__list a { display:block; padding:10px 12px; color:#092c48; text-decoration:none; border-radius:5px; font-weight:600; }
.crn7-association-nav__list a:hover,.crn7-association-nav__list a:focus-visible { background:#f1ede8; }
.crn7-association-main [id] { scroll-margin-top:105px; }
@media(max-width:850px) { .crn7-association-layout { display:block; } .crn7-association-nav { position:static; margin-bottom:24px; } .crn7-association-nav__list { display:flex; gap:5px; flex-wrap:wrap; } .crn7-association-nav__list a { padding:8px 10px; font-size:.9rem; } }

/* Correction ciblée : séparation des deux rangées de l'équipe en 3 colonnes.
   La marge est portée par le second bloc Gutenberg, non par les cartes. */
@media (min-width: 782px) {
    .page .page-content .crn7-team > .wp-block-columns + .wp-block-columns {
        margin-top: 18px !important;
    }
}

/* ========================================
   On aime ! — Articles WordPress natifs
   ======================================== */
.crn7-blog,
.crn7-article .page-content { padding: 52px 24px 72px; background: #fff; }
.crn7-blog .page-content__inner,
.crn7-article .page-content__inner { width: min(1200px, 100%); margin: 0 auto; }
.crn7-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.crn7-blog__card { min-width: 0; overflow: hidden; border: 1px solid #e1e4e7; border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(12,48,75,.08); }
.crn7-blog__card-link { display: flex; flex-direction: column; height: 100%; color: #0c304b; }
.crn7-blog__image { width: 100%; height: 220px; object-fit: cover; background: #f5efe8; }
.crn7-blog__card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.crn7-blog__date { margin-bottom: 10px; color: #ff174d; font-size: 13px; font-weight: 700; }
.crn7-blog__title { margin: 0 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: 25px; line-height: 1.2; }
.crn7-blog__excerpt { margin: 0 0 20px; color: #59636b; font-size: 15px; line-height: 1.6; }
.crn7-blog__more { margin-top: auto; color: #ff174d; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.crn7-blog__card-link:hover .crn7-blog__title,
.crn7-blog__card-link:focus-visible .crn7-blog__title { color: #ff174d; }
.crn7-blog .navigation.pagination { margin-top: 38px; }
.crn7-blog .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.crn7-blog .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 6px 12px; border: 1px solid #d9dde1; border-radius: 999px; font-weight: 700; }
.crn7-blog .page-numbers.current { background: #ff174d; border-color: #ff174d; color: #fff; }
.crn7-article__content { max-width: 820px; margin: 0 auto; color: #34434f; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.crn7-article__content > :first-child { margin-top: 0; }
.crn7-article__content h2,
.crn7-article__content h3 { color: #0c304b; font-family: Georgia, 'Times New Roman', serif; line-height: 1.2; }
.crn7-article__content h2 { margin: 38px 0 18px; font-size: 32px; }
.crn7-article__content h3 { margin: 28px 0 14px; font-size: 25px; }
.crn7-article__content p { margin: 0 0 20px; }
.crn7-article__content a { color: #d9003b; text-decoration: underline; text-underline-offset: 2px; }
.crn7-article__content .wp-block-image img { height: auto; border-radius: 8px; }
.crn7-article__content iframe { max-width: 100%; }
.crn7-article__back { max-width: 820px; margin: 42px auto 0; padding-top: 22px; border-top: 1px solid #e1e4e7; }
.crn7-article__back a { color: #ff174d; font-weight: 800; }
@media (max-width: 900px) {
    .crn7-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .crn7-blog, .crn7-article .page-content { padding: 38px 18px 52px; }
    .crn7-blog__grid { grid-template-columns: 1fr; gap: 16px; }
    .crn7-blog__image { height: 210px; }
    .crn7-blog__title { font-size: 23px; }
    .crn7-article__content h2 { font-size: 28px; }
}

/* On aime ! — ajustement typographique mobile des articles uniquement */
@media (max-width: 650px) {
    .crn7-article .inner-hero__title {
        font-size: clamp(27px, 7.2vw, 32px);
        line-height: 1.12;
        overflow-wrap: normal;
    }
    .crn7-article .inner-hero__tagline { font-size: 16px; }
    .crn7-article__content h2 { font-size: 25px; line-height: 1.2; }
    .crn7-article__content h3 { font-size: 22px; line-height: 1.25; }
}

/* On aime ! — typographie compacte sur téléphone (15/10/2026) */
@media (max-width: 650px) {
    .crn7-article .inner-hero__title { font-size: 20px; line-height: 1.2; overflow-wrap: break-word; }
    .crn7-article .inner-hero__tagline { font-size: 14px; }
    .crn7-article .inner-hero__inner { padding-top: 30px; padding-bottom: 30px; }
    .crn7-article .inner-hero { min-height: 0; }
    .crn7-article .crn7-article__content { font-size: 15px; line-height: 1.6; }
    .crn7-article .crn7-article__content h2 { font-size: 18px; line-height: 1.3; margin: 26px 0 12px; }
    .crn7-article .crn7-article__content h3 { font-size: 16px; line-height: 1.35; margin: 22px 0 10px; }
}

/* Albums — vignettes vidéo pour la visionneuse */
.album-gallery__item--video { cursor: pointer; }
.album-gallery__video-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 46px; color: #0c304b; }
.album-gallery__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(12,48,75,.86); color: #fff; font-size: 22px; pointer-events: none; }
.album-gallery__item:focus-visible { outline: 3px solid #ff174f; outline-offset: 3px; }

/* Équipe CRN7 — portraits à droite */
.page .page-content .crn7-team .wp-block-column {
    display: flow-root;
}

.page .page-content .crn7-team .wp-block-image {
    float: right;
    width: 70px;
    height: 70px;
    margin: 0 0 0 14px;
}

.page .page-content .crn7-team .wp-block-image img {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}