/* ============================
   STRUCTURE GLOBALE
============================ */

.page-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
}

.logo {
    height: 150px;          /* Ajuste selon ton design */
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-link {
    display: flex;
    align-items: center;
}


/* ============================
   SECTIONS
============================ */

.card-section {
    margin-bottom: 40px;
}

.card-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* ============================
   CARD (GENÉRIQUE)
============================ */

.card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    border: 1px solid #edf2f7;
    box-shadow:
        0 20px 45px rgba(15,23,42,.06),
        0 6px 18px rgba(15,23,42,.03);
}

/* ============================
   GRILLE FLEX (GENÉRIQUE)
============================ */

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

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================
   TABLEAU (GENÉRIQUE)
============================ */

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.table th {
    background: #f9fafb;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.table td {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
}

.link {
    color: #0A6EBE;
    font-weight: 500;
}

/* ============================
   FORMULAIRE (GENÉRIQUE)
============================ */

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
}

/* ============================
   RESPONSIVE GLOBAL
============================ */

@media (max-width: 900px) {

    .flex-row {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        height: 100px;
    }
}

@media (max-width: 600px) {

    .page-header h1 {
        font-size: 26px;
    }

    .card {
        padding: 18px;
    }

    .table th,
    .table td {
        padding: 10px;
        font-size: 14px;
    }
}

.pagination {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    background: #e5e7eb;
}

.pagination_produits.active {
    background: #0A6EBE !important;
    color: #fff !important;
    border-color: #0A6EBE !important;
}

