/* =================================================================
   PAGES.CSS - Styles pour les pages statiques de la racine
   Fichiers concernés: error.php, 404.php, condition_location.php,
   contact.php, cookies.php, garantie.php, mentions_legales.php,
   privacy.php, sitemap.php, terms.php, dashboard.php
   ================================================================= */

/* =================================================================
   ERROR PAGE (error.php)
   ================================================================= */
.error-page-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.error-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    margin-bottom: 20px;
}

.error-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: error-pulse 2s infinite;
}

.error-icon i {
    font-size: 50px;
}

@keyframes error-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.error-code {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.error-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.error-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.error-btn-primary {
    background: #ff6600;
    color: white;
}

.error-btn-primary:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.error-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.error-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.error-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #9ca3af;
}

/* Mode développeur */
.dev-panel {
    background: #1f2937;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    margin-top: 20px;
    overflow: hidden;
}

.dev-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #374151;
}

.dev-panel-header i {
    color: #f59e0b;
    font-size: 20px;
}

.dev-panel-header span {
    color: #f59e0b;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.dev-section:last-child {
    margin-bottom: 0;
}

.dev-label {
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.dev-value {
    color: #e5e7eb;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    background: #111827;
    padding: 12px 15px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.dev-value.error-text {
    color: #fca5a5;
}

.dev-value.file-text {
    color: #93c5fd;
}

.dev-trace {
    max-height: 300px;
    overflow-y: auto;
}

.dev-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.dev-meta-item {
    background: #111827;
    padding: 12px 15px;
    border-radius: 6px;
}

.dev-meta-label {
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dev-meta-value {
    color: #e5e7eb;
    font-family: 'Consolas', monospace;
    font-size: 13px;
}

/* Error page responsive */
@media (max-width: 480px) {
    .error-card {
        padding: 30px 20px;
    }

    .error-code {
        font-size: 56px;
    }

    .error-title {
        font-size: 22px;
    }

    .error-icon {
        width: 100px;
        height: 100px;
    }

    .error-icon i {
        font-size: 40px;
    }

    .error-btn {
        width: 100%;
        justify-content: center;
    }

    .dev-panel {
        padding: 15px;
    }
}

/* =================================================================
   404 PAGE (404.php)
   ================================================================= */
.page-404-body {
    font-family: Arial, sans-serif;
    background-color: #f9fafb;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.page-404-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.page-404-logo {
    margin-bottom: 20px;
}

.page-404-logo img {
    height: 50px;
}

.page-404-container h1 {
    font-size: 28px;
    margin: 20px 0;
    color: #ff6600;
}

.page-404-container p,
.page-404-container a {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.page-404-back-home {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-404-back-home:hover {
    background-color: #e55a00;
}

/* =================================================================
   CONTACT PAGE (contact.php)
   ================================================================= */
.contact-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.contact-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 40px;
}

.contact-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    text-align: center;
}

.contact-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: center;
}

.contact-message-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-message-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.contact-message-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

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

.contact-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.contact-required {
    color: #ef4444;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #ff8000;
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.1);
}

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

.contact-captcha-group {
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-captcha-question {
    font-size: 15px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-captcha-input {
    width: 100px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
}

.contact-captcha-input:focus {
    outline: none;
    border-color: #ff8000;
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.1);
}

.contact-btn-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #ff8000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-btn-submit:hover {
    background-color: #e67300;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.3);
}

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

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .contact-box {
        padding: 24px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   PAGES LÉGALES (cookies, garantie, mentions, privacy, terms, condition_location)
   ================================================================= */
.custom-policy-container,
.custom-garantie-container,
.custom-mentions-container,
.custom-privacy-container,
.custom-terms-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.custom-policy-title,
.custom-garantie-title,
.custom-mentions-title,
.custom-privacy-title,
.custom-terms-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.custom-policy-content,
.custom-garantie-content,
.custom-mentions-content,
.custom-privacy-content,
.custom-terms-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
}

/* =================================================================
   SITEMAP PAGE (sitemap.php)
   ================================================================= */
.custom-sitemap-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.custom-sitemap-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.custom-sitemap-list {
    list-style-type: disc;
    font-size: 1.125rem;
    padding-left: 2rem;
    color: #374151;
    margin-top: 0.5rem;
}

.custom-sitemap-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s;
}

.custom-sitemap-link:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* =================================================================
   DASHBOARD MESSAGE BOX (dashboard.php)
   ================================================================= */
.message-box {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.message-warning {
    background: #fef9c3;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* =================================================================
   SIDEBAR COMPONENT (components/sidebar.php)
   ================================================================= */
#mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.hidden {
    transform: translateX(-100%);
}

#mobile-menu.show {
    transform: translateX(0);
}

.accordion-toggle {
    transition: transform 0.3s ease;
}

.accordion-toggle.rotate-180 {
    transform: rotate(180deg);
}
