/* Page /regie-video/ : la régie présentée comme une salle de régie.
 * Palette du site (teal / vanille), arêtes vives, Noto Sans. Les sections
 * sombres (.rv-hero, .rv-habillage, .rv-multiplex, .rv-final) portent les
 * moments « antenne » ; les claires portent l'explication. */

.rv {
    --rv-teal: var(--teal, #1C3D34);
    --rv-nuit: var(--teal-dk, #172713);
    --rv-vanille: var(--vanilla, #F2E5D2);
    --rv-sable: var(--vanilla-d, #E8D8C0);
    --rv-rouge: #9A2A1E;
    --rv-jaune: #E3B521;
    --rv-encre-2: rgba(28, 61, 52, 0.84);
    --rv-clair-2: rgba(242, 229, 210, 0.8);
    --rv-ease: cubic-bezier(0.16, 1, 0.3, 1);

    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: clip;
    color: var(--rv-teal);
    background: var(--rv-vanille);
    font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}
body:has(.rv) .site-footer { margin-top: 0; }
.rv *, .rv *::before, .rv *::after { box-sizing: border-box; }
.rv ::selection { background: var(--rv-teal); color: var(--rv-vanille); }
.rv-hero ::selection, .rv-habillage ::selection, .rv-multiplex ::selection, .rv-final ::selection { background: var(--rv-vanille); color: var(--rv-nuit); }

.rv-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.rv-ico { width: 1.25em; height: 1.25em; flex: none; }

/* ── Typographie ── */
.rv-h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5.4vw, 5rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-wrap: balance;
    color: var(--rv-vanille);
}
.rv-h2 {
    margin: 0 0 clamp(28px, 4vw, 48px);
    /* Titres de section sur 2 lignes au plus (Félix, 17/10 : trop de titres sur 3). */
    max-width: 24ch;
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
/* Titres « titre + trait » de la home (.hd .hd-rub-tete) : le .hd prend le fond et la couleur de la section. */
.rv .rv-tete { background: none; color: inherit; }
.rv .rv-tete .hd-rub-tete { margin-bottom: 28px; }
.rv-p { margin: 0 0 1em; max-width: 62ch; color: var(--rv-encre-2); }
.rv-p--large { font-size: 1.15rem; max-width: 70ch; }
.rv a { text-decoration: none; }
.rv a, .rv a:link, .rv a:visited, .rv a:hover { -webkit-text-fill-color: currentColor; } /* le thème force la couleur des liens via text-fill */

/* ── Boutons ── */
.rv-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1.5px solid currentColor;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    transition: transform 0.25s var(--rv-ease), box-shadow 0.25s var(--rv-ease), background-color 0.2s;
}
.rv-btn .rv-ico { transition: transform 0.25s var(--rv-ease); }
.rv-btn:hover .rv-ico { transform: translateX(3px); }
.rv-btn--plein { background: var(--rv-teal); border-color: var(--rv-teal); color: var(--rv-vanille); }
.rv-btn--plein:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(23, 39, 19, 0.22); color: var(--rv-vanille); }
.rv-btn--trait { background: transparent; color: var(--rv-teal); }
.rv-btn--trait:hover { background: rgba(28, 61, 52, 0.06); color: var(--rv-teal); }
.rv-hero .rv-btn--plein, .rv-multiplex .rv-btn--plein, .rv-final .rv-btn--plein { background: var(--rv-vanille); border-color: var(--rv-vanille); color: var(--rv-nuit); }
.rv-hero .rv-btn--plein:hover, .rv-multiplex .rv-btn--plein:hover, .rv-final .rv-btn--plein:hover { color: var(--rv-nuit); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
.rv-hero .rv-btn--trait, .rv-final .rv-btn--trait { color: var(--rv-vanille); }
.rv-hero .rv-btn--trait:hover, .rv-final .rv-btn--trait:hover { background: rgba(242, 229, 210, 0.08); color: var(--rv-vanille); }
.rv button:focus-visible, .rv a:focus-visible, .rv summary:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* ══ Hero : titre court, la régie visible dès le premier écran ══ */
.rv-hero {
    position: relative;
    padding: clamp(28px, 3vw, 48px) 0 clamp(40px, 5vw, 72px);
    color: var(--rv-vanille);
    background:
        radial-gradient(ellipse 70% 55% at 78% -8%, rgba(242, 229, 210, 0.11), transparent 70%),
        radial-gradient(ellipse 50% 40% at 8% 0%, rgba(242, 229, 210, 0.05), transparent 70%),
        var(--rv-nuit);
}
/* Hero centré, la régie en grande fenêtre dessous qui déborde sur la section
   suivante (modèle Supercut / Overflow, Félix 18/10). */
.rv-hero { padding-bottom: 0; isolation: isolate; }
/* Photo du terrain en fond, voilée pour la lisibilité (contraste RGAA). */
.rv-hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.rv-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(28, 61, 52, 0.92) 0%, rgba(28, 61, 52, 0.82) 55%, rgba(28, 61, 52, 0.66) 100%);
}
.rv-hero .rv-h1 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); }
.rv-hero-grid { max-width: 1240px; display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 52px); }
.rv-hero-texte { max-width: 820px; text-align: center; }
.rv-hero-texte .rv-h1 { margin-bottom: 20px; }
.rv-hero-sub { margin: 0 auto 26px; max-width: 58ch; font-size: 1.1rem; color: var(--rv-clair-2); }
.rv-hero .rv-ctas { justify-content: center; }
.rv-supports { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 0.88rem; font-weight: 600; color: var(--rv-vanille); }
.rv-supports li { display: inline-flex; align-items: center; gap: 7px; }
.rv-supports .rv-ico { width: 1.05em; height: 1.05em; opacity: 0.8; }
.rv-supports em { font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--rv-clair-2); }
.rv-hero-visuel { position: relative; width: 100%; margin-bottom: -140px; }
.rv-hero + .rv-sec { padding-top: calc(140px + clamp(36px, 4vw, 56px)); }

