/* Background full-screen inspired by the poster */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: url('img/notext.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(4px);
    flex: 1 0 auto;
}

.logo {
    width: 160px;
    margin: 20px auto;
    display: block;
}

.countdown {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
}

/* Animation battement cardiaque */
.countdown-pulse {
    animation: heartbeat 2.4s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    12%  { transform: scale(1.10); }
    24%  { transform: scale(1); }
    36%  { transform: scale(1.06); }
    52%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.section {
    display: block;
    background: rgba(0,0,0,0.55);
    margin: 18px 0;
    padding: 18px;
    border-radius: 14px;
    font-size: 1.5rem;
    text-decoration: none;
    color: #fff;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.25);

    position: relative;
    overflow: hidden; /* le sabre reste dans le bouton */
}

.section:hover {
    background: rgba(0,0,0,0.75);
    transform: scale(1.03);
}

@media (max-width: 420px) {
    .section {
        font-size: 1.25rem;
    }

    .countdown {
        font-size: 1.4rem;
    }
}

/* Quiz-specific / Japanese inspired accents */
.card {
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
  backdrop-filter: blur(6px) saturate(120%);
}

.container h2, .container h3 {
  font-family: 'Segoe UI', Roboto, -apple-system, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fffefc;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Sakura accent small flower badge */
.sakura-badge {
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,192,203,0.08);
  border: 1px solid rgba(255,192,203,0.12);
  color:#ffeef4;
  font-weight:700;
  box-shadow: 0 2px 8px rgba(255,182,193,0.03) inset;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}

/* Choice styles */
.choice {
  border-left: 4px solid rgba(255,255,255,0.04);
}
.choice.selected {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,182,193,0.03));
  border-left-color: rgba(255,182,193,0.9);
}

/* Small screens tweak */
@media (max-width:420px){
  .logo { width:120px; }
  .card { padding:10px; border-radius:10px; }
}

.footer-main {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    color: #fff;
    background: none;
}

.footer-main a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-main a:hover {
    text-decoration: underline;
}

/* Formulaire: labels et inputs centrés dans la card */
.form-auth,
#registerForm {
    margin-top: 12px;
    text-align: left;
}

.form-auth label,
#registerForm label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.form-auth input[type="text"],
.form-auth input[type="password"],
#registerForm input[type="text"],
#registerForm input[type="email"],
#registerForm input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: #fff;
    box-sizing: border-box;
}

#registerForm .btn {
  display: block;
  margin: 16px auto 0;
}

.form-auth .btn {
    display: block;
    margin: 16px auto 0;
}

a.btn {
    text-decoration: none !important;
}

a.btn:hover {
    text-decoration: none !important;
}

/* --- Animation katana cohérente bouton par bouton --- */

main { --step: 0.8s; --count: 9; --dur: calc(var(--step) * var(--count)); }

.section::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.0) 35%,
    rgba(255,255,255,0.95) 50%,
    rgba(255,76,76,0.85) 60%,
    transparent 80%
  );
  transform: translateX(-130%) rotate(8deg);
  opacity:0;
  pointer-events:none;
  mix-blend-mode: screen;
  filter: blur(1px);

  animation: katana-slash var(--dur) linear infinite;
  animation-delay: calc(var(--i, 0) * var(--step));
}

.section::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  border: 1px solid rgba(255,80,80,0);
  box-shadow: 0 0 0 rgba(255,80,80,0);
  pointer-events:none;
  opacity:0;

  animation: katana-aura var(--dur) linear infinite;
  animation-delay: calc(var(--i, 0) * var(--step));
}

/* index par bouton (9 liens) */
main .section:nth-child(1){ --i: 0; }
main .section:nth-child(2){ --i: 1; }
main .section:nth-child(3){ --i: 2; }
main .section:nth-child(4){ --i: 3; }
main .section:nth-child(5){ --i: 4; }
main .section:nth-child(6){ --i: 5; }
main .section:nth-child(7){ --i: 6; }
main .section:nth-child(8){ --i: 7; }
main .section:nth-child(9){ --i: 8; }

/* Slash très court (évite chevauchements) */
@keyframes katana-slash{
  0%   { opacity:0; transform: translateX(-130%) rotate(8deg); }
  6%   { opacity:1; transform: translateX(-70%)  rotate(8deg); }
  12%  { opacity:1; transform: translateX(40%)   rotate(8deg); }
  18%  { opacity:0; transform: translateX(130%)  rotate(8deg); }
  100% { opacity:0; transform: translateX(130%)  rotate(8deg); }
}

@keyframes katana-aura{
  0%   { opacity:0; border-color: rgba(255,80,80,0);   box-shadow: 0 0 0 rgba(255,80,80,0); }
  6%   { opacity:1; border-color: rgba(255,80,80,0.7); box-shadow: 0 0 12px rgba(255,80,80,0.75); }
  12%  { opacity:.8; border-color: rgba(255,80,80,0.4); box-shadow: 0 0 6px rgba(255,80,80,0.5); }
  18%  { opacity:0; border-color: rgba(255,80,80,0);   box-shadow: 0 0 0 rgba(255,80,80,0); }
  100% { opacity:0; border-color: rgba(255,80,80,0);   box-shadow: 0 0 0 rgba(255,80,80,0); }
}
.countdown {
    text-align: center;
    line-height: 1.2;
}

.countdown .wall-label {
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 4px;
    display: inline-block;
}
