/**
 * AllVelo - Témoignages (Système 100% Autonome)
 * Reproduction exacte du design Salient / Visual Composer
 */

/* ==========================================================================
   Variables & Paramètres de base
   ========================================================================== */
:root {
    --allvelo-yellow: #f2cd00;
    --allvelo-white: #ffffff;
    --allvelo-black: #181818;
    --allvelo-text-dark: #111111;
    --allvelo-text-muted-dark: rgba(0, 0, 0, 0.58);
    --allvelo-text-light: #F9F4E9;
    --allvelo-text-muted-light: rgba(249, 244, 233, 0.75);
    --allvelo-border-radius: 16px;
    --allvelo-card-height: 520px;
    --allvelo-card-text-width: 530px;
    --allvelo-card-photo-width: 410px;
    --allvelo-card-gap: 22px;
}

/* ==========================================================================
   Ruban Défilant Autonome (Continuous Ticker Marquee)
   ========================================================================== */
.allvelo-ruban-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0 30px 0;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.allvelo-ruban-wrapper:active {
    cursor: grabbing;
}

.allvelo-ruban-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: var(--allvelo-card-height);
}

.allvelo-ruban-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    width: max-content;
    will-change: transform;
}

/* Cellule de carte dans le ruban */
.allvelo-ruban-cell {
    flex: 0 0 auto;
    height: var(--allvelo-card-height);
    margin-right: var(--allvelo-card-gap);
    box-sizing: border-box;
}

/* Largeurs calibrées selon le modèle Salient */
.allvelo-ruban-cell.allvelo-cell--text {
    width: var(--allvelo-card-text-width);
}

.allvelo-ruban-cell.allvelo-cell--photo {
    width: var(--allvelo-card-photo-width);
}

@media (max-width: 1200px) {
    :root {
        --allvelo-card-text-width: 490px;
        --allvelo-card-photo-width: 380px;
        --allvelo-card-height: 490px;
    }
    .allvelo-ruban-wrapper .allvelo-card--photo .allvelo-card__photo-header {
        height: 180px !important;
    }
    .allvelo-ruban-wrapper .allvelo-card--photo .allvelo-card__quote,
    .allvelo-card--ruban.allvelo-card--photo .allvelo-card__quote {
        -webkit-line-clamp: 7 !important;
    }
}

@media (max-width: 768px) {
    :root {
        --allvelo-card-text-width: 360px;
        --allvelo-card-photo-width: 320px;
        --allvelo-card-height: 440px;
        --allvelo-card-gap: 16px;
    }
    .allvelo-ruban-wrapper .allvelo-card--photo .allvelo-card__photo-header {
        height: 160px !important;
    }
    .allvelo-ruban-wrapper .allvelo-card--photo .allvelo-card__inner {
        height: calc(100% - 160px) !important;
        padding: 12px 18px 18px 18px !important;
    }
    .allvelo-ruban-wrapper .allvelo-card--photo .allvelo-card__quote,
    .allvelo-card--ruban.allvelo-card--photo .allvelo-card__quote {
        -webkit-line-clamp: 6 !important;
    }
}

@media (max-width: 480px) {
    :root {
        --allvelo-card-text-width: 320px;
        --allvelo-card-photo-width: 290px;
        --allvelo-card-height: 420px;
    }
}

/* ==========================================================================
   Carte Témoignage Unique (Encart / Card)
   ========================================================================== */
.allvelo-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--allvelo-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 32px 28px 32px;
    box-sizing: border-box;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Lien global cliquable sur toute la carte dans le ruban */
.allvelo-card__link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 50 !important;
    display: block;
    cursor: pointer;
    text-decoration: none !important;
    pointer-events: auto !important;
}

.allvelo-ruban-wrapper .allvelo-card {
    cursor: pointer;
}

.allvelo-ruban-wrapper .allvelo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.allvelo-ruban-wrapper .allvelo-card--photo {
    height: 100% !important;
}

.allvelo-ruban-wrapper .allvelo-card--photo .allvelo-card__photo-header {
    height: 195px !important;
}

