/* ============================================
   Section Hero – pleine largeur écran
   Vert #022C1A, Jaune #FCD119, Bootstrap responsive
   ============================================ */

/* Wrapper du bloc Gutenberg : pleine largeur pour que le fond hero s'affiche */
.wp-block-carbon-fields-section-hero {
    width: 100%;
    max-width: none;
}

.hero-section {
    color: #fff;
    overflow: hidden;
    width: 100%;
}

/* Hero pleine largeur : section plus haute pour que le bouton descende sous le titre */
.hero-section--fullwidth {
    position: relative;
    width: 100%;
    min-height: 115vh;
    display: flex;
    flex-direction: column;
}

/* Hero avec vidéo : hauteur réduite de 15 % (115vh × 0,85 ≈ 98vh) */
.hero-section--video.hero-section--fullwidth {
    min-height: 98vh;
}

/* Fond : image/vidéo/gif sur toute la largeur (toujours visible en arrière-plan) */
.hero-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-wrap .hero-overlay {
    pointer-events: none;
}

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.hero-bg-video {
    display: block;
    min-height: 100%;
}

/* Overlay vert par-dessus le fond */
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-overlay--solid {
    opacity: 1;
}

/* Contenu en superposition : header en haut, hero-content centré (équidistant header / CTA), responsif */
.hero-section .hero-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 0 3rem;
    max-width: 100%;
}

@media (min-width: 576px) {
    .hero-section .hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }
}

