/* ==================================================
   RESET GLOBAL
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================================================
   THEMES (Clair / Sombre)
================================================== */
body.dark-theme {
    background-color: #121212;
    color: white;
}
body.light-theme {
    background-color: white;
    color: rgb(100, 23, 23);
}

/* ==================================================
   HEADER
================================================== */
.header {
    background: black;
    color: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

/* ======= Système de Thème (bouton lune/soleil) ======= */
.theme-toggle {
    cursor: pointer;
    font-size: 24px;
}

/* ======= Système de Langues (bouton + menu langues) ======= */
.language-switcher {
    position: relative;
}
.language-switcher button {
    background: transparent;
    border: 1px solid rgb(214, 87, 87);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
}
#lang-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: black;
    border: 1px solid white;
    display: flex;
    flex-direction: column;
}
#lang-menu button {
    background: none;
    border: none;
    color: white;
    padding: 5px;
    cursor: pointer;
}
#lang-menu.hidden {
    display: none;
}

/* Style pour le bouton principal de sélection de langue */
#lang-btn {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 16px;
    background-color: #000000;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* Style pour les icônes de drapeaux */
.flag-icon {
    width: 20px;
    height: 15px;
    margin-left: 8px;
}
.lang-btn {
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: 16px;
    width: 70px;
    justify-content: space-between;
}
.flag-image {
    width: 16px;
    height: auto;
    margin-left: 10px;
}

/* ==================================================
   SYSTÈME DE FILTRES
================================================== */
.filters {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}
.filter-btn {
    padding: 12px 30px;
    border: 2px solid #ff69b4;
    border-radius: 30px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    transition: 0.3s;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.3);
}
.filter-btn:hover {
    background-color: #ff69b4;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.6), 0 0 40px rgba(255, 105, 180, 0.5);
}

/* ==================================================
   MAIN (bouton ajouter dossier + conteneur dossiers)
================================================== */
.add-dossier-btn {
    display: block;
    margin: 30px auto;
    padding: 15px 40px;
    background: linear-gradient(145deg, #000000, #1a1a1a);
    color: #fafafa; /* Rose vif */
    border: 2px solid #ff69b4;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 900; /* Texte très gras */
    font-size: 18px; /* Plus grand */
    text-transform: uppercase; /* Majuscules */
    letter-spacing: 1px; /* Espacement entre lettres */
    box-shadow: 0 0 10px rgba(233, 4, 233, 0.582);
    transition: all 0.3s ease;
}

/* Hover : effet lumière rose et agrandissement */
.add-dossier-btn:hover {
    background: #ff69b4; /* Fond devient rose au hover */
    color: #000000; /* Texte devient noir */
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.8), 0 0 40px rgba(255, 105, 180, 0.6);
    transform: scale(1.08); /* Légèrement plus grand */
}

/* ==================================================
   SYSTÈME DE DOSSIERS (boutons individuels) — Alignement parfait
================================================== */
.dossier-wrapper {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    margin: 10px;
}

.dossier-btn {
    width: 140px;
    height: 180px;
    background: #1a1a1a;
    border-radius: 20px;
    border: 1px solid #333;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease, transform 0.2s ease;
    padding: 10px;
    text-align: center;
    gap: 6px;
}

.dossier-date, .dossier-time {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.dossier-emoji {
    font-size: 48px;
    margin: 4px 0;
}

.dossier-name {
    font-size: 16px;
    font-weight: 600;
}

.dossier-btn:hover {
    font-weight: 600;
    background-color: #ff69b4;
    color: #111;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.8);
    transform: scale(1.05);
}

.delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4d;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: #ff0000;
}

/* ==================================================
   SYSTÈME DE FENÊTRE MODALE (Ajout de Dossier) — Modernisé
================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8); /* Fond plus sombre */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #111111; /* Fond noir très foncé */
    padding: 30px;
    border-radius: 16px; /* Moins arrondi */
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px; /* Contrôle la taille */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

/* Zone d'écriture (input, textarea, etc.) */
.modal-content input, 
.modal-content textarea {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 10px; /* Plus doux */
    padding: 12px 16px;
    color: #eee;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 8px #ff69b4;
}

/* Zone des boutons */
.modal-buttons {
    display: flex;
    justify-content: space-between;
}

/* Boutons */
.modal-buttons button {
    flex: 1;
    margin: 0 5px;
    padding: 12px 20px;
    background: #ff69b4;
    color: #111;
    border: none;
    border-radius: 8px; /* Boutons moins arrondis */
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.modal-buttons button:hover {
    background: #ff85c1;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}
/* ==================================================
   ZONE CONTENEUR DES DOSSIERS (scrollable)
================================================== */
#dossiers-container-wrapper {
    width: 90%;
    max-width: 1200px;
    height: 500px; /* Hauteur fixe avec scroll si besoin */
    margin: 20px auto;
    background-color: #111;
    border-radius: 20px;
    padding: 20px;
    overflow-y: auto; /* Scroll vertical */
    overflow-x: hidden; /* Pas de scroll horizontal */
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Le container interne pour afficher les dossiers */
#dossiers-container {
    display: flex;
    flex-wrap: wrap; /* Les dossiers vont à la ligne automatiquement */
    gap: 20px; /* Espacement entre les dossiers */
    justify-content: center; /* Centre les dossiers */
}
/* ==================================================
   BOUTON GOOGLE — Cohérent avec le style global
================================================== */
.google-auth-btn {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: black;
    border: 1px solid #ff69b4;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.3);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.google-auth-btn img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.google-auth-btn:hover {
    background-color: #ff69b4;
    color: black;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.6);
    transform: scale(1.05);
}

/* Placement à droite du sélecteur de langue */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
#cancel-choice-btn,
#cancel-create-btn {
    background: transparent;
    color: #ff69b4;
    border: 2px solid #ff69b4;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cancel-choice-btn:hover,
#cancel-create-btn:hover {
    background: #ff69b4;
    color: #111;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.share-btn {
  font-size: 20px;
  background: none;
  border: 1px solid #ff69b4;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.share-btn:hover {
  background: #ff69b4;
  color: black;
}
.header-title {
  font-size: 24px;
  font-weight: bold;
}
.copy-id-btn {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: #444;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.copy-id-btn:hover {
  background: #666;
}











/* ---- Presets boutons ---- */
.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 20px 0;
}

.preset-buttons button {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    background: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.preset-buttons button:hover {
    background: #ff69b4;
    color: black;
}



/* Choix du mode */
.mode-choice {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.mode-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #555;
  background: #333;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.mode-btn.selected {
  background: #ff69b4;
  color: black;
  border-color: #ff69b4;
}
.mode-btn:hover {
  background: #555;
}
#pixel-hint {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}
.hidden {
  display: none;
}








input.locked {
  background: #333;
  color: #ccc;
  cursor: not-allowed;
}
.preset-buttons button.locked {
  opacity: 0.5;
  cursor: not-allowed;
}
