/* ============================================================
   CRISALIDA — finition « cinéma »
   Couche chargée après base.css, pages.css et app.css : elle ne change ni la palette, ni les polices, ni la mise en
   page. Elle ajoute les fonds vidéo des bandeaux (partials/media.html, static/js/media.js), le grain et les filets
   des sections sombres, le verre dépoli, des ombres plus profondes et les finitions des boutons et des cartes.
   La retirer de base.html rend le site à son apparence précédente.
   ============================================================ */

:root {
  /* Anthracite du thème (voiles posés sur les vidéos) */
  --cine-shade: 29, 31, 38;
  /* Filet lumineux au bas des bandeaux sombres */
  --cine-hair: linear-gradient(90deg, transparent 4%, rgba(232, 83, 106, .5) 30%, rgba(255, 143, 162, .8) 50%, rgba(232, 83, 106, .5) 70%, transparent 96%);
  /* Grain de pellicule : bruit fractal blanc à faible opacité, tuile de 240 px */
  --cine-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 -.03'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Ombres en plusieurs couches, la dernière teintée du cramoisi de la marque */
  --sh-lift: 0 1px 2px rgba(28, 31, 38, .05), 0 10px 24px rgba(28, 31, 38, .09), 0 30px 60px -22px rgba(192, 32, 58, .26);
  --sh-float: 0 2px 6px rgba(13, 14, 18, .18), 0 18px 44px rgba(13, 14, 18, .32), 0 44px 90px -30px rgba(192, 32, 58, .5);
  --glass-line: rgba(255, 255, 255, .14);
}
@media screen {
  :root[data-theme="dark"] {
    --cine-shade: 16, 17, 22;
    --sh-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .45), 0 30px 60px -22px rgba(236, 77, 104, .28);
  }
}

/* Coupures de ligne équilibrées : plus de mot seul en fin de titre */
h1, h2, h3 { text-wrap: balance; }
.section-head p, .lead, .hero-sub, .spot-copy > p, .cta-copy > p { text-wrap: pretty; }
.section-head h2, .spot-copy h2, .cta h2, .heritage h2 { letter-spacing: -.022em; }

/* ============================================================ FONDS VIDÉO */
.vbg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--charcoal); }
.vbg-img, .vbg-vid { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.vbg-vid { opacity: 0; transition: opacity 1.4s ease; }
.vbg.is-on .vbg-vid { opacity: 1; }
/* Voile : garantit le contraste du texte quelle que soit l'image */
.vbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--cine-shade), .78) 0%, rgba(var(--cine-shade), .66) 40%, rgba(var(--cine-shade), .86) 100%); }

/* Derrière le contenu du bandeau, sous ses lueurs */
.page-hero, .stats, .spotlight, .centres, .cta, .cine-band { isolation: isolate; }
.page-hero::before, .stats::before, .spotlight::before, .cta::before { z-index: -1; }
.hero > .vbg, .page-hero > .vbg, .c-hero > .vbg, .el-hero > .vbg, .ec-hero > .vbg, .dash-hero > .vbg, .auth-aside > .vbg,
.stats > .vbg, .spotlight > .vbg, .centres > .vbg, .cta > .vbg, .cine-band > .vbg { z-index: -2; }

/* Bandeaux au texte calé à gauche : la vidéo respire à droite */
.page-hero > .vbg::after, .el-hero > .vbg::after, .ec-hero > .vbg::after, .dash-hero > .vbg::after, .auth-aside > .vbg::after {
  background:
    linear-gradient(90deg, rgba(var(--cine-shade), .96) 0%, rgba(var(--cine-shade), .9) 34%, rgba(var(--cine-shade), .58) 70%, rgba(var(--cine-shade), .5) 100%),
    linear-gradient(180deg, rgba(var(--cine-shade), .3) 0%, transparent 34%, rgba(var(--cine-shade), .55) 100%);
}
.auth-aside > .vbg::after { background: linear-gradient(160deg, rgba(var(--cine-shade), .88) 0%, rgba(var(--cine-shade), .68) 55%, rgba(var(--cine-shade), .86) 100%); }
/* Sections sombres de l'accueil : texte sur toute la largeur, voile uniforme */
.cta > .vbg::after, .cine-band > .vbg::after {
  background: linear-gradient(180deg, rgba(var(--cine-shade), .9) 0%, rgba(var(--cine-shade), .74) 45%, rgba(var(--cine-shade), .92) 100%);
}
/* Bande des chiffres : l'horizon reste visible, les chiffres sont portés par leur pavé de verre */
.stats > .vbg::after { background: linear-gradient(180deg, rgba(var(--cine-shade), .62) 0%, rgba(var(--cine-shade), .34) 42%, rgba(var(--cine-shade), .82) 100%); }

