/* À mettre au début du fichier CSS */
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Ajustement spécifique pour les inputs si besoin */
.input-group input {
    width: 100%; /* Maintenant le 100% inclut le padding interne */
    display: block;
}

:root {
    --apple-blue: #007AFF;
    --apple-gray: #8E8E93;
    --glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.4);
}

body {
    background: linear-gradient(180deg, #e5e5e7 0%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: -50px; /* Centrage optique */
}

.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}

.main-logo {
    font-size: 4rem;
    color: var(--apple-blue);
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 10px rgba(0,122,255,0.3));
}

.welcome-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #1d1d1f;
}

.welcome-section p {
    color: var(--apple-gray);
    font-size: 1.1rem;
}

/* Grille de sélection */
.selection-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 600px;
    justify-content: center;
}

.auth-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    width: 180px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.auth-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 2rem;
    color: white;
}

.user-bg { background: linear-gradient(135deg, #5AC8FA, #007AFF); }
.admin-bg { background: linear-gradient(135deg, #5856D6, #AF52DE); }

.auth-card span {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .selection-grid {
        flex-direction: column;
        align-items: center;
    }
    .auth-card {
        width: 100%;
        max-width: 250px;
    }
}



/* Style du lien du logo */
.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* L'icône style iOS */
.app-icon {
    width: 150px;
    height: 150px;
    border-radius: 9px; /* Courbure iconique iOS */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.logo-link:hover .app-icon {
    transform: scale(1.05); /* Petit effet de zoom au survol */
}

/* Texte du logo */
.brand-name {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: #1d1d1f;
}

.highlight {
    color: var(--apple-blue);
    /* Optionnel : dégradé sur le "Pas" */
    background: linear-gradient(135deg, #007AFF, #AF52DE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Masquer le texte sur très petits écrans si besoin */
@media (max-width: 400px) {
    .brand-name { font-size: 1rem; }
}
/*------------------------------------------------------------------------------------------------------*/
/* HEADER */

/* Navigation Style */
.main-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px); /* Effet flou sous la barre */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #007AFF;
}

.admin-link {
    background: rgba(0, 122, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: #007AFF;
}

.logout-btn {
    color: #FF3B30 !important;
}

.user-badge {
    padding: 5px 12px;
    background: #f2f2f7;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* On centre le logo si personne n'est connecté */
.brand {
    flex-grow: 1;
}

/* --- Groupe Logo et Titre --- */
.brand-group {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-main {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.8rem; /* Gros titre */
    font-weight: 800;   /* Très gras */
    letter-spacing: -1px;
    color: #1d1d1f;
    line-height: 1;
    text-transform: uppercase;
}

.blue-dot {
    color: #007AFF;
}

/* --- Ajustement de la Nav pour le gros logo --- */
.main-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Hover sur le logo */
.brand-link:hover .logo-main {
    transform: scale(1.05);
}

/* Masquer le menu si non connecté (sécurité CSS en plus du PHP) */
.nav-links:empty {
    display: none;
}

/*------------------------------------------------------------------------------------------------------*/


.macos-footer {
    padding: 20px 0;
    margin-top: auto; /* Pousse le footer vers le bas */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: #8e8e93; /* Gris Apple */
    font-size: 0.85rem;
}

.status-badge {
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding-bottom: 80px; /* Évite que la barre de navigation mobile ne cache le texte */
    }
}


/*------------------------------------------------------------------------------------------------------*/

/* Container de centrage pour les formulaires */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

/* La Card style Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.card-header h2 {
    margin: 15px 0 5px 0;
    font-weight: 700;
    color: #1d1d1f;
}

.card-header p {
    color: #86868b;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Champs de saisie */
.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Bouton Apple */
.apple-button {
    background: #007AFF;
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.apple-button:hover {
    background: #0062cc;
}

.apple-button:disabled {
    background: #a2a2a2;
    cursor: not-allowed;
}

.card-footer {
    margin-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.card-footer a {
    text-decoration: none;
    color: #007AFF;
    font-size: 0.9rem;
}

.input-group input:focus {
    outline: none;
    border-color: #007AFF;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15); /* Effet de halo bleu Apple */
}

/*------------------------------------------------------------------------------------------------------*/

/* --- Styles de la page d'accueil (Hero Section) --- */

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.logo-animation {
    margin-bottom: 30px;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(0, 122, 255, 0.2);
    filter: blur(40px);
    border-radius: 50%;
    top: -20px;
    left: -20px;
    z-index: -1;
}

.logo-animation i {
    font-size: 5rem;
    color: #007AFF;
    text-shadow: 0 10px 20px rgba(0,122,255,0.3);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.hero-section .highlight {
    color: #007AFF;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #86868b;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Le bouton stylé */
.main-cta {
    position: relative;
    display: inline-block;
    padding: 18px 45px;
    background: #007AFF;
    color: white !important; /* Force la couleur blanche */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.4);
}

.main-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.5);
    background: #0066D6;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.main-cta:hover .btn-glow {
    left: 150%;
}

.access-badges {
    margin-top: 60px;
    display: flex;
    gap: 40px;
    color: #86868b;
    font-size: 0.9rem;
}

.access-badges i {
    color: #34C759;
    margin-right: 5px;
}

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

/*------------------------------------------------------------------------------------------------------*/
/* Dashboard Layout */
.dashboard-header {
    margin-bottom: 30px;
}

.user-greeting {
    display: block;
    font-size: 1.1rem;
    color: #86868b;
    font-weight: 400;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Stat à gauche, Formulaire à droite */
    gap: 25px;
}

@media (max-width: 900px) {
    .grid-container { grid-template-columns: 1fr; }
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 20px;
}

.stat-card i {
    font-size: 2.5rem;
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Form Layout inside Dashboard */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header-minimal {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #86868b;
    margin-left: 5px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.feedback-message {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feedback-message.success { color: #34C759; }
.feedback-message.error { color: #FF3B30; }


/* Centre tout le contenu du dashboard dans la page */
.dashboard-container {
    max-width: 1000px; /* Largeur maximale pour éviter que ce soit trop étiré */
    margin: 0 auto;    /* Centre le bloc horizontalement */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments enfants (header, grid) */
}

/* Ajustement du header pour qu'il soit bien centré aussi */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Centrage de la grille et des cartes */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Colonnes réactives */
    gap: 30px;
    width: 100%;       /* Prend toute la largeur du container de 1000px */
    justify-content: center; /* Centre les colonnes si elles ne prennent pas toute la place */
}

/* Optionnel : Si tu veux que les cartes aient une hauteur égale */
.glass-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Sur mobile, on repasse à une seule colonne centrée */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        max-width: 500px; /* Évite que la carte soit trop large sur tablette */
    }
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.user-table th {
    text-align: left;
    color: #86868b;
    font-weight: 500;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.user-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Badges de rôle */
.badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge.admin { background: rgba(0, 122, 255, 0.1); color: #007AFF; }
.badge.user { background: rgba(0, 0, 0, 0.05); color: #1d1d1f; }

/* Scroll si la liste est longue */
#userListContainer {
    max-height: 400px;
    overflow-y: auto;
}

.apple-button-action {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #e5e5e7;
    padding: 20px;
    border-radius: 18px;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.3s ease;
}

.apple-button-action:hover {
    border-color: #007AFF;
    background: #fbfbfd;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.button-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.button-text strong { font-size: 1.1rem; }
.button-text span { font-size: 0.85rem; color: #86868b; }

/* --- Styles pour la gestion des utilisateurs --- */

.user-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fbfbfd;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.user-item-row:hover {
    background: #fff;
    border-color: #007AFF;
    transform: scale(1.01);
}

.user-data {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #1d1d1f;
}

.user-login {
    font-size: 0.85rem;
    color: #86868b;
}

.badge-admin { color: #007AFF; font-weight: bold; font-size: 0.75rem; }
.badge-user { color: #86868b; font-weight: bold; font-size: 0.75rem; }

.delete-icon-btn {
    background: transparent;
    border: none;
    color: #ff3b30;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.delete-icon-btn:hover {
    background: rgba(255, 59, 48, 0.1);
}
/*------------------------------------------------------------------------------------------------------*/
/*Espace utilisateur */

.user-space-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.hub-header {
    margin-bottom: 40px;
    text-align: center;
}

.hub-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -1px;
}

.hub-header p {
    color: #86868b;
    font-size: 1.1rem;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.hub-card {
    background: white;
    padding: 25px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1d1d1f;
    border: 1px solid #f2f2f7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #d2d2d7;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Couleurs des icônes */
.color-blue { background: rgba(0, 122, 255, 0.1); color: #007AFF; }
.color-orange { background: rgba(255, 149, 0, 0.1); color: #FF9500; }
.color-green { background: rgba(52, 199, 89, 0.1); color: #34C759; }
.color-purple { background: rgba(175, 82, 222, 0.1); color: #AF52DE; }
.color-red { background: rgba(255, 59, 48, 0.1); color: #FF3B30; }
.color-indigo { background: rgba(88, 86, 214, 0.1); color: #5856D6; }

.card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #86868b;
    line-height: 1.4;
}

.arrow {
    margin-left: auto;
    color: #d2d2d7;
    font-size: 0.8rem;
}

.hub-card:hover .arrow {
    color: #007AFF;
    transform: translateX(5px);
    transition: 0.3s;
}

/* Style de la Pastille (Badge) */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FF3B30; /* Rouge iOS */
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 20px;
    border: 2px solid white;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/*------------------------------------------------------------------------------------------------------*/
/* Layout Principal */
.edit-container { 
    max-width: 1100px; margin: 40px auto; padding: 0 20px; 
    display: grid; grid-template-columns: 1fr 320px; gap: 30px; 
    font-family: Arial, sans-serif; 
}

.card-edit { 
    background: #fff; border-radius: 15px; padding: 25px; 
    border: 1px solid #eee; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; /* Force le contenu à rester dedans */
}

/* --- RADIOS CIVILITÉ EN LIGNE ET ÉTALÉS --- */
.radio-flex-container {
    display: flex;
    justify-content: space-between; /* Utilise TOUTE la largeur */
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.radio-inline-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre le rond et le texte */
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.radio-inline-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Champs classiques */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.8rem; font-weight: bold; color: #666; margin-bottom: 8px; text-transform: uppercase; }
.input-group input, .input-group textarea { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #ccc; box-sizing: border-box; }

/* Radios État (Status) */
.radio-group-status { display: flex; gap: 5px; background: #eee; padding: 5px; border-radius: 10px; }
.status-item { flex: 1; text-align: center; }
.status-item input { display: none; }
.status-item label { display: block; padding: 10px; border-radius: 7px; cursor: pointer; font-size: 0.85rem; font-weight: bold; color: #666; }
#r0:checked + label { background: #FF9500; color: #fff; }
#r1:checked + label { background: #34C759; color: #fff; }
#r2:checked + label { background: #FF3B30; color: #fff; }

/* --- FIX DU BOUTON QUI SORT DU CADRE --- */
.form-action-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end; /* Aligne à droite proprement */
    width: 100%;
}

.btn-save-main { 
    background: #007AFF; 
    color: #fff; 
    border: none; 
    padding: 15px 35px; 
    border-radius: 10px; 
    font-weight: bold; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
}

/* Sidebar */
.action-card { background: #2c3e50; border-radius: 15px; padding: 25px; color: #fff; }
.btn-sidebar { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: bold; margin-bottom: 12px; border: none; cursor: pointer; }
.btn-sidebar i { margin-right: 12px; }
.btn-blue { background: #007AFF; color: #fff; }
.btn-outline { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-view { background: #fff; color: #2c3e50; }
.btn-success { background: #34C759; color: #fff; }
/*------------------------------------------------------------------------------------------------------*/
/* Polsuler */
/* Harmonisation de la police du textarea */
.custom-textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif; /* Même police que le reste */
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

/* Style de la zone de vérification */
.docs-verify-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin: 25px 0;
}

.docs-verify-section h3 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.doc-item:last-child { border-bottom: none; }

.btn-verify {
    color: #007AFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-verify:hover { text-decoration: underline; }

.btn-send {
    background: #34C759;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-send:hover { background: #28a745; }
/*------------------------------------------------------------------------------------------------------*/
/* LISTE DES RECHERCHES */

/* BASE */
    .app-container { max-width: 900px; margin: 50px auto; padding: 0 20px; font-family: -apple-system, sans-serif; }
    
    /* HEADER */
    .header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
    .main-title { font-size: 2.2rem; font-weight: 800; margin:0; letter-spacing: -1px; color: #1d1d1f; }
    .sub-info { color: #86868b; margin:0; font-weight: 500; }
    .btn-add-action { 
        background: #007AFF; color: white !important; padding: 12px 22px; border-radius: 14px; 
        font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
        box-shadow: 0 8px 20px rgba(0,122,255,0.2); transition: 0.3s;
    }
    .btn-add-action:hover { transform: translateY(-3px); background: #0066D6; }

    /* LISTE */
    .list-wrapper { background: white; border-radius: 24px; border: 1px solid #f2f2f7; box-shadow: 0 12px 40px rgba(0,0,0,0.04); overflow: hidden; }
    .item-row-classic { display: flex; align-items: center; padding: 25px 35px; border-bottom: 1px solid #f2f2f7; position: relative; }
    .item-row-classic:hover { background: #fbfbfd; }

    /* DATE VERTICALE */
    .date-col { display: flex; flex-direction: column; align-items: center; width: 60px; border-right: 2px solid #f2f2f7; padding-right: 25px; margin-right: 25px; flex-shrink: 0; }
    .date-col .day { font-size: 1.4rem; font-weight: 800; color: #1d1d1f; line-height: 1; }
    .date-col .month { font-size: 0.7rem; font-weight: 700; color: #86868b; text-transform: uppercase; margin: 2px 0; }
    .date-col .year { font-size: 0.65rem; font-weight: 600; color: #d2d2d7; }

    /* INFOS */
    .info-col { flex: 1; }
    .comp-name { font-size: 1.25rem; font-weight: 800; color: #1d1d1f; margin: 0; letter-spacing: -0.3px; }
    .pos-name { font-size: 1rem; color: #424245; margin: 3px 0 0 0; font-weight: 500; }

    /* STATUS & POPOVER COLORÉ */
    .status-col { width: 140px; text-align: right; padding-right: 15px; position: relative; }
    .status-badge-clickable { 
        cursor: pointer; display: inline-block; padding: 7px 14px; border-radius: 10px; 
        font-size: 0.7rem; font-weight: 800; text-transform: uppercase; min-width: 90px; text-align: center;
        transition: 0.2s;
    }
    .status-popover {
        position: absolute; top: 40px; right: 15px; background: white; border: 1px solid #e5e5e7;
        border-radius: 14px; box-shadow: 0 15px 35px rgba(0,0,0,0.12); z-index: 100; width: 140px;
        display: none; overflow: hidden; padding: 6px;
    }
    .status-popover div { 
        padding: 10px; font-size: 0.7rem; font-weight: 800; text-align: center; 
        cursor: pointer; border-radius: 8px; margin-bottom: 2px; text-transform: uppercase;
    }
    .status-popover div:last-child { margin-bottom: 0; }
    
    /* Couleurs du menu */
    .opt-wait { color: #FF9500; background: rgba(255,149,0,0.08); }
    .opt-wait:hover { background: rgba(255,149,0,0.15); }
    .opt-ok { color: #34C759; background: rgba(52,199,89,0.08); }
    .opt-ok:hover { background: rgba(52,199,89,0.15); }
    .opt-ko { color: #FF3B30; background: rgba(255,59,48,0.08); }
    .opt-ko:hover { background: rgba(255,59,48,0.15); }

    /* ICONES */
    .plane-col { width: 40px; text-align: center; font-size: 1.1rem; }
    .edit-col { width: 30px; text-align: right; }
    .edit-col a { color: #d2d2d7; text-decoration: none; }
    .item-row-classic:hover .edit-col a { color: #007AFF; }

    /* CORBEILLE */
    .delete-col { width: 30px; text-align: center; margin-right: 10px; }
    .delete-col i { 
        color: #d2d2d7; cursor: pointer; transition: 0.2s; font-size: 0.9rem;
    }
    .delete-col i:hover { color: #FF3B30; transform: scale(1.2); }
    
    /* Animation de sortie */
    .fade-out { 
        opacity: 0; transform: translateX(20px); transition: 0.4s ease; pointer-events: none; 
    }
/*------------------------------------------------------------------------------------------------------*/
/*  CANDIDATURES */

 .app-container { max-width: 1000px; margin: 50px auto; padding: 0 20px; font-family: -apple-system, sans-serif; }
    
    .header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
    .main-title { font-size: 2rem; font-weight: 800; color: #1d1d1f; letter-spacing: -1px; }

    /* LISTE STYLE "HISTORIQUE" */
    .history-wrapper { background: white; border-radius: 20px; border: 1px solid #f2f2f7; box-shadow: 0 10px 30px rgba(0,0,0,0.04); overflow: hidden; }
    
    .postule-item { 
        display: grid; 
        grid-template-columns: 120px 1fr 150px 100px; 
        align-items: center; 
        padding: 20px 30px; 
        border-bottom: 1px solid #f2f2f7; 
        transition: 0.2s;
    }
    .postule-item:hover { background: #fbfbfd; }

    /* DATE & DESTINATAIRE */
    .date-sent { font-size: 0.85rem; color: #86868b; font-weight: 600; }
    .info-main { padding: 0 15px; }
    .company-tag { font-size: 1rem; font-weight: 700; color: #1d1d1f; }
    .subject-line { font-size: 0.85rem; color: #424245; margin-top: 4px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    /* BADGE STATUS (Réutilisé de ta page recherche) */
    .status-badge-clickable { 
        cursor: pointer; padding: 6px 12px; border-radius: 8px; 
        font-size: 0.65rem; font-weight: 800; text-transform: uppercase; text-align: center;
        transition: 0.2s; display: inline-block; min-width: 85px;
    }

    /* ACTIONS */
    .actions-group { display: flex; justify-content: flex-end; gap: 15px; color: #d2d2d7; }
    .action-btn { cursor: pointer; transition: 0.2s; }
    .btn-del:hover { color: #FF3B30; transform: scale(1.1); }
    .btn-view:hover { color: #007AFF; }

    /* POPOVER STATUS */
    .status-popover {
        position: absolute; background: white; border: 1px solid #e5e5e7;
        border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 100; width: 130px;
        display: none; padding: 5px; margin-top: 5px;
    }
    .status-popover div { padding: 8px; font-size: 0.65rem; font-weight: 800; cursor: pointer; border-radius: 6px; text-align: center; margin-bottom: 2px; }

    .fade-out { opacity: 0; transform: translateX(20px); transition: 0.4s ease; pointer-events: none; }
/*------------------------------------------------------------------------------------------------------*/
/* RELANCEs */

    .app-container { max-width: 900px; margin: 50px auto; padding: 0 20px; font-family: -apple-system, sans-serif; }
    .header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
    .main-title { font-size: 2rem; font-weight: 800; color: #1d1d1f; letter-spacing: -1px; }
    
    .relance-card { 
        background: white; border-radius: 24px; padding: 25px; margin-bottom: 20px;
        border: 1px solid #f2f2f7; display: flex; align-items: center; justify-content: space-between;
        transition: 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    }
    .relance-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }

    .info-section { flex: 1; }
    .company-name { font-size: 1.2rem; font-weight: 800; color: #1d1d1f; margin-bottom: 4px; }
    .job-title { font-size: 0.95rem; color: #424245; font-weight: 500; }
    .meta-info { font-size: 0.8rem; color: #86868b; margin-top: 10px; display: flex; gap: 15px; }
    
    .priority-tag { 
        padding: 5px 12px; border-radius: 8px; font-size: 0.7rem; font-weight: 800; 
        text-transform: uppercase; background: rgba(255, 59, 48, 0.1); color: #FF3B30;
    }

    .btn-relance {
        background: #007AFF; color: white !important; padding: 12px 20px; border-radius: 14px;
        text-decoration: none; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
        transition: 0.2s; border: none; cursor: pointer;
    }
    .btn-relance:hover { background: #0056b3; }
    .btn-ignore { color: #d2d2d7; background: none; border: none; cursor: pointer; font-size: 0.8rem; margin-top: 10px; }
    .btn-ignore:hover { color: #86868b; text-decoration: underline; }
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
