/* --- Base --- */
body { font-family: 'Segoe UI', Arial, sans-serif; background-color: #f4f4f4; margin: 0; min-height: 100vh; }
.auth-page { display: flex; justify-content: center; align-items: center; }

/* Styles spécifiques aux formulaires (CONNEXION/INSCRIPTION) */
.login-card { 
    background: white; padding: 40px; border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; 
    text-align: center; border-top: 6px solid #333333; 
}
.login-card h1 { color: #333333; font-size: 2.5rem; margin-bottom: 25px; text-transform: uppercase; }
.login-card input { 
    width: 100%; padding: 14px; margin: 10px 0; border: 1px solid #ccc; 
    border-radius: 6px; box-sizing: border-box; height: 48px; /* Taille uniforme */
}
.login-card button { 
    width: 100%; padding: 15px; background-color: #333333; color: white; 
    border: none; border-radius: 6px; cursor: pointer; text-transform: uppercase; font-weight: bold; 
}

/* --- AJOUTS DE SÉCURITÉ ET DESIGN (Focus et Invalidation) --- */
.login-card input:focus {
    border-color: #5D4037;
    outline: none;
    box-shadow: 0 0 5px rgba(93, 64, 55, 0.3);
}
.login-card input:invalid {
    border-left: 5px solid #ff5252;
}

/* --- Accueil (Ne touche plus aux formulaires) --- */
.home-header { background-color: white; padding: 30px; text-align: center; border-bottom: 4px solid #333333; }
.home-header h1 { background-color: #5D4037; color: white; padding: 15px 30px; border-radius: 8px; display: inline-block; margin: 0; font-size: 2.5rem; }
.nav-bar { background-color: #333333; padding: 15px; text-align: center; }
.nav-bar a { color: white; text-decoration: none; margin: 0 20px; font-weight: bold; }
.nav-bar a:hover { text-decoration: underline; }
.home-auth-btn {
    display: inline-block; padding: 14px 28px; margin: 8px;
    background-color: #5D4037; color: white !important; text-decoration: none;
    border-radius: 8px; font-weight: bold; text-transform: uppercase;
}
.home-auth-btn-alt { background-color: #333333; }
.home-auth-btn:hover { opacity: 0.9; }
.service-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; padding: 40px; max-width: 1200px; margin: 0 auto; }
.card { background: white; width: 300px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 15px rgba(0,0,0,0.1); transition: transform 0.3s; border: 1px solid #eee; }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-info { padding: 20px; text-align: center; }
.card h3 { color: #333333; margin: 0 0 10px 0; font-size: 1.2rem; }
.price { color: #666; font-weight: bold; margin-bottom: 15px; }
/* Boutons de l'accueil restent intacts */
.card button { width: 100%; padding: 12px; background-color: #333333; color: white; border: none; border-radius: 6px; cursor: pointer; text-transform: uppercase; font-weight: bold; }
.card-special { border: 2px dashed #333333; }

/* --- Parcours confiance (AlloVoisins / TaskRabbit) --- */
.app-wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.page-title { color: #5D4037; text-align: center; margin: 0 0 8px; }
.page-sub { text-align: center; color: #666; font-size: 0.95rem; margin-bottom: 24px; }
.gps-banner {
    background: linear-gradient(135deg, #5D4037 0%, #3e2723 100%);
    color: white; padding: 16px 20px; border-radius: 12px;
    margin-bottom: 24px; text-align: center; font-size: 0.95rem;
}
.gps-banner strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.provider-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; margin-top: 16px;
}
.provider-card {
    background: white; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08); border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}
.provider-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.provider-card-top { position: relative; padding: 20px 20px 12px; text-align: center; }
.provider-card-top img {
    width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
    border: 3px solid #5D4037; background: #eee;
}
.badge-dispo {
    position: absolute; top: 12px; right: 12px;
    background: #2e7d32; color: white; font-size: 0.7rem;
    padding: 4px 10px; border-radius: 20px; font-weight: bold;
}
.badge-distance {
    display: inline-block; background: #e8f5e9; color: #2e7d32;
    padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: bold;
    margin: 8px 0;
}
.provider-card-body { padding: 0 20px 20px; text-align: center; }
.provider-card-body h3 { margin: 8px 0 4px; color: #333; font-size: 1.1rem; }
.provider-card-body .prof { color: #5D4037; font-weight: 600; margin: 0 0 8px; font-size: 0.9rem; }
.provider-card-body .bio { color: #666; font-size: 0.85rem; line-height: 1.4; min-height: 2.5em; margin-bottom: 12px; }
.provider-card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.btn-outline {
    padding: 10px 14px; background: white; color: #5D4037;
    border: 2px solid #5D4037; border-radius: 8px; cursor: pointer;
    font-weight: bold; font-size: 0.8rem; text-decoration: none;
}
.btn-primary-sm {
    padding: 10px 16px; background: #5D4037; color: white;
    border: none; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 0.85rem;
}
.trust-card {
    max-width: 420px; margin: 30px auto; background: white;
    border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden; text-align: center;
}
.trust-card-header { background: #5D4037; color: white; padding: 24px 20px 20px; }
.trust-card-header img {
    width: 110px; height: 110px; border-radius: 50%;
    border: 4px solid white; object-fit: cover; margin-bottom: 12px;
}
.trust-card-body { padding: 24px; text-align: left; }
.trust-card-body p { margin: 8px 0; color: #444; }
.checkout-card {
    max-width: 440px; margin: 24px auto; background: white;
    padding: 24px; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.checkout-row { display: flex; justify-content: space-between; margin: 10px 0; color: #444; }
.checkout-total { font-size: 1.3rem; color: #5D4037; font-weight: bold; border-top: 2px solid #eee; padding-top: 12px; margin-top: 12px; }
.provider-pick {
    display: flex; align-items: center; gap: 12px;
    background: #f9f9f9; padding: 12px; border-radius: 10px; margin: 16px 0;
}
.provider-pick img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.steps-bar {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin: 16px 0 24px; font-size: 0.8rem;
}
.steps-bar span { padding: 6px 12px; border-radius: 20px; background: #eee; color: #666; }
.steps-bar span.active { background: #5D4037; color: white; }
.steps-bar span.done { background: #c8e6c9; color: #2e7d32; }