@media (min-width: 768px) {
    .hero-section .hero-inner {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 992px) {
    .hero-section .hero-inner {
        padding-top: 3.5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1200px) {
    .hero-section .hero-inner {
        padding-top: 4rem;
        padding-bottom: 5.5rem;
    }
}

/* Barre de navigation : logo à gauche, liens à droite – collée en haut du hero */
/* margin-bottom renforcé pour éviter tout collage avec hero-content (sélecteur spécifique) */
.hero-section .hero-inner .hero-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    width: 100%;
    flex-shrink: 0;
}

/* container-fluid hero-header-container : aligner en haut (flex-start = top), pas au centre */
/* padding-top pour descendre le header ; paddings horizontaux responsives */
.hero-header-container,
.container-fluid.hero-header-container {
    width: 100%;
    padding-top: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: flex-start !important;
}

@media (min-width: 576px) {

    .hero-header-container,
    .container-fluid.hero-header-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {

    .hero-header-container,
    .container-fluid.hero-header-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 992px) {

    .hero-header-container,
    .container-fluid.hero-header-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1200px) {

    .hero-header-container,
    .container-fluid.hero-header-container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.hero-navbar {
    background: transparent !important;
    padding-top: 0;
    padding-bottom: 0.25rem;
    align-items: flex-start;
}

.hero-logo {
    padding: 0;
    margin: 0;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    align-items: flex-start;
}

.hero-logo:hover {
    color: #fff;
    opacity: 0.9;
}

.hero-logo-img {
    width: 140px;
    height: 146px;
    display: block;
    object-fit: contain;
}

/* Texte du logo : TÉMOIGNAGE / BÉNIN (maquette) – taille réduite pour remonter la navbar */
.hero-logo-text {
    line-height: 1.2;
}

.hero-logo-line1 {
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

@media (min-width: 992px) {
    .hero-logo-line1 {
        font-size: 1.25rem;
    }
}

.hero-logo-line2 {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    opacity: 0.95;
}

@media (min-width: 992px) {
    .hero-logo-line2 {
        font-size: 1rem;
    }
}

/* Liens du menu : taille maquette, bien espacés */
.hero-navbar .navbar-nav {
    gap: 1rem;
}

@media (min-width: 992px) {
    .hero-navbar .navbar-nav {
        gap: 2.5rem;
    }
}

.hero-navbar .nav-link {
    font-family: 'Urbanist', sans-serif;
    color: #fff !important;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0.25rem;
}

@media (min-width: 992px) {
    .hero-navbar .nav-link {
        font-size: 1.15rem;
        padding: 0.6rem 0;
    }
}

.hero-navbar .nav-link:hover,
.hero-navbar .nav-link:focus,
.hero-navbar .current-menu-item .nav-link,
.hero-navbar .nav-link.active {
    color: #FCD119 !important;
}

/* Toggler mobile : icône blanche */
.hero-navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
    padding: 0.35rem 0.6rem;
}

.hero-navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.hero-navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas Bootstrap : menu mobile hero (glisse depuis la droite) */
.hero-offcanvas {
    background-color: #022C1A;
    color: #fff;
}

.hero-offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.25rem;
}

.hero-offcanvas .offcanvas-title {
    color: #fff;
    font-weight: 600;
}

.hero-offcanvas-body {
    padding: 1.25rem 1.25rem 2rem;
}

.hero-offcanvas-body .navbar-nav {
    gap: 0;
}

.hero-offcanvas-body .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-offcanvas-body .nav-link {
    color: #fff !important;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 0;
}

.hero-offcanvas-body .nav-link:hover,
.hero-offcanvas-body .nav-link:focus,
.hero-offcanvas-body .nav-link.active {
    color: #FCD119 !important;
}

.hero-navbar .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 992px) {
    .hero-navbar .navbar-nav .nav-item {
        border-bottom: none;
    }
}

.hero-navbar .navbar-nav .nav-link {
    padding: 0.75rem 0;
}

@media (min-width: 992px) {
    .hero-navbar .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
}

/* Contenu hero : grille pour centrer le carousel (équidistant header / CTA), CTA en bas, responsif */
.hero-section .hero-inner .hero-content {
    font-family: 'Urbanist', sans-serif;
    max-width: 1140px;
    flex: 1;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    padding: 0 1rem;
    min-height: 0;
}

@media (min-width: 576px) {
    .hero-section .hero-inner .hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero-section .hero-inner .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 992px) {
    .hero-section .hero-inner .hero-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1200px) {
    .hero-section .hero-inner .hero-content {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Titre : gras, blanc avec mots jaunes – marges pour ne pas serrer, max largeur pour le slide référence */
.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 1.75rem;
    max-width: 65ch;
    color: #fff;
}

@media (min-width: 576px) {
    .hero-title {
        margin-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        margin-bottom: 2.25rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        margin-bottom: 2.5rem;
    }

    .hero-title .hero-title-line1 {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        margin-bottom: 2.75rem;
    }
}

.hero-title-highlight {
    color: #FCD119;
}

/* Carrousel du titre : centré dans la première ligne de la grille (équidistant header / CTA), hauteur souple */
.hero-title-carousel {
    position: relative;
    overflow: hidden;
    align-self: center;
    min-height: 10em;
    max-height: 18em;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .hero-title-carousel {
        margin-bottom: 2rem;
        min-height: 11em;
        max-height: 19em;
    }
}

@media (min-width: 768px) {
    .hero-title-carousel {
        margin-bottom: 2.25rem;
        min-height: 12em;
        max-height: 20em;
    }
}

@media (min-width: 992px) {
    .hero-title-carousel {
        margin-bottom: 2.5rem;
        min-height: 13em;
        max-height: 22em;
    }
}

@media (min-width: 1200px) {
    .hero-title-carousel {
        margin-bottom: 2.75rem;
        max-height: 24em;
    }
}

/* Quand le hero a une vidéo en fond : gap réduit entre navbar et contenu */
.hero-section--video .hero-inner {
    padding-top: 0;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .hero-section--video .hero-inner {
        gap: 1.5rem;
    }
}

.hero-section--video .hero-inner .hero-content {
    margin-top: 0;
}

.hero-title-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hero-title-slide.active {
    position: absolute;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-title-slide.leave {
    position: absolute;
    z-index: 1;
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

/* Citation : italique, blanc – max largeur ~ slide référence, marges pour aérer */
.hero-quote {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-style: italic;
    margin: 0 0 0.5rem 0;
    max-width: 65ch;
    color: #fff;
    opacity: 0.98;
    line-height: 1.55;
}

/* Bouton CTA : fond jaune #FCD119, texte vert foncé, coins arrondis, chevron > – largeur au contenu (pas full width) */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: auto;
    max-width: fit-content;
    align-self: flex-start;
    flex-shrink: 0;
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
    background-color: #FCD119;
    color: #022C1A !important;
    font-weight: 600;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s, transform 0.2s;
}

@media (min-width: 992px) {
    .hero-cta {
        padding: 1.15rem 2.5rem;
        font-size: 1.2rem;
    }
}

.hero-cta:hover {
    background-color: #e5bc15;
    color: #022C1A !important;
    transform: translateY(1px);
}

.hero-cta-arrow {
    height: 1em;
    width: auto;
    vertical-align: middle;
    margin-left: 0.35rem;
}

/* Responsive – garder les espacements égaux sur tablette */
@media (max-width: 991.98px) {
    .hero-navbar .navbar-nav {
        gap: 1.25rem;
    }
    .partager-audio-waveform {
        gap: 0 !important;
    }
}

/* Très petit écran : hero-content centré (équidistant header / CTA), padding réduits */
@media (max-width: 575.98px) {
    .hero-section .hero-inner {
        padding: 1.25rem 0 2.5rem !important;
    }

    .hero-section .hero-inner .hero-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-title-carousel {
        margin-bottom: 1.5rem;
        min-height: 19em;
        max-height: 16em;
    }

    .hero-header-container,
    .container-fluid.hero-header-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-title {
        margin-bottom: 1.5rem;
    }

    .hero-logo-line1 {
        font-size: 1rem;
    }

    .hero-logo-line2 {
        font-size: 0.85rem;
    }
}

/* Section Hero avec fond image uniquement : pas de carousel ni CTA, titre + breadcrumb centrés au milieu */
.hero-section--image-only {
    min-height: 0;
}

.hero-section--image-only.hero-section--fullwidth {
    min-height: 38vh;
    max-height: 420px;
}

@media (min-width: 992px) {
    .hero-section--image-only.hero-section--fullwidth {
        min-height: 42vh;
        max-height: 380px;
    }
}

/* Réserver l’espace du header pour que le titre + breadcrumb ne chevauchent pas */
.hero-section--image-only .hero-inner {
    position: relative;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 2rem;
    padding-top: calc(6rem + 1rem);
}

@media (min-width: 768px) {
    .hero-section--image-only .hero-inner {
        padding-top: calc(7rem + 1rem);
    }
}

@media (min-width: 992px) {
    .hero-section--image-only .hero-inner {
        padding: 0 0 2.5rem;
        padding-top: calc(7.5rem + 1rem);
    }
}

.hero-section--image-only .hero-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
}

.hero-content--page-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-title-breadcrumb-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.hero-title-breadcrumb-wrap .hero-title--center {
    margin: 0;
    text-align: center;
    width: 100%;
}

.hero-title--center {
    margin: 0 0 0.35rem;
    text-align: center;
    width: 100%;
}

.hero-breadcrumb {
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #FCD119;
}

@media (min-width: 576px) {
    .hero-breadcrumb {
        font-size: 0.95rem;
    }
}

.hero-breadcrumb a {
    color: #FCD119;
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-breadcrumb-sep {
    color: #FCD119;
    opacity: 0.9;
}

.hero-breadcrumb-current {
    color: #FCD119;
}

/* Hero des pages internes : hauteur modérée, titre centré, breadcrumbs (Accueil / titre) en jaune */
.page-hero {
    min-height: 0;
    height: auto;
}

.page-hero .page-hero-bg {
    position: absolute;
    inset: 0;
    min-height: 100%;
}

.page-hero .page-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 38vh;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.25rem 0 2rem;
}

@media (min-width: 992px) {
    .page-hero .page-hero-inner {
        min-height: 42vh;
        max-height: 380px;
        padding: 0.35rem 0 2.5rem;
    }
}

.page-hero .hero-header {
    margin-bottom: 0;
}

.page-hero-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    flex: 1;
    min-height: 0;
}

.page-hero-title {
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.page-hero-breadcrumb {
    font-size: 0.875rem;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #FCD119;
}

@media (min-width: 576px) {
    .page-hero-breadcrumb {
        font-size: 0.95rem;
    }
}

.page-hero-breadcrumb a {
    color: #FCD119;
    text-decoration: none;
}

.page-hero-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-hero-breadcrumb-sep {
    color: #FCD119;
    opacity: 0.9;
}

.page-hero-breadcrumb-current {
    color: #FCD119;
}

/* ============================================
   Bloc Gutenberg Recherche
   Barre recherche (icône verte + champ) + bouton CTA vert, côte à côte
   ============================================ */
.recherche-block {
    max-width: 100%;
}

.recherche-bar {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.recherche-form {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    background: #fff;
    padding-left: 0.5rem;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #ddd;
}

.recherche-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #057D49;
    color: #fff;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.recherche-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem 0.75rem 0;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.recherche-input::placeholder {
    color: #999;
}

.recherche-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background: #057D49;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #057D49;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.recherche-cta:hover {
    background: #046b3d;
    color: #fff;
}

@media (max-width: 575.98px) {
    .recherche-bar {
        flex-direction: column;
    }

    .recherche-form {
        padding: 0.5rem;
        border-radius: 50px;
    }

    .recherche-cta {
        padding: 0.85rem 0.85rem;
        max-width: 60%;
    }
}

.recherche-temoignages-results {
    margin-top: 2rem;
    padding: 0 1rem;
}

.recherche-results-count {
    text-align: center;
    font-size: 1rem;
    color: #333;
    margin: 0 0 1.5rem;
}

.recherche-no-results {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin: 2rem 0 0;
}

.memoire-grid--recherche {
    margin-top: 0;
}

/* ============================================
   Section Nos principes
   Liste à gauche (cartes), contenu à droite
   ============================================ */
.section-principes {
    padding: 4rem 0 5rem;
    font-family: 'Urbanist', sans-serif;
}

/* Titre "Nos principes" : icône et texte côte à côte ; au survol ils se séparent */
.principes-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #000;
    cursor: default;
}

