/* ========================================================================
   © 2026 Holovid SAS. All rights reserved.
   Styles standalone, aucun framework, aucune dépendance externe.
   Inspiration : _showVaultWarning (cloud_page.dart) + palette vault.holovid.fr
   ======================================================================== */

/* ========================================================================
   RESET & BASE
   ======================================================================== */
*{margin:0;padding:0;box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  background:#0c1445; /* couleur de base affichée pendant l'overscroll iOS, évite la bande blanche */
}
body{
  font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  min-height:100vh;
  min-height:100dvh;
  color:#fff;
  background:#070d2a;
  background:linear-gradient(135deg,#0c1445,#1a2a6c 30%,#2d4a7a 50%,#1e3a5f 70%,#0f2042);
  /* PAS de background-attachment:fixed : provoque du jank et expose le blanc de <html> en overscroll mobile */
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ========================================================================
   LAYOUT — Colonne centrée, mobile first
   ======================================================================== */
.page{
  width:100%;
  max-width:640px;
  margin:0 auto;
  padding:24px 16px 32px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.hdr{display:flex;justify-content:center;padding:8px 0}
.logo{
  color:#fff;
  font-size:24px;
  font-weight:600;
  letter-spacing:2px;
  text-decoration:none;
}
.logo em{color:#e1d30f;font-style:normal}
.logo sup{font-size:11px;color:rgba(255,255,255,0.6);margin-left:2px;top:-0.6em}

/* ========================================================================
   GLASS CARD — Reprend les valeurs de _showVaultWarning
   ======================================================================== */
.glass{
  background:rgba(255,255,255,0.15);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:25px;
  padding:25px 22px;
  box-shadow:0 8px 32px rgba(0,0,0,0.2);
}

.glass h1{
  font-size:22px;
  font-weight:700;
  color:#fff;
  margin-bottom:10px;
  letter-spacing:0.3px;
}
.glass .lead{
  color:rgba(255,255,255,0.75);
  font-size:14.5px;
  margin-bottom:18px;
}
.lead-link{color:#e1d30f;text-decoration:underline;font-weight:600}
.lead-link:hover{color:#fff}

/* ========================================================================
   NOTICE — Bannière de souveraineté (accent or)
   ======================================================================== */
.notice{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:rgba(225,211,15,0.08);
  border:1px solid rgba(225,211,15,0.3);
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:22px;
}
.notice-ic{
  flex-shrink:0;
  width:24px;
  height:24px;
  border-radius:50%;
  background:rgba(225,211,15,0.2);
  color:#e1d30f;
  font-weight:700;
  font-style:italic;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-family:Georgia,'Times New Roman',serif;
}
.notice p{
  color:rgba(255,255,255,0.85);
  font-size:13.5px;
  line-height:1.45;
}

/* ========================================================================
   FORM FIELDS
   ======================================================================== */
.field{margin-bottom:16px}
.field label{
  display:block;
  color:#fff;
  font-size:14px;
  font-weight:600;
  margin-bottom:6px;
}
.req{color:#e1d30f;margin-left:2px}

.field input,
.field textarea{
  width:100%;
  background:rgba(0,0,0,0.25);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:12px;
  padding:12px 14px;
  color:#fff;
  font-size:16px; /* 16px évite le zoom automatique d'iOS sur focus */
  font-family:inherit;
  transition:border-color .15s, background .15s;
  -webkit-appearance:none;
  appearance:none;
}
.field textarea{
  resize:vertical;
  min-height:96px;
  line-height:1.5;
}
.field input::placeholder,
.field textarea::placeholder{color:rgba(255,255,255,0.35)}
.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:rgba(225,211,15,0.5);
  background:rgba(0,0,0,0.35);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown){
  border-color:rgba(255,90,90,0.5);
}
.hint{
  display:block;
  color:rgba(255,255,255,0.55);
  font-size:12.5px;
  margin-top:6px;
  line-height:1.4;
}

/* ========================================================================
   SECTION HEADERS
   ======================================================================== */
.sec{
  color:rgba(255,255,255,0.6);
  font-size:11px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  margin:24px 0 4px;
}
.sec-help{
  color:rgba(255,255,255,0.5);
  font-size:12.5px;
  margin-bottom:14px;
  font-style:italic;
}

/* ========================================================================
   CONSENT — Visible uniquement si email saisi
   ======================================================================== */
.consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:rgba(0,0,0,0.2);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  padding:12px;
  margin:8px 0 18px;
}
.consent input[type="checkbox"]{
  flex-shrink:0;
  width:20px;
  height:20px;
  margin-top:2px;
  accent-color:#e1d30f;
  cursor:pointer;
}
.consent label{
  color:rgba(255,255,255,0.78);
  font-size:13px;
  line-height:1.45;
  cursor:pointer;
  font-weight:400;
}
.consent a{color:#e1d30f;text-decoration:underline}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.btn-primary{
  width:100%;
  padding:15px;
  background:linear-gradient(135deg,#2B4C7E 0%,#1F3A60 100%);
  color:#fff;
  border:none;
  border-radius:14px;
  font-size:16px;
  font-weight:700;
  letter-spacing:0.3px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
  transition:transform .1s, box-shadow .15s, opacity .15s;
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:10px;
  font-family:inherit;
}
.btn-primary:hover:not(:disabled){box-shadow:0 6px 16px rgba(0,0,0,0.4)}
.btn-primary:active:not(:disabled){transform:scale(0.985)}
.btn-primary:disabled{opacity:0.6;cursor:not-allowed}

.btn-spinner{
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,0.3);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.btn-ghost{
  display:inline-block;
  margin-top:18px;
  padding:12px 24px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:12px;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  transition:background .15s;
}
.btn-ghost:hover{background:rgba(255,255,255,0.15)}

/* ========================================================================
   ERROR MESSAGE
   ======================================================================== */
.form-error{
  margin-top:14px;
  padding:12px 14px;
  background:rgba(255,90,90,0.12);
  border:1px solid rgba(255,90,90,0.35);
  border-radius:10px;
  color:#ffb4b4;
  font-size:13.5px;
  text-align:center;
  line-height:1.45;
}
.error-link{color:#e1d30f;text-decoration:underline;font-weight:600}

/* ========================================================================
   SUCCESS CARD
   ======================================================================== */
.success{text-align:center;padding:35px 25px}
.success .check{
  width:64px;
  height:64px;
  margin:0 auto 15px;
  border-radius:50%;
  background:rgba(93,202,165,0.15);
  border:2px solid rgba(93,202,165,0.5);
  color:#5dcaa5;
  font-size:32px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.success h2{
  font-size:20px;
  color:#fff;
  margin-bottom:10px;
}
.success p{
  color:rgba(255,255,255,0.75);
  font-size:14.5px;
}

/* ========================================================================
   HONEYPOT — Champ caché destiné aux bots
   ======================================================================== */
.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.ftr{
  text-align:center;
  color:rgba(255,255,255,0.4);
  font-size:12px;
  padding:8px 0;
}

/* ========================================================================
   DESKTOP REFINEMENTS
   ======================================================================== */
@media (min-width: 720px){
  .page{padding:40px 24px 48px;gap:24px}
  .glass{padding:32px}
  .glass h1{font-size:26px}
  .field input,
  .field textarea{font-size:15px}
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    transition-duration:0.01ms !important;
    animation-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* ========================================================================
   LIEN INLINE — Pour mentions dans le texte (vers id_bugs.html, etc.)
   ======================================================================== */
.link-inline{
  color:#e1d30f;
  text-decoration:underline;
  font-weight:600;
}
.link-inline:hover{color:#fff}

/* ========================================================================
   PAGE id_bugs.html — Sous-titre de l'en-tête
   ======================================================================== */
.subtitle{
  color:rgba(255,255,255,0.55);
  font-size:13px;
  text-align:center;
  margin-top:4px;
  letter-spacing:0.5px;
}

.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:rgba(255,255,255,0.7);
  text-decoration:none;
  font-size:14px;
  padding:8px 14px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:10px;
  transition:background .15s;
  margin-bottom:8px;
  align-self:flex-start;
}
.back-link:hover{background:rgba(255,255,255,0.12);color:#fff}
.back-link::before{content:"←";font-size:16px}

/* ========================================================================
   LISTE DES BUGS — Espacement vertical entre les cartes
   ======================================================================== */
.bugs-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* ========================================================================
   CARTE BUG — Une carte glass par bug listé
   ======================================================================== */
.bug-card{
  padding:20px 22px;
}
.bug-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.bug-id{
  color:#e1d30f;
  font-family:'SF Mono',Monaco,Consolas,monospace;
  font-size:13px;
  font-weight:700;
  letter-spacing:1px;
}
.bug-date{
  color:rgba(255,255,255,0.5);
  font-size:12.5px;
}
.bug-title{
  color:#fff;
  font-size:17px;
  font-weight:600;
  line-height:1.35;
  margin-bottom:12px;
}
.bug-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:12px;
}
.bug-desc{
  color:rgba(255,255,255,0.78);
  font-size:14px;
  line-height:1.55;
}

/* ========================================================================
   BADGES — Sévérité / Catégorie / Statut
   ======================================================================== */
.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:20px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:0.8px;
  text-transform:uppercase;
  line-height:1.4;
  white-space:nowrap;
}

/* --- Sévérité --------------------------------------------------------- */
.sev-critical{background:rgba(255,80,80,0.15);color:#ff9b9b;border:1px solid rgba(255,80,80,0.4)}
.sev-medium  {background:rgba(255,165,0,0.13);color:#ffc480;border:1px solid rgba(255,165,0,0.4)}
.sev-low     {background:rgba(93,202,165,0.13);color:#7ddbb5;border:1px solid rgba(93,202,165,0.4)}

/* --- Catégorie -------------------------------------------------------- */
.cat-security{background:rgba(225,211,15,0.12);color:#e1d30f;border:1px solid rgba(225,211,15,0.35)}
.cat-ux      {background:rgba(150,180,255,0.12);color:#a8c0ff;border:1px solid rgba(150,180,255,0.35)}
.cat-engine  {background:rgba(200,150,255,0.12);color:#c89dff;border:1px solid rgba(200,150,255,0.35)}
.cat-network {background:rgba(100,200,255,0.12);color:#7fcfff;border:1px solid rgba(100,200,255,0.35)}
.cat-perf    {background:rgba(255,140,200,0.12);color:#ff9ec9;border:1px solid rgba(255,140,200,0.35)}
.cat-other   {background:rgba(255,255,255,0.06);color:rgba(255,255,255,0.7);border:1px solid rgba(255,255,255,0.2)}

/* --- Statut ----------------------------------------------------------- */
.status-resolved   {background:rgba(93,202,165,0.18);color:#5dcaa5;border:1px solid rgba(93,202,165,0.5)}
.status-progress   {background:rgba(100,180,255,0.18);color:#7fbfff;border:1px solid rgba(100,180,255,0.5)}
.status-todo       {background:rgba(255,255,255,0.06);color:rgba(255,255,255,0.6);border:1px solid rgba(255,255,255,0.2)}
.status-duplicate  {background:rgba(180,180,180,0.12);color:rgba(255,255,255,0.55);border:1px solid rgba(255,255,255,0.2)}
.status-wontfix    {background:rgba(120,120,120,0.12);color:rgba(255,255,255,0.45);border:1px solid rgba(255,255,255,0.18);text-decoration:line-through}

/* ========================================================================
   ETAT VIDE — Quand aucun bug n'est encore listé
   ======================================================================== */
.empty-state{
  text-align:center;
  padding:30px 20px;
  color:rgba(255,255,255,0.6);
  font-size:14px;
}