/* =========================================================
   FITGPT — styles (repris du design Figma « FitnessBravo »)
   Base de mesure : écran mobile 375 px.
   ========================================================= */

/* ---------- Polices (hébergées localement, licences OFL) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Zalando Sans"; font-weight: 900; font-display: swap; src: url("../fonts/zalando-sans-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Mrs Sheppards"; font-weight: 400; font-display: swap; src: url("../fonts/mrs-sheppards-latin-400-normal.woff2") format("woff2"); }
/* Remplaçants libres des polices commerciales du design */
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2"); }        /* ≈ Akira Expanded */
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }                 /* ≈ Futura Medium */
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); } /* ≈ Futura Condensed ExtraBold */
/* Akira Expanded (police commerciale du design) : utilisée si elle est installée sur l'appareil.
   Si tu as la licence web, dépose akira-expanded.woff2 dans assets/fonts/ et ajoute
   , url("../fonts/akira-expanded.woff2") format("woff2") à la ligne ci-dessous. */
@font-face { font-family: "Akira Expanded"; font-weight: 800; font-display: swap; src: local("Akira Expanded Super Bold"), local("AkiraExpanded-SuperBold"), local("Akira Expanded"); }

:root {
  --bg: #000;
  --yellow: #e0fe10;
  --white: #fff;
  --card: #313131;
  --btn-dark: #2d2c32;
  --red: #f64f52;
  --gold: #cda41f;
  --line: #686868;
  --menu-hover: #d5d7ca;
  --muted: #9b9b9b;
  --panel: #141416;

  --f-main: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-cond: "Futura-CondensedExtraBold", "Futura Condensed ExtraBold", "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-futura: "Futura-Medium", "Futura", "Jost", sans-serif;
  --f-wide: "Akira Expanded", "Unbounded", sans-serif;
  --f-script: "Mrs Sheppards", cursive;
  --f-recipe: "Zalando Sans", "Montserrat", sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-main);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.dot { color: var(--yellow); }
.dot-yellow { color: var(--yellow); }
.hl { color: var(--yellow); }
.white { color: var(--white); }

/* ---------- Conteneur appli (colonne mobile centrée sur grand écran) ---------- */
.app {
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 16px calc(var(--safe-bottom) + 40px);
  position: relative;
}
.layout-bare .app { padding: 0; }

/* ---------- Barre du haut ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: calc(var(--safe-top) + 28px);
  min-height: 40px;
}
.back { display: inline-flex; align-items: center; gap: 16px; min-width: 0; }
.back-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--btn-dark);
  border-radius: 8px;
  transition: transform .15s ease;
}
.back:active .back-btn { transform: scale(.94); }
.back-label {
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-right {
  margin-left: auto;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Titres ---------- */
.page-title {
  margin: 36px 0 22px;
  text-align: center;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  color: var(--yellow);
}
.page-title .dot { color: var(--white); }
.section-label {
  font-weight: 900;
  font-size: 13px;
  line-height: 16px;
  text-transform: uppercase;
}
.section-label .count { color: var(--muted); font-weight: 600; margin-left: 4px; }

/* ---------- Accueil ---------- */
.home { padding-top: 20px; }
.home-block + .home-block { margin-top: 20px; }
.home-block .section-label { margin-bottom: 10px; }

