/* ========================================
   LOCKLEAD - Pages légales & contact
   Styles partagés : cgv, mentions, confidentialité, contact
   ======================================== */

/* Layout */
.legal-page,
.contact-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }

/* Titres */
.legal-page h1,
.contact-page h1 { color: #1a365d; margin-bottom: 10px; }

.legal-page .last-update { color: #64748b; font-size: 14px; margin-bottom: 40px; }

.legal-page .subtitle,
.contact-page .subtitle { color: #64748b; font-size: 16px; margin-bottom: 40px; }

.legal-page h2,
.contact-page h2 { color: #1a365d; margin-top: 40px; margin-bottom: 16px; font-size: 20px; border-bottom: 2px solid #e85d04; padding-bottom: 8px; }

.legal-page h3 { color: #334155; margin-top: 24px; margin-bottom: 12px; font-size: 16px; }

/* Texte */
.legal-page p, .legal-page li,
.contact-page p, .contact-page li { color: #475569; line-height: 1.7; margin-bottom: 12px; }

.legal-page ul { padding-left: 24px; }

.legal-page a,
.contact-page a { color: #e85d04; }

/* Encadrés */
.legal-page .info-box,
.contact-page .info-box { background: #f8fafc; border-left: 4px solid #e85d04; padding: 16px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; }

.legal-page .info-box p,
.contact-page .info-box p { margin: 0; }

.legal-page .warning-box { background: #fef2f2; border-left: 4px solid #ef4444; padding: 16px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; }

/* Header commun (bandeau bleu) */
.legal-header,
.contact-header { background: #1a365d; color: white; padding: 20px; margin-bottom: 40px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }

.legal-header .logo-text,
.contact-header .logo-text { color: white; text-decoration: none; font-size: 24px; font-weight: bold; }

.legal-header .logo-text .lock,
.contact-header .logo-text .lock { color: white; }

.legal-header .logo-text .lead,
.contact-header .logo-text .lead { color: #e85d04; }

.legal-header a.back-link,
.contact-header a.back-link { color: #e2e8f0; text-decoration: none; font-size: 14px; }

.legal-header a.back-link:hover,
.contact-header a.back-link:hover { color: white; }

/* Navigation inter-pages */
.legal-nav { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.legal-nav a { color: #e85d04; text-decoration: none; padding: 10px 16px; background: #fff7ed; border-radius: 6px; font-size: 14px; }
.legal-nav a:hover { background: #fed7aa; }

/* ========================================
   CONTACT - Styles spécifiques
   ======================================== */

.contact-form { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 32px; margin-top: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: #1a365d; margin-bottom: 8px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #e85d04;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-group small { color: #64748b; font-size: 13px; margin-top: 6px; display: block; }

.btn-submit {
    background: linear-gradient(135deg, #e85d04 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3); }

.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; }
.alert-success { background: #f0fdf4; border: 1px solid #22c55e; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #ef4444; color: #dc2626; }

.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 24px; }
.contact-card { background: #f8fafc; border-radius: 12px; padding: 24px; text-align: center; }
.contact-card .icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h3 { color: #1a365d; font-size: 16px; margin-bottom: 8px; }
.contact-card p { color: #64748b; font-size: 14px; margin: 0; }
.contact-card a { color: #e85d04; text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

.user-badge { background: #f0fdf4; border: 1px solid #22c55e; border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; font-size: 14px; color: #166534; }

/* Tables (confidentialité) */
.legal-page table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal-page th, .legal-page td { border: 1px solid #e2e8f0; padding: 12px; text-align: left; }
.legal-page th { background: #f8fafc; color: #1a365d; font-weight: 600; }
.legal-page td { color: #475569; }
