/* ═══════════════════════════════════════
   MUR D'AVIS : citation épinglée et vidéo à gauche, avis à droite
   Chargé par toutes les pages qui montrent le mur (accueil, hub des formations, landings),
   juste après atelier.css quand la page le charge, avant les feuilles propres à la page.
   Les cartes sont posées par le build depuis partials/avis.json (assets/scripts/avis_lib.py),
   rangées ligne par ligne et dépliées par assets/js/avis-mur.js. La vidéo de la colonne de
   gauche se lit sur place dans le lecteur maison (lecteur-video.css et .js).
   Règles reprises d'atelier.css (bloc « AVIS ») et de cockpit-page.css (« Avis clients ») pour
   les pages qui ne chargent pas ces feuilles : mêmes valeurs, donc sans effet sur les landings.
   Le fond et le rembourrage restent ceux de la section de chaque page, pour garder
   l'enchaînement des dégradés.
   ═══════════════════════════════════════ */

/* cartes (cockpit-page.css, « Avis clients ») */
.ck-testimonials .testimonial-card {
    position: relative;
    background: var(--midnight);
    border-right: 1px solid rgba(124, 152, 179, 0.1);
    border-bottom: 1px solid rgba(124, 152, 179, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: background 0.3s;
}
.ck-testimonials .testimonial-card:hover { background: rgba(27, 73, 101, 0.08); }
.ck-testimonials .testimonial-card:nth-child(even) { background: rgba(27, 73, 101, 0.08); }
.ck-testimonials .testimonial-card:nth-child(even):hover { background: rgba(27, 73, 101, 0.15); }
.ck-testimonials .testimonial-quote { font-size: 0.9rem; color: var(--light-blue); line-height: 1.7; margin-bottom: 1.5rem; flex: 1; }
.ck-testimonials .testimonial-quote::before { content: '\201C'; font-family: var(--font-display); font-size: 2.5rem; color: var(--golden); line-height: 0.5; display: block; margin-bottom: 0.75rem; }
.ck-testimonials .testimonial-footer { display: flex; align-items: center; gap: 0.75rem; }
.ck-testimonials .testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(249, 220, 92, 0.2); flex-shrink: 0; }
.ck-testimonials .testimonial-info { flex: 1; min-width: 0; }
.ck-testimonials .testimonial-author { font-size: 0.82rem; font-weight: 700; color: var(--off-white); }
.ck-testimonials .testimonial-role { font-size: 0.72rem; color: var(--soft-blue); margin-top: 0.15rem; }
.ck-testimonials .testimonial-linkedin { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid rgba(124, 152, 179, 0.2); transition: border-color 0.3s, background 0.3s; }
.ck-testimonials .testimonial-linkedin:hover { border-color: rgba(249, 220, 92, 0.4); background: rgba(249, 220, 92, 0.08); }
.ck-testimonials .testimonial-linkedin svg { width: 16px; height: 16px; fill: var(--soft-blue); transition: fill 0.3s; }
.ck-testimonials .testimonial-linkedin:hover svg { fill: var(--golden); }

/* bouton « lire les avis » (atelier.css) */
.mw-more { display: flex; justify-content: center; margin-top: 1.6rem; position: relative; z-index: 3; }
.mw-more button { font: inherit; font-size: 0.92rem; font-weight: 700; color: var(--golden); background: transparent; border: 1px solid rgba(249, 220, 92, 0.55); border-radius: 100px; padding: 0.85rem 1.6rem; transition: background 0.25s, color 0.25s; }
.mw-more button:hover { background: var(--golden); color: var(--midnight); }
/* le script masque le bouton une fois le mur déplié : sans cette règle, le display:flex ci-dessus l'emporte sur l'attribut hidden */
.mw-more[hidden] { display: none; }

/* le mur (atelier.css, bloc « AVIS ») */
.tw-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.tw-side { position: sticky; top: 6.5rem; }
.ap-testimonials .tw-side .section-title { text-align: left; margin: 0 0 1.8rem; font-size: clamp(2rem, 3.4vw, 2.9rem); }
.tw-pull { margin: 0 0 1.8rem; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 3px solid var(--golden); }
.tw-pull blockquote { font-family: var(--font-display); font-size: clamp(2rem, 3.1vw, 2.7rem); line-height: 1.15; color: var(--off-white); }
.tw-pull figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.tw-pull figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tw-pull figcaption span { font-size: 0.78rem; color: var(--soft-blue); line-height: 1.4; }
.tw-pull figcaption b { display: block; font-size: 0.88rem; color: var(--off-white); }
.tw-wall { position: relative; columns: 2; column-gap: 18px; }
.tw-wall > * { break-inside: avoid; margin-bottom: 18px; }
/* replié : le bas du mur s'efface sur le fond réel de la section (masque de transparence). Le calque coloré
   d'atelier.css finissait toujours en midnight et tranchait sur un fond midnight-light (accueil, 2026-10-29). */
.tw-wall.tw-replie { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 260px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 260px), transparent); }
.tw-wall.tw-replie::after { content: none; }
.tw-card.testimonial-card { position: relative; display: block; width: 100%; grid-column: auto; grid-row: auto; }
.tw-result { display: inline-block; margin-bottom: 0.9rem; font-size: 0.78rem; font-weight: 800; color: var(--midnight); background: var(--golden); padding: 0.3rem 0.7rem; border-radius: 100px; }

/* rangement ligne par ligne (avis-mur.js) : deux colonnes remplies en alternance, 6 avis avant le bouton */
.tw-wall.tw-lignes { columns: auto; display: flex; gap: 18px; align-items: flex-start; }
.tw-wall.tw-lignes > .tw-col { flex: 1; min-width: 0; margin-bottom: 0; }
.tw-col > .tw-card { margin-bottom: 18px; }
.tw-wall.tw-replie .tw-card.tw-cachee { display: none; }

/* la vidéo de la colonne de gauche, lue sur place dans le lecteur maison */
.tw-video { display: block; margin: 0; background: var(--midnight); border: 1px solid rgba(249, 220, 92, 0.35); }
.tw-video-cap { display: block; padding: 1rem 1.2rem 1.15rem; }
.tw-video-cap b { display: block; font-size: 1rem; font-weight: 800; color: var(--off-white); }
.tw-video-cap small { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--soft-blue); }

@media (pointer: coarse) { .tw-card .testimonial-linkedin { width: 44px; height: 44px; } }
@media (max-width: 899px) {
    .tw-layout { grid-template-columns: 1fr; }
    .tw-side { position: relative; top: auto; }
    .tw-wall { columns: 2; }
}
@media (max-width: 640px) {
    .tw-wall { columns: 1; }
}
