.aigency-registration-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.aigency-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #0a1f49;
    text-align: center;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

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

.form-group.half {
    width: 50%;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .form-group.half {
        width: 100%;
    }
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #0a1f49;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    font-size: 12px;
    color: #777;
    display: block;
    margin-top: 5px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.required {
    color: #ff5722;
}

.registration-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.aigency-button {
    background-color: #00b8d4;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.aigency-button:hover {
    background-color: #0095a8;
}

.expert-form .aigency-button {
    background-color: #00b8d4;
}

.expert-form .aigency-button:hover {
    background-color: #0095a8;
}

.entreprise-form .aigency-button {
    background-color: #ff5722;
}

.entreprise-form .aigency-button:hover {
    background-color: #e64a19;
}

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

.login-link a {
    color: #00b8d4;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Styles de base pour le formulaire AIgency */
.aigency-registration-form {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aigency-form h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0a1f49;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.aigency-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #00b8d4;
    border-radius: 2px;
}

/* Structure du formulaire */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.form-group.half {
    width: 50%;
    padding: 0 12px;
}

@media (max-width: 768px) {
    .form-group.half {
        width: 100%;
    }
    
    .aigency-registration-form {
        padding: 30px 20px;
        margin: 15px;
    }
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0a1f49;
    font-size: 15px;
}

.required {
    color: #ff5722;
    margin-left: 2px;
}

/* Champs de formulaire */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    background-color: #f9fafc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00b8d4;
    box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.15);
    background-color: #fff;
}

.form-group small {
    font-size: 13px;
    color: #677294;
    margin-top: 6px;
    display: block;
}

/* Textarea */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Case à cocher */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.checkbox-group label:hover {
    background-color: rgba(0, 184, 212, 0.05);
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    accent-color: #00b8d4;
    width: 18px;
    height: 18px;
}

/* Bouton */
.aigency-button {
    background-color: #00b8d4;
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 184, 212, 0.2);
}

.aigency-button:hover {
    background-color: #0095a8;
    box-shadow: 0 6px 15px rgba(0, 184, 212, 0.3);
    transform: translateY(-1px);
}

.aigency-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 184, 212, 0.2);
}

/* Lien de connexion */
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    color: #677294;
}

.login-link a {
    color: #00b8d4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-link a:hover {
    color: #0095a8;
    text-decoration: underline;
}

/* Message d'erreur */
.registration-error {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
    border-left: 4px solid #e53e3e;
}

/* Animation subtile pour les champs focus */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 184, 212, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 184, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 184, 212, 0); }
}

.form-group input:focus,
.form-group textarea:focus {
    animation: pulse 1.5s;
}

/* Styles pour la version entreprise (si besoin) */
.entreprise-form .aigency-button {
    background-color: #ff5722;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.2);
}

.entreprise-form .aigency-button:hover {
    background-color: #e64a19;
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.3);
}

.entreprise-form h3:after {
    background-color: #ff5722;
}

.entreprise-form input:focus,
.entreprise-form textarea:focus,
.entreprise-form select:focus {
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15);
}

/* Styles pour le formulaire de connexion AIgency */
.aigency-login-form {
    max-width: 450px;
    margin: 40px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aigency-login-form:before {
    content: 'Connexion';
    display: block;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0a1f49;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.aigency-login-form:after {
    content: '';
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #00b8d4, #0a1f49);
    border-radius: 2px;
}

/* Champs du formulaire */
.aigency-login-form .form-group {
    margin-bottom: 22px;
}

.aigency-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0a1f49;
    font-size: 15px;
}

.aigency-login-form input[type="text"],
.aigency-login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    background-color: #f9fafc;
}

.aigency-login-form input[type="text"]:focus,
.aigency-login-form input[type="password"]:focus {
    outline: none;
    border-color: #00b8d4;
    box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.15);
    background-color: #fff;
}

/* Option Se souvenir de moi */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.remember-me label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    font-size: 14px;
    color: #677294;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #00b8d4;
    width: 16px;
    height: 16px;
}

/* Bouton de connexion */
.aigency-login-form .aigency-button {
    background: linear-gradient(135deg, #00b8d4 0%, #0288d1 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 184, 212, 0.2);
}

.aigency-login-form .aigency-button:hover {
    background: linear-gradient(135deg, #00a5bd 0%, #0277bd 100%);
    box-shadow: 0 6px 15px rgba(0, 184, 212, 0.3);
    transform: translateY(-1px);
}

.aigency-login-form .aigency-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 184, 212, 0.2);
}

/* Liens en bas du formulaire */
.form-links {
    margin-top: 25px;
    text-align: center;
}

.form-links a {
    color: #00b8d4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-links a:hover {
    color: #0095a8;
    text-decoration: underline;
}

.registration-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #677294;
}

.registration-links span {
    display: block;
    margin-bottom: 8px;
}

.registration-links a {
    font-weight: 600;
}

/* Message d'erreur */
.login-error {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
    border-left: 4px solid #e53e3e;
    font-size: 14px;
}

/* Animation subtile pour les champs focus */
@keyframes pulse-login {
    0% { box-shadow: 0 0 0 0 rgba(0, 184, 212, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 184, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 184, 212, 0); }
}

.aigency-login-form input:focus {
    animation: pulse-login 1.5s;
}

/* Responsive */
@media (max-width: 500px) {
    .aigency-login-form {
        padding: 30px 20px;
        margin: 20px 15px;
    }
    
    .aigency-login-form:before {
        font-size: 24px;
    }
}