.principes-title-icon {
    flex-shrink: 0;
    margin-right: -0.2em;
    transition: transform 0.3s ease;
}

.principes-title:hover .principes-title-icon {
    transform: translateX(-12px);
}

.principes-title-icon img {
    max-width: 80px;
    height: auto;
    display: block;
    vertical-align: middle;
}

.principes-title-text {
    flex-shrink: 0;
    margin-left: -0.15em;
    transition: transform 0.3s ease;
}

.principes-title:hover .principes-title-text {
    transform: translateX(12px);
}

.principes-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .principes-layout {
        grid-template-columns: 1fr;
    }
}

.principes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: visible;
}

.principe-card {
    display: flex;
    overflow: visible;
    align-items: center;
    justify-content: space-between;
    width: 320px;
    max-width: 100%;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 1rem;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    color: #057D49;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
    position: relative;
}

.principe-card:hover {
    background: rgba(5, 125, 73, 0.08);
}

.principe-card.active {
    width: 397px;
    max-width: 100%;
    background: linear-gradient(to right, #057D49, #06BC6D);
    color: #fff;
    border-color: #057D49;
    padding-right: 2rem;
}

.principe-card-text {
    flex: 1;
}

.principe-card-arrow {
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}

.principe-card-arrow-img {
    height: 1em;
    width: auto;
    display: block;
}

.principe-card-arrow-active {
    display: none;
}

.principe-card-arrow-inactive {
    display: block;
}

.principe-card.active .principe-card-arrow-active {
    display: block;
}

.principe-card.active .principe-card-arrow-inactive {
    display: none;
}

.principes-content {
    position: relative;
    min-height: 200px;
    display: flex;
    justify-content: flex-end;
}

.principe-panel {
    display: none;
}

.principe-panel.active {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    max-width: 100%;
}

.principe-description {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #333;
    margin: 0 0 2.5rem auto;
    max-width: 520px;
}

.principe-image-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.principe-image {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* ============================================
   Section Notre mémoire
   Titre + icône (comme Nos principes), cartes témoignages, carousel ou grille
   ============================================ */
.section-notre-memoire {
    padding: 4rem 0 5rem;
    font-family: 'Urbanist', sans-serif;
    background: #E6F2ED;
}

.section-notre-memoire--list {
    background: #fff;
}

.section-notre-memoire--list .memoire-card .memoire-card-inner {
    background: #E6F2ED4D;
}

.section-notre-memoire--list .memoire-card.memoire-card-active .memoire-card-inner {
    background: #E6F2ED4D;
}

.section-notre-memoire .memoire-title {
    margin-bottom: 3rem;
}

.memoire-empty {
    text-align: center;
    color: #555;
    font-size: 1rem;
    margin: 0;
    padding: 2rem 1rem;
}

.memoire-carousel-wrap {
    position: relative;
}

.memoire-carousel {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.memoire-track {
    display: flex;
    scroll-behavior: smooth;
    gap: 1rem;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
}

.memoire-track::-webkit-scrollbar {
    display: none;
}

/* Cartes : largeur 300px, hauteur fixe uniforme (tous écrans), padding uniforme */
.memoire-card {
    flex: 0 0 300px;
    width: 300px;
    height: 420px;
    scroll-snap-align: start;
    transition: flex 0.35s ease, width 0.35s ease;
    overflow: hidden;
}

.memoire-card-active {
    flex: 0 0 300px;
    width: 300px;
    height: 420px;
}

.memoire-card-inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.30);
    border: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.memoire-card-active .memoire-card-inner {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(2, 44, 26, 0.12);
}

.memoire-card-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #B5EAD7;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.memoire-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memoire-card-avatar-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

/* Conteneur nom + métier */
.memoire-card-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    text-align: center;
    width: 100%;
}

/* Gap 10 entre ce conteneur et le conteneur texte (témoignage) = margin-bottom: 10px ci-dessus */

/* Nom : une seule ligne partout (truncate … si trop long), centré */
.memoire-card-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin: auto;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.memoire-card-metier {
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #666;
    margin: 0;
}

/* Zone texte à hauteur fixe (comme l’icône vidéo/audio) : ne pas grandir, tout reste dans la carte, centrée */
.memoire-card-excerpt {
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: #666;
    margin: 0 0 0.75rem 0;
    flex: 0 1 auto;
    min-height: 0;
    text-align: center;
    align-self: center;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.memoire-btn[type="button"] {
    cursor: pointer;
    font-family: inherit;
}

.memoire-fulltext {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Spacer pour cartes vidéo/audio : occupe l’espace restant et peut rétrécir pour garder icône + bouton dans la carte */
.memoire-card-spacer {
    flex: 1;
    min-height: 0;
    flex-shrink: 1;
}

/* Même hauteur que le conteneur témoignage texte (4.5em) pour uniformité, icône centrée */
.memoire-card-icon {
    flex: 0 0 auto;
    height: 4.5em;
    min-height: 4.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.75rem 0;
    color: #057D49;
    flex-shrink: 0;
    align-self: center;
}

.memoire-card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Boutons témoignage (Lire plus, Suivre, Écouter) : alignés en bas de la carte, même design */
.memoire-btn {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    align-self: center;
}

.memoire-btn .action-card-lp {
    display: inline-flex;
    align-items: stretch;
}

/* Hover sur le bouton : même effet que Nos actions (partie texte en #FCD119) */
.memoire-btn:hover .action-card-lireplus {
    background-color: #FCD119;
}

.memoire-btn:hover .action-card-svg {
    background-color: #FCD119;
}

.memoire-carousel-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.memoire-prev,
.memoire-next {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: #FCD119;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: background 0.2s, opacity 0.2s;
}

.memoire-prev:hover,
.memoire-next:hover {
    background: #057D49;
}

.memoire-prev img,
.memoire-next img {
    width: 20px;
    height: auto;
    display: block;
}

.memoire-next {
    background: #057D49;
}

.memoire-next img {
    filter: brightness(0) invert(1);
}

/* Bouton Voir plus : fond vert foncé, texte blanc, flèche voirPlus.png */
.memoire-voir-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.6rem 1.25rem;
    background: #1B8A4A;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: opacity 0.2s, background 0.2s;
}

.memoire-voir-plus:hover {
    color: #fff;
    opacity: 0.95;
    background: #157a42;
}

.memoire-voir-plus-arrow {
    width: 1.25rem;
    height: auto;
    display: block;
}

/* Barre de recherche liste Notre mémoire : même style que l’ancien bloc Recherche (.recherche-bar, .recherche-cta) */
.memoire-list-search-wrap {
    margin-bottom: 1.5rem;
}

.memoire-list-search-wrap .recherche-bar {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.memoire-list-search-no-results {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-top: 1rem;
}

.memoire-card-search-hidden {
    display: none !important;
}

/* Grille : cartes 300×420px, hauteur uniforme */
.memoire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    gap: 1.5rem;
    justify-content: center;
}

.memoire-grid .memoire-card {
    flex: none;
    width: 300px;
    height: 420px;
}

.memoire-grid .memoire-card-active {
    flex: none;
    width: 300px;
    height: 420px;
}

.memoire-card-load-hidden {
    display: none;
}

.memoire-load-sentinel {
    grid-column: 1 / -1;
    height: 20px;
    width: 100%;
    pointer-events: none;
}

@media (max-width: 767.98px) {

    .memoire-card,
    .memoire-card-active {
        flex: 0 0 300px;
        width: 300px;
        height: 420px;
    }

    .memoire-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .memoire-grid .memoire-card,
    .memoire-grid .memoire-card-active {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        height: 420px;
    }
}

/* Section Découvrez nos Actions : même type de carousel que Notre mémoire */
.section-decouvrez-actions {
    padding: 2rem 0;
}

.actions-title.principes-title {
    margin-bottom: 1.5rem;
}

.actions-empty {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin: 0;
    padding: 2rem 1rem;
}

.actions-carousel-wrap {
    position: relative;
}

.actions-carousel {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.actions-track {
    display: flex;
    scroll-behavior: smooth;
    gap: 1rem;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
}

.actions-track::-webkit-scrollbar {
    display: none;
}

.actions-card {
    flex: 0 0 300px;
    width: 300px;
    height: 420px;
    scroll-snap-align: start;
    transition: flex 0.35s ease, width 0.35s ease;
    overflow: hidden;
}

.actions-card-active {
    flex: 0 0 300px;
    width: 300px;
    height: 420px;
}

.actions-card-inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    background: #fff;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.actions-card-active .actions-card-inner {
    box-shadow: 0 4px 16px rgba(2, 44, 26, 0.12);
}

.actions-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e0e0;
}

.actions-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actions-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}