.allvelo-ruban-wrapper .allvelo-card--photo .allvelo-card__inner {
    height: calc(100% - 195px) !important;
    padding: 14px 26px 20px 26px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

/* Limitation propre des citations dans le ruban pour garantir la visibilité absolue du footer */
.allvelo-ruban-wrapper .allvelo-card__quote {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.allvelo-ruban-wrapper .allvelo-card--photo .allvelo-card__quote {
    -webkit-line-clamp: 8 !important;
    max-height: 200px !important;
}

.allvelo-ruban-wrapper .allvelo-card--text .allvelo-card__quote {
    -webkit-line-clamp: 10 !important;
    max-height: 260px !important;
}

.allvelo-ruban-wrapper .allvelo-card__footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    position: relative;
    z-index: 5;
}

/* Carte avec Photo : Photo cadrée en haut avec fondu au noir, puis noir 100% sous l'image pour le texte */
.allvelo-card--photo {
    background-color: var(--allvelo-black, #181818) !important;
    background-image: none !important;
    color: var(--allvelo-text-light, #F9F4E9);
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    border-radius: var(--allvelo-border-radius, 16px);
}

.allvelo-card--photo .allvelo-card__overlay {
    display: none !important;
}

/* En-tête photo supérieure (image nette, jamais recouverte par le texte) */
.allvelo-card__photo-header {
    position: relative;
    width: 100%;
    height: 270px;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    flex-shrink: 0;
    overflow: hidden;
}

/* Dégradé doux de transition : fondu au noir vers la zone de commentaire */
.allvelo-card__photo-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0) 0%, rgba(24, 24, 24, 0.35) 40%, rgba(24, 24, 24, 0.85) 75%, var(--allvelo-black, #181818) 100%) !important;
    pointer-events: none;
    z-index: 2;
}

/* Cartes Texte (Alternance de couleurs) */
.allvelo-card--text {
    justify-content: space-between;
}

/* 1. Carte Jaune */
.allvelo-card--yellow {
    background-color: var(--allvelo-yellow);
    color: var(--allvelo-text-dark);
}

.allvelo-card--yellow .allvelo-card__quote {
    color: var(--allvelo-text-dark);
}

.allvelo-card--yellow .allvelo-card__name {
    color: var(--allvelo-text-dark);
}

.allvelo-card--yellow .allvelo-card__subtitle {
    color: var(--allvelo-text-muted-dark);
}

/* 2. Carte Blanche */
.allvelo-card--white {
    background-color: var(--allvelo-white);
    color: var(--allvelo-text-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.allvelo-card--white .allvelo-card__quote {
    color: var(--allvelo-text-dark);
}

.allvelo-card--white .allvelo-card__name {
    color: var(--allvelo-text-dark);
}

.allvelo-card--white .allvelo-card__subtitle {
    color: var(--allvelo-text-muted-dark);
}

/* 3. Carte Noire */
.allvelo-card--black {
    background-color: var(--allvelo-black);
    color: var(--allvelo-text-light);
}

.allvelo-card--black .allvelo-card__quote {
    color: var(--allvelo-text-light);
}

.allvelo-card--black .allvelo-card__name {
    color: var(--allvelo-text-light);
}

.allvelo-card--black .allvelo-card__subtitle {
    color: var(--allvelo-text-muted-light);
}

/* 4. Carte Photo (Zone de texte 100% noire sous la photo) */
.allvelo-card--photo .allvelo-card__inner {
    background-color: var(--allvelo-black, #181818) !important;
    padding: 16px 28px 26px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    justify-content: space-between !important;
    gap: 18px !important;
    position: relative;
    z-index: 5;
    height: auto;
    box-sizing: border-box;
}

.allvelo-card--photo .allvelo-card__quote-wrap {
    margin-top: 0 !important;
    flex: 1 1 auto !important;
    margin-bottom: 0 !important;
}

.allvelo-card--photo .allvelo-card__footer {
    margin-top: auto !important;
    flex-shrink: 0;
}

.allvelo-card--photo .allvelo-card__quote {
    color: var(--allvelo-text-light, #F9F4E9) !important;
    text-shadow: none !important;
    font-size: 15.5px;
    line-height: 1.55;
    font-weight: 400;
}

.allvelo-card--photo .allvelo-card__quote p {
    color: var(--allvelo-text-light, #F9F4E9) !important;
    margin: 0 0 6px 0;
    font-size: inherit;
    line-height: inherit;
}

.allvelo-card--photo .allvelo-card__quote p:last-child {
    margin-bottom: 0;
}

.allvelo-card--photo .allvelo-card__name {
    color: var(--allvelo-text-light, #F9F4E9) !important;
    text-shadow: none !important;
    font-weight: 700;
}

.allvelo-card--photo .allvelo-card__subtitle {
    color: var(--allvelo-text-muted-light, rgba(249, 244, 233, 0.75)) !important;
    text-shadow: none !important;
}

/* ==========================================================================
   Contenu de la carte
   ========================================================================== */
.allvelo-card__inner {
    position: relative;
    z-index: 5;
    pointer-events: none; /* Laisse passer le clic vers la vidéo sur le fond et les zones vides */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.allvelo-card--photo .allvelo-card__inner {
    justify-content: flex-end;
}

/* Citation texte (Haut de carte) - Proportions exactes de la maquette */
.allvelo-card__quote-wrap {
    margin-bottom: 20px;
    flex: 1 1 auto;
}

.allvelo-card__quote {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.allvelo-card__quote p {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
    color: inherit;
}

.allvelo-card__quote p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .allvelo-card__quote {
        font-size: 15px;
        line-height: 1.4;
    }
}

/* ==========================================================================
   Lien d'édition rapide administrateur ("Éditer le témoignage")
   Visible uniquement si l'utilisateur connecté possède les droits d'édition
   Toujours prioritaire au clic (z-index supérieur au lien global de la carte)
   ========================================================================== */
.allvelo-card__edit-wrap {
    margin-top: 10px;
    position: relative;
    z-index: 60 !important;
    pointer-events: auto !important;
}

.allvelo-card__edit-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none !important;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer !important;
    line-height: 1;
    pointer-events: auto !important;
    position: relative;
    z-index: 60 !important;
}

.allvelo-card__edit-link svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

.allvelo-card__edit-link:hover {
    opacity: 1;
    transform: translateX(2px);
    text-decoration: underline !important;
}

/* Couleurs contextuelles du lien selon le fond de la carte */
.allvelo-card--yellow .allvelo-card__edit-link,
.allvelo-card--white .allvelo-card__edit-link {
    color: #111111 !important;
}

.allvelo-card--black .allvelo-card__edit-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ==========================================================================
   Actions supérieures de la carte (Bouton Partager & Édition Admin)
   Positionnées en haut à droite sur tous les types de cartes
   ========================================================================== */
.allvelo-card__actions-top {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 70 !important;
    pointer-events: auto !important;
}

/* Espacement du texte pour éviter tout chevauchement avec les actions en haut à droite */
.allvelo-card--text .allvelo-card__quote-wrap {
    padding-right: 36px;
}

/* Positionnement du bouton d'édition dans les actions supérieures photo */
.allvelo-card__actions-top .allvelo-card__edit-wrap--photo {
    position: relative;
    top: auto;
    right: auto;
    margin: 0;
    z-index: 65 !important;
    pointer-events: auto !important;
}

.allvelo-card__edit-wrap--photo {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
    z-index: 65 !important;
    pointer-events: auto !important;
}

.allvelo-card__edit-wrap--photo .allvelo-card__edit-link {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    pointer-events: auto !important;
    position: relative;
    z-index: 65 !important;
}

.allvelo-card__edit-wrap--photo .allvelo-card__edit-link:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.95);
    text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   Bouton Partager (Picto réseaux sociaux / Copie dans le presse-papier)
   -------------------------------------------------------------------------- */
.allvelo-card__share-btn {
    position: relative;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.2s ease, 
                color 0.2s ease, 
                box-shadow 0.2s ease;
    box-shadow: none;
    z-index: 70 !important;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
}

.allvelo-card__share-btn:hover {
    transform: scale(1.08);
}

.allvelo-card__share-btn:active {
    transform: scale(0.94);
}

.allvelo-card__share-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
    display: block;
    transition: transform 0.2s ease;
}

.allvelo-card__share-icon--copied {
    display: none !important;
}

/* Couleurs selon le fond de la carte */
.allvelo-card--yellow .allvelo-card__share-btn {
    background: rgba(17, 17, 17, 0.08);
    color: #111111;
}
.allvelo-card--yellow .allvelo-card__share-btn:hover {
    background: rgba(17, 17, 17, 0.16);
    color: #000000;
}

.allvelo-card--white .allvelo-card__share-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #222222;
}
.allvelo-card--white .allvelo-card__share-btn:hover {
    background: rgba(0, 0, 0, 0.10);
    color: #000000;
}

.allvelo-card--black .allvelo-card__share-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}
.allvelo-card--black .allvelo-card__share-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.allvelo-card--photo .allvelo-card__share-btn {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.20);
}
.allvelo-card--photo .allvelo-card__share-btn:hover {
    background: rgba(0, 0, 0, 0.90);
    color: var(--allvelo-yellow);
    border-color: rgba(242, 205, 0, 0.4);
}

/* État actif / copié */
.allvelo-card__share-btn--copied {
    background: #111111 !important;
    color: var(--allvelo-yellow) !important;
    transform: scale(1.05) !important;
}

.allvelo-card--black .allvelo-card__share-btn--copied,
.allvelo-card--photo .allvelo-card__share-btn--copied {
    background: var(--allvelo-yellow) !important;
    color: #111111 !important;
    border-color: var(--allvelo-yellow) !important;
}

.allvelo-card__share-btn--copied .allvelo-card__share-icon--default {
    display: none !important;
}

.allvelo-card__share-btn--copied .allvelo-card__share-icon--copied {
    display: block !important;
    stroke: currentColor;
    animation: allveloCheckBounce 0.35s ease-out;
}

@keyframes allveloCheckBounce {
    0% { transform: scale(0.6); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Tooltip "Lien copié !" */
.allvelo-card__share-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #181818;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 11px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.allvelo-card__share-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 11px;
    border: 5px solid transparent;
    border-bottom-color: #181818;
}

.allvelo-card--black .allvelo-card__share-tooltip,
.allvelo-card--photo .allvelo-card__share-tooltip {
    background: var(--allvelo-yellow);
    color: #111111;
}

.allvelo-card--black .allvelo-card__share-tooltip::after,
.allvelo-card--photo .allvelo-card__share-tooltip::after {
    border-bottom-color: var(--allvelo-yellow);
}

.allvelo-card__share-btn--copied .allvelo-card__share-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .allvelo-card__actions-top {
        top: 14px;
        right: 14px;
        gap: 6px;
    }
    .allvelo-card__share-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    .allvelo-card--text .allvelo-card__quote-wrap {
        padding-right: 30px;
    }
}

/* Bas de carte (Auteur + Action à droite) */
.allvelo-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    flex-shrink: 0;
}

.allvelo-card__author-info {
    flex: 1 1 auto;
    min-width: 0;
}

/* Titre / Nom de la personne */
.allvelo-card__name {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 3px 0;
    padding: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-font-smoothing: antialiased;
}

/* Sous-titre / Métier */
.allvelo-card__subtitle {
    display: block;
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 400;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-font-smoothing: antialiased;
}

.allvelo-card__action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 35%; /* Préserve au moins 65% de la largeur pour le nom et la fonction */
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

/* ==========================================================================
   Petite Photo Portrait (Personnalités : Avatar rond 44px)
   ========================================================================== */
.allvelo-card__portrait {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.allvelo-card__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Petit Logo (Institutionnels & Soutiens : Zéro rognage, taille max calibrée)
   ========================================================================== */
.allvelo-card__logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    max-width: 120px; /* Plafond strict pour ne pas envahir la carte */
    height: 44px;
    max-height: 44px;
    border-radius: 0 !important;
    overflow: visible;
    box-shadow: none !important;
    background: transparent;
}

.allvelo-card__logo img {
    max-width: 120px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain; /* Garantit qu'absolument aucun pixel n'est recoupé */
    object-position: right center;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 480px) {
    .allvelo-card__logo {
        max-width: 90px;
        max-height: 38px;
        height: 38px;
    }
    .allvelo-card__logo img {
        max-width: 90px;
        max-height: 38px;
    }
}

/* Lisibilité optimale du logo sur fond sombre (carte noire) ou photo :
   Badge fond blanc élégant préservant les couleurs d'origine du logo et garantissant un contraste parfait */
.allvelo-card--black .allvelo-card__logo,
.allvelo-card--photo .allvelo-card__logo {
    background-color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    height: auto !important;
    max-height: 42px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
    box-sizing: border-box !important;
}

.allvelo-card--black .allvelo-card__logo img,
.allvelo-card--photo .allvelo-card__logo img {
    max-height: 30px !important;
    max-width: 100px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: none !important;
}

@media (max-width: 480px) {
    .allvelo-card--black .allvelo-card__logo,
    .allvelo-card--photo .allvelo-card__logo {
        padding: 5px 10px !important;
        border-radius: 8px !important;
        max-height: 36px !important;
    }
    .allvelo-card--black .allvelo-card__logo img,
    .allvelo-card--photo .allvelo-card__logo img {
        max-height: 26px !important;
        max-width: 80px !important;
    }
}

/* ==========================================================================
   Bouton Vidéo (Play Button Glassmorphism 44px)
   ========================================================================== */
.allvelo-card__play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(246, 244, 240, 0.15);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.allvelo-card--text.allvelo-card--yellow .allvelo-card__play-btn,
.allvelo-card--text.allvelo-card--white .allvelo-card__play-btn {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111111;
}

.allvelo-card--text.allvelo-card--yellow .allvelo-card__play-btn svg,
.allvelo-card--text.allvelo-card--white .allvelo-card__play-btn svg {
    fill: #111111;
}

.allvelo-card__play-btn svg {
    fill: #F6F4F0;
    width: 15px;
    height: 15px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.allvelo-card:hover .allvelo-card__play-btn {
    transform: scale(1.08);
    background-color: rgba(246, 244, 240, 0.30);
}

.allvelo-card--text.allvelo-card--yellow:hover .allvelo-card__play-btn,
.allvelo-card--text.allvelo-card--white:hover .allvelo-card__play-btn {
    background-color: rgba(0, 0, 0, 0.16);
}

/* Lien plein écran sur toute la carte vidéo (en arrière-plan par rapport aux boutons/liens) */
.allvelo-card__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

/* ==========================================================================
   Bouton "Voir tous les témoignages"
   ========================================================================== */
.allvelo-temoignages-btn-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.allvelo-temoignages-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    background-color: #111111;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.allvelo-temoignages-btn:hover {
    background-color: var(--allvelo-yellow);
    color: #111111 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.allvelo-temoignages-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.allvelo-temoignages-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   En-tête Archive (Ils nous soutiennent)
   ========================================================================== */
.allvelo-archive-header {
    text-align: center;
    margin: 50px auto 40px auto;
    max-width: 850px;
    padding: 0 20px;
}

.allvelo-archive-header__title {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.1;
    color: #111111;
}

.allvelo-archive-header__desc {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.65);
    margin: 0 auto;
}

.allvelo-archive-header__cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.allvelo-btn-soutenez {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--allvelo-yellow, #F3CD00) !important;
    color: #121213 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(243, 205, 0, 0.32);
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
    cursor: pointer;
    border: none;
}

.allvelo-btn-soutenez svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.allvelo-btn-soutenez:hover {
    background-color: #121213 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    text-decoration: none !important;
}

.allvelo-btn-soutenez:hover svg {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .allvelo-archive-header {
        margin: 35px auto 25px auto;
    }
    .allvelo-btn-soutenez {
        font-size: 14px;
        padding: 11px 22px;
        gap: 8px;
    }
}

/* ==========================================================================
   Grille Témoignages (Page "Tous les témoignages" & Shortcode)
   Mode Grille Alignée (Style Blog) & Mode Maçonnerie (Masonry)
   ========================================================================== */
.allvelo-grid-container {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* ==========================================================================
   Filtres de Catégories à la volée (Style Isotope / Onglets Pilules)
   ========================================================================== */
.allvelo-grid-filters-wrap {
    width: 100%;
    margin: 10px auto 38px auto;
    display: flex;
    justify-content: center;
}

.allvelo-grid-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px;
    background: #f7f7f7;
    border-radius: 50px;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.allvelo-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    color: #444444;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.4, 1);
    white-space: nowrap;
    text-decoration: none !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.allvelo-filter-btn:hover {
    color: #111111;
    background: #eaeaea;
}

.allvelo-filter-btn--active,
.allvelo-filter-btn--active:hover {
    color: #ffffff !important;
    background: #181818 !important;
    border-color: #181818 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.allvelo-filter-btn .allvelo-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    color: #666666;
    transition: all 0.22s ease;
}

.allvelo-filter-btn:hover .allvelo-filter-count {
    background: rgba(0, 0, 0, 0.12);
    color: #222222;
}

.allvelo-filter-btn--active .allvelo-filter-count,
.allvelo-filter-btn--active:hover .allvelo-filter-count {
    background: var(--allvelo-yellow);
    color: #181818;
}

.allvelo-grid-empty {
    text-align: center;
    padding: 50px 20px;
    color: #777777;
    font-size: 16px;
    font-style: italic;
}

@keyframes allveloCardFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.allvelo-temoignages-grille {
    width: 100%;
    margin: 20px auto 40px auto;
    box-sizing: border-box;
}

/* ==========================================================================
   1. Mode Maçonnerie Fluide (Masonry - Mode par défaut)
   Aucune hauteur fixe : chaque carte s'adapte à son contenu naturel
   ========================================================================== */
.allvelo-temoignages-grille,
.allvelo-temoignages-grille[data-layout="masonry"] {
    display: block;
    column-count: 3;
    column-gap: 22px;
}

.allvelo-temoignages-grille[data-columns="2"],
.allvelo-temoignages-grille[data-layout="masonry"][data-columns="2"] {
    column-count: 2;
}

.allvelo-temoignages-grille[data-columns="3"],
.allvelo-temoignages-grille[data-layout="masonry"][data-columns="3"] {
    column-count: 3;
}

.allvelo-temoignages-grille[data-columns="4"],
.allvelo-temoignages-grille[data-layout="masonry"][data-columns="4"] {
    column-count: 4;
}

/* Cartes individuelles en mode maçonnerie */
.allvelo-temoignages-grille .allvelo-card,
.allvelo-temoignages-grille[data-layout="masonry"] .allvelo-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto !important;
    margin: 0 0 22px 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    box-sizing: border-box;
    transform: translateZ(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.allvelo-temoignages-grille .allvelo-card.allvelo-card--hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
}

.allvelo-temoignages-grille .allvelo-card.allvelo-card--visible {
    animation: allveloCardFadeIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Cartes Texte (Jaune / Blanche / Noire) : Hauteur libre et fluide selon la longueur de la citation */
.allvelo-temoignages-grille .allvelo-card--text,
.allvelo-temoignages-grille[data-layout="masonry"] .allvelo-card--text {
    height: auto !important;
    min-height: auto !important;
    justify-content: flex-start;
    padding: 30px 28px 26px 28px;
}

.allvelo-temoignages-grille .allvelo-card--text .allvelo-card__inner,
.allvelo-temoignages-grille[data-layout="masonry"] .allvelo-card--text .allvelo-card__inner {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.allvelo-temoignages-grille .allvelo-card--text .allvelo-card__quote-wrap,
.allvelo-temoignages-grille[data-layout="masonry"] .allvelo-card--text .allvelo-card__quote-wrap {
    flex: 1 1 auto;
    margin-bottom: 0;
}

/* Cartes Photo en mode Maçonnerie : Photo intacte en haut + fondu au noir + noir 100% sous l'image pour tout le texte */
.allvelo-temoignages-grille .allvelo-card--photo,
.allvelo-temoignages-grille[data-layout="masonry"] .allvelo-card--photo,
.allvelo-card--grille.allvelo-card--photo {
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: auto;
    padding: 0 !important;
    background-color: var(--allvelo-black, #181818) !important;
    position: relative;
    overflow: hidden;
}

.allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__photo-header,
.allvelo-card--grille.allvelo-card--photo .allvelo-card__photo-header {
    height: 270px;
    width: 100%;
}

.allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__inner,
.allvelo-temoignages-grille[data-layout="masonry"] .allvelo-card--photo .allvelo-card__inner,
.allvelo-card--grille.allvelo-card--photo .allvelo-card__inner {
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 16px 28px 26px 28px !important;
    position: relative;
    z-index: 2;
    background-color: var(--allvelo-black, #181818) !important;
}

.allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__quote-wrap,
.allvelo-temoignages-grille[data-layout="masonry"] .allvelo-card--photo .allvelo-card__quote-wrap,
.allvelo-card--grille.allvelo-card--photo .allvelo-card__quote-wrap {
    margin-top: 0 !important;
    flex: 1 1 auto !important;
    margin-bottom: 0 !important;
}

.allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__footer,
.allvelo-temoignages-grille[data-layout="masonry"] .allvelo-card--photo .allvelo-card__footer,
.allvelo-card--grille.allvelo-card--photo .allvelo-card__footer {
    margin-top: auto !important;
    flex-shrink: 0;
}

/* ==========================================================================
   Grille Masonry : AUCUNE coupure de texte (Message 100% intégral)
   Ne tronque aucun mot : ni line-clamp, ni ellipsis, ni limitation de hauteur
   ========================================================================== */
.allvelo-temoignages-grille .allvelo-card__quote,
.allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__quote,
.allvelo-temoignages-grille .allvelo-card--text .allvelo-card__quote,
.allvelo-card--grille .allvelo-card__quote,
.allvelo-card--grille.allvelo-card--photo .allvelo-card__quote,
.allvelo-card--grille.allvelo-card--text .allvelo-card__quote {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-height: none !important;
}

/* Clarté & Lisibilité absolue des citations sur fond noir sous photo */
.allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__quote,
.allvelo-card--grille.allvelo-card--photo .allvelo-card__quote {
    color: var(--allvelo-text-light, #F9F4E9) !important;
    text-shadow: none !important;
    font-weight: 400;
}

/* ==========================================================================
   Mise en valeur d'un témoignage (#temoignage-123 ou lors du partage)
   Filet persistant : noir si fond jaune, jaune si fond blanc, noir ou photo
   ========================================================================== */
.allvelo-card--highlighted {
    position: relative;
    z-index: 85 !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    animation: allveloCardEntrancePulse 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) ease-out;
}

/* Filet net épousant parfaitement le border-radius de la carte sans altérer le layout */
.allvelo-card--highlighted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--allvelo-border-radius, 16px);
    pointer-events: none;
    z-index: 80;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 1. Filet noir si le fond est jaune */
.allvelo-card--yellow.allvelo-card--highlighted::after {
    border: 3px solid #111111;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.allvelo-card--yellow.allvelo-card--highlighted {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18) !important;
}

/* 2. Filet jaune si le fond est blanc */
.allvelo-card--white.allvelo-card--highlighted::after {
    border: 3px solid var(--allvelo-yellow, #f2cd00);
    box-shadow: inset 0 0 0 1px rgba(242, 205, 0, 0.35);
}

.allvelo-card--white.allvelo-card--highlighted {
    box-shadow: 0 10px 32px rgba(242, 205, 0, 0.30), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* 3. Filet jaune si le fond est noir */
.allvelo-card--black.allvelo-card--highlighted::after {
    border: 3px solid var(--allvelo-yellow, #f2cd00);
    box-shadow: inset 0 0 0 1px rgba(242, 205, 0, 0.35);
}

.allvelo-card--black.allvelo-card--highlighted {
    box-shadow: 0 10px 32px rgba(242, 205, 0, 0.35), 0 0 20px rgba(242, 205, 0, 0.16) !important;
}

/* 4. Filet jaune si carte avec photo (fond sombre) */
.allvelo-card--photo.allvelo-card--highlighted::after {
    border: 3px solid var(--allvelo-yellow, #f2cd00);
    box-shadow: inset 0 0 0 1px rgba(242, 205, 0, 0.35);
}

.allvelo-card--photo.allvelo-card--highlighted {
    box-shadow: 0 10px 32px rgba(242, 205, 0, 0.38), 0 0 22px rgba(242, 205, 0, 0.20) !important;
}

/* Survol de la carte mise en avant */
.allvelo-card--yellow.allvelo-card--highlighted:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24) !important;
}

.allvelo-card--white.allvelo-card--highlighted:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(242, 205, 0, 0.40) !important;
}

.allvelo-card--black.allvelo-card--highlighted:hover,
.allvelo-card--photo.allvelo-card--highlighted:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(242, 205, 0, 0.45) !important;
}

/* Animation douce d'entrée (légère pulsation à l'apparition) */
@keyframes allveloCardEntrancePulse {
    0% {
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   2. Mode alternatif rigide : Grille CSS alignée (si explicitement demandée)
   ========================================================================== */
.allvelo-temoignages-grille[data-layout="grid"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
    align-items: stretch;
}

.allvelo-temoignages-grille[data-layout="grid"][data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.allvelo-temoignages-grille[data-layout="grid"][data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.allvelo-temoignages-grille[data-layout="grid"][data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.allvelo-temoignages-grille[data-layout="grid"] .allvelo-card {
    display: flex;
    width: 100%;
    min-height: var(--allvelo-card-height);
    height: 100%;
    margin: 0;
}

/* Effet discret au survol en grille */
.allvelo-temoignages-grille .allvelo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

/* Responsive Grille & Masonry */

/* 1. Format Tablette (entre 769px et 1024px) : 2 Colonnes */
@media (min-width: 769px) and (max-width: 1024px) {
    .allvelo-temoignages-grille,
    .allvelo-temoignages-grille[data-layout="masonry"],
    .allvelo-temoignages-grille[data-columns],
    .allvelo-temoignages-grille[data-layout="masonry"][data-columns="2"],
    .allvelo-temoignages-grille[data-layout="masonry"][data-columns="3"],
    .allvelo-temoignages-grille[data-layout="masonry"][data-columns="4"] {
        column-count: 2 !important;
        column-gap: 20px !important;
    }
    
    .allvelo-temoignages-grille .allvelo-card {
        margin-bottom: 20px !important;
    }

    .allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__photo-header {
        height: 240px !important;
    }
    .allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__inner {
        padding: 14px 22px 22px 22px !important;
    }

    .allvelo-temoignages-grille[data-layout="grid"],
    .allvelo-temoignages-grille[data-layout="grid"][data-columns] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* 2. Format Mobile (smartphones et écrans <= 768px) : 1 SEULE COLONNE */
@media (max-width: 768px) {
    /* Grille en 1 colonne stricte */
    .allvelo-temoignages-grille,
    .allvelo-temoignages-grille[data-layout="masonry"],
    .allvelo-temoignages-grille[data-columns],
    .allvelo-temoignages-grille[data-layout="masonry"][data-columns="2"],
    .allvelo-temoignages-grille[data-layout="masonry"][data-columns="3"],
    .allvelo-temoignages-grille[data-layout="masonry"][data-columns="4"],
    .allvelo-temoignages-grille[data-columns="2"],
    .allvelo-temoignages-grille[data-columns="3"],
    .allvelo-temoignages-grille[data-columns="4"] {
        column-count: 1 !important;
        column-gap: 0 !important;
        display: block !important;
        width: 100% !important;
    }

    .allvelo-temoignages-grille .allvelo-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 18px 0 !important;
        box-sizing: border-box !important;
        break-inside: avoid !important;
        -webkit-column-break-inside: avoid !important;
        page-break-inside: avoid !important;
        padding: 26px 22px 22px 22px !important;
    }

    .allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__photo-header {
        height: 220px !important;
    }
    .allvelo-temoignages-grille .allvelo-card--photo .allvelo-card__inner {
        padding: 14px 20px 20px 20px !important;
    }

    .allvelo-temoignages-grille[data-layout="grid"],
    .allvelo-temoignages-grille[data-layout="grid"][data-columns],
    .allvelo-temoignages-grille[data-layout="grid"][data-columns="2"],
    .allvelo-temoignages-grille[data-layout="grid"][data-columns="3"],
    .allvelo-temoignages-grille[data-layout="grid"][data-columns="4"] {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* Barre de filtres sur mobile */
    .allvelo-grid-filters-wrap {
        margin: 5px auto 26px auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        padding-bottom: 8px !important;
    }
    .allvelo-grid-filters {
        flex-wrap: nowrap !important;
        border-radius: 30px !important;
        width: max-content !important;
        margin: 0 auto !important;
    }
    .allvelo-filter-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
}

/* 3. Très petits écrans (<= 480px) */
@media (max-width: 480px) {
    .allvelo-temoignages-grille .allvelo-card {
        padding: 24px 18px 20px 18px !important;
        border-radius: 18px !important;
    }

    .allvelo-card__quote {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .allvelo-card__name {
        font-size: 15px !important;
    }

    .allvelo-card__subtitle {
        font-size: 12px !important;
    }

    .allvelo-card__avatar,
    .allvelo-card__avatar img {
        width: 38px !important;
        height: 38px !important;
    }
}

/* ==========================================================================
   Modal Vidéo Lightbox Universel (YouTube / Vimeo / MP4 HTML5)
   ========================================================================== */
.allvelo-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.allvelo-video-modal.allvelo-modal--active {
    opacity: 1;
    visibility: visible;
}

.allvelo-video-modal__container {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 85vh;
    background-color: #000000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.allvelo-video-modal__iframe-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.allvelo-video-modal__iframe-wrap iframe,
.allvelo-video-modal__iframe-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.allvelo-video-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.allvelo-video-modal__close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* ==========================================================================
   Formulaire Front-End Public [temoignage_formulaire]
   ========================================================================== */
.allvelo-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
    box-sizing: border-box;
}

.allvelo-form-card {
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 40px 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
    .allvelo-form-card {
        padding: 24px 18px;
        border-radius: 14px;
    }
}

.allvelo-form-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #111111;
    letter-spacing: -0.02em;
}

.allvelo-form-desc {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.65);
    margin: 0 0 28px 0;
}

.allvelo-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (min-width: 641px) {
    .allvelo-form-grid .allvelo-form-group > label {
        min-height: 44px;
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }
}

@media (max-width: 640px) {
    .allvelo-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.allvelo-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.allvelo-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 7px;
}

.allvelo-form-label-row label {
    margin-bottom: 0 !important;
}

.allvelo-char-counter {
    font-size: 12.5px;
    color: #777777;
    font-weight: 500;
}

.allvelo-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.allvelo-form-group label .allvelo-form-hint,
.allvelo-form-hint {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #888888 !important;
    margin-left: 6px;
    letter-spacing: normal;
}

.allvelo-form-group input[type="text"],
.allvelo-form-group input[type="email"],
.allvelo-form-group input[type="url"],
.allvelo-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    font-size: 15px;
    color: #111111;
    background-color: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.allvelo-form-group input[type="text"]:focus,
.allvelo-form-group input[type="email"]:focus,
.allvelo-form-group input[type="url"]:focus,
.allvelo-form-group textarea:focus {
    background-color: #ffffff;
    border-color: var(--allvelo-yellow);
    box-shadow: 0 0 0 3px rgba(242, 205, 0, 0.25);
    outline: none;
}

/* Mise en avant des champs obligatoires manquants */
.allvelo-form-group input.allvelo-input-error,
.allvelo-form-group textarea.allvelo-input-error {
    border-color: #e53935 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18) !important;
}

.allvelo-radios-error {
    padding: 6px;
    border-radius: 12px;
    outline: 2px dashed #e53935;
    outline-offset: 3px;
    background-color: rgba(229, 57, 53, 0.04);
}

.allvelo-form-radios {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.allvelo-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #222222;
    cursor: pointer;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    transition: all 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .allvelo-radio-label {
        padding: 7px 12px;
        font-size: 13px;
    }
}

.allvelo-radio-label:has(input:checked) {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

.allvelo-radio-label input[type="radio"] {
    margin: 0;
    accent-color: var(--allvelo-yellow);
}

.allvelo-file-input {
    padding: 8px 0;
    font-size: 14px;
}

.allvelo-input-help {
    font-size: 12px;
    color: #777777;
    margin-top: 6px;
    line-height: 1.4;
}

/* ==========================================================================
   Case à cocher RGPD (Consentement légal)
   ========================================================================== */
.allvelo-form-group--rgpd {
    margin-top: 22px;
    margin-bottom: 22px;
    padding: 16px 20px;
    background-color: #fafafa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.allvelo-form-group--rgpd:hover {
    background-color: #f5f5f5;
    border-color: #dee2e6;
}

.allvelo-form-group--rgpd .allvelo-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: text;
    margin-bottom: 0;
}

.allvelo-form-group--rgpd input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #111111;
}

.allvelo-checkbox-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #495057;
}

.allvelo-checkbox-text strong {
    color: #212529;
}

.allvelo-checkbox-text a {
    color: #111111;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.allvelo-checkbox-text a:hover {
    color: #000000;
    text-decoration: underline;
}

.allvelo-form-submit-wrap {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

body .allvelo-form-submit-wrap button.allvelo-form-submit-btn,
body button.allvelo-form-submit-btn,
.allvelo-form-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    padding: 15px 46px !important; /* Padding généreux gauche/droite */
    background-color: #111111 !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    outline: none;
}

body .allvelo-form-submit-wrap button.allvelo-form-submit-btn span,
body button.allvelo-form-submit-btn span,
.allvelo-form-submit-btn span {
    color: #ffffff !important;
    transition: color 0.25s ease !important;
}

body .allvelo-form-submit-wrap button.allvelo-form-submit-btn svg,
body button.allvelo-form-submit-btn svg,
.allvelo-form-submit-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    transition: transform 0.2s ease, stroke 0.25s ease !important;
}

/* Survol (Hover) : Jaune vif Alliance Vélo avec texte noir profond, parfaitement lisible */
body .allvelo-form-submit-wrap button.allvelo-form-submit-btn:hover,
body button.allvelo-form-submit-btn:hover,
.allvelo-form-submit-btn:hover {
    background-color: var(--allvelo-yellow, #F2CD00) !important;
    background: var(--allvelo-yellow, #F2CD00) !important;
    color: #111111 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16) !important;
}

body .allvelo-form-submit-wrap button.allvelo-form-submit-btn:hover span,
body button.allvelo-form-submit-btn:hover span,
.allvelo-form-submit-btn:hover span {
    color: #111111 !important;
}

body .allvelo-form-submit-wrap button.allvelo-form-submit-btn:hover svg,
body button.allvelo-form-submit-btn:hover svg,
.allvelo-form-submit-btn:hover svg {
    color: #111111 !important;
    stroke: #111111 !important;
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .allvelo-form-submit-wrap {
        justify-content: stretch;
    }
    body .allvelo-form-submit-wrap button.allvelo-form-submit-btn {
        width: 100%;
        padding: 15px 24px !important;
    }
}

/* Alertes de statut */
.allvelo-form-alert {
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

.allvelo-form-alert--success {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.allvelo-form-alert--success svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #2e7d32;
}

.allvelo-form-alert--success strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.allvelo-form-alert--success p {
    margin: 0;
    font-size: 14.5px;
    color: inherit;
}

.allvelo-form-alert--error {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    font-size: 14.5px;
}

.allvelo-form-alert--error svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #c62828;
}

.allvelo-form-alert--error p {
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Page de Remerciement [temoignage_merci]
   ========================================================================== */
.allvelo-thankyou-wrap {
    width: 100%;
    padding: 60px 20px 80px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.allvelo-thankyou-card {
    max-width: 680px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 55px 45px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    box-sizing: border-box;
}

.allvelo-thankyou-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    background-color: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #c8e6c9;
}

.allvelo-thankyou-icon svg {
    width: 44px;
    height: 44px;
    fill: currentColor;
}

.allvelo-thankyou-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--allvelo-yellow, #f2cd00) !important;
    background: var(--allvelo-yellow, #f2cd00) !important;
    color: var(--allvelo-black, #181818) !important;
    border: none !important;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(242, 205, 0, 0.28);
}

.allvelo-thankyou-badge span {
    color: var(--allvelo-black, #181818) !important;
}

.allvelo-thankyou-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #111111;
    letter-spacing: -0.02em;
}

.allvelo-thankyou-desc {
    font-size: 16.5px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 35px 0;
}

.allvelo-thankyou-desc p {
    margin-bottom: 14px;
}

.allvelo-thankyou-desc strong {
    color: #111111;
    font-weight: 700;
}

.allvelo-thankyou-desc a {
    color: #111111;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease;
}

.allvelo-thankyou-desc a:hover {
    color: var(--allvelo-yellow);
}

.allvelo-thankyou-note {
    font-size: 14.5px !important;
    color: #777777 !important;
    margin-top: 15px !important;
}

.allvelo-thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.allvelo-thankyou-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 36px;
    background-color: #111111;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.allvelo-thankyou-btn-primary:hover {
    background-color: var(--allvelo-yellow);
    color: #111111 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.allvelo-thankyou-btn-primary svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.allvelo-thankyou-btn-primary:hover svg {
    transform: translateX(4px);
}

.allvelo-thankyou-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 15px 28px;
    background-color: #f5f5f5;
    color: #333333 !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.allvelo-thankyou-btn-secondary:hover {
    background-color: #e5e5e5;
    color: #111111 !important;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .allvelo-thankyou-wrap {
        padding: 30px 15px 50px 15px;
    }
    .allvelo-thankyou-card {
        padding: 35px 22px;
        border-radius: 18px;
    }
    .allvelo-thankyou-actions {
        flex-direction: column;
        width: 100%;
    }
    .allvelo-thankyou-btn-primary,
    .allvelo-thankyou-btn-secondary {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}
