/* ========================================
   FMD - STYLES COMMUNS
   ======================================== */

/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============== TOP BAR =============== */
.top-bar {
    background: #1a237e;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar .top-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-bar .separator {
    opacity: 0.5;
}

.top-bar .top-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar a {
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.top-bar a:hover {
    background: rgba(255,255,255,0.1);
}

/* Switch Particulier / Entreprise */
.user-type-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

.user-type-switch .switch-label {
    color: #fff;
    opacity: 0.7;
    font-weight: 500;
}
.user-type-switch .switch-toggle {
    width: 44px;
    height: 22px;
    border-radius: 999px;
    background: #4CAF50; /* Particulier ON vert */
    position: relative;
    transition: background 0.3s;
}

.user-type-switch .switch-knob {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}


/* =============== HEADER =============== */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a237e;
}

.logo-text span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
}

.search-bar {
    flex: 1;
    max-width: 550px;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #1a237e;
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    padding: 14px 22px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #3949ab;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s;
}

.header-action:hover {
    background: #f5f5f5;
    color: #1a237e;
}

.header-action i {
    font-size: 22px;
    margin-bottom: 4px;
}

.header-action.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 5px;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a237e;
    cursor: pointer;
    padding: 10px;
}

/* =============== NAVIGATION =============== */
.main-nav {
    background: #3949ab;
}

.main-nav .container {
    padding: 0 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 18px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    transition: background 0.3s;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255,255,255,0.15);
}

.nav-list li a i {
    font-size: 16px;
}

/* =============== PAGE HEADER =============== */
.page-header {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.page-header h1 i {
    margin-right: 15px;
    opacity: 0.8;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.8;
    position: relative;
}

.breadcrumb a {
    color: white;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* =============== BUTTONS =============== */
.btn {
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.35);
}

.btn-secondary {
    background: white;
    color: #1a237e;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #1a237e;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #1a237e;
    border: 2px solid #1a237e;
}

.btn-outline:hover {
    background: #1a237e;
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: #1a237e;
}

/* =============== SECTION STYLES =============== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: #1a237e;
    margin-bottom: 12px;
}

.section-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* =============== CARDS =============== */
.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.12);
}

/* =============== FOOTER =============== */
.footer {
    background: #0d1442;
    color: white;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff9800;
    border-radius: 2px;
}

.footer-col p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col ul li a i {
    width: 18px;
    font-size: 14px;
}

.footer-address {
    margin-top: 20px;
}

.footer-address p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-address i {
    color: #ff9800;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
}

.footer-downloads {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #ff9800;
    transform: translateY(-3px);
}

.download-btn i {
    font-size: 24px;
}

.download-btn span {
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #ff9800;
    transform: translateY(-4px);
}

/* =============== ASSISTANT WIDGET =============== */
.assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.assistant-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.4);
    transition: all 0.3s;
}

.assistant-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
}

.assistant-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-size: 14px;
    color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.assistant-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 22px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.assistant-tooltip strong {
    color: #1a237e;
}

/* =============== BACK TO TOP =============== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    width: 45px;
    height: 45px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3949ab;
    transform: translateY(-3px);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .header-actions {
        gap: 10px;
    }

    .header-action span {
        display: none;
    }

    .header-action i {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .top-bar .top-info .separator:not(:first-of-type),
    .top-bar .top-info span:not(:first-child) {
        display: none;
    }

    .header .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.mobile-open {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-list li a {
        border-radius: 8px;
    }

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

    .page-header p {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-downloads {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .assistant-widget {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 90px;
        right: 25px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }

    .logo-text span {
        display: none;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}



/* Switch Particulier / Entreprise */
.user-type-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

.user-type-switch .switch-label {
    color: #fff;
    opacity: 0.7;
    font-weight: 500;
}

.user-type-switch .switch-toggle {
    width: 44px;
    height: 22px;
    border-radius: 999px;
    background: #4CAF50; /* Particulier = ON vert */
    position: relative;
    transition: background 0.3s;
}

