/* ============================================
   ASSOCIATES.CSS — Moderation & MC page
   Refonte 25/05/2026 sur input client Manal :
   - Drop bandeau photo hero
   - Drop violet (--orchid/--plum/--wine) → teal LOP partout
   - Drop section stats au render
   - Échelle typo resserrée, mise en page sobre façon About
   - 4 service cards consolidées (au lieu de 6)
   - Moderator cards avec bouton « Watch on Stage » + recent events
   ============================================ */

:root {
    --mod-max: 1200px;
    --mod-pad-x: clamp(24px, 4vw, 56px);
    --mod-prose-max: 820px;
    --mod-h2-size: clamp(22px, 2.4vw, 28px);
    --mod-h3-size: clamp(15px, 1.3vw, 17px);
    --mod-body-size: clamp(15px, 1.15vw, 16.5px);
}

/* === Section 1 — Hero noir sobre === */

.mod-hero {
    position: relative;
    background: #050508;
    padding: clamp(180px, 22vh, 220px) 0 clamp(72px, 10vh, 100px);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mod-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 30%, rgba(156, 36, 143, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.mod-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--mod-max);
    margin: 0 auto;
    padding: 0 var(--mod-pad-x);
}

.mod-hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--orchid);
    margin: 0 0 16px;
}

.mod-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}

.mod-hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 400;
    font-style: italic;
    color: var(--white); /* demande Manal 08/06 : tagline en blanc (était orchid) */
    margin: 0 0 24px;
    max-width: var(--mod-prose-max);
}

.mod-hero-subtitle {
    font-size: var(--mod-body-size);
    line-height: 1.75;
    color: var(--off-white);
    opacity: 0.88;
    max-width: var(--mod-prose-max);
    margin: 0 0 32px;
}

.mod-hero-subtitle p { margin: 0 0 14px; }
.mod-hero-subtitle p:last-child { margin: 0; }

.mod-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mod-cta-primary,
.mod-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mod-cta-primary {
    background: linear-gradient(135deg, var(--orchid), var(--plum));
    color: var(--white);
}

.mod-cta-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 28px rgba(156, 36, 143, 0.32);
    transform: translateY(-2px);
}

.mod-cta-secondary {
    background: transparent;
    /* AA contrast on dark: was --orchid (2.96:1), now --orchid-light (5.7:1) */
    color: var(--orchid-light);
    border: 1px solid var(--orchid-light);
}

.mod-cta-secondary:hover {
    background: var(--plum-dim);
    transform: translateY(-2px);
}

/* === Sections génériques === */

.mod-section {
    padding: clamp(64px, 9vh, 100px) 0;
    position: relative;
}

.mod-section-inner {
    max-width: var(--mod-max);
    margin: 0 auto;
    padding: 0 var(--mod-pad-x);
}

.mod-section-eyebrow {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    /* AA contrast on dark: was --orchid (2.73:1), now --orchid-light (5.26:1) */
    color: var(--orchid-light);
    margin: 0 0 12px;
}

.mod-section-title {
    font-family: var(--font-heading);
    font-size: var(--mod-h2-size);
    font-weight: 400;
    line-height: 1.25;
    color: var(--white);
    letter-spacing: -0.005em;
    margin: 0 0 24px;
}

.mod-section-intro {
    font-size: var(--mod-body-size);
    line-height: 1.75;
    color: var(--off-white);
    opacity: 0.88;
    max-width: var(--mod-prose-max);
    margin: 0 0 32px;
}

.mod-logos { background: var(--card); padding: clamp(64px, 9vh, 96px) 0; }
.mod-spotlight { background: linear-gradient(180deg, var(--black) 0%, #0A0A14 100%); }
.mod-services { background: var(--card); }
.mod-reviews { background: linear-gradient(180deg, #0A0A14 0%, var(--black) 100%); }

/* === Logos clients === */

.mod-logos-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.45;
    color: var(--white);
    letter-spacing: -0.005em;
    max-width: 860px;
    margin: 0 auto clamp(40px, 5vh, 56px);
    text-align: center;
    position: relative;
    padding-top: 24px;
}

.mod-logos-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 2px;
    background: var(--orchid);
}

.mod-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
    justify-items: center;
}

.mod-logo-item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(1.4);
    opacity: 0.65;
    transition: all 0.3s ease;
}

.mod-logo-item img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* === Moderator spotlight === */

.mod-moderators-grid {
    display: grid;
    /* auto-fill (et non auto-fit) : les cartes gardent leur taille de piste
       au lieu de s'étirer pour remplir la ligne. Indispensable pour le bloc
       Speakers qui peut ne contenir qu'une personne (sinon carte pleine largeur). */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
    margin-top: 8px;
}

.mod-moderator-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.mod-moderator-card:hover {
    border-color: rgba(156, 36, 143, 0.3);
    transform: translateY(-2px);
}

.mod-moderator-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--card);
}

.mod-moderator-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mod-moderator-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 300;
    color: var(--orchid);
    background: linear-gradient(135deg, #0A0A14 0%, #050508 100%);
}

.mod-moderator-body {
    padding: 20px 22px;
}

.mod-moderator-body h3 {
    font-family: var(--font-heading);
    font-size: var(--mod-h3-size);
    font-weight: 500;
    color: var(--white);
    margin: 0 0 6px;
    line-height: 1.25;
}

