/* Polaris ST — composants illustrés. Écrit pour le téléphone d'abord ; les écrans larges sont des ajouts (min-width). */

/* Rien ne doit élargir la page sur téléphone : les cartes inclinées du carrousel et les rangées à faire glisser
   sont rognées ici, et les colonnes de grille ont le droit de rétrécir sous la largeur de leur contenu. */
main { overflow-x: clip; }
.article > *, .split > *, .duo > *, .hero-in > *, .grid > * { min-width: 0; }

/* ── Carrousel de l'accueil ── */
.deck-wrap { position: relative; width: min(520px, 100%); margin-inline: auto; }
.deck-wrap .ring { position: absolute; left: 50%; top: 44%; translate: -50% -50%; width: 104%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line-hi); animation: spin 80s linear infinite; pointer-events: none; }
.deck-wrap .ring.r2 { width: 84%; border: 1px solid rgb(53 224 255 / .3); border-left-color: transparent; border-right-color: transparent; animation: spin 18s linear infinite reverse; }
.deck { position: relative; aspect-ratio: 1 / 1.04; perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.deck:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; border-radius: 22px; }
.slide { position: absolute; inset: 0; margin: auto; width: 66%; height: 88%; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-hi); background: #0A1224; cursor: pointer;
  transform: translateX(calc(var(--o, 0) * 50%)) scale(calc(1 - var(--a, 0) * .17)) rotateY(calc(var(--o, 0) * -22deg));
  opacity: calc(1 - var(--a, 0) * .2); filter: brightness(calc(1 - var(--a, 0) * .42));
  transition: transform .75s var(--ease), opacity .5s, filter .5s, box-shadow .5s; box-shadow: 0 28px 60px -24px rgb(0 0 0 / .75); }