/* Options de personnalisation pour les différents types d'utilisateurs */
body.expert-login .aigency-login-form .aigency-button {
    background: linear-gradient(135deg, #00b8d4 0%, #0288d1 100%);
}

body.entreprise-login .aigency-login-form .aigency-button {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
}

body.entreprise-login .aigency-login-form:after {
    background: linear-gradient(to right, #ff5722, #e64a19);
}

/* Style pour le message "Déjà connecté" */
/* Style amélioré pour le message "Déjà connecté" */
.already-logged-in {
    max-width: 550px;
    margin: 40px auto;
    padding: 35px;
    background-color: #f0f9ff;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0, 184, 212, 0.1);
    text-align: center;
    border-left: 4px solid #00b8d4;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.already-logged-in::before {
    content: "\f110";
    font-family: "dashicons";
    position: absolute;
    right: -15px;
    top: -15px;
    font-size: 80px;
    opacity: 0.05;
    color: #00b8d4;
}

.already-logged-in p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #0a1f49;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.already-logged-in p:first-child {
    font-size: 19px;
    margin-bottom: 25px;
    font-weight: 500;
}

.already-logged-in strong {
    color: #00b8d4;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.already-logged-in .aigency-button {
    display: inline-block;
    background-color: #00b8d4;
    color: white;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    margin-right: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 184, 212, 0.15);
    letter-spacing: 0.01em;
}

.already-logged-in .aigency-button:hover {
    background-color: #0095a8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 212, 0.25);
}

.already-logged-in a:last-child {
    display: inline-block;
    color: #6b7280;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    border-bottom: 1px dashed #6b7280;
    padding: 3px 0;
    font-weight: 500;
}

.already-logged-in a:last-child:hover {
    color: #e53e3e;
    border-bottom-color: #e53e3e;
}

/* Responsive */
@media (max-width: 600px) {
    .already-logged-in {
        margin: 20px 15px;
        padding: 25px 20px;
    }
    
    .already-logged-in .aigency-button {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .already-logged-in a:last-child {
        display: inline-block;
        padding: 8px 0;
    }
}

/* Styles pour le tableau de bord AIgency */
.aigency-dashboard {
    max-width: 1200px;
    margin: 30px auto 50px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* En-tête du tableau de bord */
.dashboard-header {
    margin-bottom: 30px;
    padding: 25px 35px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    border-left: 5px solid #ff5722;
}

.dashboard-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.dashboard-header h2 {
    color: #0a1f49;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
}

.dashboard-header p {
    color: #677294;
    font-size: 16px;
    margin: 0;
}

/* Statistiques */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #ff5722;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #677294;
    font-weight: 500;
}

/* Sections du tableau de bord */
.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.dashboard-section {
    margin-bottom: 20px;
}

.dashboard-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0a1f49;
    margin: 0 0 15px;
    padding-left: 15px;
    border-left: 3px solid #ff5722;
}

.dashboard-content-box {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: calc(100% - 40px);
    position: relative;
}

.dashboard-content-box p {
    color: #5e6e82;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

/* Boutons */
.aigency-dashboard .aigency-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #ff5722;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.2);
}

.aigency-dashboard .aigency-button:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.3);
}

.aigency-dashboard .aigency-button.secondary {
    background-color: #f5f5f5;
    color: #555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.aigency-dashboard .aigency-button.secondary:hover {
    background-color: #e9e9e9;
    color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Tableaux dans les boxes */
.dashboard-content-box table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.dashboard-content-box table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f9fafb;
    font-weight: 600;
    color: #0a1f49;
    font-size: 14px;
    border-bottom: 1px solid #edf2f7;
}

.dashboard-content-box table td {
    padding: 12px 15px;
    border-bottom: 1px solid #edf2f7;
    color: #5e6e82;
    font-size: 14px;
}

.dashboard-content-box table tr:last-child td {
    border-bottom: none;
}

.dashboard-content-box table tr:hover td {
    background-color: #f9fafb;
}

/* État des projets (si utilisé) */
.project-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.project-status.active {
    background-color: #e3f8f6;
    color: #0fb9b1;
}

.project-status.pending {
    background-color: #fef6e8;
    color: #f7b731;
}

.project-status.completed {
    background-color: #e7f6e8;
    color: #26a65b;
}

/* Message "aucun contenu" */
.no-content {
    text-align: center;
    padding: 30px 20px;
    color: #a0aec0;
    font-style: italic;
}

/* Badge de notification (si utilisé) */
.notification-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #ff5722;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    margin-left: 5px;
}

/* Version Expert du tableau de bord (si nécessaire) */
.expert-dashboard .dashboard-header {
    border-left-color: #00b8d4;
}

.expert-dashboard .dashboard-header::before {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

.expert-dashboard .stat-number {
    color: #00b8d4;
}

.expert-dashboard .dashboard-section h3 {
    border-left-color: #00b8d4;
}

.expert-dashboard .aigency-button {
    background-color: #00b8d4;
    box-shadow: 0 4px 10px rgba(0, 184, 212, 0.2);
}

.expert-dashboard .aigency-button:hover {
    background-color: #0095a8;
    box-shadow: 0 6px 15px rgba(0, 184, 212, 0.3);
}

.expert-dashboard .notification-badge {
    background-color: #00b8d4;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .aigency-dashboard {
        margin: 20px 15px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .dashboard-header h2 {
        font-size: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .stat-box {
        padding: 15px;
        min-height: 100px;
    }
    
    .stat-number {
        font-size: 26px;
    }
    
    .dashboard-section h3 {
        font-size: 16px;
    }
    
    .dashboard-content-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        min-height: auto;
        padding: 15px;
    }
}