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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748; 
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Styles pour les pages */
.page-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-header h1 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.page-header p {
    color: #718096;
    font-size: 1.1rem;
    margin: 0;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styles pour les gazettes */
.gazette-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gazette-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.gazette-info h2 {
    color: #2d3748;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.gazette-info h5 {
    color: #718096;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.pdf-download-section {
    flex-shrink: 0;
}

.btn-download-pdf {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Messages de la gazette */
.gazette-messages {
    display: grid;
    gap: 20px;
}

.message-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.message-info h4 {
    color: #2d3748;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.message-date {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.message-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.message-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
}

/* Styles pour les boutons admin */
.admin-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.admin-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.admin-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.admin-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.admin-btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.admin-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.admin-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.admin-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.admin-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.admin-btn-super {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.admin-btn-super:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Styles pour les formulaires */
.create-message-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-success:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Styles pour les posts */
.post {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.post-info h4 {
    color: #2d3748;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.post-date {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.post-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-image {
    max-width: 100%;
        height: auto;
    border-radius: 10px;
    margin-top: 15px;
    }
    
.post-actions {
        display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Styles pour les sections pliables */
.collapsible-section {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.collapsible-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
        align-items: center;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.collapsible-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.collapsible-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.collapsible-section.collapsed .collapsible-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    padding: 25px;
        display: none;
    }
    
.collapsible-section:not(.collapsed) .collapsible-content {
    display: block;
}

/* Styles pour les semaines pliables */
.weeks-collapsible-section {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.weeks-collapsible-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.weeks-collapsible-header:hover {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.weeks-collapsible-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.weeks-collapsible-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.weeks-collapsible-section.collapsed .weeks-collapsible-icon {
    transform: rotate(-90deg);
}

.weeks-collapsible-content {
    padding: 25px;
    display: none;
}

.weeks-collapsible-section:not(.collapsed) .weeks-collapsible-content {
    display: block;
}

/* Styles pour l'aide */
.help-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.help-messages {
    background: white;
    padding: 25px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.help-form-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Styles pour les alertes */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert.info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Styles pour les boutons d'édition et suppression */
.btn-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Styles pour les formulaires d'édition */
.edit-form {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

/* Styles pour les textareas */
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-count {
    text-align: right;
    color: #718096;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Styles pour la pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-container a,
.pagination-container span {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-container a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.pagination-container a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination-container span {
    background: #e2e8f0;
    color: #4a5568;
}

/* Styles pour les tableaux admin */
.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.admin-users-table th,
.admin-users-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-users-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

.admin-users-table tr:hover {
    background: #f8fafc;
}

/* Styles pour les avatars */
.avatar-form {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    margin: 10px 0;
}

/* Styles pour les sections d'email et d'info utilisateur */
.email-section,
.user-info {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.danger-zone {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.danger-zone h3 {
    color: #dc2626;
        margin-bottom: 15px;
    }
    
/* Styles pour les compteurs de posts */
.post-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Styles pour les boutons de toggle de texte */
.btn-toggle-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 10px;
}

.btn-toggle-text:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Styles pour les posts non publiés et publiés */
.unpublished-post {
    border-left: 4px solid #f59e0b;
}

.published-post {
    border-left: 4px solid #10b981;
}




