/* ============================================================ */
/* PRYLO - STYLE UNIQUE OPTIMISÉ (29/05/2026)                  */
/* ============================================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #F9F9F9;
    color: #5A6268;
    overflow-x: hidden;
}

.container {
    max-width: 95%;
    margin: 2rem auto;
    padding: 0 1rem;
    overflow-x: hidden;
}

/* ---------- TYPOGRAPHIE ---------- */
h1 {
    font-style: italic;
    font-family: 'JetBrains Mono', monospace;
}

/* ---------- LIENS & BOUTONS ---------- */
a {
    text-decoration: none;
    color: #6EC8C8;
}
a:hover { color: #FCED6A; }

.btn-back {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
}

.no-data {
    color: #999;
    font-style: italic;
}

/* ---------- NAVBAR (ancienne, conservée) ---------- */
.navbar {
    background: #ffe6e6;
    color: #5A6268;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 50px;
}
.navbar a {
    color: #5A6268;
    text-decoration: none;
    margin-left: 1rem;
}
.navbar a:hover { color: #FCED6A; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: bold;
}

/* ---------- THÈMES ---------- */
body.light { background: #F9F9F9; color: #5A6268; }
body.dark { background: #1a1a2e; color: #e0e0e0; }
body.dark .navbar { background: #16213e; }
body.dark .navbar a { color: #e0e0e0; }
body.dark .card, body.dark table { background: #0f3460; color: #e0e0e0; }
body.pastel { background: #fdf5e6; color: #5d4e3c; }
body.pastel .navbar { background: #D4B8D4; }
body.pastel .card, body.pastel table { background: #fff9ef; }

/* ---------- CARTES ---------- */
.card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card:hover { transform: translateX(5px); }

/* ---------- TABLEAUX ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
th {
    padding: 1rem;
    text-align: left;
    background: #d9c7d8;/*couleur entete tableau eleves*/
    color: white;
}
td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}
tr:nth-child(even) { background: #f8fafc; }

/* ---------- FORMULAIRES ---------- */
input, select, textarea {
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 0.5rem;
    width: 100%;
}
label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

/* ---------- FLASH MESSAGES ---------- */
.flash { padding: 0.75rem; margin-bottom: 1rem; border-radius: 10px; }
.flash-success { background: #F9B7B7; color: #5A6268; border-left: 4px solid #6EC8C8; }
.flash-error { background: #F68C79; color: white; border-left: 4px solid #FCED6A; }

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}
.progress-fill {
    background: #ffe6e6;
    height: 100%;
    border-radius: 10px;
    width: 0%;
}

/* ---------- SUIVI PERSONNALISÉ ---------- */
.eleve-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.2rem 0.2rem;
    font-size: 0.75rem;
}
.eleve-nom {
    flex: 1;
    font-weight: bold;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}
.eleve-tags {
    flex-shrink: 0;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: help;
    border-bottom: 1px dotted;
}
.eleve-link {
    text-decoration: none;
    color: #5A6268;
    display: block;
    border-radius: 6px;
    transition: all 0.2s;
}
.eleve-link:hover { background-color: #f0f0f0; }
.eleve-highlight {
    background-color: #FCED6A !important;
    border-radius: 8px;
    box-shadow: 0 0 0 2px #F68C79;
}
.eleve-highlight .eleve-nom {
    background-color: #FCED6A !important;
    font-weight: bold;
}

/* ---------- RENDEZ-VOUS ---------- */
.creneau-row {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.creneau-reserve { background: #F68C79 !important; color: white; border-left: 4px solid #FCED6A; }
.creneau-libre { background: #D4EDDA !important; border-left: 4px solid #6EC8C8; }

/* ---------- CHECKLISTS ---------- */
.checklist-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
    border-left: 4px solid #F67E00;
}
.checklist-card:hover { transform: translateX(5px); }
.lock-icon { font-size: 1.2rem; cursor: pointer; }

/* ---------- FOOTER ---------- */
.footer {
    text-align: center;
    padding: 2rem;
    color: #5A6268;
    font-size: 0.85rem;
    border-top: 1px solid #e0e7ed;
    margin-top: 3rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .navbar { padding: 1rem; flex-direction: column; gap: 1rem; }
    .logo { justify-content: center; width: 100%; }
    .container { padding: 0.5rem; }
}

/* ========== DASHBOARD - CARTES 3x3 ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 450px;
    margin: 0 auto;
}

.dashboard-card {
    aspect-ratio: 1 / 0.7;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.3rem;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Glassmorphism sur toutes les cartes métalliques (une seule définition) */
.card-bleu, .card-vert, .card-rouge, .card-orange, .card-turquoise,
.card-violet, .card-jaune, .card-mauve, .card-bleuclair {
    position: relative;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-blend-mode: overlay;
    opacity: *0.85;
    transition: all 0.2s;
}

.card-bleu:hover, .card-vert:hover, .card-rouge:hover,
.card-orange:hover, .card-turquoise:hover, .card-violet:hover,
.card-jaune:hover, .card-mauve:hover, .card-bleuclair:hover {
    transform: translateY(-4px) scale(1.02);
    backdrop-filter: blur(8px);
}

.dashboard-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    filter: brightness(1.08);
}
.dashboard-card:active { transform: translateY(-1px) scale(0.98); }
.dashboard-card-disabled {
    aspect-ratio: 1 / 0.7;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.3rem;
    opacity: 0.6;
    cursor: not-allowed;
    color: white;
}
.dashboard-icon { font-size: 1.2rem; }
.dashboard-label { font-size: 0.6rem; font-weight: 500; }

/* Smartphone */
@media (max-width: 480px) {
    .dashboard-grid { gap: 0.3rem; max-width: 100%; }
    .dashboard-card, .dashboard-card-disabled {
        aspect-ratio: 1 / 0.6;
        border-radius: 10px;
        padding: 0.2rem;
    }
    .dashboard-icon { font-size: 1rem; }
    .dashboard-label { font-size: 0.5rem; }
}

/* Couleurs cartes avec glassmorhism */
/* Élèves */
.card-bleu {
    background: rgba(44, 125, 160, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(44, 125, 160, 0.7);
}
/* Checklists */
.card-vert {
    background: rgba(230, 81, 0, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(230, 81, 0, 0.7);
}
/* TODO */
.card-rouge {
    background: rgba(245, 127, 23, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(245, 127, 23, 0.7);
}
/* Récompenses */
.card-orange {
    background: rgba(27, 94, 32, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(27, 94, 32, 0.7);
}
/* Échanges */
.card-turquoise {
    background: rgba(0, 105, 92, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(0, 105, 92, 0.7);
}
/* Orientation */
.card-violet {
    background: rgba(13, 71, 161, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(13, 71, 161, 0.7);
}
/* Suivi-prio */
.card-jaune {
    background: rgba(30, 136, 229, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(30, 136, 229, 0.7);
}
/* RDV */
.card-mauve {
    background: rgba(74, 20, 140, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(74, 20, 140, 0.7);
}
/* Calendar */
.card-bleuclair {
    background: rgba(173, 20, 87, 0.3) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(173, 20, 87, 0.7);
}


/* ---------- BOUTON MAGIQUE ---------- */
.magic-btn-dashboard {
    background: linear-gradient(135deg, #ec4899, #db2777, #be185d) !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.1rem 0.1rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    min-width: 240px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(236, 72, 153, 0.4);
}
.magic-btn-dashboard:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.5);
    background: linear-gradient(135deg, #f472b6, #ec4899, #db2777) !important;
}
.magic-btn-dashboard:active { transform: translateY(0px) scale(0.98); }

/* ---------- EN-TÊTE PRYLO (VERSION FINALE) ---------- */
.prylo-header {
    background: linear-gradient(135deg, rgba(44, 125, 160, 0.15), rgba(26, 90, 122, 0.1));
    backdrop-filter: blur(8px);
    border-radius: 0px 0px 24px 24px;
    padding: 0.4rem 1rem;
    margin: 10 20% 0.5rem 20%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.5);
    border: 1px solid rgba(44, 125, 160, 0.3);
    /*border-top: 2px solid rgba(255,255,255,0.6);*/
}
@media (max-width: 768px) {
    .prylo-header { margin: 0 2% 1rem 2%; }
}

/* Layout de l'en-tête */
.header-grid {
    display: flex;
    align-items: stretch;
    gap: 0.2rem;
}
.logo-col {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
}
/*taille logo PRYLO POUR PC*/
.logo-img {
    height: 75px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.controls-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end; 
    gap: 0.5rem;
    flex: 1;
}
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
.icon-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5A6268;
    transition: all 0.2s;
}
.icon-btn:hover {
    background: rgba(0,0,0,0.05);
    transform: scale(1.05);
}

/* Sélecteur de classe - taille unique */
.classe-wrapper {
    width: auto;
    min-width: auto;
    flex-shrink: 0;
}
.classe-select {
    width: 80px !important;
    padding: 0.2rem 0.2rem !important;
    font-size: 1rem !important;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(44, 125, 160, 0.4);
    background: rgba(255,255,255,0.9);
    cursor: pointer;/*mais qui apparait*/
}
@media (max-width: 600px) {
    .classe-select {
        width: 65px !important;
        font-size: 0.55rem !important;
        padding: 0.15rem 0.25rem !important;
    }
}

.magic-row {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ---------- SMART RESPONSIVE ---------- */
@media (max-width: 768px) {
    .header-grid {
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .logo-col { align-items: center; }
    .controls-col { flex: 1; justify-content: center; }
    .action-buttons { justify-content: flex-end; }
    .classe-wrapper { width: auto; }
    .logo-img {height: 48px;}
}

/* ========== CHECKLISTS ========== */
.checklist-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
}

.checklist-card:hover {
    transform: translateX(5px);
}

.super-check {
    background: #27ae60;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: #F67E00;
    height: 100%;
    border-radius: 10px;
    width: 0%;
}

.lock-icon {
    font-size: 1.2rem;
    cursor: pointer;
}
.checklist-card.complete { background: #F9B7B7; border-left: 4px solid #6EC8C8; }

/* ========== MATRICE EISENHOWER - STYLES ========== */

/* Quadrants avec ombre et filet */
.quadrant-card {
    border-left: 4px solid;
    border-radius: 16px;
    padding: 1rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;}

.quadrant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Couleurs des filets pour chaque quadrant */
.quadrant-card[data-quadrant="1"] {
    border-left-color: #ff6b6b;
}
.quadrant-card[data-quadrant="2"] {
    border-left-color: #4dabf7;
}
.quadrant-card[data-quadrant="3"] {
    border-left-color: #ffa94d;
}
.quadrant-card[data-quadrant="4"] {
    border-left-color: #69db7e;
}

/* Bouton TODO */
.btn-todo-add {
    background: #43A047 !important;
    transition: background 0.2s;
}

.btn-todo-add:hover {
    background: #e09e1a !important;
}

/* ---------- STANDALONE (présentation) ---------- */
.standalone-body {
    margin: 0;
    padding: 0;
    background: #1a1a2e;
    color: white;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.standalone-container {
    text-align: center;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.standalone-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    z-index: 1000;
    transition: all 0.2s;
}

.standalone-close:hover {
    background: #F68C79;
    transform: scale(1.05);
}

.standalone-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #FCED6A;
}

.standalone-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #95a5a6;
}

.standalone-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.standalone-item {
    background: rgba(255,255,255,0.1);
    border-radius: 60px;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.standalone-rank {
    font-size: 1.5rem;
    font-weight: bold;
    width: 60px;
    text-align: center;
}

.standalone-name {
    flex: 1;
    text-align: left;
    margin-left: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.standalone-score {
    font-size: 1rem;
}

.standalone-medal-gold { background: linear-gradient(135deg, #FCED6A, #F9B7B7); color: #5A6268; }
.standalone-medal-silver { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #5A6268; }
.standalone-medal-bronze { background: linear-gradient(135deg, #cd7f32, #b87333); color: white; }
.standalone-medal-other { background: rgba(255,255,255,0.1); color: white; }

.standalone-update {
    margin-top: 2rem;
    background: #ffe6e6;
    color: #5A6268;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.standalone-update:hover {
    background: #FCED6A;
}
/* Bouton verrouillage */
.btn-lock {
    background: #43A047 !important;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-lock:hover {
    background: #2e7d32 !important;
}

/* Bouton présentation (icône seulement) */
.btn-presentation {
    background: #F67E00;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-presentation:hover {
    background: #2e7d32;
    transform: scale(1.05);
}

/* Page Élèves – responsive et compacte */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: white;
    }
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        border-bottom: 1px solid #e2e8f0;
    }
    td:last-child {
        border-bottom: none;
    }
    td::before {
        content: attr(data-label);
        font-weight: bold;
        width: 40%;
        color: #4a627a;
    }
    /* Ajout des labels pour chaque colonne */
    td:nth-of-type(1)::before { content: "👥 Élève"; }
    td:nth-of-type(2)::before { content: "🔔 Alertes"; }
    td:nth-of-type(3)::before { content: "👨‍👩‍👧 Parent"; }
    td:nth-of-type(4)::before { content: "📍 Adresse"; }
    td:nth-of-type(5)::before { content: "Actions"; }
}

fond pour fiche leve ds ELEVES sur un smartphone (un autre tablkeau sur pc)
.fiche-eleve {
  background-color: #e8e8e8;
  border-radius: 15px;
  padding: 20px;
  margin: 15px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}
/* Page Élèves : en-têtes rouges */
.eleves-table th {
    background: #CF2C27 !important;
    color: white;
}
/* Cartes des listes prioritaires (suivi-prio + échanges) */
.liste-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #3898EB;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0.5rem;
}
.liste-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(56, 152, 235, 0.2);
}
/* ========== RENDEZ-VOUS ========== */
.creneau-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #6A1C9A;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.creneau-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(106, 28, 154, 0.2);
}
.creneau-card.reserve {
    border-left-color: #e74c3c;
}
.creneau-card.libre {
    border-left-color: #6A1C9A;
}
.btn-rdv {
    background: #6A1C9A;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-rdv:hover {
    background: #551a7a;
}

/* ========== SESSIONS RDV ========== */
.session-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #6A1C9A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.session-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(106, 28, 154, 0.2);
}
.session-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.session-info {
    margin: 0.2rem 0;
    color: #4a627a;
}
.session-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-view, .btn-edit, .btn-delete {
    border: none;
    border-radius: 30px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    color: white;
}
.btn-view, .btn-edit {
    background: #6A1C9A;
}
.btn-view:hover, .btn-edit:hover {
    background: #551a7a;
}
.btn-delete {
    background: #e74c3c;
}
.btn-delete:hover {
    background: #c0392b;
}
/* Ligne de créneau dans le formulaire d'ajout */
.creneau-row {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-left: 4px solid #6A1C9A;
    transition: transform 0.2s;
}
.creneau-row:hover {
    transform: translateX(3px);
}
/* ========== VISUALISATION D’UNE SESSION RDV ========== */
.rdv-view-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #6A1C9A;
}
.rdv-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.rdv-view-title {
    margin: 0;
    color: #1a5a7a;
}
.rdv-view-actions {
    display: flex;
    gap: 0.8rem;
}
.btn-rdv-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.2s;
}
.btn-rdv-secondary:hover {
    background: #7f8c8d;
}
/* ========== CALENDRIER ========== */
.fc .fc-toolbar-title {
    color: #D5306D;
}
.fc .fc-button-primary {
    background-color: #D5306D !important;
    border-color: #D5306D !important;
}
.fc .fc-button-primary:hover {
    background-color: #b82459 !important;
    border-color: #b82459 !important;
}
.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(213, 48, 109, 0.1) !important;
}

/* Événements par défaut : couleur plus claire (sans opacité) */
.fc .fc-event {
    border-color: #D5306D !important;
    background-color: #ffb3d1 !important;  /* Rose clair */
}

/* Les événements avec une couleur personnalisée garderont leur propre background (défini en inline) */
.fc .fc-event[style*="background-color"] {
    /* Ne pas surcharger les couleurs personnalisées */
    background-color: inherit !important;
}

/* Grossir les puces */
.fc-daygrid-event-dot {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    margin-right: 6px !important;
}
.fc-event-title {
    font-size: 0.9rem;
}
/* Texte des événements du calendrier : rose fuschia foncé */
.fc .fc-event .fc-event-title {
    color: #8a0c3f !important;
    font-weight: 500;
}
/* Titre des événements : rose foncé, gras, taille +2px */
.fc .fc-event .fc-event-title {
    color: #8a0c3f !important;
    font-weight: bold !important;
    font-size: 1.05rem !important;  /* augmente d’environ 2px par rapport à la taille normale */
}

/* Heure des événements : rouge foncé */
.fc .fc-event .fc-event-time {
    color: #b22222 !important;      /* rouge foncé (firebrick) */
    font-weight: 500;
}
/* ========== BANDEAU DE PRÉSENTATION DES PAGES - COMPACT ========== */
.page-presentation {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,245,245,0.8));
    border-radius: 20px;
    padding: 0.1rem 0.6rem !important;     /* très compact */
    margin-bottom: 1.5rem !important;      /* plus d'espace avec le contenu suivant */
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--page-color, #CF2C27);
}

.page-presentation-text {
    color: #2d3748;
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0.3rem 0;
}
/* ========== PAGE ORIENTATION ========== */
.voeux-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.voeu-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid;
}
.voeu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}
.voeu-texte {
    font-size: 0.65rem;
    margin-right: 0.3rem;
}
.voeu-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 0.2rem;
}
.voeu-statut {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 0.3rem;
    cursor: pointer;
}
.voeu-statut[data-statut="vert"] { background-color: #27ae60; }
.voeu-statut[data-statut="orange"] { background-color: #f39c12; }
.voeu-statut[data-statut="rouge"] { background-color: #e74c3c; }
.voeu-content[data-statut="vert"] { border-left-color: #27ae60; }
.voeu-content[data-statut="orange"] { border-left-color: #f39c12; }
.voeu-content[data-statut="rouge"] { border-left-color: #e74c3c; }


.btn-add-voeu {
    background: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn-add-voeu:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.05);
}


/* Drag & Drop des voeux dans orientation*/
.voeu-item.dragging {
    opacity: 0.4;
}
.voeu-item.drag-over {
    border-top: 2px solid #8E44AD;
}

/* Ajout de la pastille blanche */
.voeu-statut[data-statut="blanc"] { background-color: white; border: 1px solid #ccc; }
.voeu-content[data-statut="blanc"] { border-left-color: #ccc; }

/* ========== PAGE PARAMÈTRES ========== */
.param-section {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #6A1C9A;
}
.param-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.specialites-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
}
.specialites-table th {
    background: #8E44AD;
    color: white;
    padding: 0.8rem;
    text-align: left;
}
.specialites-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}
.specialites-table tr:hover {
    background: #f1f5f9;
}
.specialite-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.param-actions {
    text-align: right;
    margin-top: 1rem;
}
.btn-save-specialites {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-save-specialites:hover {
    background: #219a52;
}
/*pour image de fond derriere les 9 boutons*/
#zone2 {
    background-image: url('/projet100/static/fond1.jpg');
    background-size: cover;
    background-position: center;
}


.dashboard-zone {
    border-radius: 20px;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
   /* background-image: url('/projet100/static/fond1.jpg');*/
    background-size: cover;
    background-position: center;
}

.dashboard-card {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.dashboard-card:hover {
    backdrop-filter: blur(8px);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* Grille moderne pour les spécialités */
.specialites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.specialite-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}
.specialite-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
    border-color: #6EC8C8;
}
.specialite-card input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6EC8C8;
}
.specialite-card label {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    margin: 0;
    padding: 0.5rem 0;
}

/* ========== CHECKLIST ÉDITION ========== */
.checklist-edit-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checklist-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checklist-edit-header h2 {
    margin: 0;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffecb3;
    color: #856404;
}

.btn-unlock {
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-unlock:hover {
    background: #e67e22;
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #F67E00;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: border 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #F67E00;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-save, .btn-save-exit, .btn-cancel {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-save {
    background: #F67E00;
    color: white;
}

.btn-save:hover {
    background: #e06e00;
    transform: translateY(-2px);
}

.btn-save-exit {
    background: #27ae60;
    color: white;
}

.btn-save-exit:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #95a5a6;
    color: white;
}

.btn-cancel:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.eleves-section {
    margin-top: 1.5rem;
}

.eleves-section h3 {
    margin-bottom: 1rem;
}

.eleves-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.eleve-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    border-left: 3px solid #F67E00;
}

.eleve-card:hover {
    background: #f1f5f9;
    transform: translateX(3px);
}

.eleve-info {
    flex: 1;
    font-size: 0.9rem;
}

.date-badge {
    font-size: 0.65rem;
    color: #888;
    margin-left: 0.3rem;
}

.eleve-check {
    flex-shrink: 0;
}

.check-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: all 0.1s;
}

.check-btn:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.05);
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-fait {
    background: #27ae60;
    color: white;
}

.status-nonfait {
    background: #95a5a6;
    color: white;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #3498db;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive smartphone */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .eleves-grid {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .form-actions a, .form-actions button {
        text-align: center;
    }
    .checklist-edit-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
/* Bandeau glassmorphism avec image de fond */
.page-presentation {
    background-image: url('/projet100/static/fond1.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(4px);
    border-left: 4px solid var(--page-color, #F67E00);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-presentation-text {
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: white;
    font-weight: 500;
}
/* Bandeau glassmorphism avec image de fond */
.page-presentation {
    background-image: url('/projet100/static/fond1.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(4px);
    border-left: 4px solid var(--page-color, #F67E00);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-presentation-text {
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: white;
    font-weight: 500;
}
.glass-text {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
}

.glass-text h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.glass-text p {
    margin: 0.3rem 0 0 0;
    font-size: 0.85rem;
    color: #4a5568;
}

/* ========== BANDEAU GLASSMORPHISM DÉDIÉ ========== */
.glass-band {
    background-image: url('/projet100/static/fond1.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========== BANDEAU GLASS AVEC PASTILLES CONTRASTÉES ========== */
.glass-band {
    background-image: url('/projet100/static/fond1.jpg');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-band h2 {
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-blend-mode: overlay;
    opacity: *0.85;
    transition: all 0.2s;
    border-radius: 10px;
    margin: 0.1rem;
    color: white; /*OK texte blanc des TITRES des pages html*/
}

.glass-band p {
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-blend-mode: overlay;
    opacity: *0.85;
    transition: all 0.2s;
    border-radius: 10px;
    color: white; /*OK texte blanc des TITRES des pages html*/
}
/*pour bouton supprimer classe dans parametres*/
.btn-delete-classe {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.7rem;
}
.btn-delete-classe:hover {
    background: #c0392b;
}
/* ========== BOUTONS UNIFORMISÉS ========== */

/* Ajouter : bleu électrique */
.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #3498db;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn-add:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Supprimer : rouge */
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #e74c3c;
    color: white;
}
.btn-delete:hover {
    background: #c0392b;
    transform: scale(1.02);
}

/* Modifier : gris */
.btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #95a5a6;
    color: white;
}
.btn-edit:hover {
    background: #7f8c8d;
    transform: scale(1.02);
}

/* Standalone (présentation) : blanc avec bordure */
.btn-standalone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #333;
}
.btn-standalone:hover {
    background: #f8f9fa;
    transform: scale(1.02);
}

/* ========== PAGE ORIENTATION : RESPONSIVE SMARTPHONE ========== */
@media (max-width: 768px) {
    .orientation-table, .orientation-table thead, .orientation-table tbody, .orientation-table tr, .orientation-table th, .orientation-table td {
        display: block;
    }
    .orientation-table thead {
        display: none;
    }
    .orientation-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 0.5rem;
        background: white;
    }
    .orientation-table td {
        position: relative;
        padding: 0.5rem 0.5rem 0.5rem 45%;
        text-align: left;
        border-bottom: 1px solid #e2e8f0;
    }
.orientation-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: #4a627a;
    margin-bottom: 0.3rem;
}

}
