/* =====================================================================
   RIO – design v2 : accueil dynamique, bandeaux photo
   (chargé après rio.css)
   ===================================================================== */
.site-header { background: linear-gradient(rgba(5,12,24,.55), transparent); }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--amber), #ffcf6b); transform-origin: 0 50%; transform: scaleX(0); }
.btn-lg { padding: 1.05em 1.7em; font-size: 1.02rem; }
.btn-glass { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn .ic { transition: transform .25s; }
.btn:hover .ic:last-child { transform: translateX(3px); }
.chip-glass { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 22px; }

/* ------------------------------------------------ Bannière diaporama */
.hero2 { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero2-slides, .hero2-slide { position: absolute; inset: 0; margin: 0; }
.hero2-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero2-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero2-slide.is-active { opacity: 1; }
.hero2-slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero2-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,12,24,.88) 0%, rgba(5,12,24,.55) 45%, rgba(5,12,24,.1) 100%), linear-gradient(0deg, rgba(5,12,24,.9) 0%, transparent 45%); }
.hero2-inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 40px; }
.hero2-title { font-size: clamp(2.8rem, 8.2vw, 7.4rem); line-height: .9; font-weight: 900; color: #fff; margin: 0 0 24px; }
.hero2-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero2-title .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero2-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero2-title .line:nth-child(3) > span { animation-delay: .24s; }
.hero2-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--amber); }
@keyframes rise { to { transform: none; } }
.hero2-date { display: inline-flex; align-items: center; gap: 10px; font: 800 clamp(1.3rem, 2.4vw, 1.9rem)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin: 0 0 26px; opacity: 0; animation: fadein .8s .5s forwards; }
@keyframes fadein { to { opacity: 1; } }
.countdown { display: flex; gap: 12px; margin-bottom: 32px; opacity: 0; animation: fadein .8s .7s forwards; }
.countdown div { min-width: 84px; padding: 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px); text-align: center; }
.countdown strong { display: block; font: 900 2.4rem/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.hero2-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadein .8s .85s forwards; }
.hero2-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding-bottom: 34px; }
.hero2-caption { margin: 0; font-size: .85rem; opacity: .75; min-width: 0; flex: 1; }
.hero2-dots { display: flex; gap: 8px; }
.hero2-dots button { width: 46px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hero2-dots span { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero2-dots span::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; }
.hero2-dots .is-active span::after { animation: progress 7s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.scroll-cue { width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; position: relative; flex: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s infinite; }
@keyframes cue { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ------------------------------------------------ Bandeau défilant */
.ticker { background: var(--amber); color: var(--navy); overflow: hidden; transform: rotate(-1.2deg); margin: -22px -10px 0; position: relative; z-index: 3; box-shadow: 0 16px 40px -20px rgba(0,0,0,.5); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 0; animation: marquee 40s linear infinite; }
.ticker span { font: 900 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ticker i { font-style: normal; opacity: .6; }

/* ------------------------------------------------ Annonce + chiffres */
.announce { padding-top: clamp(80px, 10vw, 130px); }
.announce-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.announce-side { position: sticky; top: 110px; }
.announce-big { font: 900 clamp(2.6rem, 5.6vw, 4.6rem)/.92 var(--display); text-transform: uppercase; color: var(--navy); margin: 0 0 14px; }
.announce-place { font-size: 1.15rem; color: var(--muted); }
.announce-body { font-size: 1.08rem; }
.announce-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: clamp(56px, 8vw, 96px); background: var(--navy); border-radius: 24px; overflow: hidden; }
.stat-item { padding: 34px 28px; color: #c9d4e6; border-right: 1px solid rgba(255,255,255,.08); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; font: 900 clamp(2.6rem, 5vw, 3.8rem)/1 var(--display); color: #fff; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stat-item:nth-child(odd) strong { color: var(--amber); }

/* En-tête de section avec lien à droite */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-head-row h2 { margin-bottom: .2em; max-width: 760px; }
.section-head-row p { margin: 0; }

/* ------------------------------------------------ Grille bento */
.bento-section { background: var(--paper); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 240px); gap: 16px; }
.bento-item { position: relative; overflow: hidden; border-radius: 22px; color: #fff; text-decoration: none; background: var(--navy); }
.bento-item.b0 { grid-column: span 2; grid-row: span 2; }
.bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.bento-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,12,24,.92) 0%, rgba(5,12,24,.15) 60%); transition: background .4s; }
.bento-item:hover img { transform: scale(1.08); }
.bento-item:hover::after { background: linear-gradient(0deg, rgba(31,79,224,.9) 0%, rgba(5,12,24,.2) 70%); }
.bento-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.bento-body strong { font: 800 1.5rem/1.05 var(--display); text-transform: uppercase; padding-right: 44px; }
.b0 .bento-body strong { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.bento-body small { opacity: .85; max-width: 460px; }
.bento-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); margin-bottom: 4px; }
.bento-go { position: absolute; right: 20px; bottom: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--navy); transform: rotate(-45deg); transition: transform .3s; }
.bento-item:hover .bento-go { transform: none; }
.bento-item:hover { color: #fff; }

/* ------------------------------------------------ Vidéo cinéma */
.cinema { background: radial-gradient(900px 500px at 85% 20%, #1c3c78 0%, transparent 60%), var(--navy); color: #c9d4e6; }
.cinema .prose .big, .cinema .prose strong { color: #fff; }
.cinema-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cinema-frame { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.cinema-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------ Bande photos */
.strip-section { padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.strip { overflow: hidden; margin-bottom: 14px; }
.strip-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.strip-reverse .strip-track { animation-direction: reverse; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip a { flex: none; width: 300px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; display: block; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; filter: saturate(.9); }
.strip a:hover img { transform: scale(1.08); filter: saturate(1.1); }

/* ------------------------------------------------ Présentation */
.about2 { background: var(--paper); }
.about2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about2-photos { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.about2-photo { border-radius: 20px; overflow: hidden; display: block; box-shadow: var(--shadow); }
.about2-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.about2-photo:hover img { transform: scale(1.06); }
.about2-photo.p0 { grid-row: span 2; }
.about2-badge { position: absolute; left: -18px; bottom: 28px; background: var(--amber); color: var(--navy); padding: 16px 20px; border-radius: 18px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow); line-height: 1.2; }
.about2-badge strong { display: block; font: 900 2.2rem/1 var(--display); }

/* ------------------------------------------------ Carrousel des galeries */
.galleries2 { overflow: hidden; }
.carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(16px, calc((100vw - var(--wrap)) / 2)); padding: 4px max(16px, calc((100vw - var(--wrap)) / 2)) 20px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.year-card2 { position: relative; flex: none; width: clamp(260px, 30vw, 380px); aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; background: var(--navy); }
.year-card2 img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.year-card2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,12,24,.95), rgba(5,12,24,0) 55%); }
.year-card2:hover img { transform: scale(1.07); }
.year-card2-year { position: absolute; top: 14px; left: 18px; z-index: 2; font: 900 clamp(3rem, 6vw, 4.6rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); }
.year-card2-body { position: absolute; inset: auto 0 0; z-index: 2; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.year-card2-body strong { font: 800 1.6rem var(--display); text-transform: uppercase; }
.year-card2-body small { opacity: .8; }
.year-card2:hover { color: #fff; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy); }
.carousel-nav button:hover { background: var(--navy); color: #fff; }

/* ------------------------------------------------ Bandeau des pages intérieures */
.page-hero2 { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.page-hero2-bg { position: absolute; inset: 0; }
.page-hero2-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-out forwards; }
.page-hero2-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,12,24,.92) 0%, rgba(5,12,24,.45) 55%, rgba(5,12,24,.6) 100%); }
.page-hero2-inner { position: relative; z-index: 2; padding-top: 150px; padding-bottom: clamp(48px, 7vw, 80px); }
.page-hero2-title { color: #fff; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .95; margin: 0 0 18px; max-width: 1000px; overflow: hidden; padding-bottom: .04em; }
.page-hero2-title span { display: inline-block; transform: translateY(105%); animation: rise .9s .1s cubic-bezier(.2,.8,.2,1) forwards; }
.page-hero2 .lead { font-size: 1.2rem; max-width: 720px; opacity: .9; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; opacity: .75; margin-bottom: 18px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

/* Cartes et panneaux : relief au survol */
.capsule, .access-card, .machine, .member, .press-item, .info-card, .member-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.capsule:hover, .access-card:hover, .member:hover, .info-card:hover, .member-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,22,40,.55); }

@media (max-width: 1080px) {
    .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 220px; }
    .bento-item.b0 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 860px) {
    .announce-grid, .cinema-grid, .about2-grid { grid-template-columns: 1fr; }
    .announce-side { position: static; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .about2-badge { left: 10px; }
    .stat-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 600px) {
    .hero2-inner { padding-top: 110px; }
    .countdown { gap: 8px; }
    .countdown div { min-width: 0; flex: 1; padding: 10px 4px 8px; }
    .countdown strong { font-size: 1.8rem; }
    .hero2-caption { display: none; }
    .bento { grid-template-columns: 1fr; }
    .bento-item.b0 { grid-column: auto; }
    .strip a { width: 220px; }
    .about2-photos { grid-template-rows: 160px 160px; }
    .page-hero2 { min-height: 52vh; }
    .ticker span { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero2-title .line > span, .page-hero2-title span { transform: none; }
    .hero2-date, .countdown, .hero2-actions { opacity: 1; }
}

.member-hero.page-hero2 { min-height: 44vh; }
@media (max-width: 600px) { .scroll-cue { display: none; } .hero2-dots { flex: 1; } .hero2-dots button { flex: 1; width: auto; } }