/* Fiche formation : la vidéo occupe la droite du bandeau et se fond dans l'anthracite, comme l'image qu'elle remplace */
.c-hero > .vbg { left: auto; width: 60%; background: none; opacity: .62;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%); mask-image: linear-gradient(90deg, transparent, #000 48%); }
.c-hero > .vbg::after { background: linear-gradient(180deg, rgba(var(--cine-shade), .2), rgba(var(--cine-shade), .55)); }

/* Bandeau d'appel à l'action : la vidéo sous la lueur du bandeau */
.cta-band { isolation: isolate; }
.cta-band > .vbg { z-index: -2; border-radius: inherit; }
.cta-band::before { z-index: -1; }
.cta-band > .vbg::after { background: linear-gradient(90deg, rgba(var(--cine-shade), .94) 0%, rgba(var(--cine-shade), .82) 45%, rgba(var(--cine-shade), .6) 100%); }

/* Bouton pause / lecture des vidéos de fond (posé par media.js dans le bandeau du haut de page) */
.vbg-toggle { position: absolute; z-index: 3; top: 16px; right: max(var(--gut), env(safe-area-inset-right)); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: .55; transition: opacity .25s ease, background .25s ease, transform .2s ease; }
.vbg-toggle svg { width: 16px; height: 16px; }
.vbg-toggle:hover, .vbg-toggle:focus-visible { opacity: 1; background: rgba(255, 255, 255, .16); color: #fff; }
.vbg-toggle:active { transform: scale(.94); }
.auth-aside > .vbg-toggle { right: 16px; }

/* Vidéo dans un cadre : pas de voile, coins hérités du cadre (bloc illustré, couverture d'un article) */
.vbg-frame { border-radius: inherit; background: #24262d; }
.vbg-frame::after { background: linear-gradient(180deg, transparent 55%, rgba(13, 14, 18, .38) 100%); }

/* Aperçu vidéo d'une carte, au survol */
.vhover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; pointer-events: none;
  transition: opacity .45s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.is-previewing .vhover { opacity: 1; }
/* La vignette est la première image de la vidéo : même zoom au survol, le passage de l'une à l'autre ne se voit pas */
.dom-card:hover .vhover { transform: scale(1.07); }
.news-card:hover .vhover { transform: scale(1.06); }

/* ============================================================ GRAIN, FILETS ET HALO DES SECTIONS SOMBRES */
.hero::after, .page-hero::after, .c-hero::after, .el-hero::after, .ec-hero::after, .dash-hero::after,
.stats::after, .spotlight::after, .centres::after, .cta::after, .cine-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--cine-hair) left bottom / 100% 1px no-repeat, var(--cine-grain);
}
.footer { position: relative; isolation: isolate; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--cine-hair) left top / 100% 1px no-repeat, radial-gradient(620px 300px at 12% 0%, rgba(192, 32, 58, .2), transparent 62%), var(--cine-grain); }

/* Halo qui suit la souris (static/js/media.js) : un disque déplacé par transformation, rien n'est repeint */
.cine-glow { position: absolute; left: 0; top: 0; z-index: -1; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(243, 105, 126, .17) 0%, rgba(192, 32, 58, .08) 38%, transparent 68%);
  opacity: 0; transition: opacity .6s ease, transform .35s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.cine-glow.is-on { opacity: 1; }