.actions-card-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.actions-card-description {
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actions-card-date {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.actions-btn-lire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: fit-content;
    margin-top: auto;
    padding: 0.5rem 1rem;
    background: #FCD119;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, background 0.2s;
}

.actions-btn-lire:hover {
    color: #000;
    opacity: 0.95;
    background: #e5bc15;
}

.actions-btn-lire span {
    color: #000;
}

.actions-carousel-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.actions-prev,
.actions-next {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: #FCD119;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: background 0.2s, opacity 0.2s;
}

.actions-prev:hover,
.actions-next:hover {
    background: #057D49;
}

.actions-prev img,
.actions-next img {
    width: 20px;
    height: auto;
    display: block;
}

.actions-next {
    background: #057D49;
}

.actions-next img {
    filter: brightness(0) invert(1);
}

.actions-voir-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.6rem 1.25rem;
    background: #1B8A4A;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: opacity 0.2s, background 0.2s;
}

.actions-voir-plus:hover {
    color: #fff;
    opacity: 0.95;
    background: #157a42;
}

.actions-voir-plus-arrow {
    width: 1.25rem;
    height: auto;
    display: block;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    gap: 1.5rem;
    justify-content: center;
}

.actions-grid .actions-card {
    flex: none;
    width: 300px;
}

.actions-grid .actions-card-active {
    flex: none;
    width: 300px;
}

