/* =============================
   THEME COMMUN (Dark Glass - HAXES)
   Objectif: harmoniser les pages sans changer les balises / classes
   ============================= */
:root{
  --bg: #0b1020;
  --bg-gradient:
    radial-gradient(1200px 800px at 15% -10%, rgba(0,196,204,0.22) 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(68,191,169,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #080b14 100%);
  --surface: rgba(18, 24, 38, 0.78);
  --surface-2: rgba(14, 18, 29, 0.65);
  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.14);
  --text: #eaf0ff;
  --muted: #a9b6d3;

  --accent: #00c4cc;
  --accent-2: #44bfa9;

  --danger: #ff7b7b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-lg: 0 18px 40px rgba(0,0,0,0.45);
  --shadow-md: 0 10px 26px rgba(0,0,0,0.35);
  --shadow-sm: 0 6px 16px rgba(0,0,0,0.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  padding:0;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-gradient);
  background-attachment: fixed;
}

body{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* =========================
   RESET CSS
========================= */
* { margin: 0; padding: 0; }

/* =========================
   CONTAINER PRINCIPAL
========================= */
.container{
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 700px;
  width: calc(100% - 32px);
  backdrop-filter: blur(12px) saturate(120%);
}

/* =========================
   TITRE
========================= */
h1{
  font-size: 2.4em;
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: .2px;
}

/* =========================
   BOUTONS
========================= */
.buttons{
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.button{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #071014;
  border: none;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 0.95em;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  box-shadow: 0 10px 22px rgba(0,196,204,0.18), 0 3px 10px rgba(68,191,169,0.10);
  width: 180px;
  text-align: center;
}

.button:hover{
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 14px 28px rgba(0,196,204,0.22), 0 6px 14px rgba(68,191,169,0.12);
}

.button:active{ transform: translateY(0) scale(.99); }

/* =========================
   CONTENU DYNAMIQUE
========================= */
.folder-content{
  margin-top: 10px;
  text-align: left;
  max-width: 90%;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.4s var(--ease);
}

/* =========================
   FICHIERS LISTÉS
========================= */
.folder-list{
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.file-item{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  transition: transform .12s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  display: flex;
  align-items: center;
}

.file-item:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(0,196,204,0.22);
  transform: translateY(-1px);
}

.file-link{
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  width: 100%;
}

.file-link:focus-visible{
  outline: 3px solid rgba(0,196,204,0.22);
  outline-offset: 3px;
  border-radius: 10px;
}

.file-icon{
  font-size: 1.4em;
  margin-right: 12px;
  color: var(--accent);
}

.file-name{
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn{
  from{ opacity:0; transform: translateY(5px); }
  to{ opacity:1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 600px){
  .container{ padding: 24px; }
  h1{ font-size: 1.9em; }
  .button{ width: 100%; font-size: 1em; }
}