/* Kyudai — nouveau style « Braise » (verre dépoli sombre), choisi par le dirigeant le 05/10/2026.
   Étape 2 de la refonte : page de connexion et code du téléphone. Les autres pages gardent kyudai.css
   tant que leur étape n'est pas validée. Polices hébergées sur kyudai.fr (licence OFL, voir static/fonts). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.e6621a369f37.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.7118b7933c4b.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --v-fond: #13100f;
  --v-verre: rgba(42, 35, 33, .52);
  --v-verre-plein: #221c1b;          /* quand le flou n'est pas disponible */
  --v-trait: rgba(255, 255, 255, .10);
  --v-texte: #f6f1ee;
  --v-texte-doux: #c9beb9;
  --v-texte-discret: #a99e99;
  --v-accent: #d92f35;               /* rouge Kyudai (texte blanc dessus : contraste 4,8) */
  --v-accent-clair: #ff8a8d;
  --v-halo-2: #f2994a;
  --v-erreur-fond: rgba(255, 99, 105, .14);
  --v-erreur: #ffaaad;
  --v-titre: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --v-police: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.v-connexion {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--v-fond);
  color: var(--v-texte);
  font-family: var(--v-police);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}
.v-connexion ::selection { background: rgba(229, 56, 59, .45); color: #fff; }
.v-connexion a { color: #ffb4b5; text-underline-offset: 3px; }
.v-connexion a:hover { color: #ffd6d6; }
.v-connexion :focus-visible { outline: 3px solid var(--v-accent-clair); outline-offset: 3px; }

/* Halos de couleur derrière le verre (décor seulement, ignorés par les lecteurs d'écran). */
.v-halo { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.v-halo-1 { width: 640px; height: 640px; left: -160px; top: -220px;
  background: var(--v-accent); opacity: .38; filter: blur(140px); }
.v-halo-2 { width: 520px; height: 520px; left: 30%; bottom: -160px;
  background: var(--v-halo-2); opacity: .20; filter: blur(150px); }
.v-halo-3 { width: 380px; height: 380px; right: 4%; top: 12%;
  background: var(--v-accent); opacity: .16; filter: blur(130px); }

/* Page de connexion coupée en deux (11/11/2026) : présentation à gauche, carte de connexion à droite.
   Sur téléphone, tout s'empile ; la présentation garde seulement la marque et l'accroche. */
.v-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "vitrine carte" "pied carte";
}
.v-vitrine {
  grid-area: vitrine;
  padding: 64px 72px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.v-accueil { margin: auto 0; display: flex; flex-direction: column; gap: 26px; max-width: 640px; }
.v-surtitre { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; color: #ffb4b5; }
.v-surtitre-discret { font-size: 12px; color: var(--v-texte-discret); margin-top: -12px; }
.v-point { width: 8px; height: 8px; border-radius: 50%; background: var(--v-accent-clair);
  box-shadow: 0 0 0 4px rgba(255, 138, 141, .18); }
.v-accroche { margin: 0; font-family: var(--v-titre); font-weight: 600; font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.v-texte { margin: 0; font-size: 18px; line-height: 1.6; color: var(--v-texte-doux); max-width: 520px; }
.v-atouts { list-style: none; margin: 8px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v-atouts li { padding: 18px 18px 20px; border-radius: 18px; background: var(--v-verre); border: 1px solid var(--v-trait);
  display: flex; flex-direction: column; gap: 8px; }
.v-atouts strong { font-size: 16px; }
.v-atouts li span:last-child { font-size: 14px; line-height: 1.45; color: var(--v-texte-doux); }
.v-num { font-family: var(--v-titre); font-size: 13px; font-weight: 600; color: var(--v-accent-clair); }
.v-cadenas { width: 52px; height: 52px; border-radius: 16px; background: rgba(217, 47, 53, .16);
  border: 1px solid rgba(255, 138, 141, .28); display: flex; align-items: center; justify-content: center;
  color: var(--v-accent-clair); }
.v-securite { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex;
  align-items: center; gap: 10px; font-size: 14px; color: var(--v-texte-discret); }
.v-securite svg { flex: none; color: var(--v-accent-clair); }

.v-carte {
  grid-area: carte;
  align-self: center;
  justify-self: center;
  margin: 48px;
  position: relative;
  z-index: 1;
  width: calc(100% - 96px);
  max-width: 440px;
  padding: 44px 40px 36px;
  border-radius: 28px;
  background: var(--v-verre);
  border: 1px solid var(--v-trait);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .v-carte { background: var(--v-verre-plein); }
}

.v-marque { display: flex; align-items: center; gap: 14px; }
.v-marque svg { flex: none; }
.v-marque-nom { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.v-marque-nom strong { font-family: var(--v-titre); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.v-marque-nom span { font-size: 13px; font-weight: 600; color: #c4b9b4; }

.v-intro { display: flex; flex-direction: column; gap: 10px; }
.v-intro h1 { margin: 0; font-family: var(--v-titre); font-weight: 600; font-size: 30px; line-height: 1.15;
  letter-spacing: -.02em; text-wrap: balance; }
.v-intro p { margin: 0; color: var(--v-texte-doux); }

.v-form { display: flex; flex-direction: column; gap: 18px; }
.v-champ { display: flex; flex-direction: column; gap: 8px; }
.v-champ label { font-size: 14px; font-weight: 600; color: #e9e2de; }
.v-champ input {
  height: 52px;
  width: 100%;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(10, 8, 8, .45);
  color: var(--v-texte);
  caret-color: var(--v-accent-clair);
  font: 500 16px var(--v-police);
  transition: border-color .2s, box-shadow .2s;
}
.v-champ input::placeholder { color: #9d928d; }
.v-champ input:focus { outline: none; border-color: rgba(255, 120, 122, .85); box-shadow: 0 0 0 4px rgba(229, 56, 59, .25); }
.v-champ input[aria-invalid="true"] { border-color: rgba(255, 138, 141, .9); }
.v-champ input:-webkit-autofill { -webkit-text-fill-color: var(--v-texte); box-shadow: 0 0 0 40px #1d1817 inset; caret-color: var(--v-texte); }
.v-code input { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .3em; text-align: center; }

.v-bouton {
  margin-top: 8px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: #f7f3f1;
  color: #191312;
  font: 700 16px var(--v-police);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.v-bouton:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.v-bouton:active { transform: translateY(0); }

.v-erreur {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--v-erreur-fond);
  border: 1px solid rgba(255, 120, 122, .28);
  color: var(--v-erreur);
  font-weight: 600;
  font-size: 15px;
}
.v-info { margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 15px; }
.v-discret { margin: 0; font-size: 14px; color: var(--v-texte-discret); }
.v-pied { grid-area: pied; position: relative; z-index: 1; margin: 0; padding: 32px 72px 56px; font-size: 14px; color: var(--v-texte-discret); }

@media (max-width: 1100px) {
  .v-vitrine { padding: 48px 40px 0; }
  .v-atouts { grid-template-columns: minmax(0, 1fr); }
  .v-pied { padding: 24px 40px 40px; }
}
@media (max-width: 860px) {
  .v-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto;
    grid-template-areas: "vitrine" "carte" "pied"; max-width: 520px; margin: 0 auto; }
  .v-vitrine { padding: 32px 20px 0; gap: 24px; border-right: 0; }
  .v-accueil { margin: 0; gap: 12px; }
  .v-accroche { font-size: 28px; line-height: 1.15; }
  .v-texte, .v-atouts { display: none; }
  .v-marque svg { width: 40px; height: 40px; }
  .v-carte { margin: 26px 20px 0; width: calc(100% - 40px); align-self: start; }
  .v-pied { padding: 28px 20px 24px; text-align: center; font-size: 13px; }
}
@media (max-width: 480px) {
  .v-carte { padding: 28px 22px 24px; border-radius: 24px; gap: 22px; }
  .v-intro h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .v-bouton, .v-champ input { transition: none; }
  .v-bouton:hover { transform: none; }
}
@media (forced-colors: active) {
  .v-halo { display: none; }
  .v-carte, .v-bouton, .v-champ input { border: 1px solid CanvasText; }
}
