:root {
    --primary-color: #FF6B00;
    --secondary-color: #1A1A1A;
    --light-color: #FFFFFF;
    --accent-color: #FF8533;
    --john-deere-color: #367C2B;
    --kemper-color: #0056B3;
}

/* Fonts */
@font-face {
    font-family: 'Gravicon Display';
    src: url('../fonts/GRAVICD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* RÉAPRO specific styles */
.reapro-text {
    font-family: 'Gravicon Display', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: normal;
    color: var(--light-color);
}

.reapro-text.text-black,
.text-black .reapro-text {
    color: var(--secondary-color) !important;
}

.reapro-text .at-symbol {
    font-family: sans-serif;
    color: var(--primary-color);
    font-weight: bold;
}

/* Logo specific */
.logo.reapro-text {
    color: var(--light-color);
}

.logo.reapro-text .at-symbol {
    color: var(--primary-color);
}

/* Hero section specific */
.hero h1.reapro-text {
    color: var(--light-color);
}


.hero h1.reapro-text .at-symbol {
    color: var(--primary-color);
}

/* Section titles specific */
.section-title .reapro-text {
    color: var(--light-color);
}

.section-title .reapro-text .text-black {
    color: var(--secondary-color) !important;
}

.section-title .reapro-text .at-symbol {
    color: var(--primary-color);
}

/* About section specific */
.about-text .reapro-text {
    color: var(--light-color);
}

.about-text .reapro-text .at-symbol {
    color: var(--primary-color);
}

/* Footer specific */
.footer-section h3.reapro-text {
    color: var(--light-color);
}

.footer-section h3.reapro-text .at-symbol {
    color: var(--primary-color);
}

.copyright .reapro-text {
    color: var(--light-color);
}

.copyright .reapro-text .at-symbol {
    color: var(--primary-color);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

/* Header */
.header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: block !important;
    display: flex !important;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--secondary-color) !important;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    width: 100%;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color) !important;
    border-left: 3px solid var(--primary-color);
}

.dropdown-menu a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.account-btn {
    margin-left: 2rem;
}

.btn-account {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-account:hover {
    background-color: var(--accent-color);
}

.btn-light {
    color: black !important;
}
/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-video,
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}



.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btnPlus {
    padding: 0.5rem 1.5rem;
}


.btn-transparent {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 0px solid var(--primary-color);
}

.btn:hover {
    background-color: var(--accent-color);
    color:white;
}

/* Catalog Links Section */
.catalog-links {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #666;
}

.catalog-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.catalog-btn {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    min-width: 300px;
    max-width: 450px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.catalog-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.john-deere {
    background-color: var(--john-deere-color);
}

.kemper {
    background-color: var(--kemper-color);
}

.catalog-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
}

