/*
Theme Name: cecifoot2026
Theme URI: https://example.com/cecifoot2026
Author: Olivier Bloch
Author URI: https://example.com
Description: A clean, secure, and minimal WordPress starter theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cecifoot2026
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5em;
    line-height: 1.3;
    font-weight: 500;
}


h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 4rem;
    line-height: 1;
    font-family: 'League Gothic', sans-serif;
}

h3 {
    font-size: 2.4rem;
    font-family: 'League Gothic', sans-serif;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5em;
}

a {
    color: #0073aa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #005177;
}

/* ===== Images ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0 0 1.5em;
}

/* ===== Layout ===== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    width: 100%;
}

/* ===== HEADER ===== */

:root {
    --cf-header-h: 80px;
    /* hauteur de la barre                        */
    --cf-header-offset: 36px;
    /* espace au-dessus et sur les côtés          */
    --cf-logo-card-h: 178px;
    /* carte logo : déborde sous le header        */
    --header-height: calc(var(--cf-header-h) + var(--cf-header-offset));
    /* alias blocs */
    --cf-content-width: 1100px;
    /* largeur max du contenu des pages           */
}

/* Les blocs plein-largeur (hero) gèrent leur propre espacement.
   Pour les pages sans hero, on ajoute du padding via les conteneurs
   spécifiques (.entry-content, archive wrappers, etc.)              */

/* Barre flottante — décalée du haut et des côtés */
.cf-header {
    position: fixed;
    top: var(--cf-header-offset);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2 * var(--cf-header-offset));
    max-width: calc(1670px - 2 * var(--cf-header-offset));
    height: var(--cf-header-h);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    overflow: visible;
}

/* Conteneur interne flex */
.cf-header__inner {
    display: flex;
    align-items: flex-start;
    /* logo-wrap s'aligne en haut et déborde */
    height: var(--cf-header-h);
    padding: 0 2rem 0 0;
    /* pas de padding gauche : logo flush avec le bord */
    max-width: 1600px;
    margin: 0 auto;
    gap: 1.5rem;
    overflow: visible;
    position: relative;
    font-family: 'League Gothic';
    font-size: 2rem;
    z-index: 1000;
    /* au-dessus du drawer mobile (z-index: 999) dans le même contexte de superposition */
}

/* ---- Carte logo ---- */
/* Dépasse ~10px au-dessus de la barre + ~90px en dessous */
.cf-header__logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--cf-logo-card-h);
    padding: 12px 24px;
    background: #ffffff;
    border-radius: 16px 16px 20px 20px;
    /* légèrement arrondi en haut car il dépasse */
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    margin-top: -10px;
    /* déborde 10px au-dessus de la barre */
    transition: height 0.35s ease, margin-top 0.35s ease;
}

.cf-header__logo-link {
    display: flex;
    align-items: center;
}

.cf-header__logo-img {
    height: 108px;
    /* +20% vs original 90px */
    width: auto;
    max-width: 220px;
    display: block;
    transition: height 0.35s ease;
}

.cf-header__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ---- Droite : langue + CTA + burger ---- */
.cf-header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    height: var(--cf-header-h);
}

/* ---- Navigation desktop — centrée entre logo et droite ---- */
.cf-header__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: var(--cf-header-h);
}

.cf-header__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cf-header__nav li {
    position: relative;
    width: 100%;
    text-align: center;
    transition: 0.2s ease;
    border-radius: 6px;
}

.cf-header__nav li:hover {
    background: whitesmoke;
}

.cf-header__nav a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 1.7rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