.hero-card {
  position: relative;
  display: block;
  aspect-ratio: 343 / 188;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  transform: translateZ(0);
  transition: transform .2s ease;
}
.hero-card:active { transform: scale(.985); }
.hero-card > img, .video-card > .video-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.64) 79%);
  pointer-events: none;
}
.hero-text {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-title { font-weight: 800; font-size: 16px; line-height: 1.2; text-transform: uppercase; }
.hero-sub { font-weight: 400; font-size: 13px; line-height: 16px; max-width: 254px; }

/* ---------- Grilles de catégories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 12px;
  max-width: 282px;
  margin: 0 auto;
}
.cat-card, .recipe-card {
  position: relative;
  display: block;
  aspect-ratio: 135 / 179;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  transition: transform .2s ease;
}
.cat-card:active, .recipe-card:active { transform: scale(.97); }
.cat-card > img, .recipe-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-tall { grid-row: span 2; aspect-ratio: auto; }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.74) 75%);
  pointer-events: none;
}
.cat-title {
  position: absolute; left: 4px; right: 4px; top: 57%; height: 43%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--f-cond);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.cat-tall .cat-title { top: 0; height: 100%; }

/* ---------- Filtres (All / Favoris / Profils / Ajouter) ---------- */
.filters {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 34px 0 19px;
  padding-left: 3px;
  position: relative;
  z-index: 5;
}
.filter {
  font-weight: 900;
  font-size: 13px;
  line-height: 16px;
  color: var(--white);
  display: inline-flex; align-items: center; gap: 2px;
  cursor: pointer;
}
.filter.is-active, .dropdown.is-active > summary, .dropdown[open] > summary { color: var(--yellow); }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown .chev { transition: transform .15s ease; }
.dropdown[open] .chev { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 3px); left: 1px;
  min-width: 71px;
  background: var(--yellow);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.dropdown-menu a, .dropdown-empty {
  display: block;
  padding: 6px 10px 6px 5px;
  font-weight: 900;
  font-size: 10px;
  line-height: 13px;
  color: #000;
  white-space: nowrap;
}
.dropdown-menu a:hover, .dropdown-menu a:focus-visible, .dropdown-menu a.is-current { background: var(--menu-hover); outline: none; }
.add-link {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8px; line-height: 10px;
}
.add-circle {
  width: 24px; height: 24px;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--yellow);
  font-size: 13px; line-height: 1;
}

/* ---------- Cartes vidéo ---------- */
.video-list { display: flex; flex-direction: column; gap: 22px; }
.video-card {
  position: relative;
  aspect-ratio: 343 / 188;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card) linear-gradient(180deg, #c4c4c4, #6b6b6b);
}
.video-hit { position: absolute; inset: 0; width: 100%; }
.video-text {
  position: absolute; left: 24px; right: 112px; bottom: 24px;
  pointer-events: none;
}
.video-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-duration { margin-top: 6px; font-size: 13px; line-height: 16px; }
.fav-btn {
  position: absolute; right: 64px; bottom: 30px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
}
.fav-btn .heart { width: 25px; height: 25px; grid-area: 1 / 1; transition: transform .2s ease, opacity .2s ease; }
.fav-btn .heart-on { opacity: 0; transform: scale(.6); }
.fav-btn.is-fav .heart-on { opacity: 1; transform: scale(1); }
.fav-btn.is-fav .heart-off { opacity: 0; }
.fav-btn.pop .heart-on { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }
.play-btn {
  position: absolute; right: 18px; bottom: 24px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 34, 34, .5);
  display: grid; place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.play-btn svg { margin-left: 2px; }
.play-btn:active { transform: scale(.92); background: rgba(255, 34, 34, .7); }