/* ============================================================ EN-TÊTE : VERRE DÉPOLI */
.header { background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--cine-hair); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.header.scrolled { border-bottom-color: transparent; box-shadow: 0 10px 34px rgba(28, 31, 38, .09); }
.header.scrolled::after { opacity: .9; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .header { background: var(--surface); } }
.mega, .drop { box-shadow: 0 30px 70px rgba(28, 31, 38, .18); }
.nav-new { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crimson) 22%, transparent); }

/* Barres collantes des pages (onglets de la fiche, mois du calendrier) : même verre que l'en-tête */
.c-tabs { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px); }
.cal-month-head { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px); }
.so-backdrop { -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.so-panel, .drawer-panel { box-shadow: var(--sh-float); }

/* ============================================================ BOUTONS */
.btn-primary, .search-go { box-shadow: var(--sh-crimson), inset 0 1px 0 rgba(255, 255, 255, .24); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(192, 32, 58, .4), inset 0 1px 0 rgba(255, 255, 255, .3); }
.search-go { position: relative; overflow: hidden; isolation: isolate; }
/* Reflet qui traverse le bouton au survol */
.btn-primary::before, .search-go::before, .btn-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .3) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.btn-primary:hover::before, .search-go:hover::before, .btn-dark:hover::before { transform: translateX(130%); }
.btn-dark::before { background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .14) 50%, transparent 68%); }
.btn-outline-w { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { box-shadow: 0 6px 18px rgba(192, 32, 58, .12); }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ============================================================ ACCUEIL — HERO */
.hero { min-height: min(760px, calc(var(--screen-h) - var(--header-h) - var(--utility-h))); }
.hero > .vbg::after { display: none; }  /* le voile du héros reste .hero-overlay */
.hero-overlay {
  background:
    radial-gradient(1100px 480px at 50% 112%, rgba(192, 32, 58, .42), transparent 70%),
    radial-gradient(130% 95% at 50% 38%, transparent 34%, rgba(13, 14, 18, .5) 100%),
    linear-gradient(180deg, rgba(20, 22, 27, .8) 0%, rgba(20, 22, 27, .66) 42%, rgba(20, 22, 27, .86) 100%);
}
.hero h1 { letter-spacing: -.028em; text-shadow: 0 2px 30px rgba(13, 14, 18, .45); }
.hero-sub { text-shadow: 0 1px 18px rgba(13, 14, 18, .5); }
.hero-kicker { -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); background: rgba(255, 255, 255, .07); border-color: var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 24px rgba(13, 14, 18, .25); }
.hero-search { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), var(--sh-float); }
.hero-search::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(243, 105, 126, .55), transparent 38%, transparent 62%, rgba(192, 32, 58, .5)); filter: blur(14px); opacity: .55; }
.hero-chip { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); }
.hero-assurances span { padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-assurances { gap: 10px 12px; }
.adv-cta-hero { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Bande des référentiels : losanges entre les noms, bords fondus plus larges */
.trust { border-top-color: rgba(255, 255, 255, .08); background: linear-gradient(180deg, var(--charcoal-2), color-mix(in srgb, var(--charcoal-2) 92%, #000)); }
.trust-logos { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.trust-track { gap: 0; }
.trust-logos .tlogo { display: inline-flex; align-items: center; transition: color .2s, opacity .2s; }
.trust-logos .tlogo::after { content: ""; width: 5px; height: 5px; margin: 0 26px; border-radius: 1px; transform: rotate(45deg); background: var(--coral); opacity: .55; }
.trust-logos .tlogo:hover { color: #fff; opacity: 1; }
.trust-lbl { color: #9aa0ac; }

/* ============================================================ BANDEAUX DE PAGE */
.page-hero-inner { padding-bottom: 60px; }
.page-hero h1, .c-hero h1, .el-hero h1, .ec-hero h1 { text-shadow: 0 2px 26px rgba(13, 14, 18, .4); }
.page-hero .lead { color: #d3d6de; }
/* Chiffres clés du bandeau : pavés de verre. L'interligne de la grille dessine les filets : ils restent justes
   quand les pavés passent sur deux rangées. */
.page-hero-stats, .el-stats { display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 1px; width: fit-content; max-width: 100%;
  border: 1px solid var(--glass-line); border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); box-shadow: 0 18px 44px rgba(13, 14, 18, .28); }
.page-hero-stats { margin-top: 30px; }
.ph-stat, .el-stats div { padding: 14px 24px; background: rgba(var(--cine-shade), .78); }
.ph-stat span, .el-stats span { color: #b6bbc7; }
.el-stats { grid-auto-columns: minmax(0, 1fr); width: 100%; max-width: 560px; }
.el-stats div { padding: 14px 16px; }
.el-stats b { font-size: 26px; }
.el-stats span { font-size: 12.5px; line-height: 1.35; }
.c-facts, .cert-index a, .ec-facts span, .badge-on-dark { -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
.dom-hero-ic { position: relative; box-shadow: var(--sh-crimson), inset 0 1px 0 rgba(255, 255, 255, .28); }
.dom-hero-ic::after { content: ""; position: absolute; inset: -7px; border-radius: 21px; border: 1px solid rgba(243, 105, 126, .45); animation: cine-ring 3.2s ease-out infinite; }
@keyframes cine-ring { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.28); opacity: 0; } }
.cat-search .search-field, .help-search { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 18px 44px rgba(13, 14, 18, .35); }
.el-demo { background: rgba(255, 255, 255, .06); border-color: var(--glass-line); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--sh-float); }
.auth-points li { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(255, 255, 255, .06); border-color: var(--glass-line); }
.stepper li.is-current .n { box-shadow: 0 0 0 4px rgba(232, 83, 106, .22); }
/* Fil d'Ariane de la fiche e-learning : il gardait les couleurs sombres des pages claires sur son bandeau anthracite */
.ec-hero .crumbs { color: rgba(255, 255, 255, .55); }
.ec-hero .crumbs a { color: rgba(255, 255, 255, .75); }
.ec-hero .crumbs a:hover, .ec-hero .crumbs [aria-current] { color: #fff; }
.form-card, .summary { box-shadow: var(--sh-lift); }

/* ============================================================ CARTES */
.ccard, .dom-card, .offer-card, .news-card, .ecard, .od-card, .feature, .step, .fb-item, .info-card, .teacher, .contact-tile {
  /* opacity : les cartes marquées .reveal gardent leur apparition en fondu */
  transition: opacity .6s ease, transform .35s var(--ease), box-shadow .35s ease, border-color .3s ease;
}
.ccard:hover, .dom-card:hover, .offer-card:hover, .news-card:hover, .ecard:hover, .od-card:hover { box-shadow: var(--sh-lift); }
.feature:hover, .step:hover, .fb-item:hover, .info-card:hover, .contact-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: color-mix(in srgb, var(--crimson) 30%, var(--line)); }
.sess-card:hover, .crow:hover, .cal-row:hover { box-shadow: var(--sh-lift); border-color: color-mix(in srgb, var(--crimson) 26%, var(--line)); }
.feature .f-ic, .fb-item .f-ic, .info-card .ic-head span, .contact-tile .ct-ic, .hl .hl-ic { transition: background .3s ease, color .3s ease, transform .35s var(--ease); }
.feature:hover .f-ic, .fb-item:hover .f-ic, .info-card:hover .ic-head span, .contact-tile:hover .ct-ic { background: var(--grad-solid); color: #fff; transform: scale(1.06) rotate(-4deg); }
.step { overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-solid); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.step:hover::after { transform: scaleX(1); }

/* Domaines : image qui zoome lentement, aperçu vidéo au survol, filet de couleur du domaine */
/* Photos réelles : pleine luminosité (l'aperçu vidéo qui les relaie au survol n'est pas assombri non plus) */
.dom-thumb img, .news-thumb img { filter: none; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.dom-thumb::after { z-index: 2; }
.dom-card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: linear-gradient(90deg, var(--d, var(--crimson)), transparent 85%); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.dom-card:hover::before { transform: scaleX(1); }
.dom-ic { transition: background .3s ease, color .3s ease, transform .4s var(--ease); }
.dom-card:hover .dom-ic { transform: translateY(-3px) scale(1.05); }

/* Offres : numéro en grand, filet qui se trace */
.offer-card { position: relative; overflow: hidden; }
.offer-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-solid); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.offer-card:hover::before { transform: scaleX(1); }
.offer-num { font-size: 13px; letter-spacing: .14em; }
.offer-num::after { background: linear-gradient(90deg, var(--line), transparent); }
.offer-card:hover { transform: translateY(-5px); }

/* Formations à la une */
.ccard::before { transition: left .35s var(--ease), right .35s var(--ease), opacity .3s; }
.ccard:hover::before { left: 0; right: 0; opacity: 1; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.carousel-nav button { transition: all .2s ease; box-shadow: var(--sh-sm); }
.carousel-nav button:hover:not([disabled]) { background: var(--crimson); border-color: var(--crimson); color: #fff; box-shadow: var(--sh-crimson); transform: translateY(-1px); }

/* Sessions */
.sess-date { background: linear-gradient(160deg, var(--mist), var(--mist-2)); box-shadow: inset 0 0 0 1px var(--line-soft); transition: background .3s ease; }
.sess-card:hover .sess-date { background: var(--grad-solid); box-shadow: var(--sh-crimson); }
.sess-card:hover .sess-date .d, .sess-card:hover .sess-date .m { color: #fff; }
.sess-date .d, .sess-date .m { transition: color .3s ease; }

/* Actualités */
.news-thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(13, 14, 18, .45) 100%); pointer-events: none; }
.news-cat { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(255, 255, 255, .9); }

/* ============================================================ ACCUEIL — SECTIONS SOMBRES */
/* Chiffres : bande vidéo, pavés de verre */
.stats.cine-band { padding: 72px 0; }
.stats.cine-band .stats-grid { gap: 0; border: 1px solid var(--glass-line); border-radius: var(--r-xl); background: rgba(var(--cine-shade), .52); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px rgba(13, 14, 18, .35); }
.stats.cine-band .stat { padding: 34px 18px 30px; }
.stat .lbl { text-wrap: balance; }
.stat .num { background: linear-gradient(180deg, #fff 35%, #ffc2cb 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats.cine-band .stats-divider { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .16) 30%, rgba(255, 255, 255, .16) 70%, transparent); }

/* Projecteur IA : filet lumineux qui tourne lentement autour de la vidéo. Un grand dégradé conique pivote derrière
   la carte (transformation seule, rien n'est repeint) ; un fond posé à 1 px du bord n'en laisse voir que le filet. */
.spot-card { position: relative; overflow: hidden; isolation: isolate; border-color: transparent; background: none; box-shadow: var(--sh-float); }
.spot-card::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -2; width: 150%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: conic-gradient(rgba(255, 255, 255, .12), rgba(243, 105, 126, .95) 10%, rgba(255, 255, 255, .12) 24%, rgba(255, 255, 255, .12) 52%, rgba(192, 32, 58, .9) 64%, rgba(255, 255, 255, .12) 78%);
  animation: cine-spin 10s linear infinite; }
.spot-card::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: calc(var(--r-xl) - 1px); background: #3b3e46; background: color-mix(in srgb, var(--charcoal) 92%, #fff); pointer-events: none; }
@keyframes cine-spin { to { rotate: 360deg; } }
.spot-feat .sf-ic { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s ease, color .3s ease, transform .35s var(--ease); }
.spot-feat:hover .sf-ic { background: var(--grad-solid); color: #fff; border-color: transparent; transform: translateY(-2px); }
.spot-float { box-shadow: var(--sh-float); border: 1px solid var(--line-soft); }
.why-visual .media-ph { box-shadow: var(--sh-lift); }
.why-badge { box-shadow: var(--sh-lift); border: 1px solid var(--line-soft); }
.why-item .wi-ic { box-shadow: var(--sh-crimson), inset 0 1px 0 rgba(255, 255, 255, .26); transition: transform .4s var(--ease); }
.why-item:hover .wi-ic { transform: scale(1.06) rotate(-4deg); }

/* Carte des lieux : quadrillage discret, cadre de verre */
.map-wrap { background:
    radial-gradient(420px 320px at 72% 82%, rgba(192, 32, 58, .3), transparent 65%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 42px 100%,
    rgba(255, 255, 255, .03);
  border-color: var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px rgba(13, 14, 18, .35); }
.map-canvas svg { filter: drop-shadow(0 0 14px rgba(243, 105, 126, .22)); }
.map-pin { box-shadow: 0 0 0 4px rgba(232, 83, 106, .18), 0 0 18px rgba(232, 83, 106, .7); }
.centre-item { transition: background .25s ease, border-color .25s ease, transform .3s var(--ease); }
.centre-item:hover { background: rgba(255, 255, 255, .09); border-color: rgba(243, 105, 126, .4); transform: translateY(-2px); }

/* Contact : carte de verre sur la vidéo */
.cta-card { background: rgba(255, 255, 255, .07); border-color: var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--sh-float); }
.cta-band { box-shadow: var(--sh-lift); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: var(--cine-hair) left bottom / 100% 1px no-repeat, var(--cine-grain); }

/* Année de création : léger reflet qui passe */
.big-year { background: linear-gradient(110deg, #d2304b 0%, #a8182f 40%, #f3697e 50%, #a8182f 60%, #d2304b 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; animation: cine-sheen 7s ease-in-out 3; }
@keyframes cine-sheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ============================================================ PIED DE PAGE */
.footer-soc a, .news-form .input { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.footer-col a { position: relative; width: fit-content; }
.footer-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--coral-light); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.footer-col a:hover::after { transform: scaleX(1); }
.to-top { box-shadow: var(--sh-lift); }

/* ============================================================ MODE SOMBRE */
@media screen {
  [data-theme="dark"] .header { background: rgba(24, 26, 33, .82); }
  [data-theme="dark"] .hero-search { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), var(--sh-float); }
  [data-theme="dark"] .news-cat { background: rgba(24, 26, 33, .82); color: #ff9aac; }
  [data-theme="dark"] .spot-float, [data-theme="dark"] .why-badge { border-color: var(--line); }
}

/* ============================================================ ÉCRANS ÉTROITS */
@media (max-width: 960px) {
  .stats.cine-band .stats-grid { gap: 0; }
  .stats.cine-band .stat { padding: 26px 12px 22px; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .page-hero-stats, .el-stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; max-width: none; }
  .ph-stat, .el-stats div { padding: 12px 16px; }
  .ph-stat:last-child:nth-child(odd), .el-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ph-stat b { font-size: 22px; }
  .c-hero > .vbg { width: 100%; opacity: .34; -webkit-mask-image: none; mask-image: none; }
  .hero-assurances span { padding: 5px 10px; }
  /* Le fil d'Ariane laisse la place du bouton pause, en haut à droite du bandeau */
  .page-hero .crumbs, .c-hero .crumbs, .el-hero .crumbs, .ec-hero .crumbs { padding-right: 46px; }
  .trust-logos .tlogo::after { margin: 0 18px; }
}

/* ============================================================ ANIMATIONS RÉDUITES, IMPRESSION */
@media (prefers-reduced-motion: reduce) {
  .spot-card::before, .big-year, .dom-hero-ic::after { animation: none; }
  .vbg-vid { transition: none; }
  .cine-glow { display: none; }
}
@media print {
  .vbg, .cine-glow, .vhover, .vbg-toggle { display: none !important; }
  .hero::after, .page-hero::after, .c-hero::after, .el-hero::after, .ec-hero::after, .dash-hero::after, .stats::after, .spotlight::after, .centres::after,
  .cta::after, .cine-band::after, .cta-band::after, .footer::before { display: none; }
}