.actions-card-load-hidden {
    display: none;
}

/* Cartes type "Nos actions" (posts) dans le carousel / grille Découvrez nos Actions */
.section-decouvrez-actions .actions-card.actions-card--post {
    height: auto;
    min-height: 0;
}

.section-decouvrez-actions .actions-card.actions-card--post .col-md-6.col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
}

.section-decouvrez-actions .actions-grid.actions-grid--post {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.section-decouvrez-actions .actions-grid.actions-grid--post .actions-card.actions-card--post {
    flex: 0 0 300px;
    width: 300px;
}

.actions-load-sentinel {
    grid-column: 1 / -1;
    height: 20px;
    width: 100%;
    pointer-events: none;
}

@media (max-width: 767.98px) {

    .actions-card,
    .actions-card-active {
        flex: 0 0 300px;
        width: 300px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .actions-grid .actions-card,
    .actions-grid .actions-card-active {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Fenêtre modale témoignage (texte complet) : overlay vert, fond blanc, image de fond */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.memoire-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
}

.memoire-modal[aria-hidden="false"],
.memoire-modal.memoire-modal-open {
    visibility: visible;
    opacity: 1;
}

.memoire-modal[hidden] {
    display: none !important;
}

/* Overlay vert semi-transparent (avec léger flou) */
.memoire-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 44, 26, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

/* Contenu modal : fond blanc, image modalBack.png en arrière-plan à 50 % d'opacité (texte, audio, vidéo) */
.memoire-modal-content {
    position: relative;
    background: #fff;
    max-width: 90%;
    width: 1000px;
    height: auto;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
}

/* Image de fond modalBack.png (témoignages texte, audio, vidéo) – opacité réduite */
.memoire-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../modalBack.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.015;
    pointer-events: none;
    border-radius: inherit;
}

.memoire-modal-content .memoire-modal-title,
.memoire-modal-content .memoire-modal-body {
    position: relative;
    z-index: 1;
}

.memoire-modal-content .memoire-modal-close {
    z-index: 2;
}

/* Bouton fermer : X vert */
.memoire-modal-close {
    color: #057D49;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #022C1A;
    border-radius: 6px;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #022C1A;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s, background 0.2s;
}


.memoire-modal-close:hover {
    color: #fff;
    background-color: #022C1A;
}

.memoire-modal-content.memoire-modal-media .memoire-modal-close {
    color: #fff;
}

.memoire-modal-content.memoire-modal-media .memoire-modal-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

.memoire-modal-title.visually-hidden {
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
}

/* Layout témoignage texte : header (avatar + nom + métier), corps, date */
.memoire-modal-body {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.memoire-modal-text-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.memoire-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.memoire-modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #333;
    flex-shrink: 0;
}

.memoire-modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memoire-modal-avatar-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.memoire-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.memoire-modal-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000000;
}

.memoire-modal-metier {
    font-size: 0.9rem;
    color: #000000;
}

.memoire-modal-text {
    font-size: 1.2rem;
    line-height: 1.65;
    color: #000000;
    text-align: left;
}

.memoire-modal-text br {
    display: block;
    content: '';
    margin-top: 0.5em;
}

.memoire-modal-footer {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

.memoire-modal-content.memoire-modal-media {
    max-width: 90vw;
    width: 1000px;
    overflow: hidden;
}

.memoire-modal-content.memoire-modal-media .memoire-modal-body {
    padding: 0;
    overflow: hidden;
}

.memoire-modal-video-layout {
    position: relative;
    width: 100%;
    background: #000;
}

.memoire-modal-video-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    min-height: 200px;
}

/* Vidéo : conserver la résolution et le ratio, ne pas redimensionner / étirer */
.memoire-modal-video-wrap video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

/* Iframe (YouTube, Vimeo) : taille max sans étirer, ratio 16:9 préservé */
.memoire-modal-video-wrap iframe {
    max-width: 100%;
    width: 853px;
    height: 480px;
    display: block;
}
@media (max-width: 853px) {
    .memoire-modal-video-wrap iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .hero-logo-img {
    max-width: 89px;
    height: auto;
}
}

/* Bouton play/pause au centre de la vidéo */
.memoire-modal-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.memoire-modal-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.05);
}

