/* =====================================================================================================
   NuxCine - PAGE BRANDING (branding.html). Comportement : js/nuxcine-branding.js
   S'appuie sur le système de la page À propos (css/nuxcine-about.css : nx-section, nx-kicker, nx-btn…).
   Fichiers à télécharger : dossier brand/ (logos SVG + PNG, charte JSON, kit .zip).
   ===================================================================================================== */

/* ---------- Hero : logo qui flotte à droite ---------- */
.nxb-hero .nx-about__wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.nxb-hero__logo { position: relative; justify-self: end; width: min(100%, 420px); }
.nxb-hero__logo img { display: block; width: 100%; animation: nxb-float 6s ease-in-out infinite; }
.nxb-hero__logo::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -18%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.18), rgba(0,0,0,0)); animation: nxb-shadow 6s ease-in-out infinite; }
@keyframes nxb-float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes nxb-shadow { 50% { transform: scaleX(.86); opacity: .7; } }
.nxb-jump { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; position: relative; }
.nxb-jump a { color: #0a0a0a; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid rgba(0,0,0,.25); padding-bottom: 3px; transition: border-color .3s ease; }
.nxb-jump a:hover { border-color: #0a0a0a; }

/* ---------- Logo : choix de la version ---------- */
.nxb-switch { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: stretch; }
.nxb-stage { position: relative; display: grid; place-items: center; min-height: 420px; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid #ececec; transition: background-color .6s cubic-bezier(.65,0,.35,1), border-color .6s ease; }
.nxb-stage[data-bg="dark"] { background: #090a0e; border-color: #090a0e; }
.nxb-stage[data-bg="yellow"] { background: #ffb906; border-color: #ffb906; }
.nxb-stage img { position: absolute; width: min(56%, 420px); opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .5s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.nxb-stage img.is-active { opacity: 1; transform: none; }
.nxb-stage__label { position: absolute; left: 22px; bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a8a8a; }
.nxb-stage[data-bg="dark"] .nxb-stage__label { color: rgba(255,255,255,.5); }
.nxb-stage[data-bg="yellow"] .nxb-stage__label { color: rgba(0,0,0,.55); }
.nxb-panel { display: flex; flex-direction: column; gap: 14px; }
.nxb-tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 1px solid #e3e3e3; border-radius: 16px; background: #fff; color: #0a0a0a; text-align: left; cursor: pointer; font: inherit; transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.nxb-tab:hover { transform: translateX(4px); }
.nxb-tab.is-active { border-color: #0a0a0a; box-shadow: 0 18px 36px -24px rgba(0,0,0,.5); }
.nxb-tab__dot { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d8d8d8; }
.nxb-tab strong { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.nxb-tab small { display: block; margin-top: 2px; color: #777; font-size: 13px; }
.nxb-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.nxb-dl .nx-btn { padding: 13px 22px; font-size: 13px; }

/* ---------- Règles ---------- */
.nxb-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.nxb-rule { border-radius: 18px; background: #141414; border: 1px solid #242424; padding: 30px; }
.nxb-rule h3 { font-size: 24px; color: #fff; margin: 0 0 10px; }
.nxb-rule p { color: rgba(255,255,255,.62); font-size: 15.5px; }
.nxb-space { position: relative; display: grid; place-items: center; height: 220px; margin-top: 22px; border-radius: 12px; background: #0a0a0a; }
.nxb-space__box { position: relative; padding: 34px; border: 1px dashed rgba(255,185,6,.7); }
.nxb-space__box img { display: block; width: 150px; }
.nxb-space__box span { position: absolute; color: #ffb906; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.nxb-space__box span:nth-child(2) { top: 8px; left: 50%; transform: translateX(-50%); }
.nxb-space__box span:nth-child(3) { left: 8px; top: 50%; transform: translateY(-50%); }
.nxb-sizes { display: flex; align-items: flex-end; gap: 34px; height: 220px; margin-top: 22px; padding: 26px; border-radius: 12px; background: #0a0a0a; }
.nxb-sizes figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nxb-donts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.nxb-dont { margin: 0; }
.nxb-dont__box { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #0a0a0a; border: 1px solid #262626; }
.nxb-dont__box img { width: 58%; }
.nxb-dont__box::after { content: "\2715"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e5484d; color: #fff; font-size: 13px; font-weight: 700; }
.nxb-dont--ok .nxb-dont__box::after { content: "\2713"; background: #2fb67c; }
.nxb-dont figcaption { margin-top: 10px; color: rgba(255,255,255,.7); font-size: 14px; }
.nxb-x-stretch img { transform: scaleX(1.45) scaleY(.8); }
.nxb-x-color img { filter: hue-rotate(160deg) saturate(1.6); }
.nxb-x-effect img { filter: drop-shadow(6px 6px 0 #e5484d) drop-shadow(0 0 18px #ffb906); }
.nxb-x-busy { background: repeating-linear-gradient(45deg, #ffb906 0 14px, #e88427 14px 28px, #d34d51 28px 42px) !important; }

/* ---------- Couleurs ---------- */
.nxb-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nxb-color { border-radius: 18px; overflow: hidden; border: 1px solid #ececec; background: #fff; transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease; }
.nxb-color:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(0,0,0,.45); }
.nxb-color__chip { display: flex; align-items: flex-end; height: 190px; padding: 18px; font-family: Anton, sans-serif; font-size: 26px; text-transform: uppercase; }
.nxb-color__body { padding: 18px 18px 20px; }
.nxb-color__body h3 { font-size: 22px; margin: 0; }
.nxb-color__body p { margin-top: 6px; color: #666; font-size: 14px; line-height: 1.5; }
.nxb-codes { display: grid; gap: 6px; margin-top: 14px; }
.nxb-copy { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 12px; border: 1px solid #e6e6e6; border-radius: 10px; background: #fafafa; color: #0a0a0a; font: 600 13px/1.2 "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: border-color .25s ease, background-color .25s ease; }
.nxb-copy span:first-child { color: #8a8a8a; font-weight: 700; letter-spacing: .1em; font-size: 11px; }
.nxb-copy:hover { border-color: #0a0a0a; background: #fff; }
.nxb-copy.is-copied { border-color: #2fb67c; background: #effaf5; }
.nxb-ratio { display: flex; height: 64px; margin-top: 34px; border-radius: 14px; overflow: hidden; border: 1px solid #e3e3e3; }
.nxb-ratio div { display: flex; align-items: center; padding: 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transform-origin: left; }
.nx-js .nxb-ratio div { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.65,0,.35,1); }
.nx-js .nxb-ratio.nx-in div { transform: none; }
.nx-js .nxb-ratio.nx-in div:nth-child(2) { transition-delay: .15s; }
.nx-js .nxb-ratio.nx-in div:nth-child(3) { transition-delay: .3s; }

/* ---------- Typographie ---------- */
.nxb-fonts { display: grid; gap: 22px; }
.nxb-font { display: grid; grid-template-columns: .9fr 1.4fr; gap: 36px; align-items: center; border-radius: 18px; background: #141414; border: 1px solid #242424; padding: 34px; }
.nxb-font__aa { font-size: clamp(90px, 13vw, 170px); line-height: .9; color: #ffb906; }
.nxb-font h3 { font-size: 30px; color: #fff; margin: 0; }
.nxb-font__role { margin-top: 8px; color: #ffb906; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nxb-font__glyphs { margin-top: 18px; color: rgba(255,255,255,.75); font-size: 22px; line-height: 1.5; word-break: break-word; }
.nxb-font a { display: inline-block; margin-top: 16px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid #ffb906; text-decoration: none; }

/* ---------- Écrire NuxCine ---------- */
.nxb-names { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nxb-name { border-radius: 14px; padding: 22px; border: 1px solid #ececec; background: #fff; }
.nxb-name strong { display: block; font-size: 26px; font-weight: 800; }
.nxb-name span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nxb-name.is-ok { border-color: #2fb67c; } .nxb-name.is-ok span { color: #1f8f5f; }
.nxb-name.is-ko strong { color: #9a9a9a; text-decoration: line-through; text-decoration-color: #e5484d; } .nxb-name.is-ko span { color: #c33a3f; }
.nxb-credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.nxb-credits .nxb-copy { padding: 16px 18px; font-size: 15px; }

/* Le site met tout en majuscules : ici, les exemples doivent garder leur casse exacte. */
.nxb-font__aa, .nxb-font__glyphs, .nxb-font h3, .nxb-name strong, .nxb-copy span:last-child, .nxb-color__chip, .nxb-toast { text-transform: none; }
.nxb-toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; padding: 12px 22px; border-radius: 999px; background: #0a0a0a; color: #fff; font: 600 14px "Plus Jakarta Sans", sans-serif; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s ease, transform .4s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.nxb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.nxb-toast::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #ffb906; vertical-align: 1px; }

@media (max-width: 991px) {
  .nxb-colors { grid-template-columns: repeat(2, 1fr); }
  .nxb-donts, .nxb-names { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nxb-hero .nx-about__wrap, .nxb-switch, .nxb-rules, .nxb-font { grid-template-columns: 1fr; }
  .nxb-hero__logo { justify-self: start; width: 220px; }
  .nxb-stage { min-height: 300px; }
  .nxb-credits { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nxb-colors, .nxb-donts, .nxb-names { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nxb-hero__logo img, .nxb-hero__logo::after { animation: none; }
}
