/* Fichier CSS globale partagé */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  	overflow-x: hidden;
}
body {
    font-family: Arial, sans-serif;
    background-image: url('../images/bannierekiva.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

p {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
}

.navbar {
    background: transparent;
    color: white;
    box-shadow: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(1px);
}
.navbar a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    margin: 0 0.75rem;
    display: inline-block;
    text-align: center !important;
    padding: 0.25rem 0.5rem;
}
.brand img {
    height: 50px;
}

footer {
    margin-top: auto;
    position: relative;
}

.main-content {
    margin-top: 100px;
    text-align: center;
    flex: 1;
}
.main-content h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}
.main-content p.lead {
    color: white;
    font-size: 24px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.hero {
    margin-top: 80px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.8);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero img,
.partner-logo {
    width: 150px;
    height: auto;
    margin: 20px;
}

.footer-content {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.highlight-green { color: #2ecc71; font-weight: bold; }
/*Nos Actions*/

/* Cartes actions */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px auto;
    padding: 0 10px;
}
.action-card {
    width: 18rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    margin: 20px;
}

.modal-dialog-centered { 
display: flex; align-items: center; justify-content: center;
}

.btn-margin-top { margin-top: 10px; }

/* Contact page */
.contact-box {
    margin-top: 80px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.8);
    padding: 80px;
    border-radius: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 30px 0;
    height: 60px;
}
.social-icons img { width: 60px; height: 60px; transition: transform 0.3s ease; }
.social-icons a:hover img { transform: scale(1.1); }
.social-links { display: flex; justify-content: center; gap: 30px; margin: 20px 0; }
.social-links p { margin: 0; padding: 10px 20px; background: rgba(0,0,0,0.1); border-radius: 5px; }
.logo { height: 40px; display: flex; justify-content: center; margin: 30px 0; }
.phone-3d { display: flex; justify-content: center; animation: rotatePhone 10s linear infinite; }
.phone-3d img { width: 150px; height: auto; }

@keyframes rotatePhone { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* Registration page */
.registration-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    margin: 100px auto;
    width: 100%;
    box-sizing: border-box;
}
.registration-form h2 { text-align: center; margin-bottom: 20px; }
.registration-form input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.registration-form button { width: 100%; padding: 10px; background-color: #28a745; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.registration-form button:hover { background-color: #218838; }
.message { text-align: center; margin-bottom: 1rem; padding: 10px; border-radius: 4px; font-weight: bold; }
.error { color: #e74c3c; background-color: #fadbd8; border: 1px solid #e74c3c; }
.success { color: #2ecc71; background-color: #d4edda; border: 1px solid #2ecc71; }
.login-link { text-align: center; margin-top: 15px; font-size: 14px; }
.login-link a { color: #28a745; text-decoration: none; font-weight: bold; }
.login-link a:hover { text-decoration: underline; }

/* Login page */
.login-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.login-form { background: rgba(255,255,255,0.9); padding: 20px; border-radius: 8px; max-width: 400px; width: 100%; box-sizing: border-box; }
.login-form h2 { text-align: center; margin-bottom: 20px; }
.login-form input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; }
.login-form button { width: 100%; padding: 10px; background-color: #28a745; color: white; border: none; border-radius: 4px; font-size: 16px; }
.login-form button:hover { background-color: #218838; }
.register-link { text-align: center; margin-top: 15px; font-size: 14px; }
.register-link a { color: #28a745; text-decoration: none; font-weight: bold; }
.register-link a:hover { text-decoration: underline; }

/* Page forget_password.php */
.forget-password-container {display: flex; justify-content: center; align-items: center; min-height: 80vh; margin-top: 10px;}
.forget-password-form { background: rgba(255,255,255,0.9); padding: 20px; border-radius: 8px; max-width: 400px; width: 100%; box-sizing: border-box; }
.forget-password-form h2 { text-align: center; margin-bottom: 20px; }
.forget-password-form input { width: 100%; padding: 60px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; }
.forget-password-form button { width: 100%; padding: 10px; background-color: #28a745; color: white; border: none; border-radius: 4px; font-size: 16px; }
.forget-password-form button:hover { background-color: #218838; }
.login-link { text-align: center; margin-top: 15px; font-size: 14px; }
.login-link a { color: #28a745; text-decoration: none; font-weight: bold; }
.login-link a:hover { text-decoration: underline; }

/* Maraudes page specifics */
.maraude-card { background: rgba(255,255,255,0.9); margin: 20px; }
.card.custom { background: rgba(255, 255, 255, 0.9); border: none; border-radius: 15px; padding: 0; text-align: left; }
.card-img-top { width: 100%; height: 180px; object-fit: cover; border-top-left-radius: 0px; border-top-right-radius: 0px; display: block; }
.card-title { font-size: 24px; margin-bottom: 15px; }
.card-text { font-size: 16px; margin-bottom: 20px; }
.btn-primary.custom { background-color: #007bff; border: none; padding: 10px 20px; border-radius: 5px; color: white; text-decoration: none; }
.btn-primary.custom:hover { background-color: #0056b3; }

/* Modal sizing for maraude videos */
.modal-dialog.modal-dialog-centered { max-width: 600px; }

/* Legal / policy page */
.main-title { margin-top: 120px; text-align: center; color: white; font-weight: bold; }
.card-legal { background: rgba(255,255,255,0.92); border-radius: 20px; padding: 40px; max-width: 1000px; margin: 40px auto; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.card-legal h2 { margin-top: 30px; font-weight: bold; }

/* Pop-up de cookies - RGPD */
/* Overlay */
.cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.cookie-overlay.active {
    display: block;
}

/* Pop-up de cookies */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 25px;
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

.cookie-consent.active {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.cookie-consent h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-consent p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-consent a {
    color: #2196F3;
    text-decoration: none;
}

.cookie-consent a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-button.accept {
    background: #4CAF50;
    color: white;
}

.cookie-button.accept:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.cookie-button.refuse {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-button.refuse:hover {
    background: #e0e0e0;
}

/* page inscription.php */
.inscription-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    margin: 30px auto;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border-left: 3px solid #4bea2b;
}

.checkbox-line input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    margin-top: 3px !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: white;
    border: 2px solid #9bee6d;
    border-radius: 4px;
    padding: 0 !important;
}

.checkbox-line input[type="checkbox"]:checked {
    background: #4bea2b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-line input[type="checkbox"]:hover {
    box-shadow: 0 2px 6px rgba(224, 92, 0, 0.2);
}

.checkbox-line label {
    font-weight: normal !important;
    margin-top: 0 !important;
    cursor: pointer;
    line-height: 1.4;
}

/* Formulaire inscription */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100% !important;
    padding: 12px !important;
    margin-top: 8px !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none ;
    border-color: #4bea2b !important;
    box-shadow: 0 0 8px rgba(224, 92, 0, 0.2) !important;
}

label {
    display: block !important;
    margin-top: 20px !important;
    font-weight: bold !important;
    color: #333 !important;
}

textarea {
    height: 100px !important;
    resize: vertical !important;
}

/* Bouton submit */
button[type="submit"] {
    margin-top: 32px !important;
    padding: 14px 40px !important;
    background: linear-gradient(135deg, #4bea2b 0%, #4bea2b 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(224, 92, 0, 0.2) !important;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #60ef43 0%, #60ef43 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(224, 92, 0, 0.4) ;
}

button[type="submit"]:active {
    transform: translateY(0) !important;
}

.alerte,
.succes,
.erreur {
    padding: 14px 16px !important;
    margin: 16px 0 !important;
    border-radius: 6px !important;
    border-left: 4px solid !important;
    font-weight: 500 !important;
}

.alerte {
    background: #fff3cd !important;
    border-left-color: #f0ad4e !important;
    color: #856404 !important;
}

.succes {
    background: #d4edda !important;
    border-left-color: #28a745 !important;
    color: #155724 !important;
}

.erreur {
    background: #f8d7da !important;
    border-left-color: #dc3545 !important;
    color: #721c24 !important;
}

.retour {
    display: inline-block !important;
    margin-bottom: 16px !important;
    color: #050f05 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
}

.retour:hover {
    color: #403f4a !important;
    margin-left: 5px;
}

/* Page dons.php */
.donation-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.donation-intro {
    text-align: center;
    margin-bottom: 50px;
}

.donation-title {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #191009 !important;
    margin-bottom: 16px !important;
}

.donation-description {
    font-size: 16px !important;
    color: #555 !important;
    line-height: 1.7 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

.donation-section h2 {
    text-align: center !important;
    margin: 40px 0 30px 0 !important;
    font-size: 26px !important;
    color: #333 !important;
    font-weight: bold !important;
}

.donation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.donation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #45a049 0%, #45a040 100%);
    border-radius: 16px;
    text-decoration: none !important;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(224, 92, 0, 0.2);
    cursor: pointer;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 0;
}

.donation-card:hover::before {
    left: 100%;
}

.donation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(5, 48, 165, 0.35);
    
}

.donation-amount {
    font-size: 50px !important;
    font-weight: bold !important;
    z-index: 1;
    margin-bottom: 8px;
}

.donation-card p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    z-index: 1;
    margin: 0 !important;
}

.donation-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e05c0020;
    font-size: 14px;
    color: #777 !important;
}

/* Icônes oeil pour mot de passe */
.password-wrapper {
    position: relative !important;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 45px !important;
}

.password-toggle-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    font-size: 20px !important;
    user-select: none !important;
    z-index: 10 !important;
    line-height: 1 !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease !important;
}

.password-toggle-icon:hover {
    opacity: 1 !important;
}

/* ===========================
   PAGE ADMIN ADHESIONS
   =========================== */

/* Wrapper principal admin */
.admin-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero admin */
.admin-hero {
    margin-top: 100px;
    text-align: center;
}

.admin-hero h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.hero .subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Stats badge */
.stats {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    background: linear-gradient(135deg, #28a745, #20c997);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    text-align: center;
    color: white;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grille des demandes */
.demandes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

/* Cartes demandes */
.demande-card {
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.demande-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* Header de la carte avec avatar */
.demande-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.demande-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.demande-name-wrapper {
    flex: 1;
    min-width: 0;
}

.demande-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.demande-date {
    font-size: 0.85rem;
    color: #888;
}

/* Infos de la demande */
.demande-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 10px;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
}

.info-value {
    color: #333;
    font-size: 0.95rem;
    text-align: right;
    word-break: break-word;
}

.info-value a {
    color: #007bff;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Boutons actions */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-valider {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-valider:hover {
    background: linear-gradient(135deg, #218838, #1ab386);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-refuser {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-refuser:hover {
    background: linear-gradient(135deg, #c82333, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-email {
    background: linear-gradient(135deg, #007bff, #6c63ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-email:hover {
    background: linear-gradient(135deg, #0056b3, #5a52d5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    margin: 30px 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    font-size: 1rem;
}

/* Messages de succès/erreur */
.success, .error {
    padding: 15px 25px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
}

.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(32, 201, 151, 0.15));
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(231, 76, 60, 0.15));
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/*Carrousel équipe*/
.carrousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
}

/* PAGE PROFIL.PHP*/

/* ── Wrapper principal */
.profil-wrapper {
    max-width: 100% !important;
    margin: 2.5rem auto;
    padding: 80px 1rem 4rem;
}

/* ── En-tête profil */
.profil-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--profil-radius, 12px);
    padding: 2rem;
    box-shadow: var(--profil-shadow, 0 4px 24px rgba(0,0,0,.07));
    margin-bottom: 2rem;
    border-left: 5px solid var(--profil-accent, #e63946);
}

.profil-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--profil-accent, #e63946);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -.5px;
    user-select: none;
}

.profil-header-info {
    flex: 1;
    min-width: 0;
}

.profil-header-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profil-header-info p {
    margin: 0;
    color: var(--text-muted, #6c757d);
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-role {
    display: inline-block;
    background: var(--profil-accent, #e63946);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 50px;
    margin-top: .4rem;
}

.btn-deconnexion {
    margin-left: auto;
    background: transparent;
    border: 2px solid var(--profil-accent, #e63946);
    color: var(--profil-accent, #e63946);
    padding: .5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: var(--profil-transition, .25s ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-deconnexion:hover {
    background: var(--profil-accent, #e63946);
    color: #fff;
}

/* ── Carte section */
.profil-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--profil-radius, 12px);
    box-shadow: var(--profil-shadow, 0 4px 24px rgba(0,0,0,.07));
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.profil-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.profil-icon {
    font-size: 1.1rem;
}

/* ── Formulaires  */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--text-muted, #6c757d);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: .65rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: .95rem;
    background: #f8f9fa;
    color: inherit;
    transition: border-color .25s ease, box-shadow .25s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--profil-accent, #e63946);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, .12);
    background: #fff;
}

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

/* ── Bouton enregistrer */
.btn-save {
    background: var(--profil-accent, #e63946);
    color: #fff;
    border: none;
    padding: .7rem 2rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease, transform .15s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-save:hover:not(:disabled) {
    background: var(--profil-accent-dk, #c1121f);
    transform: translateY(-1px);
}

.btn-save:active:not(:disabled) {
    transform: translateY(0);
}

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

/* ── Alertes profil */
.profil-alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ── Indicateur force mot de passe */
.pwd-strength {
    height: 4px;
    border-radius: 2px;
    background: #dee2e6;
    margin-top: .5rem;
    overflow: hidden;
}

.pwd-strength-bar {
    height: 100%;
    width: 0;
    transition: width .3s ease, background .3s ease;
    border-radius: 2px;
}

.pwd-strength-label {
    font-size: .78rem;
    font-weight: 600;
    margin: .3rem 0 0;
    min-height: 1em;
}

.forgot-link {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* ── POP-UP DE RECRUTEMENT */
.recrute-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 320px;
    width: 85%;
    text-align: center;
}

.recrute-popup h2 {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 15px;
    color: #333;
}

.recrute-popup p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.recrute-popup p {
    display: inline-block;
    padding: 12px 25px;
    background: #28a746ec;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.recrute-popup a:hover {
    background: #218838;
}

.recrute-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* ===========================
   MODAL COMMENTAIRES MARAUDES
   =========================== */

/* Boutons carte maraude */
.card-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.comment-badge {
    background: linear-gradient(135deg, #1e14e6, #38df22);
    color: white;
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Modal commentaires */
.comments-modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.comments-modal-header {
    background: linear-gradient(135deg, #1e14e6, #38df22);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.comments-modal-header .modal-title {
    font-weight: 700;
}

.comments-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.comments-modal-header .btn-close:hover {
    opacity: 1;
}

.comments-modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Liste des commentaires */
.comments-list {
    margin-bottom: 25px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* État vide */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-comments-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-comments p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #555;
}

.no-comments span {
    font-size: 0.9rem;
    color: #888;
}

/* Item commentaire */
.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.comment-item:hover {
    background: #f0f1f3;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38df22, #1e14e6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-author {
    color: #333;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #888;
}

.comment-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

/* Section ajout commentaire */
.add-comment-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.add-comment-section h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.comment-textarea::placeholder {
    color: #aaa;
}

.btn-submit-comment {
    align-self: flex-end;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Prompt connexion */
.login-prompt {
    text-align: center;
    padding: 20px;
    background: #fff8e6;
    border-radius: 12px;
    border: 1px solid #ff903b;
}

.login-prompt p {
    margin-bottom: 12px;
    color: #856404;
    font-size: 0.95rem;
}

.btn-login-prompt {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    color: #333;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-login-prompt:hover {
    background: linear-gradient(135deg, #e0a800, #ffc107);
    transform: translateY(-2px);
    color: #333;
}

/* Fin du CSS spécifique aux pages, les styles suivants sont globaux et partagés entre toutes les pages */