.catalog-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.catalog-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.catalog-arrow {
    font-size: 1.2rem;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.section-title span {
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
}

.catalog-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.catalog-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* About Section */
.about {
    background-color: var(--secondary-color);
    color: white;
    padding: 5rem 2rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    flex-shrink: 0;
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-color);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Media Query pour Mobile */
@media (max-width: 768px) {
    .header {
        padding: 1.2rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: var(--secondary-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.8rem;
        z-index: 1001;
    }

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

    .account-btn {
        z-index: 1001;
        margin: 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(26, 26, 26, 0.98);
        padding: 6rem 2rem 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
        z-index: 999;
        overflow-y: auto;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > a,
    .nav-links > .dropdown > .dropdown-toggle {
        width: 100%;
        max-width: 400px;
        text-align: center;
        padding: 1rem;
        border: none;
        font-size: 1.25rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border-radius: 8px;
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links > a:hover,
    .nav-links > .dropdown > .dropdown-toggle:hover {
        background-color: rgba(255, 107, 0, 0.1);
        color: var(--primary-color);
    }

    .dropdown {
        width: 100%;
        max-width: 30px;
        background-color: var(--primary-color);
        border-radius: 5px;
    }
    .dropdown-item{
        color: green;
    }

    .dropdown-menu {
        position: absolute;
        visibility: hidden;
        opacity: 0;
        height: 0;
        overflow: hidden;
        background-color: black;
        border-radius: 8px;
        margin: 0.5rem 0;
        padding: 0;
        width: 100%;
        max-width: 400px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        visibility: visible;
        opacity: 1;
        height: auto;
        padding: 0.75rem;
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.75rem;
        margin: 0.25rem 0;
        border-radius: 6px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        transition: all 0.3s ease;
    }

    .dropdown-menu a i {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }

    .dropdown-menu a:hover {
        background-color: rgba(255, 107, 0, 0.15);
        color: var(--primary-color) !important;
        transform: translateX(5px);
    }

    .dropdown-toggle {
        width: 100%;
        max-width: 400px;
        text-align: center;
        padding: 1rem;
        border: none;
        font-size: 1.25rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border-radius: 8px;
        color: white;
        background: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .dropdown-toggle:hover {
        background-color: rgba(255, 107, 0, 0.1);
        color: var(--primary-color);
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Ajustement pour le contenu principal */
    .main-content {
        margin-top: 100px; /* Hauteur du header fixe */
    }

    /* Style spécifique pour le bouton compte en mobile */
    .btn-account {
        padding: 0.7rem 1rem;
        font-size: 1rem;
        white-space: nowrap;
    }

    /* Cacher le texte du bouton compte sur mobile, ne garder que l'icône */
    .btn-account span {
        display: none;
    }

    .btn-account i {
        margin: 0;
        font-size: 1.2rem;
    }

    /* Ajuster l'espacement des éléments du dropdown */
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Style pour les informations produit en mobile */
    .mobile-item-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .mobile-item-info .reference {
        font-weight: bold;
        color: #333;
    }

    .mobile-details {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding-left: 0.5rem;
    }

    .mobile-details .designation {
        font-size: 0.9rem;
        color: #666;
    }

    .mobile-details .brand {
        font-size: 0.8rem;
        color: #888;
        font-style: italic;
    }

    /* Ajustements du tableau pour mobile */
    .table td {
        vertical-align: top;
        padding: 0.75rem 0.5rem;
    }

    .col-quantity {
        width: 70px;
    }

    .col-total {
        width: 80px;
    }

    .col-actions {
        width: 40px;
    }

    /* Style des inputs de quantité en mobile */
    .quantity-edit {
        width: 60px;
        height: 30px;
        padding: 0.25rem;
        font-size: 0.9rem;
    }
}

/* Styles pour la pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    line-height: 1.25;
    border-radius: 0.25rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: var(--accent-color);
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

/* Styles pour l'espace client */
.customer-space {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.customer-header {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .separator {
    color: #6c757d;
    margin: 0 0.5rem;
}

.customer-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-message {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-create-order {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
}

.btn-create-order:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.2);
}

.btn-create-order i {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .customer-space {
        padding: 0 !important;
    }

    .customer-content {
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        background-color: transparent;
    }

    .reference-input-container {
        max-width: 100%;
        margin: 0.5rem;
        padding: 0;
    }

    .reference-input-container .input-group {
        margin: 0;
        border-radius: 4px;
    }

    .order-tabs {
        margin: 0;
    }

    .tab-content {
        padding: 0;
    }

    .tab-pane {
        padding: 0;
    }

    #layoutSidenav_content main {
        padding: 0;
    }

    .container-fluid {
        padding: 0;
    }


    /* Style du tableau pour qu'il prenne toute la largeur */
    .order-items-table {
        margin: 0;
    }

    .table {
        margin-bottom: 0;
    }

    /* Ajuster le footer de la commande */
    .order-footer {
        margin: 0;
        padding: 1rem;
    }

    .order-footer .container-fluid {
        padding: 0;
    }
}

/* Styles pour les champs de date */
.d-flex.gap-2 input[type="date"] {
    min-width: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .d-flex.gap-2 input[type="date"] {
        width: 100%;
    }
}

/* Styles mobile pour la page de création de commandes */
@media (max-width: 768px) {
    /* Optimisation de la barre de recherche de références */
    .reference-input-container {
        margin: 0.5rem;
    }

    .reference-input-container .input-group {
        flex-wrap: nowrap;
        border-radius: 8px;
        background: #f8f9fa;
        padding: 0.5rem;
    }

    .search-wrapper {
        flex: 1;
    }

    .quantity-wrapper {
        width: 60px;
        margin: 0 0.5rem;
    }

    /* Style des onglets de commandes */
    .order-tabs .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .order-tabs .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-with-actions {
        min-width: 140px;
        margin-right: 2px;
    }

    .tab-with-actions .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Style du tableau des articles */
    .order-items-table {
        margin: 0 -1.5rem;
    }

    .order-items-table .table {
        font-size: 0.9rem;
    }

    .order-items-table th,
    .order-items-table td {
        padding: 0.5rem;
    }

    /* Masquer certaines colonnes sur mobile */
    .order-items-table .table th:nth-child(3),
    .order-items-table .table td:nth-child(3),
    .order-items-table .table th:nth-child(5),
    .order-items-table .table td:nth-child(5) {
        display: none;
    }

    /* Style du pied de commande */
    .order-footer {
        margin: 1rem -1.5rem -1.5rem;
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }

    .order-footer .row > div {
        margin-bottom: 0.5rem;
    }

    .order-footer .row > div:last-child {
        margin-bottom: 0;
    }

    /* Style des inputs de quantité */
    .quantity-edit {
        width: 60px;
        padding: 0.25rem;
        text-align: center;
    }

    /* Style du sélecteur de transport */
    .shipping-type {
        width: 100px;
        font-size: 0.9rem;
    }

    /* Ajustement des boutons d'action */
    .delete-item-btn,
   {
        width: 24px;
        height: 24px;
    }

    /* Style de l'état vide */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-message {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

.result-item .price {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .result-item .price {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
} 