/* ===============================================
   STYLES COMMUNS - SEEK & FIND INVESTIGATION
   À utiliser sur toutes les pages légales
   =============================================== */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales (cohérentes avec index.html) */
    --primary-blue: #1e3a5f;
    --secondary-blue: #2e5a8f;
    --light-blue: #4a7fc1;
    --accent-blue: #3498db;
    
    /* Couleurs de fond */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gray: #e9ecef;
    
    /* Couleurs de texte */
    --text-dark: #2c3e50;
    --text-medium: #546e7a;
    --text-light: #7f8c8d;
    
    /* Couleurs d'état */
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* === Navigation === */
.nav-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    height: 50px;
    width: auto;
}

.nav-title {
    color: var(--primary-blue);
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: var(--primary-blue);
    color: white;
}

/* === Container Principal === */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* === Document Légal === */
.legal-document {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* === Titres === */
h1 {
    color: var(--primary-blue);
    font-size: 2.5em;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-blue);
}

h2 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 4px solid var(--accent-blue);
}

h3 {
    color: var(--secondary-blue);
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* === Paragraphes et listes === */
p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

ul {
    margin-left: 40px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* === Liens === */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

/* === Boxes === */
.info-box {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--info);
}

.warning-box {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--warning);
}

.success-box {
    background: #d4edda;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--success);
}

.error-box {
    background: #f8d7da;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--error);
}

.contact-card {
    background: #f0f8ff;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #d0e8ff;
}

/* === Formulaires === */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* === Boutons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--light-blue);
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: var(--bg-gray);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.back-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(-5px);
}

/* === Alertes === */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.alert.show {
    display: block;
}

.alert.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* === Métadonnées === */
.last-update {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
    font-size: 0.9em;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-medium);
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

.footer a {
    color: var(--primary-blue);
}

/* === Checkboxes personnalisées === */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-item {
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* === Responsive === */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .legal-document,
    .form-section {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 20px auto;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* === Utilitaires === */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.required {
    color: var(--error);
}

strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* === Impression === */
@media print {
    .nav-header,
    .back-link,
    .btn {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .legal-document {
        box-shadow: none;
    }
}