.mod-moderator-geo {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orchid);
    margin: 0 0 14px;
}

.mod-moderator-role {
    font-size: 13px;
    color: var(--off-white);
    opacity: 0.8;
    margin: 0 0 8px;
    line-height: 1.4;
}

.mod-moderator-readmore {
    display: inline-block;
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orchid);
    transition: color 0.2s ease;
}

.mod-moderator-card--clickable {
    cursor: pointer;
}

.mod-moderator-card--clickable:focus-visible {
    outline: 2px solid var(--orchid);
    outline-offset: 3px;
}

.mod-moderator-card--clickable:hover .mod-moderator-readmore {
    color: var(--white);
}

.mod-spotlight-cta {
    margin-top: 36px;
    text-align: center;
}

.mod-spotlight-cta a {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orchid);
    text-decoration: none;
    border-bottom: 1px solid var(--orchid);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.mod-spotlight-cta a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* === Services (4 cards) === */

.mod-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 2.5vw, 28px);
    margin-top: 8px;
}

.mod-service-card {
    --mod-card-pad: clamp(28px, 3.2vw, 36px);
    padding: var(--mod-card-pad);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--orchid);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Bandeau photo optionnel en haut de la carte (déborde jusqu'aux bords,
   sous la ligne orchid). Affiché seulement si un logo/photo est défini. */
.mod-service-media {
    margin: calc(-1 * var(--mod-card-pad)) calc(-1 * var(--mod-card-pad)) var(--mod-card-pad);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.mod-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mod-service-card:hover {
    background: var(--plum-dim);
    transform: translateY(-2px);
}

.mod-service-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 500;
    color: var(--white);
    margin: 0 0 12px;
    line-height: 1.3;
}

.mod-service-card p {
    font-size: var(--mod-body-size);
    line-height: 1.7;
    color: var(--off-white);
    opacity: 0.88;
    margin: 0;
}

/* === Reviews carousel sobre === */

.mod-reviews-carousel {
    position: relative;
}

.mod-reviews-viewport {
    overflow: hidden;
}

.mod-reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}

.mod-review-card {
    flex: 0 0 100%;
    padding: 32px clamp(20px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--orchid);
    text-align: left;
}

.mod-review-card blockquote {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.7;
    color: var(--white);
    margin: 0 0 24px;
    font-style: italic;
}

.mod-review-attr {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mod-review-author {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--orchid);
    letter-spacing: 0.05em;
}

.mod-review-org {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.mod-reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.mod-reviews-dot {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mod-reviews-dot::before {
    content: '';
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s;
}

.mod-reviews-dot.active::before { background: var(--orchid); }

/* === Final CTA === */

.mod-final-cta {
    text-align: center;
    padding: clamp(80px, 12vh, 140px) clamp(24px, 5vw, 60px);
    background: #050508;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mod-final-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}

.mod-final-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 400;
    color: var(--white);
    margin: 0 0 16px;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

.mod-final-cta p {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.7;
}

.mod-final-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Responsive === */

@media (max-width: 540px) {
    .mod-hero-title { font-size: 24px; }
    .mod-moderators-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PERSON MODAL EXTENSIONS — clips + events sections inside the
   canonical .team-modal-* dialog (see components.css for the modal shell).
   ============================================ */

.team-modal-clips,
.team-modal-events {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.team-modal-subsection {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--team-accent, var(--orchid));
    margin: 0 0 14px;
}

/* Stage clips grid */
.person-clips-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.person-clip-btn {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.person-clip-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0A0A14;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.person-clip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-clip-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.person-clip-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.35);
    opacity: 0.95;
    transition: all 0.2s ease;
    pointer-events: none;
}

.person-clip-btn:hover .person-clip-thumb {
    border-color: var(--orchid);
    transform: translateY(-2px);
}

.person-clip-btn:hover .person-clip-play {
    background: rgba(156, 36, 143, 0.45);
    opacity: 1;
}

.person-clip-btn.is-playing .person-clip-play,
.person-clip-btn.is-playing img {
    display: none;
}

.person-clip-btn:focus-visible .person-clip-thumb {
    outline: 2px solid var(--orchid);
    outline-offset: 3px;
}

.person-clip-title {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--off-white);
    opacity: 0.85;
}

/* Selected events list */
.person-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.person-event + .person-event {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.person-event-link {
    display: grid;
    grid-template-columns: 96px 1fr 24px;
    align-items: baseline;
    gap: 16px;
    padding: 14px 4px;
    text-decoration: none;
    color: var(--off-white);
    transition: all 0.2s ease;
}

.person-event-link:hover {
    color: var(--white);
    background: rgba(156, 36, 143, 0.06);
    padding-left: 12px;
    padding-right: 12px;
}

.person-event-date {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orchid);
}

.person-event-name {
    font-size: 14.5px;
    line-height: 1.45;
}

.person-event-arrow {
    font-size: 16px;
    color: var(--off-white);
    opacity: 0.6;
    text-align: right;
    transition: opacity 0.2s ease;
}

.person-event-link:hover .person-event-arrow {
    opacity: 1;
    color: var(--orchid);
}

/* Mobile : single column clips, looser event row */
@media (max-width: 640px) {
    .person-clips-grid { grid-template-columns: 1fr; }
    .person-event-link { grid-template-columns: 1fr 24px; }
    .person-event-date {
        grid-column: 1 / -1;
        margin-bottom: 2px;
    }
}