.user-type-switch .switch-knob {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

/* État Entreprise */
.user-type-switch.entreprise .switch-toggle {
    background: #ff9800; /* Entreprise ON orange */
}

.user-type-switch.entreprise .switch-knob {
    left: 24px;
}

/* Popup choix profil */
.user-type-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.user-type-modal.show {
    display: flex;
}

.user-type-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.user-type-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    padding: 40px 30px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.user-type-modal-content h2 {
    font-size: 26px;
    color: #1a237e;
    margin-bottom: 10px;
}

.user-type-modal-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.user-type-modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.user-type-choice {
    border: none;
    cursor: pointer;
    border-radius: 16px;
    padding: 20px 30px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.user-type-choice i {
    font-size: 28px;
}

.user-type-choice .title {
    font-size: 18px;
    font-weight: 700;
}

.user-type-choice .subtitle {
    font-size: 12px;
    opacity: 0.85;
}

/* Bouton Particulier */
.user-type-choice.particulier {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    box-shadow: 0 10px 30px rgba(76,175,80,0.4);
}

/* Bouton Entreprise */
.user-type-choice.entreprise {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    box-shadow: 0 10px 30px rgba(26,35,126,0.4);
}

.user-type-choice:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

/* Responsive popup */
@media (max-width: 480px) {
    .user-type-modal-content {
        padding: 30px 20px 25px;
    }
    .user-type-choice {
        width: 100%;
    }
}
/* SECTION DEVIS */
.section {
    padding: 60px 0 80px;
}

/* Conteneur centré et plus étroit */
.section .container {
    max-width: 1200px;
}

/* Deux colonnes équilibrées */
.grid-2 {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr;
    gap: 30px;
    align-items: stretch;
}

/* Cartes plus douces */
.section .card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.08);
    border: none;
}

.section .card-body {
    padding: 25px 28px 28px;
}

/* Titre formulaire / texte */
.section .card-body h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a237e;
}

/* Liste à puces à gauche */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.icon-list i {
    color: #4CAF50;
}

/* Grille interne du formulaire */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

/* Champ pleine largeur */
.form-grid .form-group.full {
    grid-column: 1 / -1;
}

/* Groupe de champ */
.form-group {
    display: flex;
    flex-direction: column;
}

/* Label */
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a237e;
    font-size: 13px;
}

/* Inputs, selects, textarea */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.05s;
}

/* Effet focus */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a237e;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

/* Note sous formulaire */
.form-note {
    margin-top: 12px;
    font-size: 12px;
    color: #777;
}

/* Responsive : pile sur mobile */
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section .card-body {
        padding: 20px 18px 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* PAGE PANIER */
.cart-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 30px;
}

/* Carte principale et résumé utilisent déjà .card / .card-body */

.cart-main h2,
.cart-summary h2 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #1a237e;
}

/* État panier vide */
.cart-empty {
    text-align: center;
    padding: 40px 20px 35px;
    color: #555;
}

.cart-empty i {
    font-size: 42px;
    color: #9fa8da;
    margin-bottom: 12px;
}

.cart-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a237e;
}

.cart-empty p {
    font-size: 14px;
    margin-bottom: 18px;
}

/* Récapitulatif */
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.cart-summary-row strong {
    font-size: 15px;
    color: #1a237e;
}

.cart-summary-note {
    font-size: 13px;
    color: #777;
    margin: 15px 0 18px;
}

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

/* Items (prêt pour plus tard) */
.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto auto;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-top: 1px solid #eee;
}

.cart-item:first-of-type {
    border-top: none;
}

.cart-item-info span {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cart-item-qty input {
    width: 60px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f1f3f4;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a237e;
}

.remove-item {
    border: none;
    background: transparent;
    color: #e53935;
    cursor: pointer;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .cart-item-qty {
        margin-top: 6px;
    }
}
/* PAGE BOUTIQUE */
.boutique-grid {
    max-width: 1100px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 30px;
}

.boutique-cta .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.boutique-cta .btn-full {
    width: 100%;
    justify-content: center;
    margin: 18px 0 10px;
}

.boutique-note {
    font-size: 13px;
    color: #777;
}

/* Responsive */
@media (max-width: 900px) {
    .boutique-grid {
        grid-template-columns: 1fr;
    }
}
/* Vitrine produits boutique */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    background: #f5f5f5;
    padding: 18px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
}

.product-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-body h3 {
    font-size: 16px;
    color: #1a237e;
}

.product-body p {
    font-size: 13px;
    color: #666;
}

.product-price {
    font-weight: 700;
    font-size: 15px;
    color: #2e7d32;
    margin-top: 4px;
}