.slide.on { box-shadow: 0 30px 70px -22px rgb(69 103 175 / .9), 0 0 0 1px rgb(53 224 255 / .35); }
.slide.far { opacity: 0; pointer-events: none; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s linear; }
.slide.on img { transform: scale(1.09); }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 9 20 / .05) 30%, rgb(5 9 20 / .94)); }
.slide-info { position: absolute; inset: auto 0 0 0; padding: 20px; display: grid; gap: 6px; justify-items: start; }
.slide-info strong { font: 700 clamp(22px, 5.5vw, 28px)/1.1 var(--display); color: #fff; letter-spacing: -.02em; }
.slide-info small { font-size: 14px; line-height: 1.4; color: #C9D5EE; }
.slide .tag { color: #35E0FF; border-color: rgb(53 224 255 / .45); background: rgb(5 9 20 / .55); }
.slide .link { color: #35E0FF; margin-top: 6px; opacity: 0; transform: translateY(8px); transition: opacity .4s .15s, transform .4s .15s; }
.slide.on .link { opacity: 1; transform: none; }
.float { position: absolute; z-index: 20; padding: 10px 14px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line-hi); backdrop-filter: blur(14px); box-shadow: 0 14px 34px -14px rgb(0 0 0 / .6); display: grid; pointer-events: none; animation: float 6s ease-in-out infinite; }
.float strong { font: 700 15px var(--display); color: var(--ice); }
.float span { font: 10.5px var(--mono); color: var(--mute); }
.float.fa { left: 0; top: 4%; }
.float.fb { right: 0; top: 30%; animation-delay: -3s; }
.float.fb strong { font-size: 24px; color: var(--cyan); }
.deck-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.deck-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--tint-rgb) / .08); border: 1px solid var(--line); color: var(--ice); padding: 0; transition: background .2s, border-color .2s, transform .2s; }
.deck-btn:hover { background: var(--blue); border-color: var(--blue-hi); color: #fff; transform: scale(1.06); }
.deck-btn svg { width: 16px; height: 16px; }
#deckPrev svg { transform: rotate(180deg); }
.deck-count { font-size: 11.5px; color: var(--mute); }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgb(var(--tint-rgb) / .3); transition: width .35s var(--ease), background .35s; }
.dots button.on { width: 26px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ── Cartes avec image ── */
.card.pic { padding: 0 0 22px; }
.card.pic > :not(.pic-img) { margin-inline: 22px; }
.pic-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 18px; background: var(--deep); }
.pic-img.wide { aspect-ratio: 21 / 9; }
.pic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pic-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(69 103 175 / .18), transparent 45%, rgb(var(--panel-rgb) / .9)); pointer-events: none; }
.card.pic:hover .pic-img img { transform: scale(1.07); }
.svc.pic { min-height: 0; }
.svc.pic .num { right: 14px; top: 10px; z-index: 2; font-size: 44px; -webkit-text-stroke: 1px rgb(255 255 255 / .75); }
.svc.pic .ico { position: absolute; left: 20px; bottom: 12px; z-index: 2; margin: 0; background: var(--blue); color: #fff; border-color: rgb(255 255 255 / .3); box-shadow: 0 10px 24px -8px rgb(69 103 175 / .9); }
.course.pic .top { margin-top: 0; }

/* ── Veille : articles illustrés ── */
.news-grid { display: grid; gap: 12px; }
.news { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); backdrop-filter: blur(10px); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.news:hover { border-color: var(--line-hi); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgb(69 103 175 / .8); }
.thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--deep); align-self: start; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news:hover .thumb img { transform: scale(1.06); }
.ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 8px; text-align: center; color: #EAF1FF;
  background: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 100% 14px, linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 14px 100%, linear-gradient(140deg, #2B4484, #0A1224 75%); }
.ph-avis { background: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 100% 14px, linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 14px 100%, linear-gradient(140deg, #8A5A0A, #0A1224 75%); }
.ph-alerte { background: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 100% 14px, linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 14px 100%, linear-gradient(140deg, #A31F3B, #0A1224 75%); }
.ph svg { width: 26px; height: 26px; opacity: .9; }
.ph b { font: 500 10px/1.3 var(--mono); letter-spacing: .04em; overflow-wrap: anywhere; }
.news-b { display: grid; gap: 7px; align-content: start; min-width: 0; }
.news .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.news .src, .news time { font: 11px var(--mono); color: var(--mute); }
.news time::before { content: '· '; }
.news strong { font: 600 15.5px/1.35 var(--display); color: var(--ice); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news .sum { display: none; font-size: 14px; line-height: 1.55; color: var(--mute); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news .tag { font-size: 10.5px; padding: 3px 8px; }

/* ── Galerie de l'équipe ── */
.mosaic { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.mosaic::-webkit-scrollbar { display: none; }
.mosaic figure { flex: 0 0 80%; height: 230px; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); scroll-snap-align: center; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: saturate(.9); }
.mosaic figure:hover img { transform: scale(1.06); filter: none; }
.mosaic figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgb(69 103 175 / .22), transparent 55%); pointer-events: none; }

/* ── Mur de références : toujours sur fond clair, les logos étant dessinés pour le blanc ── */
.wall { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-hi); background: #fff; box-shadow: 0 30px 70px -40px rgb(69 103 175 / .8); }
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; }
.wcell { aspect-ratio: 2 / 1.15; display: grid; place-items: center; padding: 9% 11%; background: #fff; box-shadow: 0 0 0 .5px #DCE4F3; transition: background .25s; }
.wcell:hover { background: #F4F7FD; }
.wcell img { width: 100%; height: 100%; object-fit: contain; transition: opacity .36s, transform .36s var(--ease); }
.wcell:hover img { transform: scale(1.07); }
.wcell.swap img { opacity: 0; transform: scale(.86); }
.wall-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; background: #F4F7FD; border-top: 1px solid #DCE4F3; color: #33415F; font-size: 14px; }
.wall-foot b { color: #0A1224; font: 700 17px var(--display); }
.wall-foot .link { color: #0879A1; }

/* ── Appel final et en-têtes illustrés ── */
[data-theme] .cta.has-img { background: linear-gradient(110deg, rgb(5 9 20 / .94) 25%, rgb(10 18 36 / .62)), var(--img) center / cover; border-color: var(--line-hi); }
.cta.has-img h2 { color: #fff; } .cta.has-img p { color: #C9D5EE; } .cta.has-img .kicker { color: #35E0FF; } .cta.has-img .kicker::before { background: #35E0FF; }
.page-head { position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 1; }
.head-img { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .2; filter: saturate(.8); -webkit-mask: linear-gradient(180deg, #000, transparent); mask: linear-gradient(180deg, #000, transparent); }

/* ── Catégories de formation ── */
.cat { position: relative; text-align: left; min-height: 170px; padding: 18px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-hi); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px;
  background: linear-gradient(180deg, rgb(5 9 20 / .2), rgb(5 9 20 / .92)), var(--img) center / cover, #0A1224; transition: transform .3s var(--ease), box-shadow .3s; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgb(69 103 175 / .9); }
.cat strong { font: 700 21px var(--display); color: #fff; } .cat small { font-size: 13.5px; color: #C9D5EE; line-height: 1.4; }
.cat .tag { color: #35E0FF; border-color: rgb(53 224 255 / .45); background: rgb(5 9 20 / .55); }

/* ── Barre d'onglets (téléphone) ── */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgb(var(--bg-rgb) / .9); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 12px; font: 500 10.5px var(--display); color: var(--mute); }
.tabbar svg { width: 21px; height: 21px; }
.tabbar a.on { color: var(--cyan); background: rgb(var(--tint-rgb) / .1); }
body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
.preview-bar { bottom: calc(74px + env(safe-area-inset-bottom)); }

/* ── Rangées à faire glisser (téléphone) ── */
@media (max-width: 699px) {
  .snap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .snap::-webkit-scrollbar { display: none; }
  .snap > * { flex: 0 0 84%; scroll-snap-align: center; }
  .snap > .rv { opacity: 1; transform: none; }
  section { padding: 52px 0; }
  .hero-in { gap: 34px; }
  .hero .lede { margin: 18px 0 24px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .statusbar { margin-top: 28px; }
  .split { gap: 16px; }
  .kev ul { max-height: 340px; }
  .head { margin-bottom: 26px; } .head p { font-size: 16px; }
  .row .link { margin-bottom: 22px !important; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; } .filters .search { flex: 0 0 240px; }
}

/* ── À partir de la tablette ── */
@media (min-width: 700px) {
  .tabbar { display: none; } body { padding-bottom: 0; } .preview-bar { bottom: 14px; }
  .float.fa { left: -5%; top: 7%; } .float.fb { right: -7%; top: 30%; bottom: auto; }
  .float { padding: 12px 16px; } .float strong { font-size: 16px; } .float.fb strong { font-size: 28px; }
  .slide-info { padding: 24px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news { grid-template-columns: 1fr; padding: 0; overflow: hidden; gap: 0; align-content: start; }
  .thumb { aspect-ratio: 16 / 9; border-radius: 0; }
  .news-b { padding: 16px 18px 18px; gap: 9px; }
  .news .sum { display: -webkit-box; }
  .ph svg { width: 40px; height: 40px; } .ph b { font-size: 13px; }
  .mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .mosaic figure { height: auto; }
  .mosaic .m0 { grid-column: span 2; grid-row: span 2; }
  .mosaic .m5 { display: none; }
  .wall-grid { grid-template-columns: repeat(4, 1fr); }
  .wall-foot { flex-direction: row; justify-content: space-between; align-items: center; padding: 18px 26px; }
  .head-img { inset: 0 0 0 42%; opacity: .5; -webkit-mask: linear-gradient(90deg, transparent, #000 70%); mask: linear-gradient(90deg, transparent, #000 70%); }
  [data-theme=light] .head-img { opacity: .75; }
  .cat { min-height: 210px; padding: 22px; }
}
@media (min-width: 1000px) {
  .wall-grid { grid-template-columns: repeat(6, 1fr); }
  .deck-wrap { width: min(540px, 100%); }
}
@media (prefers-reduced-motion: reduce) { .slide img, .slide.on img { transform: none; } }

/* ══ Sobriété ══ Une seule intention par écran : moins de filets, de lueurs et de capitales techniques,
   plus de blanc. Ces règles viennent en dernier et allègent les styles de base. */
.veil { background: radial-gradient(120% 80% at 50% 110%, rgb(69 103 175 / .12), transparent 60%); }
[data-theme=light] .veil { background: radial-gradient(120% 80% at 50% 110%, rgb(69 103 175 / .08), transparent 60%); }
.hud::after, .gauge::after, .deck-wrap .ring.r2, .svc.pic .num, .boot-log:empty { display: none; }
.deck-wrap .ring { opacity: .45; animation: none; }
.card { border-radius: 16px; backdrop-filter: blur(6px); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
a.card:hover, .card.lift:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgb(69 103 175 / .9); }
.kicker { font-size: 11.5px; letter-spacing: .14em; margin-bottom: 14px; }
.kicker::before { width: 20px; opacity: .7; }
.head h2 { font-size: clamp(26px, 3.3vw, 40px); letter-spacing: -.025em; }
.head p { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 640px; }
.head.center p { margin-inline: auto; }
.hero h1 { font-size: clamp(34px, 4.5vw, 60px); line-height: 1.06; }
.hero .lede { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; max-width: 540px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); }
.page-head .lede { font-size: clamp(16.500px, 1.4vw, 19px); line-height: 1.6; }
.btn { box-shadow: 0 6px 18px -10px rgb(69 103 175 / .9); border-radius: 10px; }
.btn:hover { box-shadow: 0 10px 24px -12px rgb(69 103 175 / .9); }
.btn::before { display: none; }
.links a.on::after, .ticks li::before, .dots button.on, .prose li::before, .step::before { box-shadow: none; }
.links .live { animation: none; box-shadow: none; width: 6px; height: 6px; }
.prose h2::before, .prose h3::before { content: none; }
.prose h2, .prose h3 { font-size: 22px; }
.slide.on { box-shadow: 0 30px 60px -28px rgb(0 0 0 / .8), 0 0 0 1px var(--line-hi); }
.scan { display: none; }
.boot-shield { filter: none; margin-bottom: 22px; }
.statusbar { background: transparent; backdrop-filter: none; }
.statusbar .cell { padding-block: 13px; }
.tag { font-size: 11.500px; border-color: var(--line); }
.ico { width: 46px; height: 46px; border-radius: 11px; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; }
.stats { background: none; }
.gauge { width: 148px; }
.gauge span { font-size: 34px; }
.cta h2 { font-size: clamp(26px, 3.4vw, 40px); }
.quote blockquote::before { font-size: 44px; margin-bottom: 8px; opacity: .8; }
.no-anim .rv { opacity: 1; transform: none; transition: none; }
button.skip { border: 0; cursor: pointer; font: inherit; }
footer { padding-top: 56px; }
@media (min-width: 1000px) { section { padding: 104px 0; } .hero { padding-bottom: 0; } }

/* ── Logo Polaris ST sur les photos d'illustration : posé par le site, donc entier quel que soit le cadrage ── */
.slide::after, .pic-img::before, .mosaic figure::before, .cat::before {
  content: ''; position: absolute; top: 10px; right: 10px; z-index: 3; width: 96px; height: 28px; border-radius: 8px; pointer-events: none;
  background: rgb(8 14 30 / .68) url(../assets/logo/logo-nuit.png) center / 76px auto no-repeat; backdrop-filter: blur(4px);
}
.mosaic .m0::before, .slide::after { width: 116px; height: 34px; background-size: 92px auto; top: 14px; right: 14px; }
