/* ===================================
   MARKETPLACE CER - VERSION SIMPLIFIÉE
   =================================== */

/* Variables */
:root {
    --cer-red: #E63946;
    --cer-red-dark: #D62839;
    --cer-black: #1D1D1D;
    --cer-gray-dark: #333333;
    --cer-gray: #666666;
    --cer-gray-light: #E5E5E5;
    --cer-white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cer-white);
    color: var(--cer-black);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===================================
   HEADER
   =================================== */
.header {
    background: var(--cer-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--cer-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cer-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cer-red);
}

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

.btn-icon {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--cer-black);
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
}

.btn-icon:hover {
    color: var(--cer-red);
    transform: scale(1.1);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.btn-primary {
    background: var(--cer-red);
    color: white;
}

.btn-primary:hover {
    background: var(--cer-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--cer-red);
    color: var(--cer-red);
}

.btn-outline:hover {
    background: var(--cer-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.2);
}

.btn-large {
    padding: 18px 45px;
    font-size: 17px;
}

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

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--cer-red) 0%, var(--cer-red-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.5;
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--cer-black);
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--cer-gray);
    margin-bottom: 60px;
}

/* ===================================
   SUPPLIERS SECTION
   =================================== */
.suppliers-section {
    background: #F9F9F9;
}

.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.supplier-card {
    background: white;
    border-radius: 16px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.supplier-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.supplier-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--cer-red) 0%, var(--cer-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: white;
}

.supplier-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--cer-black);
}

.supplier-description {
    color: var(--cer-gray);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 15px;
}

.supplier-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cer-gray);
    font-size: 15px;
    font-weight: 500;
}

.stat i {
    color: var(--cer-red);
    font-size: 16px;
}

/* ===================================
   MODAL
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--cer-red);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 50px 40px 40px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    color: var(--cer-black);
}

/* ===================================
   LOGIN FORM
   =================================== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    font-weight: 600;
    font-size: 15px;
    color: var(--cer-black);
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid var(--cer-gray-light);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cer-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-footer {
    text-align: center;
    margin-top: 15px;
}

.link {
    color: var(--cer-red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--cer-black);
    color: white;
    padding: 70px 0 35px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-section p {
    color: #CCCCCC;
    line-height: 1.8;
    font-size: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a,
.footer-links li {
    color: #CCCCCC;
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--cer-red);
}

.footer-links i {
    margin-right: 10px;
    color: var(--cer-red);
    width: 20px;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: var(--cer-gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--cer-red);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid var(--cer-gray-dark);
    color: #CCCCCC;
    font-size: 14px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid var(--cer-gray-light);
        gap: 25px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .suppliers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-body {
        padding: 40px 25px 30px;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 15px;
    }

    .supplier-name {
        font-size: 24px;
    }
}