.product-card .btn {
    margin-top: 8px;
    justify-content: center;
}
/* Conteneur de la liste du panier */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Une ligne du panier */
.cart-item {
    display: grid;
    grid-template-columns: 1fr 120px 120px; /* gauche | centre | droite */
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7f0;
    background: #fff;
}

/* Colonne gauche : titre + sous-texte */
.cart-item-left {
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-weight: 600;
    font-size: 16px;
    color: #152144;
    margin-bottom: 2px;
}

.cart-item-sub {
    font-size: 13px;
    color: #7a8095;
}

/* Colonne centrale : quantité */
.cart-item-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
}

.btn-qty {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid #152144;
    background: #fff;
    color: #152144;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* Colonne droite : prix + croix */
.cart-item-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cart-item-right .line-price {
    font-weight: 600;
    color: #152144;
}

.cart-item-right .remove-item {
    color: #e74c3c;
    font-size: 14px;
}
/* Bloc principal "Articles dans votre panier" avec le style de la card blanche */
.cart-main.card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(10, 29, 74, 0.08);
    padding: 24px 0;
    margin-bottom: 32px;
}

/* Contenu interne de cette card */
.cart-main .card-body {
    padding: 24px 32px;
}
/* Petite card centrée pour la liste des articles */
.cart-main.card {
    max-width: 1100px;          /* largeur max de l'encadré */
    margin: 0 auto 32px auto;   /* centre horizontalement + marge bas */
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(10, 29, 74, 0.08);
}

/* Contenu interne de cette card */
.cart-main .card-body {
    padding: 24px 32px;
}
.cart-layout {
    max-width: 1200px;
    margin: 24px auto 40px auto;
    display: grid;
    grid-template-columns: 2fr 1fr; /* articles | récap */
    gap: 24px;
}

.cart-main.card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(10, 29, 74, 0.08);
}

.cart-main .card-body {
    padding: 24px 32px;
}

.cart-summary.card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(10, 29, 74, 0.08);
}

.cart-summary .card-body {
    padding: 24px 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #152144;
}
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.client-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(10, 29, 74, 0.06);
    padding: 20px 22px;
    text-decoration: none;
    color: #152144;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(10, 29, 74, 0.12);
}

.client-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #152144;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

.client-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}

.client-card p {
    font-size: 13px;
    color: #7a8095;
    margin: 0;
}
/* Bandeau bleu espace client */
.client-hero {
    background: #1a237e;
    color: #ffffff;
    padding: 32px 0 28px 0;
}

.client-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.client-hero h1 {
    font-size: 28px;
    margin: 0 0 6px;
}

.client-hero p {
    margin: 0;
    opacity: 0.9;
}

/* Bouton déconnexion */
.client-logout {
    border-color: #ffffff;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
}
.client-logout:hover {
    background: #ffffff;
    color: #152144;
}

/* Menu onglets sous le bandeau */
.client-nav {
    background: #ffffff;
    border-bottom: 1px solid #e3e7f0;
}

.client-nav-inner {
    display: flex;
    gap: 24px;
    overflow-x: auto;
}

.client-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    color: #4f5573;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    white-space: nowrap;
}

.client-nav-item i {
    font-size: 15px;
}

.client-nav-item:hover {
    color: #152144;
}

.client-nav-item-active {
    color: #152144;
    border-bottom-color: #152144;
    font-weight: 600;
}

/* Liste des commandes */
.client-section-title {
    font-size: 20px;
    margin-bottom: 18px;
}

.client-order-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(10, 29, 74, 0.06);
    padding: 18px 22px;
    margin-bottom: 16px;
}

.client-order-main {
    display: grid;
    grid-template-columns: 110px 120px 1.5fr 90px 90px;
    gap: 16px;
    align-items: center;
}

.client-order-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #98a0b8;
    margin-bottom: 4px;
}

.client-order-value {
    font-size: 14px;
    color: #1b2340;
}

.client-order-desc .client-order-value {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Statut commande */
.client-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.client-status-ok {
    background: #e5f8ed;
    color: #1e8e3e;
}

/* Responsive commandes */
@media (max-width: 900px) {
    .client-order-main {
        grid-template-columns: 1fr 1fr;
        row-gap: 12px;
    }
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d4d8e5;
    font-size: 14px;
}
.form-control:focus {
    outline: none;
    border-color: #0052cc;
}
.btn-small {
    padding: 8px 14px;
    font-size: 13px;
}
