/* Fond général */
body {
    background-color: #f5f6fa;
    color: #333333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Carte profil */
.profile-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Image profil */
.profile-image-wrapper {
    display: flex;
    justify-content: center;
}

.profile-img {
    border: 3px solid #cccccc;
    transition: transform 0.3s;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Titre du profil */
.card-title {
    font-weight: 600;
    color: #222222;
}

/* Zone de texte libre */
.profile-bio {
    font-size: 0.95rem;
    color: #555555;
}

/* Boutons */
.btn-primary {
    background-color: #4a90e2;
    border-color: #4a90e2;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #242222;
    border-color: #e74c3c;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-danger:hover {
    background-color: #140705;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #050505;
    color: #888888;
}


body {
    background: radial-gradient(circle at top, #151727 0, #050509 50%, #020203 100%);
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* Conteneur principal */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

/* Cartes */
.card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 24px 22px;
    color: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

/* En-têtes de cartes */
.card-title {
    color: #f9fafb;
    font-weight: 600;
}

/* Champ texte / inputs */
textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    min-height: 140px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    resize: vertical;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, transform 0.08s ease;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    min-height: auto;
}

textarea::placeholder,
input::placeholder {
    color: #6b7280;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
    background: #020617;
    transform: translateY(-1px);
}

/* Labels */
.form-label {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

/* Boutons génériques */
.btn-primary,
.btn-danger,
.btn-secondary,
button,
a.btn-primary,
a.btn-danger {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
}

/* Bouton principal */
.btn-primary,
a.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #f9fafb;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.45);
}

/* Bouton danger */
.btn-danger,
a.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #f9fafb;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.45);
}

/* Bouton secondaire (dropdown) */
.btn-secondary {
    background: rgba(30, 64, 175, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(129, 140, 248, 0.6);
}

/* Effets hover / active */
.btn-primary:hover,
.btn-danger:hover,
.btn-secondary:hover,
a.btn-primary:hover,
a.btn-danger:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.8);
}

.btn-primary:active,
.btn-danger:active,
.btn-secondary:active,
a.btn-primary:active,
a.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.7);
}

/* Message validation / erreur */
.message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #4ade80;
}

/* Liste des notes */
.notes-list {
    margin-top: 20px;
}

/* Cartes de notes (fond coloré suivant ta logique PHP) */
.card.notes-list {
    border-radius: 16px;
    border: none;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

/* Couleurs texte pour les notes en fonction des backgrounds bootstrap que tu utilises déjà */
.card.notes-list h4,
.card.notes-list p,
.card.notes-list h1 {
    margin: 0;
}

/* Titre de la note dans la liste */
.card.notes-list h1.card-title {
    font-size: 1.4rem;
}

/* Boutons dans les cartes notes */
.card.notes-list .btn-primary,
.card.notes-list .btn-danger {
    margin-top: 8px;
}

/* Dropdown couleurs */
.dropdown-menu {
    background: #020617;
    border-radius: 12px;
    border: 1px solid rgba(55, 65, 81, 0.8);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65);
}

.dropdown-menu .btn {
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Profil dropdown */
#profilePanel {
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

#profilePanel a {
    background: #111827;
    color: #e5e7eb;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#profilePanel a:hover {
    background: #1f2937;
}

/* Bouton icône profil */
#profileToggle {
    border-radius: 999px;
    transition: background-color 0.12s ease, transform 0.08s ease;
}

#profileToggle:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

/* Focus */
button:focus,
.btn-primary:focus,
.btn-danger:focus,
.btn-secondary:focus,
a.btn-primary:focus,
a.btn-danger:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.8) !important;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Responsive */
@media (max-width: 576px) {
    .container {
        margin-top: 20px;
    }

    .card {
        padding: 18px 16px;
    }

    .card.notes-list h1.card-title {
        font-size: 1.15rem;
    }

    .card.notes-list h4.card-title {
        font-size: 0.9rem;
    }
}
