/**
 * ============================================================================
 * STYLES PAGES PRODUITS - CARLISI CRELAN
 * ============================================================================
 * Styles pour l'affichage des pages banque et assurance
 * Version: 1.1
 * Date: 17 novembre 2025
 */

/* ============================================================================
   BREADCRUMB
   ============================================================================ */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb a,
.breadcrumb span {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #84BD00;
}

.breadcrumb a::after {
    content: " / ";
    margin: 0 8px;
    color: #999;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* ============================================================================
   LAYOUT PAGE PRODUIT
   ============================================================================ */
.page-produit {
    /* Le padding a été retiré pour supprimer la zone blanche avant la bannière */
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

.page-layout.page-layout-full-width {
    grid-template-columns: 1fr;
}

/* ============================================================================
   CONTENU PRINCIPAL
   ============================================================================ */
.page-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-content h1 {
    color: #000;
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-content .subtitle {
    color: #666;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
}

.page-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-text {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.page-text h2 {
    color: #000;
    font-size: 28px;
    margin: 30px 0 20px;
}

.page-text h3 {
    color: #000;
    font-size: 22px;
    margin: 25px 0 15px;
}

.page-text p {
    margin-bottom: 15px;
}

.page-text ul {
    margin: 20px 0;
    padding-left: 25px;
}

.page-text ul li {
    margin-bottom: 10px;
    color: #555;
}

.page-text ul li::marker {
    color: #84BD00;
}

/* ============================================================================
   CTA BOUTONS
   ============================================================================ */
.page-cta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.page-cta p {
    margin-top: 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.page-cta p a {
    color: #84BD00;
    text-decoration: none;
    font-weight: 500;
}

.page-cta p a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: #84BD00;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #6fa000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(132, 189, 0, 0.3);
}

.btn-primary {
    background: #84BD00;
}

.btn-secondary {
    background: #000;
}

.btn-secondary:hover {
    background: #333;
}

/* ============================================================================
   FORMULAIRE LATÉRAL
   ============================================================================ */
.page-sidebar {
    position: sticky;
    top: 100px;
}

.contact-form-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #84BD00;
}

.contact-form-box h3 {
    color: #000;
    font-size: 22px;
    margin-bottom: 25px;
}

/* Styles formulaire */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #84BD00;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

/* Tablettes */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-sidebar {
        position: static;
    }

    .page-content {
        padding: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-produit {
        padding: 20px 0;
    }

    .page-content {
        padding: 20px;
        border-radius: 0;
    }

    .page-content h1 {
        font-size: 28px;
    }

    .page-content .subtitle {
        font-size: 18px;
    }

    .page-text {
        font-size: 15px;
    }

    .page-text h2 {
        font-size: 24px;
    }

    .page-text h3 {
        font-size: 20px;
    }

    .contact-form-box {
        padding: 20px;
    }

    .breadcrumb {
        padding: 10px 0;
        font-size: 13px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================================
   ÉTATS DE CHARGEMENT ET ANIMATIONS
   ============================================================================ */
.page-content,
.contact-form-box {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   STYLES ADMIN - ONGLETS
   ============================================================================ */
.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #84BD00;
}

.tab-btn.active {
    color: #84BD00;
    border-bottom-color: #84BD00;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* ============================================================================
   STYLES ADMIN - TABLE
   ============================================================================ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table thead {
    background: #f8f9fa;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.admin-table td {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table code {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-banque {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-assurance {
    background: #fff3e0;
    color: #f57c00;
}

.badge-other {
    background: #f5f5f5;
    color: #666;
}

.status-published {
    color: #4caf50;
    font-weight: 600;
}

.status-draft {
    color: #999;
}

.actions {
    white-space: nowrap;
}

.btn-icon {
    text-decoration: none;
    font-size: 20px;
    margin: 0 5px;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* ============================================================================
   FILTRES
   ============================================================================ */
.filters {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-form input,
.filter-form select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.filter-form input {
    flex: 1;
}

.filter-form select {
    min-width: 150px;
}

/* ============================================================================
   FIN DES STYLES
   ============================================================================ */