/* ---------- Formulaires ---------- */
.form { width: 100%; max-width: 269px; margin: 0 auto; display: flex; flex-direction: column; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > span:first-child {
  font-weight: 600;
  font-size: 11px;
  line-height: 13px;
  color: var(--yellow);
}
.field input, .inline-form input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: #000;
  padding: 0 12px;
  font-family: var(--f-main);
  font-size: 16px; /* évite le zoom auto sur iPhone */
  outline: none;
}
.field input:focus, .inline-form input:focus { box-shadow: 0 0 0 2px var(--yellow); }
.field input::placeholder { color: #9a9a9a; font-size: 13px; }
.btn {
  display: flex; align-items: center; justify-content: center;
  height: 38px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--yellow); color: #000; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-inline { display: inline-flex; padding: 0 22px; margin-top: 18px; }
.btn-pill {
  height: 38px;
  min-width: 131px;
  padding: 0 22px;
  border-radius: 19px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 13px;
}

.form-title {
  margin: 44px auto 40px;
  text-align: center;
  font-weight: 900;
  font-size: 13px;
  line-height: 16px;
  color: var(--yellow);
}
.add-form { margin-top: 0; }
.add-form .btn { margin-top: 27px; }
.yt-preview { margin: -6px 0 18px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--card); }
.yt-preview img { width: 100%; height: 100%; object-fit: cover; }
.after-add { text-align: center; margin-top: 14px; font-weight: 600; font-size: 12px; }
.after-add a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Messages ---------- */
.flashes { max-width: 269px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.flash-error {
  background: rgba(246, 79, 82, .14);
  border: 1px solid var(--red);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 12px;
}
.flash-success { font-weight: 900; font-size: 13px; padding: 10px 0; }
.flash .check {
  width: 18px; height: 18px; flex: none;
  border-radius: 2px;
  background: #10affe;
  display: grid; place-items: center;
}
.add-form + .flashes { margin-top: 70px; }
.login-form .flashes { margin: -4px 0 14px; }

/* ---------- Écran de connexion / bienvenue ---------- */
.splash { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.splash-bg {
  position: absolute; inset: 0;
  background: #000 center / cover no-repeat;
}
.splash-inner {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--safe-top) + clamp(72px, 22vh, 190px)) 16px calc(var(--safe-bottom) + 40px);
}
.brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 43px; }
.logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--yellow);
  color: #161616;
  font-family: var(--f-script);
  font-size: 30px;
  line-height: 1;
  display: grid; place-items: center;
  padding-top: 4px;
  margin-bottom: 25px;
}
.welcome { font-family: var(--f-futura); font-weight: 500; font-size: 25px; line-height: 37px; }
.appname {
  font-family: var(--f-wide);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.25;
  color: var(--yellow);
  letter-spacing: .02em;
}
.login-form .btn { margin-top: 27px; }
.splash .btn-pill { margin-top: 60px; }
.welcome-actions { gap: 28px; margin-top: 13px; }
.logout {
  margin-top: auto;
  padding-top: 40px;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
}
.logout button { color: var(--white); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Recettes ---------- */
.page-title-center { text-align: center; }
.meal-tabs {
  display: flex; justify-content: center; gap: 6px;
  max-width: 299px; margin: 0 auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.meal-tab {
  padding: 2px 4px;
  border-radius: 5px;
  font-weight: 900;
  font-size: 10px;
  line-height: 14px;
  white-space: nowrap;
}
.meal-tab.is-active { background: var(--yellow); color: #000; }
.recipe-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 29px;
  max-width: 299px; margin: 14px auto 0;
}
.recipe-title {
  position: absolute; left: 8px; right: 8px; bottom: 14px;
  text-align: center;
  font-family: var(--f-recipe);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* Détail d'une recette */
.recipe { padding-top: 24px; }
.recipe-hero { position: relative; aspect-ratio: 343 / 230; border-radius: 16px; overflow: hidden; background: var(--card); }
.recipe-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipe-hero .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.recipe-meal {
  position: absolute; left: 14px; top: 14px;
  background: var(--yellow); color: #000;
  border-radius: 5px; padding: 2px 6px;
  font-weight: 900; font-size: 10px; line-height: 14px;
}
.recipe-name { margin: 22px 0 18px; font-weight: 900; font-size: 22px; line-height: 1.2; }
.recipe-meta { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.recipe-meta li { background: var(--btn-dark); border-radius: 10px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.meta-k { font-weight: 600; font-size: 10px; color: var(--yellow); text-transform: uppercase; letter-spacing: .02em; }
.meta-v { font-weight: 800; font-size: 15px; }
.recipe-section { margin-bottom: 28px; }
.recipe-section .section-label { margin-bottom: 12px; }
.ingredients { list-style: none; margin: 0; padding: 0; border-top: 1px solid #262626; }
.ingredients li { border-bottom: 1px solid #262626; }
.ingredients label { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; cursor: pointer; }
.ingredients input { position: absolute; opacity: 0; pointer-events: none; }
.tick {
  width: 18px; height: 18px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--yellow); border-radius: 50%;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.ingredients input:checked + .tick { background: var(--yellow); }
.ingredients input:checked + .tick::after { content: ""; width: 8px; height: 4px; border: 2px solid #000; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ingredients input:checked ~ .ing-text { text-decoration: line-through; opacity: .45; }
.ingredients input:focus-visible + .tick { box-shadow: 0 0 0 2px rgba(224,254,16,.4); }
.ing-text { font-size: 14px; line-height: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 12px; }
.step-num {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  background: var(--yellow); color: #000;
  font-weight: 900; font-size: 12px;
  display: grid; place-items: center;
}
.steps p { font-size: 14px; line-height: 1.55; padding-top: 3px; }
.tip { background: var(--panel); border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; padding: 14px 16px; margin-bottom: 20px; }
.tip-label { font-weight: 900; font-size: 12px; margin-bottom: 6px; }
.tip p:last-child { font-size: 13px; line-height: 1.5; }
.total-time { text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- Lecteur vidéo (fenêtre) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal-card { width: 100%; max-width: 640px; position: relative; }
.modal-close {
  position: absolute; right: 0; top: -52px;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--btn-dark);
  display: grid; place-items: center;
}
.player-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-info { padding: 14px 4px 0; }
.player-title { font-weight: 800; font-size: 16px; text-transform: uppercase; }
.player-meta { margin-top: 4px; font-size: 13px; color: #cfcfcf; }
.player-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; align-items: center; }
.player-link { color: var(--yellow); font-weight: 700; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.player-delete { color: var(--red); font-weight: 700; font-size: 12px; }

/* ---------- Feuille « installer l'app » ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { width: 100%; max-width: 480px; background: #121214; border-radius: 18px 18px 0 0; padding: 24px 24px calc(var(--safe-bottom) + 24px); display: flex; flex-direction: column; gap: 14px; }
.sheet-title { font-weight: 900; font-size: 16px; }
.sheet-text { font-size: 14px; line-height: 1.5; color: #ddd; }
.sheet-text strong { color: var(--white); }

/* ---------- États vides ---------- */
.empty { text-align: center; padding: 48px 12px; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; }
.empty-sub { margin-top: 6px; color: var(--muted); font-weight: 400; font-size: 12px; }

/* ---------- Admin ---------- */
.admin-block { margin-top: 30px; }
.admin-block > .section-label { margin-bottom: 16px; }
.admin-block .form { max-width: none; }
.admin-text { font-size: 13px; line-height: 1.5; color: #cfcfcf; margin-bottom: 14px; }
.pw-row { display: flex; gap: 8px; }
.pw-gen {
  flex: none; padding: 0 12px; height: 38px; border-radius: 10px;
  background: var(--btn-dark); color: var(--white);
  font-weight: 700; font-size: 12px;
}
.users { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.user { background: var(--panel); border-radius: 12px; padding: 14px 16px; }
.user-head { display: flex; align-items: center; gap: 8px; }
.user-name { font-weight: 800; font-size: 15px; }
.badge { background: var(--gold); color: var(--white); font-weight: 900; font-size: 9px; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; }
.user-email { font-size: 13px; color: #d7d7d7; margin-top: 2px; word-break: break-all; }
.user-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.user-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pw-reset { flex: 1 1 200px; }
.pw-reset > summary { list-style: none; cursor: pointer; color: var(--yellow); font-weight: 700; font-size: 12px; }
.pw-reset > summary::-webkit-details-marker { display: none; }
.inline-form { display: flex; gap: 6px; margin-top: 10px; }
.inline-form-col { flex-direction: column; }
.inline-form input { height: 34px; font-size: 16px; }
.btn-small { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--yellow); color: #000; font-weight: 900; font-size: 12px; }
.link-danger { color: var(--red); font-weight: 700; font-size: 12px; }
.creds { margin-top: 8px; background: var(--panel); border: 1px solid var(--yellow); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.creds-title { font-weight: 900; font-size: 12px; }
.creds-text { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--f-main); font-size: 13px; line-height: 1.55; color: #eee; }
.creds .btn { max-width: 220px; }
.creds-note { font-size: 11px; color: var(--muted); }

/* ---------- Accessibilité ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Grands écrans : un peu plus d'air ---------- */
@media (min-width: 600px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #111 0%, #000 60%) fixed; }
  .page-title { margin-top: 44px; }
}