.memoire-modal-video-play-btn svg {
    width: 48px;
    height: 48px;
    margin-left: 4px;
}

.memoire-modal-video-play-btn[aria-label="Pause"] svg {
    margin-left: 0;
}

/* Overlay en bas : profil (gauche) + date (droite) */
.memoire-modal-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.memoire-modal-video-overlay-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.memoire-modal-video-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.memoire-modal-video-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memoire-modal-video-avatar-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.memoire-modal-video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.memoire-modal-video-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.memoire-modal-video-metier {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.memoire-modal-video-overlay-right {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Modal audio : fond blanc + motif, grande icône casque, lecteur, profil + date en bas */
.memoire-modal-content.memoire-modal-audio .memoire-modal-close {
    color: #057D49;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #022C1A;
    border-radius: 6px;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #022C1A;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s, background 0.2s;
}

.memoire-modal-content.memoire-modal-audio .memoire-modal-close {

    color: #022C1A;
}

.memoire-modal-content.memoire-modal-audio .memoire-modal-close:hover {
    color: #fff;
    background: #022C1A;
}

.memoire-modal-audio-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0 1rem;
}

.memoire-modal-audio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #057D49;
}

.memoire-modal-audio-icon-svg,
.memoire-modal-audio-icon-img {
    width: 96px;
    height: 96px;
    display: block;
    object-fit: contain;
}

.memoire-modal-audio-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

.memoire-modal-audio-wrap .memoire-audio-el {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.memoire-audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    min-width: 0;
}

/* Wrapper responsive : la variation prend l’espace restant, se réduit sur mobile */
.memoire-audio-waveform-wrap {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.memoire-audio-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #057D49;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.memoire-audio-btn:hover {
    background: #046b3d;
}

.memoire-audio-btn-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.memoire-audio-waveform {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 4px;
}

.memoire-audio-bar {
    flex: 1;
    min-width: 2px;
    max-width: 8px;
    height: 100%;
    border-radius: 2px;
    background-color: #458461;
    transition: background-color 0.15s ease;
}

.memoire-audio-bar.is-played {
    background-color: #057D49;
}

.memoire-audio-time {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #057D49;
    min-width: 3ch;
}

/* Modal audio mobile : bouton / variation / minuteur sur des lignes séparées (le bouton ne doit pas être sur la variation) */
@media (max-width: 576px) {
    .memoire-modal-content.memoire-modal-audio .memoire-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .memoire-modal-audio-wrap {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        min-width: 0;
    }
    .memoire-audio-player {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        min-height: auto;
    }
    .memoire-audio-btn {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        order: 1;
    }
    .memoire-audio-waveform-wrap {
        width: 100%;
        flex: none;
        min-width: 0;
        max-width: 100%;
        order: 2;
    }
    .memoire-audio-waveform {
        height: 36px;
        min-height: 36px;
        gap: 0;
    }
    .memoire-audio-bar {
        min-width: 2px;
    }
    .memoire-audio-time {
        flex-shrink: 0;
        min-width: 4ch;
        font-size: 0.95rem;
        white-space: nowrap;
        order: 3;
    }
    .memoire-modal-audio-icon-svg,
    .memoire-modal-audio-icon-img {
        width: 64px;
        height: 64px;
    }
    .memoire-modal-audio-layout {
        gap: 1rem;
    }
}

.memoire-modal-audio-footer {
    width: 100%;
    padding: 0 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

.memoire-modal-audio-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.memoire-modal-audio-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #333;
    flex-shrink: 0;
}