/* Téléphone : la régie dans l'app It's Live, à cheval sur le bord droit, jamais sur l'habillage
   ni les commandes ; masqué quand la marge ne suffit pas. */
@media (max-width: 1559px) { .rv-app { display: none; } }
.rv-app {
    position: absolute; right: -150px; top: 200px; z-index: 2; width: 214px; padding: 8px;
    background: #0b0d0c; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); cursor: default; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.rv-app-ecran { display: flex; flex-direction: column; min-height: 420px; background: #141917; color: var(--rv-vanille); font-size: 0.6rem; font-weight: 700; line-height: 1.2; }
.rv-app-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 7px 8px; background: var(--rv-teal); font-size: 0.66rem; font-weight: 800; }
.rv-app-top b { padding: 1px 4px; border: 1px solid rgba(242, 229, 210, 0.45); font-size: 0.5rem; text-transform: uppercase; }
.rv-app.is-air .rv-app-top b { background: #C0392B; border-color: #C0392B; color: #fff; }
.rv-app-prog { position: relative; aspect-ratio: 16 / 9; margin: 4px; overflow: hidden; background: #777; outline: 2px solid #a8c9a8; }
.rv-app.is-air .rv-app-prog { outline-color: #C0392B; }
.rv-app-vide { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(242, 229, 210, 0.7); font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; }
.rv-app-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.rv-app.is-cam .rv-app-video { opacity: 1; }
.rv-app-bug { position: absolute; top: 5px; left: 5px; z-index: 1; padding: 2px 4px; background: #e0e0e0; color: #1a1a1a; font-size: 0.48rem; font-weight: 800; }
.rv-app-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 8px 6px; border-bottom: 1px solid rgba(242, 229, 210, 0.08); }
.rv-app-temps { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.rv-app-temps b { font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.rv-app-temps i { padding: 4px 6px; background: #1f3a30; font-style: normal; font-size: 0.52rem; }
.rv-app-rec { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; text-align: center; }
/* Bouton d'enregistrement : toujours rond (Félix, 18/10), seule exception à « pas d'arrondi ». */
.rv-app-rond { width: 34px; height: 34px; border-radius: 50%; background: #C0392B; box-shadow: 0 0 0 3px #141917, 0 0 0 5px rgba(192, 57, 43, 0.6); }
.rv-app.is-air .rv-app-rond { transform: scale(0.7); }
.rv-app-rec em { font-style: normal; font-size: 0.44rem; font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.rv-app-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 6px; flex: 1; }
.rv-app-cams > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 3px; border: 1px dashed rgba(242, 229, 210, 0.25); background: #1b211e; color: rgba(242, 229, 210, 0.6); font-size: 0.46rem; text-align: center; }
.rv-app-cams b { color: var(--rv-vanille); font-size: 0.56rem; }
.rv-app-cams .rv-ico { width: 14px; height: 14px; margin-bottom: 4px; }
.rv-app-plus { font-size: 1rem; line-height: 1; margin-bottom: 2px; }
.rv-app-onglets { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(242, 229, 210, 0.1); }
.rv-app-onglets i { padding: 8px 0 7px; font-style: normal; font-size: 0.46rem; text-align: center; color: rgba(242, 229, 210, 0.6); }
.rv-app-onglets i.is-on { background: #1f3a30; color: var(--rv-vanille); }
.rv-app-diff { padding: 7px; background: var(--rv-teal); color: var(--rv-vanille); text-align: center; text-transform: uppercase; font-size: 0.56rem; letter-spacing: 0.04em; }
.rv-app-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rv-app-acts i { padding: 6px 4px; background: var(--rv-teal); color: var(--rv-vanille); font-style: normal; text-align: center; }

/* Studio simulé : les zones du vrai (espace club > Régie), sa palette claire. */
.rv-studio {
    --st-bg: var(--rv-vanille);
    --st-panel: #EADBC4;
    --st-line: rgba(28, 61, 52, 0.15);
    color: var(--rv-teal);
    background: var(--st-bg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    font-size: 0.875rem;
    line-height: 1.35;
    scroll-margin-top: 90px;
}
.rv-st-top { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: var(--rv-teal); color: var(--rv-vanille); }
.rv-st-marque { padding: 4px 8px; background: var(--rv-vanille); color: var(--rv-teal); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.rv-st-match { display: flex; flex-direction: column; min-width: 0; }
.rv-st-match strong { font-size: 0.95rem; font-weight: 800; }
.rv-st-match small { font-size: 0.75rem; color: var(--rv-clair-2); }
.rv-st-etat { padding: 3px 8px; border: 1px solid rgba(242, 229, 210, 0.45); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.rv-studio.is-air .rv-st-etat { background: #C0392B; border-color: #C0392B; color: #fff; }

.rv-st-corps { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.rv-st-commandes { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.rv-st-diff, .rv-cam-btn, .rv-action, .rv-scene { font: inherit; cursor: pointer; }
.rv-st-diff {
    min-height: 42px; padding: 0 14px; border: 0; background: #C0392B; color: #fff;
    font-size: 0.78rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase;
}
.rv-st-diff[aria-pressed="true"] { background: var(--rv-teal); }
.rv-cam-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px;
    border: 1px solid var(--st-line); background: var(--st-panel); color: var(--rv-teal); font-size: 0.82rem; font-weight: 800;
}
.rv-cam-btn:hover { border-color: var(--rv-teal); }
.rv-cam-btn[aria-pressed="true"] { background: #C0392B; border-color: #C0392B; color: #fff; }
.rv-cam-btn:disabled { opacity: 0.6; cursor: progress; }
.rv-actions { display: flex; gap: 6px; margin-left: auto; }
.rv-action { min-height: 42px; padding: 0 12px; border: 0; background: var(--rv-teal); color: var(--rv-vanille); font-size: 0.85rem; font-weight: 800; }
.rv-action:hover { background: var(--rv-nuit); }
.rv-action small { font-size: 0.72rem; font-weight: 600; color: var(--rv-clair-2); font-variant-numeric: tabular-nums; }
.rv-scenes { display: flex; flex-wrap: wrap; gap: 4px; }
.rv-scene {
    min-height: 32px; padding: 0 10px; border: 1px solid var(--st-line); background: transparent;
    color: var(--rv-teal); font-size: 0.78rem; font-weight: 700;
}
.rv-scene:hover { border-color: var(--rv-teal); }
.rv-scene[aria-pressed="true"] { background: var(--rv-teal); border-color: var(--rv-teal); color: var(--rv-vanille); }
.rv-couleurs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rv-couleurs-t { margin-right: 4px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.rv-coul { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 6px; border: 1px solid var(--st-line); background: transparent; color: var(--rv-teal); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.rv-coul:hover { border-color: var(--rv-teal); }
.rv-coul[aria-pressed="true"] { border-color: var(--rv-teal); box-shadow: inset 0 0 0 1px var(--rv-teal); }
.rv-coul i { width: 18px; height: 18px; border: 1px solid rgba(0, 0, 0, 0.15); }
.rv-coul--its i { background: linear-gradient(135deg, #1c3d34 50%, #f2e5d2 50%); }
.rv-coul--noir i { background: linear-gradient(135deg, #111 50%, #fff 50%); }
.rv-coul--bleu i { background: linear-gradient(135deg, #1a3a8f 50%, #fff 50%); }
.rv-coul--bordeaux i { background: linear-gradient(135deg, #7a1f2b 50%, #f2e5d2 50%); }
.rv-cam-etat { margin: 0; font-size: 0.78rem; line-height: 1.4; color: var(--rv-encre-2); }
.rv-moniteur {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    container-type: inline-size;
    background: #0d160b;
    color: var(--rv-vanille);
    outline: 3px solid rgba(28, 61, 52, 0.25);
}
.rv-studio.is-air .rv-moniteur { outline-color: #C0392B; }
/* Programme sans caméra : écran « pas de signal », l'habillage reste dessus. */
.rv-fond {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8cqw;
    background: radial-gradient(ellipse at center, #d9d6cf 0%, #bfbbb2 80%);
    color: rgba(28, 61, 52, 0.55);
    transition: opacity 0.5s var(--rv-ease);
}
.rv-fond span { font-size: 1.9cqw; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.rv-fond small { font-size: 1.4cqw; font-weight: 600; }
.rv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--rv-ease); }
.rv-studio.is-cam .rv-video { opacity: 1; }
.rv-studio.is-cam .rv-fond { opacity: 0; }

/* Coloris de l'habillage : les quatre prêts de la régie (It's Rugby, Noir, Bleu, Bordeaux). */
.rv-studio { --hb-bg: var(--rv-teal); --hb-fg: var(--rv-vanille); }
.rv-studio[data-coul="noir"] { --hb-bg: #111111; --hb-fg: #ffffff; }
.rv-studio[data-coul="bleu"] { --hb-bg: #1a3a8f; --hb-fg: #ffffff; }
.rv-studio[data-coul="bordeaux"] { --hb-bg: #7a1f2b; --hb-fg: #f2e5d2; }
/* Sans caméra, « Pas de signal » ne se montre que sous la scène Match (pas sous les écrans pleins). */
.rv-studio:not([data-scene="match"]) .rv-fond > * { visibility: hidden; }
.rv-l { position: absolute; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--rv-ease), visibility 0s linear 0.3s; }
.rv-studio[data-scene="match"] .rv-l-bug,
.rv-studio[data-scene="match"] .rv-l-partlogo,
.rv-studio[data-scene="avant"] .rv-l-avant,
.rv-studio[data-scene="mitemps"] .rv-l-mitemps,
.rv-studio[data-scene="score"] .rv-l-score,
.rv-studio[data-scene="partenaires"] .rv-l-partenaires,
.rv-studio[data-scene="hdm"] .rv-l-hdm,
.rv-studio[data-scene="fin"] .rv-l-fin { opacity: 1; visibility: visible; transition-delay: 0s; }
@keyframes rv-pulse { 50% { opacity: 0.25; } }

/* Scène Match : petit score en haut à gauche, logo partenaire en haut à droite (comme la régie). */
.rv-l-bug { top: 3cqw; left: 3cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4cqw; }
.rv-bug-ligne { display: flex; align-items: stretch; height: 4.4cqw; font-size: 1.8cqw; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-bug-ligne > span { display: flex; align-items: center; padding: 0 1.1cqw; }
.rv-bug-eq { background: var(--hb-fg); color: var(--hb-bg); }
.rv-bug-pts { background: var(--hb-bg); color: var(--hb-fg); }
.rv-bug-chrono { background: var(--hb-bg); color: var(--hb-fg); }
.rv-bug-logo { margin-left: 0.5cqw; background: var(--hb-bg); color: var(--hb-fg); font-size: 0.9cqw; line-height: 1.1; text-align: center; max-width: 9cqw; }
.rv-l-partlogo { top: 3cqw; right: 3cqw; padding: 1.2cqw 1.8cqw; background: var(--hb-bg); color: var(--hb-fg); font-size: 1.6cqw; font-weight: 800; line-height: 1.1; text-align: center; }

/* Bandeau d'action : entre par la gauche */
.rv-l-tiers {
    left: 4cqw;
    bottom: 11cqw;
    display: flex;
    font-size: 2.3cqw;
    font-weight: 800;
    line-height: 1;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.55s var(--rv-ease), opacity 0.2s, visibility 0s linear 0.55s;
}
.rv-studio.is-tiers[data-scene="match"] .rv-l-tiers  { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transition-delay: 0s; }
.rv-tiers-action { padding: 1.1cqw 1.6cqw; background: var(--hb-fg); color: var(--hb-bg); text-transform: uppercase; letter-spacing: 0.08em; }
.rv-studio.is-jaune .rv-tiers-action { background: var(--rv-jaune); color: var(--rv-nuit); }
.rv-tiers-nom { padding: 1.1cqw 1.8cqw; background: var(--hb-bg); color: var(--hb-fg); }

/* Scènes plein cadre, dessinées comme dans la régie : cartouche titre, barre des équipes, partenaires. */
.rv-l-plein { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw; padding: 4cqw 5cqw; background: rgba(0, 0, 0, 0.28); text-align: center; }
.rv-sc-titre { padding: 1.2cqw 2.6cqw; background: var(--hb-bg); color: var(--hb-fg); font-size: 3.1cqw; font-weight: 900; line-height: 1; text-transform: uppercase; }
.rv-sc-compet { padding: 0.5cqw 1.6cqw; background: var(--hb-bg); color: var(--hb-fg); font-size: 1.5cqw; font-weight: 800; line-height: 1.2; }
.rv-l-bug .rv-sc-compet { font-size: 1.1cqw; padding: 0.3cqw 0.9cqw; }
.rv-sc-barre { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: stretch; width: 100%; height: 8.6cqw; }
.rv-sc-logo { display: grid; place-items: center; aspect-ratio: 1; background: var(--hb-bg); color: var(--hb-fg); font-size: 2.8cqw; font-weight: 900; }
.rv-sc-logo--ext { background: var(--hb-fg); color: var(--hb-bg); }
.rv-sc-nom { display: grid; place-items: center; background: var(--hb-fg); color: var(--hb-bg); font-size: 2.7cqw; font-weight: 800; }
.rv-sc-centre { display: flex; align-items: center; justify-content: center; gap: 1.2cqw; padding: 0 3cqw; background: var(--hb-bg); color: var(--hb-fg); font-size: 5.4cqw; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-sc-date { padding: 0.6cqw 1.6cqw; background: var(--hb-bg); color: var(--hb-fg); font-size: 1.7cqw; font-weight: 800; }
.rv-sc-hdm { padding: 1.4cqw 3cqw; background: var(--hb-fg); color: var(--hb-bg); font-size: 4cqw; font-weight: 900; line-height: 1; }
.rv-sc-tuiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2cqw; width: 100%; }
.rv-sc-tuiles span { display: grid; place-items: center; width: 17.5cqw; height: 9.6cqw; padding: 1cqw; background: var(--hb-fg); color: var(--hb-bg); font-size: 1.6cqw; font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.rv-sc-tuiles span.is-plein { background: var(--hb-bg); color: var(--hb-fg); }
.rv-l-score { justify-content: center; }
.rv-sc-chrono { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6cqw 0; background: rgba(255, 255, 255, 0.45); color: var(--hb-fg); font-size: 2.6cqw; font-weight: 900; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }

/* ══ Sections ══ */
.rv-sec { padding: clamp(68px, 9vw, 128px) 0; }
.rv-chaine, .rv-partenaires, .rv-etapes, .rv-faq { background: var(--rv-vanille); }
.rv-telec, .rv-youtube { background: var(--rv-sable); }
.rv-habillage { background: var(--rv-nuit); color: var(--rv-vanille); }
.rv-multiplex { background: var(--rv-teal); color: var(--rv-vanille); }
.rv-habillage .rv-p, .rv-multiplex .rv-p { color: var(--rv-clair-2); }

/* Chaîne de production : sources → régie → antenne */
.rv-flux { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.rv-col { position: relative; }
.rv-col-t { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--rv-teal); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }
.rv-col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(clamp(28px, 4vw, 56px) / -2 - 9px);
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--rv-teal);
    border-right: 2px solid var(--rv-teal);
    transform: rotate(45deg);
}
.rv-noeuds { margin: 0; padding: 0; list-style: none; }
.rv-noeud { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(28, 61, 52, 0.16); }
.rv-noeud .rv-ico { width: 28px; height: 28px; margin-top: 2px; }
.rv-noeud strong { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.rv-noeud span { display: block; font-size: 0.95rem; line-height: 1.5; color: var(--rv-encre-2); }
.rv-col--regie { display: flex; flex-direction: column; }
.rv-regie-coeur {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(26px, 3vw, 40px);
    background: var(--rv-teal);
    color: var(--rv-vanille);
    box-shadow: 0 24px 50px rgba(23, 39, 19, 0.25);
}
.rv-regie-coeur .rv-ico { width: 56px; height: 56px; }
.rv-regie-coeur strong { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
.rv-regie-coeur span { color: var(--rv-clair-2); line-height: 1.55; }
.rv-regie-coeur .rv-regie-sans { align-self: flex-start; margin-top: 6px; padding: 6px 12px; border: 1px solid rgba(242, 229, 210, 0.4); color: var(--rv-vanille); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }

/* Duos texte / visuel */
.rv-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.rv-duo--inverse > :first-child { order: 2; }

/* Habillage : pile de bandeaux en décalé */
.rv-conducteur { display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.rv-cd { display: inline-flex; align-self: flex-start; font-size: clamp(0.95rem, 3.2cqw, 1.3rem); font-weight: 800; line-height: 1; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.rv-cd:nth-child(2) { margin-left: 7%; }
.rv-cd:nth-child(3) { margin-left: 14%; }
.rv-cd:nth-child(4) { margin-left: 5%; }
.rv-cd:nth-child(5) { margin-left: 11%; }
.rv-cd b { padding: 14px 18px; background: var(--rv-vanille); color: var(--rv-teal); text-transform: uppercase; letter-spacing: 0.08em; }
.rv-cd em { padding: 14px 20px; font-style: normal; background: var(--rv-teal); color: var(--rv-vanille); }
.rv-cd--jaune b { background: var(--rv-jaune); color: var(--rv-nuit); }
.rv-cd--itw b { background: var(--rv-rouge); color: #fff; }

/* Partenaires : écran habillé */
.rv-ecran-part {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    container-type: inline-size;
    background:
        linear-gradient(180deg, rgba(13, 22, 11, 0) 40%, rgba(13, 22, 11, 0.5) 100%),
        repeating-linear-gradient(90deg, rgba(242, 229, 210, 0.045) 0 7%, transparent 7% 14%),
        linear-gradient(180deg, #2c5546 0%, var(--rv-teal) 100%);
    box-shadow: 0 30px 70px rgba(23, 39, 19, 0.3);
}
.rv-ep-logo { position: absolute; top: 4.5cqw; right: 4cqw; padding: 1.2cqw 1.8cqw; background: var(--rv-vanille); color: var(--rv-teal); font-size: 2.2cqw; font-weight: 900; letter-spacing: -0.01em; }
.rv-ep-ticker { position: absolute; left: 0; right: 0; bottom: 9cqw; padding: 1cqw 4cqw; background: var(--rv-nuit); color: var(--rv-vanille); font-size: 2cqw; font-weight: 700; white-space: nowrap; overflow: hidden; }
.rv-ep-bande { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(242, 229, 210, 0.95); }
.rv-ep-bande span { display: flex; align-items: center; justify-content: center; height: 9cqw; padding: 0 1cqw; border-left: 1px solid rgba(28, 61, 52, 0.15); color: var(--rv-teal); font-size: 1.8cqw; font-weight: 800; text-align: center; line-height: 1.1; }
.rv-ep-bande span:first-child { border-left: 0; }
.rv-liste { margin: 0 0 1.4em; padding: 0; list-style: none; }
.rv-liste li { padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(28, 61, 52, 0.16); position: relative; font-weight: 700; }
.rv-liste li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; background: var(--rv-teal); }

/* Télécommande : téléphone */
.rv-tel {
    justify-self: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(300px, 100%);
    padding: 26px 18px 22px;
    border: 10px solid var(--rv-nuit);
    background: var(--rv-vanille);
    box-shadow: 0 40px 80px rgba(23, 39, 19, 0.3);
}
.rv-tel-score { display: grid; grid-template-columns: 1fr 1fr; background: var(--rv-teal); color: var(--rv-vanille); font-weight: 800; font-variant-numeric: tabular-nums; }
.rv-tel-score > span { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; }
.rv-tel-score > span + span { border-left: 1px solid rgba(242, 229, 210, 0.2); }
.rv-tel-score b { font-size: 1.9rem; font-weight: 900; }
.rv-tel-chrono { font-size: 0.85rem; font-weight: 700; color: var(--rv-encre-2); text-align: center; }
.rv-tel-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rv-tel-grille span { padding: 12px 8px; background: #fff; border: 1px solid rgba(28, 61, 52, 0.18); font-size: 0.88rem; font-weight: 800; text-align: center; }
.rv-tel-comm { padding: 12px; border: 1.5px solid var(--rv-teal); font-size: 0.9rem; font-weight: 800; text-align: center; }

/* Multiplex */
.rv-mx { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-mx-tuile { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 16 / 10; padding: 16px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(242, 229, 210, 0.14); }
.rv-mx-tuile em { font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--rv-clair-2); }
.rv-mx-tuile b { font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 900; font-variant-numeric: tabular-nums; }
.rv-mx-tuile--vous { background: var(--rv-vanille); color: var(--rv-nuit); border-color: var(--rv-vanille); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); transform: scale(1.04); }
.rv-mx-tuile--vous em { display: inline-flex; align-items: center; gap: 8px; color: var(--rv-rouge); font-weight: 800; }
.rv-mx-tuile--vous em::before { content: ""; width: 8px; height: 8px; background: var(--rv-rouge); animation: rv-pulse 1.6s ease-in-out infinite; }
.rv-multiplex .rv-btn { margin-top: 8px; }

/* Étapes : la séquence compte, les numéros restent */
.rv-et { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.rv-et li { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 2px solid var(--rv-teal); }
.rv-et b { font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; line-height: 0.85; letter-spacing: -0.04em; }
.rv-et strong { display: block; font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; }
.rv-et span { color: var(--rv-encre-2); }

/* YouTube et vos données */
.rv-yt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin: 28px 0 0; }
.rv-yt-col { padding: clamp(22px, 3vw, 34px); background: #fff; border-top: 3px solid var(--rv-teal); }
.rv-yt-col--non { border-top-color: var(--rv-rouge); }
.rv-yt-col h3 { margin: 0 0 14px; font-size: 1.2rem; font-weight: 900; }
.rv-yt-col ul { margin: 0; padding: 0; list-style: none; }
.rv-yt-col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 9px 0; line-height: 1.45; }
.rv-yt-col .rv-ico { width: 20px; height: 20px; margin-top: 2px; }
.rv-yt-col--non .rv-ico { color: var(--rv-rouge); }
.rv-note { max-width: 80ch; margin: 26px 0 0; font-size: 0.95rem; color: var(--rv-encre-2); }
.rv-note a { color: var(--rv-teal); font-weight: 800; }
.rv-note a:hover { color: var(--rv-nuit); }

/* Questions */
.rv-faq-grille { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.rv-faq-grille .rv-tete { position: sticky; top: 110px; }
.rv-faq-liste { border-top: 1px solid rgba(28, 61, 52, 0.2); }
.rv-q { border-bottom: 1px solid rgba(28, 61, 52, 0.2); }
.rv-q summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-size: 1.1rem; font-weight: 800; cursor: pointer; list-style: none; }
.rv-q summary::-webkit-details-marker { display: none; }
.rv-q summary .rv-ico { transition: transform 0.3s var(--rv-ease); }
.rv-q[open] summary .rv-ico { transform: rotate(180deg); }
.rv-q p { margin: 0 0 22px; max-width: 64ch; color: var(--rv-encre-2); }

/* Appel final */
.rv-final { padding: clamp(80px, 10vw, 140px) 0; background: var(--rv-nuit); color: var(--rv-vanille); }
.rv-final-t { margin: 0 0 32px; max-width: 16ch; font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 900; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.rv-final-liens { display: flex; flex-wrap: wrap; gap: 24px; margin: 40px 0 0; font-size: 0.9rem; }
.rv-final-liens a { color: var(--rv-clair-2); font-weight: 700; }
.rv-final-liens a:hover { color: var(--rv-vanille); }

/* ══ Tablette ══ */
@media (max-width: 1180px) {
}
@media (max-width: 960px) {
    .rv-duo, .rv-faq-grille { grid-template-columns: 1fr; }
    .rv-duo--inverse > :first-child { order: 0; }
    .rv-flux { grid-template-columns: 1fr; gap: 44px; }
    .rv-col:not(:last-child)::after { top: auto; bottom: -32px; right: auto; left: 50%; transform: translateX(-50%) rotate(135deg); }
    .rv-et { grid-template-columns: 1fr; }
    .rv-faq-grille .rv-tete { position: static; }
}
/* ══ Mobile ══ */
@media (max-width: 640px) {
    .rv { font-size: 1rem; }
    .rv-hero { padding-top: 40px; }
    .rv-hero-sub { font-size: 1.05rem; }
    .rv-ctas .rv-btn { flex: 1 1 100%; justify-content: center; }
    .rv-hero-grid { padding: 0; }
    .rv-hero-texte { padding: 0 18px; }
    .rv-hero-visuel { margin-bottom: -60px; }
    .rv-hero + .rv-sec { padding-top: calc(60px + 32px); }
    .rv-supports { gap: 6px 18px; font-size: 0.84rem; }
    .rv-st-marque, .rv-st-match small { display: none; }
    .rv-st-top { flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px; }
    .rv-st-match strong, .rv-st-etat { white-space: nowrap; }
    .rv-st-corps { padding: 8px; gap: 8px; }
    .rv-st-diff { flex: 1; padding: 0 10px; }
    .rv-actions { flex: 1 1 100%; margin-left: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .rv-action { padding: 0 4px; font-size: 0.8rem; }
    .rv-action small { display: none; }
    .rv-scenes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .rv-couleurs-t { display: none; }
    .rv-scene { flex: none; }
    .rv-yt { grid-template-columns: 1fr; }
    .rv-mx { gap: 8px; }
    .rv-mx-tuile { padding: 12px; }
    .rv-cd:nth-child(n) { margin-left: 0; }
}

/* Mouvement réduit : le défilant s'arrête, les transitions deviennent instantanées. */
@media (prefers-reduced-motion: reduce) {
    .rv-mx-tuile--vous em::before { animation: none; }
    .rv-l, .rv-l-tiers, .rv-video, .rv-fond, .rv-btn, .rv-btn .rv-ico, .rv-q summary .rv-ico { transition: none; }
}

/* Le thème colore les liens de l'article avec plus de poids : on reprend la main. */
.rv a.rv-btn--plein, .rv a.rv-btn--plein:hover { color: var(--rv-vanille); }
.rv a.rv-btn--trait, .rv a.rv-btn--trait:hover { color: var(--rv-teal); }
.rv .rv-hero a.rv-btn--plein, .rv .rv-multiplex a.rv-btn--plein, .rv .rv-final a.rv-btn--plein,
.rv .rv-hero a.rv-btn--plein:hover, .rv .rv-multiplex a.rv-btn--plein:hover, .rv .rv-final a.rv-btn--plein:hover { color: var(--rv-nuit); }
.rv .rv-hero a.rv-btn--trait, .rv .rv-final a.rv-btn--trait,
.rv .rv-hero a.rv-btn--trait:hover, .rv .rv-final a.rv-btn--trait:hover { color: var(--rv-vanille); }
.rv .rv-note a { color: var(--rv-teal); }
.rv .rv-final-liens a { color: var(--rv-clair-2); }
/* La règle .its-v2 a[class]:not(…) du thème force color:inherit sur le lien :
   la couleur est portée par l'enfant, que cette règle n'atteint pas. */
.rv-btn-in { display: inline-flex; align-items: center; gap: 10px; color: var(--rv-vanille); }
.rv-btn--trait .rv-btn-in { color: var(--rv-teal); }
.rv-hero .rv-btn--plein .rv-btn-in, .rv-multiplex .rv-btn--plein .rv-btn-in, .rv-final .rv-btn--plein .rv-btn-in { color: var(--rv-nuit); }
.rv-hero .rv-btn--trait .rv-btn-in, .rv-final .rv-btn--trait .rv-btn-in { color: var(--rv-vanille); }

/* Retour de connexion YouTube depuis l'app (onglet intégré). */
.rv-retour { position: sticky; top: 0; z-index: 5; margin: 0; padding: 16px clamp(18px, 4vw, 48px); background: var(--rv-rouge); color: #fff; font-weight: 800; text-align: center; }
.rv-retour.is-ok { background: var(--rv-teal); color: var(--rv-vanille); }
.rv-retour[hidden] { display: none; }