/* Hover top-level nav — alternance couleur-1 à couleur-5 */
.cf-header__nav>ul>li:nth-child(5n+1)>a:hover,
.cf-header__nav>ul>li:nth-child(5n+1).current-menu-item>a,
.cf-header__nav>ul>li:nth-child(5n+1).current-menu-ancestor>a,
.cf-header__nav>ul>li:nth-child(5n+1).current-page-ancestor>a {
    background: var(--couleur-1, #0057a8);
    color: #ffffff;
}

.cf-header__nav>ul>li:nth-child(5n+2)>a:hover,
.cf-header__nav>ul>li:nth-child(5n+2).current-menu-item>a,
.cf-header__nav>ul>li:nth-child(5n+2).current-menu-ancestor>a,
.cf-header__nav>ul>li:nth-child(5n+2).current-page-ancestor>a {
    background: var(--couleur-2, #e63946);
    color: #ffffff;
}

.cf-header__nav>ul>li:nth-child(5n+3)>a:hover,
.cf-header__nav>ul>li:nth-child(5n+3).current-menu-item>a,
.cf-header__nav>ul>li:nth-child(5n+3).current-menu-ancestor>a,
.cf-header__nav>ul>li:nth-child(5n+3).current-page-ancestor>a {
    background: var(--couleur-3, #2a9d8f);
    color: #ffffff;
}

.cf-header__nav>ul>li:nth-child(5n+4)>a:hover,
.cf-header__nav>ul>li:nth-child(5n+4).current-menu-item>a,
.cf-header__nav>ul>li:nth-child(5n+4).current-menu-ancestor>a,
.cf-header__nav>ul>li:nth-child(5n+4).current-page-ancestor>a {
    background: var(--couleur-4, #f4a261);
    color: #ffffff;
}

.cf-header__nav>ul>li:nth-child(5n+0)>a:hover,
.cf-header__nav>ul>li:nth-child(5n+0).current-menu-item>a,
.cf-header__nav>ul>li:nth-child(5n+0).current-menu-ancestor>a,
.cf-header__nav>ul>li:nth-child(5n+0).current-page-ancestor>a {
    background: var(--couleur-5, #6d6875);
    color: #ffffff;
}

/* Sous-menus desktop */
.cf-header__nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* flush avec le bas du li — pas de gap pour que le hover ne se coupe pas */
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    padding: 0.75rem 0.5rem 0.5rem;
    /* padding-top = espace visuel au lieu du gap */
    z-index: 10;
    flex-direction: column;
    gap: 0.125rem;
}

.cf-header__nav li:hover>.sub-menu,
.cf-header__nav li:focus-within>.sub-menu {
    display: flex;
}

.cf-header__nav .sub-menu a {
    font-size: 1.4rem;
    border-radius: 8px;
}

/* ---- Sélecteur de langue ---- */
.cf-header__lang {
    position: relative;
}

.cf-header__lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    color: #1a1a1a;
    transition: background 0.2s ease;
}

.cf-header__lang-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.cf-header__lang-flag {
    display: block;
    height: 22px;
    width: auto;
    border-radius: 3px;
    flex-shrink: 0;
}

.cf-header__lang-code {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cf-header__lang-arrow {
    transition: transform 0.22s ease;
}

.cf-header__lang-btn[aria-expanded="true"] .cf-header__lang-arrow {
    transform: rotate(180deg);
}

.cf-header__lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    padding: 0.5rem;
    list-style: none;
    margin: 0;
    min-width: 90px;
    z-index: 1100;
    /* au-dessus du header (1000) */
}

.cf-header__lang.is-open .cf-header__lang-dropdown {
    display: block;
}

.cf-header__lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.cf-header__lang-dropdown a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.cf-header__lang-dropdown img {
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---- Bouton CTA header ---- */
.cf-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.4rem;
    background: var(--couleur-1, #0057a8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.15s ease;
    line-height: 1.2;
}

.cf-header__cta-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.cf-header__cta-icon svg,
.cf-header__cta-icon img {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}

.cf-header__cta:hover,
.cf-header__cta:focus-visible {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #ffffff;
}

/* ---- Hamburger ---- */
.cf-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.cf-header__burger:hover {
    background: rgba(0, 0, 0, 0.06);
}

.cf-header__burger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* État ouvert du burger → croix */
.cf-header__burger[aria-expanded="true"] .cf-header__burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.cf-header__burger[aria-expanded="true"] .cf-header__burger-bar:nth-child(2) {
    opacity: 0;
}

.cf-header__burger[aria-expanded="true"] .cf-header__burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Scroll shrink : logo réduit à ~50% ---- */
.cf-header.is-scrolled .cf-header__logo-wrap {
    height: calc(var(--cf-header-h) + 10px);
    margin-top: -4px;
}

.cf-header.is-scrolled .cf-header__logo-img {
    height: 54px;
    /* ~50% de 108px */
}

/* ---- Menu mobile drawer ---- */
.cf-header__mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    /* dynamic viewport height — évite le morceau de page en bas sur mobile */
    background: #ffffff;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    display: none;
    /* affiché uniquement via media query */
}

.cf-header__mobile-menu.is-open {
    transform: translateX(0);
}

/* Bloque le scroll body quand le menu est ouvert */
body.cf-nav-open {
    overflow: hidden;
}

.cf-header__mobile-inner {
    /* padding-top pousse le contenu sous la barre flottante */
    padding: calc(var(--header-height) + 6rem) 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Navigation mobile */
.cf-header__mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-header__mobile-nav>ul>li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.cf-header__mobile-nav>ul>li>a {
    flex: 1;
    padding: 1rem 0;
    font-size: 1.7rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    font-family: "League Gothic";
}

/* Bouton sous-menu mobile (injecté via JS) */
.cf-submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.22s ease;
    flex-shrink: 0;
}

.cf-submenu-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.cf-submenu-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

/* Sous-menu mobile accordéon */
.cf-header__mobile-nav .sub-menu {
    display: none;
    width: 100%;
    padding: 0.25rem 0 1rem 0rem;
    list-style: none;
    margin: 0;
}

.cf-header__mobile-nav .sub-menu.is-open {
    display: block;
}

.cf-header__mobile-nav .sub-menu li {
    border-bottom: none;
}

.cf-header__mobile-nav .sub-menu a {
    padding: 0.55rem 0 0.55rem 1.3rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: #444;
    text-decoration: none;
    display: block;
    font-family: "League Gothic";
    border-radius: 6px;
    transition: 0.2s ease;
}

.cf-header__mobile-nav .sub-menu a:hover {
    color: var(--couleur-1, #0057a8);
    background-color: whitesmoke;

}

/* Pied du drawer mobile */
.cf-header__mobile-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cf-header__mobile-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cf-header__mobile-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.875rem;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.cf-header__mobile-lang-item.is-active {
    border-color: var(--couleur-1, #0057a8);
    color: var(--couleur-1, #0057a8);
    font-weight: 700;
}

.cf-header__mobile-lang-item img {
    border-radius: 2px;
}

.cf-header__mobile-cta {
    text-align: center;
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {

    /* Cache nav, langue et CTA sur desktop, affiche le burger */
    .cf-header__nav,
    .cf-header__lang,
    .cf-header__cta {
        display: none;
    }

    .cf-header__burger {
        display: flex;
    }

    .cf-header__mobile-menu {
        display: block;
    }

    /* Barre blanche compacte : juste la largeur logo + burger */
    .cf-header {
        left: var(--cf-header-offset);
        transform: none;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 767px) {
    :root {
        --cf-header-h: 64px;
        --cf-header-offset: 16px;
        --cf-logo-card-h: 112px;
        --header-height: calc(64px + 16px);
    }

    .cf-header__logo-img {
        height: 68px;
    }

    .cf-header.is-scrolled .cf-header__logo-img {
        height: 38px;
    }

    .cf-header__logo-img {
        height: 68px;
    }

    .cf-header__logo-wrap {
        margin-top: -6px;
    }

    .cf-header__inner {
        padding: 0 1rem 0 0;
    }
}

/* ===== Espacement pages sans hero block =====
   Les pages qui n'ont pas de bloc heading-hero en première position
   ont besoin d'un padding-top pour que leur contenu commence
   sous la barre flottante.
   ================================================= */
.entry-content,
.cf-archive-partenaires,
.cf-archive-equipes,
.single-equipes .site-main {
    padding-top: var(--header-height);
}

/* Le bloc heading hero gère lui-même l'espacement :
   il annule le padding-top de son parent avec un margin-top négatif */
.cf-heading-block {
    margin-top: calc(-1 * var(--header-height));
}

/* ===== Posts & Pages ===== */
.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
}

.entry-title a {
    text-decoration: none;
    color: #333;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.entry-content {
    max-width: var(--cf-content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-bottom: 2rem;
}

/* Blocs pleine largeur — sortent du wrapper de contenu */
.entry-content>.cf-section-blocs.is-full-width,
.entry-content>.cf-grande-image.is-full-screen,
.entry-content>.cf-barre-annonce,
.entry-content>.cf-heading-block {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
}


.cf-section-blocs__content .wp-block-column {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.cf-section-blocs__content h2.wp-block-heading {
    line-height: 1;
    font-weight: 500;
    font-size: 7rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.wp-block-column p {
    font-size: 1.25rem;
}

.wp-block-column.col_titre {
    align-items: center;
}

.wp-block-column.col_titre .wp-block-heading {
    font-size: 9rem;
}

.wp-block-column.col_text {
    padding-right: 12rem;
}

.wp-block-column.col-text {
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);
}

.wp-block-column.padding-left {
    padding-left: 150px;
    padding-right: 20px;
}

.wp-block-column.padding-right {
    padding-right: 150px;
    padding-left: 20px;
}

.wp-block-column.margin-auto img {
    margin: auto;
}


@media screen and (max-width: 768px) {
    .wp-block-column.col_text {
        padding-right: 0rem;
        padding: 1rem;
    }

    .wp-block-column.col-text {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .cf-section-blocs__content .wp-block-heading {
        line-height: 1;
        font-weight: 500;
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .wp-block-column.col_titre .wp-block-heading {
        font-size: 5rem;
    }

    .wp-block-column.padding-left {
        padding: 0px 30px;
    }

    .wp-block-column.padding-right {
        padding: 0px 30px;
    }

    .cf-section-blocs__content h2.wp-block-heading {
        font-size: 4rem;
    }
}


.wp-block-column.col_image.right {
    justify-content: center;
    align-items: end;
}

.wp-block-column.col_image.left {
    justify-content: center;
    align-items: start;
}


.wp-block-column .wp-block-image img {
    border-radius: 12px;
}


.wp-block-heading.big_title {
    line-height: 0.85;
    font-size: 8rem;
    margin-bottom: 2rem;
}



.entry-footer {
    font-size: 0.875rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 2rem;
}

article.post,
article.page {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

article.post:last-child,
article.page:last-child {
    border-bottom: none;
}

/* ===== Sidebar ===== */
.widget-area {
    padding: 1.5rem 0;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.25rem 0;
}

/* ===== Footer ===== */
.site-footer {
    background-color: #23282d;
    color: #aaa;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.site-footer a {
    color: #00b9eb;
}

/* ===== Comments ===== */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.comment-meta {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.comment-reply-link {
    font-size: 0.8125rem;
}

/* ===== Forms ===== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #005177;
}

/* ===== Pagination ===== */
.pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: #f0f0f0;
    text-decoration: none;
    border-radius: 4px;
    color: #333;
}

.pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
}

/* ===== Alignments (WordPress) ===== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
}

/* ===== Accessibility ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 999999;
}

.skip-link:focus {
    top: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 2rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }
}

/* ===== WordPress Core Styles ===== */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    padding-top: 0.5rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5em;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 0.5rem);
}

.gallery-caption {
    font-size: 0.8125rem;
}

.sticky .entry-title::before {
    content: "★ ";
    color: #0073aa;
}

.bypostauthor .comment-body {
    border-left: 3px solid #0073aa;
}

/* =====================================================
   FOOTER
   ===================================================== */

.cf-footer {
    background-color: var(--couleur-1, #0057a8);
    color: #ffffff;
    border-radius: 20px 20px 0 0;
    /* Coins supérieurs arrondis */
    margin-top: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.cf-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
    box-sizing: border-box;
}

/* ---- Liens blancs ---- */
.cf-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cf-footer a:hover,
.cf-footer a:focus-visible {
    opacity: 0.75;
}

/* ---- Lignes 70/30 ---- */
.cf-footer__row {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 1rem;
    align-items: start;
}

.cf-footer__row--bottom {
    align-items: center;
}

/* ---- Colonne principale 70% : logo + menu en ligne ---- */
.cf-footer__main {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* ---- Logo ---- */
.cf-footer__logo {
    flex-shrink: 0;
    width: 150px;
}

.cf-footer__logo img {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Menu 2 niveaux (grille de colonnes) ---- */
.cf-footer__nav {
    flex: 1;
}

.cf-footer__nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
}

/* Titre de colonne : visuellement masqué */
.cf-footer__nav-heading {
    margin: 0 0 0.75rem;
    font-size: 0;
    /* invisible */
    line-height: 0;
    pointer-events: none;
    user-select: none;
}

.cf-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cf-footer__nav-list a {
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.9;
}

.cf-footer__nav-list a:hover {
    opacity: 1;
}

/* ---- Colonne billetterie ---- */
.cf-footer__billet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cf-footer__billet-titre {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 500;
    margin: 0;
    line-height: 1.15;
    color: #ffffff;
    font-family: 'League Gothic';
    text-transform: uppercase;
}

.cf-footer__billet-text {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

/* Bouton outline blanc */
.cf-footer__billet-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    padding: 0.7rem 1.75rem;
    border-radius: 6px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    font-size: 1.5rem;
    font-family: 'League Gothic';
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.cf-footer__billet-btn:hover,
.cf-footer__billet-btn:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* ---- Séparateur ---- */
.cf-footer__separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* ---- Copyright ---- */
.cf-footer__copyright {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ---- Menu légal (inline) ---- */
.cf-footer__legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    justify-content: flex-end;
}

.cf-footer__legal-list a {
    font-size: 0.8rem;
    opacity: 0.7;
}

.cf-footer__legal-list a:hover {
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .cf-footer {
        border-radius: 30px 30px 0 0;
    }

    .cf-footer__row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cf-footer__row--bottom {
        gap: 1rem;
    }

    /* Logo + menu : empilés verticalement sur tablette */
    .cf-footer__main {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cf-footer__legal-list {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .cf-footer {
        border-radius: 20px 20px 0 0;
    }

    .cf-footer__inner {
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .cf-footer__nav-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ARCHIVE PARTENAIRES
   ===================================================== */

.cf-archive-partenaires {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
}

/* En-tête */
.cf-archive-partenaires__header {
    text-align: center;
    margin-bottom: 3rem;
}

.cf-archive-partenaires__titre {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.cf-archive-partenaires__intro {
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.7;
    line-height: 1.6;
}

/* Sections par type */
.cf-archive-partenaires__section {
    margin-bottom: 3rem;
}

.cf-archive-partenaires__section:last-of-type {
    margin-bottom: 1.5rem;
}

.cf-archive-partenaires__section-title {
    font-family: 'League Gothic', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--couleur-1, #0057a8);
}

/* Sous l'égide de */
.cf-archive-partenaires__section--egide {
    margin-bottom: 3rem;
}

.cf-archive-partenaires__egide-label {
    font-family: 'League Gothic', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    color: #555;
    letter-spacing: 0.03em;
}

/* Grille des cartes */
.cf-archive-partenaires__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Carte partenaire */
.cf-archive-partenaires__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    box-sizing: border-box;
    text-align: center;
}

/* Carte partenaire titre — largeur fixe */
.cf-archive-partenaires__section--large .cf-archive-partenaires__card {
    max-width: 320px;
    width: 100%;
}

/* Logo */
.cf-archive-partenaires__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-archive-partenaires__logo img {
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.cf-archive-partenaires__logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.cf-archive-partenaires__logo a:hover {
    opacity: 0.75;
}

/* Taille small */
.cf-archive-partenaires__section--small .cf-archive-partenaires__logo img {
    max-height: 50px;
    max-width: 120px;
}

/* Taille medium (défaut) */
.cf-archive-partenaires__section--medium .cf-archive-partenaires__logo img {
    max-height: 70px;
    max-width: 160px;
}

/* Taille large */
.cf-archive-partenaires__section--large .cf-archive-partenaires__logo img {
    max-height: 180px;
    max-width: 360px;
}

/* Égide */
.cf-archive-partenaires__section--egide .cf-archive-partenaires__logo img {
    max-height: 70px;
    max-width: 160px;
}

/* Corps texte */
.cf-archive-partenaires__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.cf-archive-partenaires__nom {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.cf-archive-partenaires__description {
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.7;
    margin: 0;
}

/* Lien site internet */
.cf-archive-partenaires__lien {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 0.2em;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--couleur-1, #0057a8);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cf-archive-partenaires__lien:hover {
    opacity: 0.75;
}

/* Message vide */
.cf-archive-partenaires__empty {
    text-align: center;
    opacity: 0.5;
    padding: 3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cf-archive-partenaires__section--small .cf-archive-partenaires__logo img {
        max-height: 40px;
        max-width: 100px;
    }

    .cf-archive-partenaires__section--medium .cf-archive-partenaires__logo img {
        max-height: 50px;
        max-width: 120px;
    }

    .cf-archive-partenaires__section--large .cf-archive-partenaires__logo img {
        max-height: 120px;
        max-width: 280px;
    }

    .cf-archive-partenaires__section-title {
        font-size: 1.4rem;
    }
}

/* =====================================================
   BLOG ARCHIVE
   ===================================================== */

.cf-blog-archive {
    padding-top: var(--header-height);
}

/* ---- Hero ---- */
.cf-blog-archive__hero {
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height, 116px);
    padding-bottom: 3rem;
    color: #ffffff;
    text-align: center;
}

.cf-blog-archive__hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
}

.cf-blog-archive__hero-titre {
    font-family: 'League Gothic', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cf-blog-archive__hero-desc {
    font-size: 1.15rem;
    opacity: 0.85;
    margin: 1rem 0 0;
    line-height: 1.6;
}

/* ---- Wrapper ---- */
.cf-blog-archive__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ---- Grille articles ---- */
.cf-blog-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .cf-blog-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .cf-blog-archive__grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Carte article ---- */
.cf-blog-archive__card {
    display: flex;
    flex-direction: column;
    background: #F2F1F8;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    padding: 0;
    margin: 0;
}

.cf-blog-archive__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ---- Image miniature ---- */
.cf-blog-archive__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    text-decoration: none;
}

.cf-blog-archive__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cf-blog-archive__card:hover .cf-blog-archive__thumb img {
    transform: scale(1.05);
}

.cf-blog-archive__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0dfe8;
}

.cf-blog-archive__thumb-icon {
    font-size: 3rem;
    opacity: 0.3;
}

/* ---- Corps carte ---- */
.cf-blog-archive__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
}

/* ---- Meta (date + catégorie) ---- */
.cf-blog-archive__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #666;
}

.cf-blog-archive__cat {
    background: var(--couleur-1, #0057a8);
    color: #fff;
    padding: 0.15em 0.6em;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---- Titre carte ---- */
.cf-blog-archive__card-titre {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.cf-blog-archive__card-titre a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cf-blog-archive__card-titre a:hover {
    color: var(--couleur-1, #0057a8);
}

/* ---- Extrait ---- */
.cf-blog-archive__excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #555;
    margin: 0;
}

/* ---- Lien "Lire la suite" ---- */
.cf-blog-archive__lien {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--couleur-1, #0057a8);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cf-blog-archive__lien:hover {
    opacity: 0.75;
}

/* ---- Pagination ---- */
.cf-blog-archive__wrap .pagination {
    margin-top: 3rem;
}

/* ---- Vide ---- */
.cf-blog-archive__empty {
    text-align: center;
    opacity: 0.5;
    padding: 3rem 0;
    font-size: 1.1rem;
}

/* =====================================================
   SINGLE POST (Blog article)
   ===================================================== */

.cf-single-post {
    padding-top: var(--header-height);
}

/* ---- Hero ---- */
.cf-single-post__hero {
    position: relative;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height, 116px);
    padding-bottom: 3rem;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.cf-single-post__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.cf-single-post__hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--cf-content-width, 1100px);
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* ---- Meta top (date + catégorie) ---- */
.cf-single-post__meta-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cf-single-post__cat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2em 0.7em;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

/* ---- Titre ---- */
.cf-single-post__titre {
    font-family: 'League Gothic', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 1rem;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

/* ---- Auteur ---- */
.cf-single-post__author {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
}

.cf-single-post__author-name {
    font-weight: 600;
}

/* ---- Contenu article ---- */
.cf-single-post__content-wrap {
    max-width: var(--cf-content-width, 1100px);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    border: none;
}

.cf-single-post__content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
}

.cf-single-post__content p {
    margin-bottom: 1.5rem;
}

.cf-single-post__content img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.cf-single-post__content h2 {
    font-family: 'League Gothic', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    text-transform: uppercase;
    margin: 2.5rem 0 1rem;
    line-height: 1.1;
}

.cf-single-post__content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.cf-single-post__content blockquote {
    border-left: 4px solid var(--couleur-1, #0057a8);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #F2F1F8;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #444;
}

.cf-single-post__content a {
    color: var(--couleur-1, #0057a8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cf-single-post__content a:hover {
    opacity: 0.75;
}

.cf-single-post__content .wp-block-list {
    padding-left: 20px;
}

/* ---- Tags ---- */
.cf-single-post__tags {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.875rem;
    color: #666;
}

.cf-single-post__tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.cf-single-post__tags a {
    color: var(--couleur-1, #0057a8);
    text-decoration: none;
}

.cf-single-post__tags a:hover {
    text-decoration: underline;
}

/* ---- Navigation prev/next ---- */
.cf-single-post__nav {
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

.cf-single-post__nav-inner {
    max-width: var(--cf-content-width, 1100px);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cf-single-post__nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.5rem 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cf-single-post__nav-link:hover {
    opacity: 0.7;
}

.cf-single-post__nav-link--next {
    text-align: right;
    grid-column: 2;
}

.cf-single-post__nav-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.cf-single-post__nav-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

@media (max-width: 560px) {
    .cf-single-post__nav-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cf-single-post__nav-link--next {
        text-align: left;
        grid-column: 1;
        border-top: 1px solid #eee;
    }
}

/* ---- Lien retour blog ---- */
.cf-single-post__back {
    text-align: center;
    padding: 2rem 1.5rem;
}

.cf-single-post__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.7rem 1.75rem;
    border-radius: 6px;
    border: 2px solid var(--couleur-1, #0057a8);
    color: var(--couleur-1, #0057a8);
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cf-single-post__back-link:hover {
    background: var(--couleur-1, #0057a8);
    color: #fff;
}

.wp-block-column li {
    font-size: 1.25rem;
}
.wp-block-column ul {
    margin-bottom: 1.5em;
    margin-left: 20px;
}
.cf-section-image__content li {
    font-size: 16px;
}
.cf-section-image__content ul {
    margin-bottom: 1.5em;
    margin-left: 20px;
}
.cf-section-blocs.image-top-right .cf-section-blocs__svg {
    position: absolute;
    display: flex;
    inset: auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    top: -100px;
    z-index: 0;
    right: 0;
    height: 400px;
    opacity: 0.4;
}

.wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    background-color: var( --couleur-1, #0057a8 );
    color: #ffffff;
    border: 2px solid var( --couleur-1, #0057a8 );
    font-size: 1.5rem;
    font-family: 'League Gothic';
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.wp-block-button__link:hover, .wp-block-button__link:focus-visible {
    opacity: 0.88;
    color: #ffffff;
    transform: translateY( -1px );
}

/* ===== Ninja Forms — Newsletter ===== */

/* Conteneur principal */
.nf-form-cont {
    font-family: inherit;
}

/* Masquer le titre du formulaire si inutile */
.nf-form-title h3 {
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

/* Layout inline : champ email + bouton côte à côte */
.nf-form-layout .nf-field-container {
    margin-bottom: 0.5rem;
}

.nf-form-content .list-select-wrap .nf-field-element > div,
.nf-form-content .nf-field-element {
    position: relative;
}

/* Champ email */
.nf-form-content input[type="email"],
.nf-form-content input[type="text"],
.nf-form-content textarea {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.nf-form-content input[type="email"]::placeholder,
.nf-form-content input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

.nf-form-content input[type="email"]:focus,
.nf-form-content input[type="text"]:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* Bouton submit */
.nf-form-content input[type="submit"],
.nf-form-content button[type="submit"],
.nf-form-content .ninja-forms-field.nf-element[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    font-size: 1.3rem;
    font-family: 'League Gothic', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.nf-form-content input[type="submit"]:hover,
.nf-form-content button[type="submit"]:hover,
.nf-form-content .ninja-forms-field.nf-element[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Labels */
.nf-form-content .nf-field-label label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.35rem;
    opacity: 0.9;
}

/* Messages d'erreur */
.nf-form-content .nf-error-msg,
.nf-form-content .ninja-forms-req-symbol {
    color: #ffffff;
    font-size: 0.82rem;
}

.nf-form-content .nf-error .ninja-forms-field {
    border-color: #ff6b6b !important;
}

/* Message global "Veuillez corriger les erreurs…" */
.nf-form-content .nf-form-errors .nf-error-msg,
.nf-form-content .nf-error-wrap .nf-error-msg,
.nf-form-content .nf-form-errors,
.nf-form-errors .nf-error-msg,
.nf-error-field-errors .nf-error-msg {
    color: #ffffff !important;
}

/* Message de succès */
.nf-response-msg {
    color: #ffffff;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---- Variante sur fond clair (hors footer) ---- */
.cf-newsletter--light .nf-form-content input[type="email"],
.cf-newsletter--light .nf-form-content input[type="text"] {
    border-color: rgba(0, 0, 0, 0.15);
    background: #ffffff;
    color: #333;
}

.cf-newsletter--light .nf-form-content input[type="email"]::placeholder,
.cf-newsletter--light .nf-form-content input[type="text"]::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.cf-newsletter--light .nf-form-content input[type="email"]:focus,
.cf-newsletter--light .nf-form-content input[type="text"]:focus {
    border-color: var(--couleur-1, #0057a8);
    box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.15);
}

.cf-newsletter--light .nf-form-content input[type="submit"],
.cf-newsletter--light .nf-form-content button[type="submit"] {
    border-color: var(--couleur-1, #0057a8);
    color: #ffffff;
    background: var(--couleur-1, #0057a8);
}

.cf-newsletter--light .nf-form-content input[type="submit"]:hover,
.cf-newsletter--light .nf-form-content button[type="submit"]:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.cf-newsletter--light .nf-form-content .nf-field-label label {
    color: #333;
}

.cf-newsletter--light .nf-error-msg {
    color: #e63946;
}

/* ---- Ninja Forms : suppression des styles par défaut gênants ---- */
.nf-form-content .nf-field-element::after {
    display: none;
}

.nf-form-content .submit-container input[type="submit"] {
    margin: 0;
    width: 100%;
}

/* Layout inline (email + bouton côte à côte) si container dédié */
.cf-newsletter--inline .nf-form-layout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.cf-newsletter--inline .nf-form-layout .nf-field-container:not(.submit-container) {
    flex: 1;
    margin-bottom: 0;
}

.cf-newsletter--inline .nf-form-layout .submit-container {
    flex-shrink: 0;
    margin-bottom: 0;
}

.cf-newsletter--inline .nf-form-layout .submit-container input[type="submit"] {
    width: auto;
    white-space: nowrap;
}

/* Responsive : stack sur mobile */
@media (max-width: 600px) {
    .cf-newsletter--inline .nf-form-layout {
        flex-direction: column;
    }

    .cf-newsletter--inline .nf-form-layout .submit-container input[type="submit"] {
        width: 100%;
    }
}