/* ============================================================
   seo-pages.css — Styles partagés pour toutes les pages SEO
   ============================================================ */

/* ── Reset & variables ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:      #4a7c8c;
    --primary-dark: #36606d;
    --text:         #1f2937;
    --text-light:   #6b7280;
    --bg:           #ffffff;
    --bg-secondary: #f9fafb;
    --border:       #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    text-align: justify;
}
a { cursor: pointer; }
/* ── Language toggle ── */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 8px;
    display: flex;
    gap: 4px;
}
.language-toggle a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}
.language-toggle a:hover  { background: var(--bg-secondary); }
.language-toggle a.active { background: var(--primary); color: white; }

/* ── Header (profil) ── */
header {
    background: linear-gradient(135deg, #4a7c8c 0%, #6b9aaa 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}
.header-content { max-width: 1200px; margin: 0 auto; }

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    object-fit: cover;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 400;
    margin-bottom: 30px;
    color:white;
}

.credentials {
    font-size: 1em;
    opacity: 0.9;
    line-height: 1.8;
    color:white;
}

/* ── Layout ── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ── Back link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 40px;
    transition: gap 0.3s ease;
}
.back-link:hover { gap: 12px; }
.back-icon { width: 20px; height: 20px; fill: var(--primary); }

/* ── Page title (H1 de la page, sous le retour) ── */
.page-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.25;
}

/* ── Sections ── */
.section { margin-bottom: 48px; }

.section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 26px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

p { color: var(--text-light); line-height: 1.75; margin-bottom: 14px; }

/* ── Lists ── */
.use-cases {
    list-style: none;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.use-cases li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-light);
}
.use-cases li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-weight: 600; color: var(--text); margin-bottom: 10px; }
.faq-a { color: var(--text-light); line-height: 1.7; }

/* ── Form ── */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

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

.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
}
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,124,140,0.1);
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}
.dropzone:hover,
.dropzone.drag-over {
    border-color: var(--primary);
    background: rgba(74,124,140,0.05);
}

.upload-icon {
    width: 48px; height: 48px;
    fill: var(--primary);
    margin-bottom: 16px;
}

.dropzone-text {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.dropzone-subtext { color: var(--text-light); font-size: 0.9em; }

.file-list { margin-top: 16px; }

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
}
.file-info { display: flex; align-items: center; gap: 12px; }
.file-icon { width: 32px; height: 32px; fill: var(--primary); }
.file-details { display: flex; flex-direction: column; }
.file-name { font-weight: 500; color: var(--text); }
.file-size { font-size: 0.85em; color: var(--text-light); }

.remove-file {
    background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--text-light);
    transition: color 0.3s ease;
}
.remove-file:hover { color: #dc2626; }

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,124,140,0.3);
}
.submit-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.btn-icon { width: 20px; height: 20px; fill: white; }

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}
.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block !important;
}
.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block !important;
}

.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
footer {
    background: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}
footer a { color: var(--primary); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    header h1     { font-size: 1.8em; }
    .page-title   { font-size: 1.5em; }
    .form-row     { flex-direction: column; }
    .form-container { padding: 24px 16px; }
    .language-toggle { top: 10px; right: 10px; }
}
