					/* Mon style de code format simple lisible bien structuré PDN-nexor-0/dev-web */
					

/* Reset et Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --bg-tertiary: #374151;
    --border-color: #4B5563;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --blue: #3B82F6;
    --blue-dark: #2563EB;
    --green: #10B981;
    --green-dark: #059669;
    --red: #EF4444;
    --yellow: #F59E0B;
    --purple: #8B5CF6;
    --orange: #F97316;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Page d'authentification */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1e3a8a 50%, var(--bg-primary) 100%);
    padding: 20px;
}

.auth-container {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 32px;
    color: var(--blue);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--blue-dark);
}

/* Inputs */
.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.input:focus {
    outline: none;
    border-color: var(--blue);
}

.input::placeholder {
    color: var(--text-secondary);
}

.input-color {
    height: 50px;
    cursor: pointer;
}

/* Boutons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: var(--green);
    color: white;
}

.btn-success:hover {
    background: var(--green-dark);
}

.btn-danger {
    background: var(--red);
    color: white;
    padding: 8px 12px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 24px;
    color: var(--blue);
    margin-bottom: 4px;
}

.header-left p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.nav-item {
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: inherit;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* Contenu principal */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.motivation-card {
    background: linear-gradient(135deg, #6B21A8 0%, #1e40af 100%);
    border: 1px solid #7C3AED;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.motivation-card h3 {
    font-size: 28px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--blue);
    border-radius: 12px;
    padding: 24px;
}

.guide-card h3 {
    color: var(--blue);
    margin-bottom: 16px;
}

.guide-card ol {
    padding-left: 20px;
}

.guide-card li {
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Grilles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-header span {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

/* Items de liste */
.list-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-custom.checked {
    background: var(--green);
    border-color: var(--green);
}

.list-item-content {
    flex: 1;
}

.list-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple);
}

.badge-green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

.list-item-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.list-item-title.completed {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.list-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.note-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.note-input {
    width: 80px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
}

/* Matière card */
.matiere-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.matiere-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.matiere-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.matiere-card h3 {
    font-size: 18px;
}

/* Emploi du temps */
.emploi-day {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.emploi-day h3 {
    color: var(--blue);
    margin-bottom: 16px;
}

.cours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.cours-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cours-time {
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 100px;
}

/* Objectifs */
.objectif-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.objectif-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--green);
    transition: width 0.3s;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    opacity: 0.5;
    margin-bottom: 16px;
}

/* ── Indicateur de statut (bulletin / notifs) ── */
.status-dot-notif {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--yellow);
    transition: background 0.3s, box-shadow 0.3s;
}

.status-dot-notif.active {
    background: var(--green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot-notif.inactive {
    background: var(--red);
}

/* ── Bulletin — barre de progression matière ── */
.bulletin-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.bulletin-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .navbar {
        padding: 0 16px;
    }

    .main-content {
        padding: 24px 16px;
    }

    .tab-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .list-item, .matiere-card {
    animation: fadeIn 0.3s ease-out;
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

.heart-pulse {
    animation: pulseHeart 2s infinite;
    transform-origin: center;
}

/* Utilities */
.text-blue   { color: var(--blue);   }
.text-green  { color: var(--green);  }
.text-red    { color: var(--red);    }
.text-yellow { color: var(--yellow); }
.text-purple { color: var(--purple); }
.text-orange { color: var(--orange); }

.mb-2 { margin-bottom: 8px;  }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px;     }
.mt-4 { margin-top: 16px;    }

/* ============================================
   WAVE
============================================ */ 
details.don-banner summary::-webkit-details-marker {
    display: none;
}
details.don-banner[open] summary i {
    color: var(--red);
    fill: var(--red);
}

.wave {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.w-panel {
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: center;
}

.w-header {
  background: #1EBEA5;
  padding: 16px;
  color: white;
}
.w-header h3 { font-size: 15px; margin-bottom: 4px; }
.w-header p  { font-size: 12px; opacity: 0.85; }

.w-body { padding: 16px; }
.w-body > p { font-size: 13px; color: #666; margin-bottom: 14px; }

.w-amounts { display: flex; gap: 8px; margin-bottom: 14px; }

.w-amt {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 12px;
  cursor: pointer;
}
.w-amt.w-sel {
  border-color: #1EBEA5;
  background: #e8faf8;
  color: #0d9a84;
  font-weight: 600;
}

.w-numero {
  font-size: 13px;
  color: #555;
  margin-bottom: 14px;
}

.w-cta {
  width: 100%;
  padding: 12px;
  background: #1EBEA5;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.w-cta:hover { background: #18a892; }

.w-note { font-size: 11px; color: #bbb; margin-top: 8px; }

#wave-thanks {
  display: none;
  padding: 28px 20px;
}
#wave-thanks p:first-child { font-size: 40px; }
#wave-thanks h3 { font-size: 16px; margin: 8px 0; color: #1a1a1a; }
#wave-thanks p  { font-size: 13px; color: #666; }


/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer-section h3 {
    color: var(--blue);
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--blue);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 4px 0;
}

.signature {
    color: var(--text-primary);
    font-size: 15px;
    margin-top: 8px;
}

.signature strong {
    color: var(--blue);
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 16px 16px;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}
