﻿/* ============================================================
   Popup Style & Console Royale — (Thème Sombre Haute Lisibilité)
   Fichier : /_Ai_evenement_pop/css/popup_style.css
   Site : Sicerond-web.fr
   ============================================================ */


/* ============================================================
   [DEBUT FICHIER] admin_index.php & GLOBAL ADMIN
   ============================================================ */
body {
    margin-left: 260px;
    background: #0b0b0f;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 30px;
}

/* MENU LATÉRAL FIXE */
#menu-lateral {
    position: fixed;
    left: 0;
    top: 0;
    width: 230px;
    height: 100%;
    background: #111;
    border-right: 2px solid #c9a300;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 0 20px rgba(201, 163, 0, 0.3);
}

#menu-lateral h3 {
    color: #ffd700;
    text-align: center;
    margin-top: 0;
    font-size: 18px;
}

#menu-lateral a {
    display: block;
    padding: 10px;
    margin: 6px 0;
    background: #222;
    color: #ffd700;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}

#menu-lateral a:hover {
    background: #333;
    color: #fff;
}

/* BOUTONS D'ACTION EN HAUT DE PAGE */
.top-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-action {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-deplacer {
    background: #00A86B;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 168, 107, 0.4);
}

.btn-deplacer:hover {
    background: #00c87f;
}

.btn-archive {
    background: #333;
    color: #ffd700;
    border: 1px solid #c9a300;
}

.btn-archive:hover {
    background: #444;
}

h1 {
    color: #ffd700;
    text-transform: uppercase;
    margin-top: 0;
    font-size: 28px;
}

/* CARTE DE RÉSUMÉ DU DASHBOARD */
.dashboard-summary {
    background: #14141c;
    border: 1px solid #c9a300;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(201, 163, 0, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: #1c1c24;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-card .number {
    font-size: 26px;
    font-weight: bold;
    color: #ffd700;
    margin-top: 4px;
}

.stat-card .label {
    color: #aaa;
    font-size: 13px;
}

/* SECTIONS ET GRILLE D'OUTILS */
.section {
    background: #14141c;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #c9a300;
    box-shadow: 0 0 15px rgba(201, 163, 0, 0.1);
}

h2 {
    color: #ffd700;
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    font-size: 20px;
}

.grid-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.card-tool {
    background: #1c1c24;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 5px solid #333;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card-go { border-left-color: #00A86B; }
.card-attente { border-left-color: #FF3800; }

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.tool-title {
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

.tool-title:hover {
    text-decoration: underline;
    color: #ffd700;
}

.badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-go { background: #00A86B; color: #fff; }
.badge-attente { background: #FF3800; color: #fff; }

.tool-desc {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
    margin-top: 4px;
}

.tool-file {
    font-size: 10px;
    color: #666;
    font-family: monospace;
    margin-top: 6px;
}

#search {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #c9a300;
    background: #1c1c24;
    color: #fff;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.hidden { display: none !important; }
/* ============================================================
   [FIN FICHIER] admin_index.php & GLOBAL ADMIN
   ============================================================ */


/* ============================================================
   [DEBUT FICHIER] template_sicerond_popup_2.php   #############################################################
   ============================================================ */
.sicerond-popup-container {
    position: relative !important;
    width: 98% !important;
    max-width: var(--popup-max-width, 2100px) !important; /* <--- C'est ici que la magie opère ! */
    margin: 10px auto !important;
    overflow: hidden !important;
    border-radius: 12px;
    border: 5px solid #c9a300 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    padding-bottom: 35px;
    box-sizing: border-box;
}

/* --- GLOW LUMINEUX --- */
.sicerond-popup-container.glow-active {
    animation: goldenGlow 4s infinite ease-in-out;
}

@keyframes goldenGlow {
    0% { box-shadow: 0 0 15px rgba(201, 163, 0, 0.3); }
    50% { box-shadow: 0 0 35px rgba(201, 163, 0, 0.75); }
    100% { box-shadow: 0 0 15px rgba(201, 163, 0, 0.3); }
}

/* --- BOUTON FERMER --- */
.sicerond-btn-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #000000;
    border: 1px solid #ffd700;
    font-size: 20px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 28px;
    text-align: center;
    z-index: 20;
    transition: all 0.2s ease-in-out;
}
.sicerond-btn-close:hover {
    background: #ff4d4d;
    color: #fff;
    border-color: #ff4d4d;
    transform: scale(1.15) rotate(90deg);
}

/* --- BLOC EN-TÊTE POPUP --- */
.sicerond-header-title {
    position: relative;
    z-index: 5;
    border-bottom: 2px solid #c9a300;
    font-size: 20px;
    font-weight: 800;
    padding: 12px 45px 12px 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sicerond-header-date {
    font-size: 13px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #c9a300;
}

/* --- CORPS ET TEXTES POPUP --- */
.sicerond-body-flow {
    position: relative;
    z-index: 5;
    padding: 16px;
    margin: 15px;
    border: 1px solid rgba(201, 163, 0, 0.4);
    border-radius: 8px;
}

.sicerond-float-img {
    float: left !important;
    max-width: 220px;
    max-height: 220px;
    margin: 0 18px 12px 0 !important;
    border-radius: 10px;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    object-fit: cover;
}

.sicerond-txt-1 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sicerond-txt-2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.sicerond-txt-3 {
    font-size: 14px;
    line-height: 1.6;
}

.clear-flow { clear: both; }

/* --- CADRE DES TAGS --- */
.sicerond-tags-box-left {
    position: relative;
    z-index: 5;
    clear: both;
    display: inline-block;
    float: left;
    margin: 12px 0 10px 15px;
    padding: 8px 14px;
    border: 1px solid rgba(201, 163, 0, 0.5);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    max-width: calc(100% - 30px);
}

.sicerond-tag-chip, 
.audit-tag-badge, 
.tag-badge {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #c9a300 !important;
    background-color: rgba(218, 165, 32, 0.15) !important; /* <--- Version Or / Doré Discret (Dans l'esprit de la Console Royale) */
    color: #000000 !important;                  /* Force tous les caractères en noir pur */
    font-size: 12px !important;                 /* Taille idéale et lisible */
    font-weight: 600 !important;               /* Semi-gras pour un texte net et bien visible */
    padding: 5px 12px !important;              /* Espacement interne harmonieux */
    border-radius: 12px !important;
    margin: 3px 4px 3px 0 !important;
    text-shadow: none !important;              /* Supprimé pour un noir 100% net sans effet baveux */
    max-width: 100% !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}

/* --- COPYRIGHT --- */
.sicerond-copyright {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 10;
    background-color: rgba(128, 128, 128, 0.15) !important; /* <--- Un gris discret et passe-partout */
    color: #000000 !important;                  /* <--- Texte en noir pur pour une lisibilité totale */
    font-size: 11px !important;                 /* <--- Légèrement ajusté à 11px pour un meilleur confort */
    font-weight: 100 !important;               /* <--- Semi-gras pour remplacer le 100 trop fin et illisible */
    border: 1px solid #c9a300 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    text-shadow: none !important;              /* <--- Supprimé pour un rendu 100% net */
}

/* --- PARTICULES --- */
.anim-particles-wrapper {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    pointer-events: none !important;
    z-index: 2 !important;
    overflow: hidden !important;
}

.particle-item {
    position: absolute;
    top: -30px;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    animation: chuteParticule linear infinite;
}

@keyframes chuteParticule {
    0% { top: -5%; transform: rotate(0deg) translateX(0); opacity: 0; }
    15% { opacity: 0.85; }
    50% { transform: rotate(180deg) translateX(20px); }
    85% { opacity: 0.85; }
    100% { top: 95%; transform: rotate(360deg) translateX(-15px); opacity: 0; }
}
/* ============================================================
   [FIN FICHIER] template_sicerond_popup_2.php
   ============================================================ */

/* ============================================================
   CONSOLES ROYALE — FEUILLE DE STYLE CENTRALE (popup_style.css)
   Site : Sicerond-web.fr
   ============================================================ */


/* ============================================================
   [DÉBUT SECTION 1] — CONFIGURATION GLOBALE & BASE DU CORPS
   Fichiers concernés : TOUS (admin_index.php, admin_popup_mois.php, grand_nettoyage.php, etc.)
   ============================================================ */
body {
  background: #0b0b0f;
  color: #eee;
  font-family: Arial, sans-serif;
  padding: 30px;
  margin-left: 250px; /* Laisse l'espace pour le menu latéral fixe */
}

h1, h2, h3 {
  color: #ffd700;
}
/* ============================================================
   [FIN SECTION 1] — CONFIGURATION GLOBALE & BASE DU CORPS
   ============================================================ */


/* ============================================================
   [DÉBUT SECTION 2] — MENU LATÉRAL UNIVERSEL
   Fichiers concernés : TOUTES les pages d'administration
   ============================================================ */
#menu-lateral {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100%;
  background: #111;
  border-right: 2px solid #c9a300;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 1000;
}

#menu-lateral h3 {
  text-align: center;
  margin-top: 0;
  color: #ffd700;
}

#menu-lateral a {
  display: block;
  padding: 10px;
  margin: 8px 0;
  background: #222;
  color: #ffd700;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  transition: background 0.2s;
}

#menu-lateral a:hover {
  background: #333;
}
/* ============================================================
   [FIN SECTION 2] — MENU LATÉRAL UNIVERSEL
   ============================================================ */


/* ============================================================
   [DÉBUT SECTION 3] — CONTENEURS & BLOCS DE STATISTIQUES
   Fichiers concernés : admin_index.php & grand_nettoyage.php
   ============================================================ */
.container, .dashboard-summary {
  max-width: 1050px;
  background: #14141c;
  border: 2px solid #c9a300;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(201, 163, 0, 0.2);
  margin-bottom: 30px;
}

.stats-grid {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.stat-card, .stat-box {
  flex: 1;
  background: #1c1c24;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  min-width: 120px;
}

.stat-card .label, .stat-box div:first-child {
  font-size: 12px;
  color: #aaa;
}

.stat-card .number, .stat-box .nb {
  font-size: 22px;
  font-weight: bold;
  color: #ffd700;
  margin-top: 5px;
}
/* ============================================================
   [FIN SECTION 3] — CONTENEURS & BLOCS DE STATISTIQUES
   ============================================================ */


/* ============================================================
   [DÉBUT SECTION 4] — GRILLE DES OUTILS, CARTES & RECHERCHE AJAX
   Fichier concerné : admin_index.php (Tableau de bord principal)
   ============================================================ */
.grid-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.card-tool {
  background: #1c1c24;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s;
}

.card-tool:hover {
  border-color: #c9a300;
}

.card-go { border-left: 4px solid #00A86B; }
.card-attente { border-left: 4px solid #d35400; }

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.tool-title {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.tool-title:hover { text-decoration: underline; }

.tool-desc {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}

.tool-file {
  font-size: 11px;
  color: #666;
  font-family: monospace;
  background: #111;
  padding: 4px 6px;
  border-radius: 4px;
}

.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}
.badge-go { background: #1e4620; color: #a3e2a7; }
.badge-attente { background: #4a2e15; color: #ffda85; }

#search {
  width: 100%;
  padding: 12px;
  background: #1c1c24;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 25px;
  box-sizing: border-box;
}
/* ============================================================
   [FIN SECTION 4] — GRILLE DES OUTILS, CARTES & RECHERCHE AJAX
   ============================================================ */


/* ============================================================
   [DÉBUT SECTION 5] — CALENDRIER MENSUEL & TABLEAUX RÉCAPITULATIFS
   Fichier concerné : admin_popup_mois.php (Tour de Contrôle)
   ============================================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 30px;
}

.calendar-day-header {
  background: #1c1c24;
  color: #ffd700;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #333;
}

.calendar-cell {
  background: #191924;
  border: 1px solid #333;
  border-radius: 8px;
  min-height: 90px;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calendar-cell.has-event { border-color: #c9a300; background: #1f1f2e; }
.calendar-cell.empty { background: #111115; opacity: 0.4; }

.cell-date { font-weight: bold; color: #ffd700; font-size: 14px; }
.cell-content { font-size: 11px; color: #ccc; margin-top: 4px; overflow: hidden; max-height: 45px; }
.cell-link { font-size: 10px; text-align: right; display: block; color: #a3e2a7; text-decoration: none; font-weight: bold; }

table { width: 100%; border-collapse: collapse; margin-top: 15px; background: #15151f; border-radius: 6px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #333; font-size: 12px; }
th { background: #222; color: #ffd700; }
tr:hover { background: #1c1c24; }
/* ============================================================
   [FIN SECTION 5] — CALENDRIER MENSUEL & TABLEAUX RÉCAPITULATIFS
   ============================================================ */


/* ============================================================
   [DÉBUT SECTION 6] — BOUTONS D'ACTION & VALIDATION
   Fichiers concernés : grand_nettoyage.php, admin_popup_edit.php, etc.
   ============================================================ */
.btn-action, .btn-danger, .btn-warning {
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  font-size: 13px;
}
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #e53935; }

.btn-warning { background: #d35400; color: #fff; }
.btn-warning:hover { background: #e67e22; }
/* ============================================================
   [FIN SECTION 6] — BOUTONS D'ACTION & VALIDATION
   ============================================================ */


/* ============================================================
   [DÉBUT SECTION 7] — MESSAGES D'ALERTE, SUCCÈS, ERREURS & UTILITAIRES
   Fichiers concernés : grand_nettoyage.php, admin_index.php et formulaires
   ============================================================ */
.alert { padding: 12px; border-radius: 6px; margin-bottom: 20px; text-align: center; font-weight: bold; }
.success { background: #1e4620; color: #a3e2a7; border: 1px solid #2e7d32; }
.error { background: #4a1515; color: #f59c9c; border: 1px solid #c62828; }

.hidden { display: none !important; }
/* ============================================================
   [FIN SECTION 7] — MESSAGES D'ALERTE, SUCCÈS, ERREURS & UTILITAIRES
   ============================================================ */

/* ============================================================
   [DÉBUT SECTION 8] — RADAR À DOUBLONS & ALERTES SPÉCIFIQUES
   Fichier concerné : radar_doublons.php
   ============================================================ */
.container table code {
  background: #111;
  padding: 3px 6px;
  border-radius: 4px;
  color: #f59c9c;
  font-family: monospace;
}
/* ============================================================
   [FIN SECTION 8] — RADAR À DOUBLONS & ALERTES SPÉCIFIQUES
   ============================================================ */

/* ============================================================
   [DÉBUT SECTION 9] — FORMULAIRE D'ÉDITION DES POPUPS
   Fichier concerné : admin_popup_edit.php
   ============================================================ */

/* Styles généraux pour le formulaire d'édition */
.container {
    max-width: 850px;
    background: #14141c;
    border: 2px solid #c9a300;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(201, 163, 0, 0.2);
    margin: 0 auto;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #c9a300;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.action-buttons { 
    display: flex; 
    gap: 10px; 
}

.btn-preview {
    background: #28a745;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s;
}
.btn-preview:hover { background: #218838; }

.btn-automne {
    background: #d35400;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s;
}
.btn-automne:hover { background: #e67e22; }

.row { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 18px; 
}

.col { 
    flex: 1; 
}

.form-group { 
    margin-bottom: 18px; 
}

label { 
    display: block; 
    color: #ffd700; 
    font-weight: bold; 
    margin-bottom: 6px; 
}

input[type=text], 
input[type=date], 
input[type=datetime-local], 
input[type=number], 
textarea, 
select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1c1c24;
    color: #fff;
    box-sizing: border-box;
}

textarea { 
    height: 110px; 
    resize: vertical; 
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    height: 100%;
    box-sizing: border-box;
}

.checkbox-group input { 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
}

.btn-submit {
    background: #ffd700;
    color: #111;
    font-weight: bold;
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.btn-submit:hover { 
    background: #ffea80; 
}
/* ============================================================
   [FIN SECTION 9] — FORMULAIRE D'ÉDITION DES POPUPS
   ============================================================ */


/* ============================================================
   [DEBUT SECTION FUTURE] (Emplacement réservé pour un autre fichier)
   ============================================================ */
/* Insérez ici le CSS d'un futur fichier PHP */
/* ============================================================
   [FIN SECTION FUTURE]
   ============================================================ */