.memoire-modal-audio-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memoire-modal-audio-avatar-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.memoire-modal-audio-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.memoire-modal-audio-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.memoire-modal-audio-metier {
    font-size: 0.95rem;
    color: #555;
}

.memoire-modal-audio-date {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
}

/* ============================================
   Modal « Partager votre témoignage »
   Formulaire : infos + type (Texte / Audio / Vidéo) + contenu dynamique
   ============================================ */
.partager-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
}

.partager-modal[aria-hidden="false"],
.partager-modal.partager-modal-open {
    visibility: visible;
    opacity: 1;
}

.partager-modal[hidden] {
    display: none !important;
}

.partager-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 44, 26, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.partager-modal-content {
    position: relative;
    background: #fff;
    max-width: 95%;
    width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 2rem 2rem 2rem 2rem;
    font-family: 'Urbanist', 'Figtree', sans-serif;
}

.partager-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #022C1A;
    border-radius: 6px;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #022C1A;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s, background 0.2s;
}

.partager-modal-close:hover {
    color: #fff;
    background: #022C1A;
}

.partager-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #022C1A;
    margin: 0 0 1.5rem 0;
    padding-right: 2.5rem;
    text-align: left;
}

.partager-form-top {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.partager-avatar-wrap {
    flex-shrink: 0;
    width: 120px;
}

.partager-avatar-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.partager-avatar-placeholder {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.partager-avatar-placeholder-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
}

.partager-avatar-default-img,
.partager-avatar-placeholder .partager-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
}

.partager-avatar-default-img {
    object-fit: contain;
}

.partager-avatar-placeholder .partager-avatar-img {
    object-fit: cover;
}

/* Crayon en bas dans la même div que l'image, collé au cercle */
.partager-avatar-placeholder .partager-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #057D49;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.partager-avatar-placeholder .partager-avatar-edit:hover {
    background: #022C1A;
}

.partager-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    flex: 1;
    min-width: 0;
}

.partager-fields-row--full {
    grid-column: 1 / -1;
}

.partager-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.partager-required {
    color: #c62828;
}

.partager-label--block {
    margin-bottom: 0.35rem;
}

.partager-input,
.partager-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.partager-input:focus,
.partager-textarea:focus {
    outline: none;
    border-color: #057D49;
}

.partager-textarea {
    resize: vertical;
    min-height: 120px;
}

.partager-type-question {
    font-size: 1rem;
    font-weight: 600;
    color: #022C1A;
    margin: 0 0 1rem 0;
}

.partager-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.partager-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid #057D49;
    border-radius: 8px;
    background: #fff;
    color: #057D49;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.partager-type-tab:hover {
    background: rgba(5, 125, 73, 0.08);
}

.partager-type-tab--active {
    background: #057D49;
    color: #fff;
    border-color: #057D49;
}

.partager-type-tab-icon {
    display: inline-flex;
}

.partager-type-tab-icon svg {
    display: block;
}

.partager-content {
    margin-bottom: 1.5rem;
}

.partager-content[hidden] {
    display: none !important;
}

.partager-upload-zone {
    width: 399.5px;
    box-sizing: border-box;
    border: 2px dashed #057D49;
    border-radius: 8px;
    background: rgba(5, 125, 73, 0.04);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.partager-upload-zone .partager-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.partager-upload-default {
    pointer-events: none;
}

.partager-upload-zone.partager-upload-has-file .partager-upload-default {
    display: none;
}

.partager-upload-audio-preview {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    text-align: left;
}

.partager-upload-zone.partager-upload-has-file .partager-upload-audio-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
    background: #fff;
    margin: -2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    min-height: 4rem;
}

.partager-upload-audio-preview[hidden] {
    display: none !important;
}

/* Prévisualisation vidéo : même style que l'audio */
.partager-upload-video-preview {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    text-align: left;
}

.partager-upload-zone--video.partager-upload-has-file .partager-upload-video-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
    background: #fff;
    margin: -2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    min-height: 4rem;
}

.partager-upload-video-preview[hidden] {
    display: none !important;
}

.partager-upload-video-clear {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #057D49;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0;
}

.partager-upload-video-clear:hover {
    text-decoration: underline;
    color: #022C1A;
}

.partager-upload-file-icon {
    flex-shrink: 0;
    object-fit: contain;
}

.partager-upload-file-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.partager-upload-file-name {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

.partager-upload-file-size {
    font-size: 0.9rem;
    color: #888;
}

.partager-upload-audio-clear {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #057D49;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem -0.25rem auto;
}

.partager-upload-audio-clear:hover {
    color: #022C1A;
    text-decoration: underline;
}

.partager-upload-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.partager-upload-hint {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

.partager-upload-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #c00;
}

.partager-upload-error[hidden] {
    display: none;
}

.partager-ou {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #666;
}

.partager-btn-record {
    width: 100%;
    max-width: 399.5px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid #057D49;
    border-radius: 8px;
    background: #fff;
    color: #057D49;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.partager-btn-record:hover {
    background: rgba(5, 125, 73, 0.08);
}

.partager-btn-record-icon {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.partager-content-audio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.partager-audio-upload-row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Mobile : chaque bloc centré, "Ou" entre les deux */
.partager-audio-upload-row .partager-audio-col-upload,
.partager-audio-upload-row .partager-audio-col-record {
    max-width: 399.5px;
}

@media (min-width: 992px) {

    /* Desktop : les deux colonnes prennent la même place, le contenu (399.5px) est poussé vers le centre → "Ou" reste au milieu */
    .partager-audio-upload-row .partager-audio-col-upload,
    .partager-audio-upload-row .partager-audio-col-record {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }
}

.partager-ou-col {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 991.98px) {
    .partager-ou-col {
        order: 0;
        width: 100%;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .principe-card.active{
        width: 100% !important;
    }
}

.partager-audio-recording-ui {
    width: 100%;
    max-width: 800px;
    margin-top: 0.5rem;
}

.partager-audio-recording-ui[hidden] {
    display: none !important;
}

.partager-audio-recording-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-sizing: border-box;
    min-width: 0;
}

/* Wrapper responsive : la variation ne déborde pas, même style que le modal audio témoignage */
.partager-audio-waveform-wrap {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.partager-audio-pause-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: none;
    border-radius: 50%;
    background: #057D49;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s;
}

.partager-audio-pause-btn:hover {
    background: #022C1A;
}

.partager-audio-pause-btn svg {
    display: block;
}

.partager-audio-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.partager-audio-waveform .partager-audio-bar {
    width: 6px;
    min-width: 6px;
    border-radius: 3px;
    background: #057D49;
    height: 20%;
    min-height: 4px;
    transition: height 0.08s ease-out;
}

.partager-audio-timer {
    font-size: 1.1rem;
    font-weight: 600;
    color: #022C1A;
    font-variant-numeric: tabular-nums;
    min-width: 3.5em;
    text-align: right;
}

.partager-audio-stop-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #057D49;
    border-radius: 8px;
    background: #fff;
    color: #057D49;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.partager-audio-stop-btn:hover {
    background: #057D49;
    color: #fff;
}

.partager-audio-delete-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #c62828;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.partager-audio-delete-btn:hover {
    background: rgba(198, 40, 40, 0.1);
    color: #b71c1c;
}

.partager-audio-delete-btn svg {
    display: block;
}

/* Modal Partager – enregistrement audio : bouton et variation sur des lignes séparées (responsive) */
@media (max-width: 576px) {
    .partager-audio-recording-ui {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        max-width: 100%;
    }
    .partager-audio-recording-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
        min-width: 0;
    }
    .partager-audio-recording-controls .partager-audio-pause-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        align-self: center;
        order: 1;
    }
    .partager-audio-waveform-wrap {
        width: 100%;
        flex: none;
        min-width: 0;
        max-width: 100%;
        order: 2;
    }
    .partager-audio-waveform {
        height: 36px;
        gap: 0;
    }
    .partager-audio-waveform .partager-audio-bar {
        min-width: 4px;
    }
    .partager-audio-timer {
        flex-shrink: 0;
        min-width: 4ch;
        font-size: 1rem;
        white-space: nowrap;
        text-align: center;
        order: 3;
    }
    .partager-audio-stop-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        order: 4;
    }
    .partager-audio-delete-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        order: 5;
        align-self: flex-end;
    }
    .partager-audio-recording-controls .partager-audio-stop-btn,
    .partager-audio-recording-controls .partager-audio-delete-btn {
        align-self: center;
    }
}

.partager-audio-recorded-summary {
    width: 100%;
    max-width: 800px;
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.partager-audio-recorded-summary[hidden] {
    display: none !important;
}

.partager-audio-recorded-text {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.partager-audio-recorded-duration {
    font-weight: 600;
    color: #057D49;
}

.partager-audio-recorded-delete {
    padding: 0.4rem 0.75rem;
    border: 1px solid #c62828;
    border-radius: 6px;
    background: transparent;
    color: #c62828;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.partager-audio-recorded-delete:hover {
    background: rgba(198, 40, 40, 0.1);
}

.partager-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.partager-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1.5rem;
    background: #057D49;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.partager-btn-submit:hover {
    background: #022C1A;
}

.partager-btn-arrow {
    font-size: 1.1em;
}

@media (max-width: 575.98px) {
    .partager-form-top {
        flex-direction: column;
        align-items: center;
    }

    .partager-fields {
        grid-template-columns: 1fr;
    }

    .partager-type-tabs {
        flex-wrap: wrap;
    }
}

/* Modal succès après envoi du témoignage */
.partager-success-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
}

.partager-success-modal[aria-hidden="false"],
.partager-success-modal.partager-success-open {
    visibility: visible;
    opacity: 1;
}

.partager-success-modal[hidden] {
    display: none !important;
}

.partager-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 44, 26, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.partager-success-content {
    position: relative;
    background: #fff;
    max-width: 95%;
    width: 440px;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-family: 'Urbanist', 'Figtree', sans-serif;
}

.partager-success-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(5, 125, 73, 0.15);
    color: #022C1A;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.partager-success-close:hover {
    background: #057D49;
    color: #fff;
}

.partager-success-icon-wrap {
    margin-bottom: 1.25rem;
}

.partager-success-icon {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.partager-success-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #022C1A;
    margin: 0 0 1rem 0;
}

.partager-success-thanks {
    font-size: 1.1rem;
    font-weight: 700;
    color: #022C1A;
    margin: 0 0 1rem 0;
    line-height: 1.35;
}

.partager-success-mail {
    font-size: 0.95rem;
    color: #888;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.partager-success-ok {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    background: #057D49;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

.partager-success-ok:hover {
    background: #022C1A;
}