/* ========================== BASE GÉNÉRALE ========================== */
* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.admin-form-card, 
.admin-form-card * {
    user-select: text !important;
    -webkit-user-select: text !important;
}
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #0f0f0f 0%, #2e2e2e 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.container-site, .container-boutique {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.page-section {
    background: linear-gradient(to bottom, #101010, #1b1b1b 50%, #121212 100%);
    color: #fff;
}
img {
    pointer-events: none;
    -webkit-user-drag: none;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0f0f0f 0%, #1a1a1a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.loader-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.spinner {
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #00e676;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-text {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}
@media (max-width: 500px) {
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    .loader-text {
        font-size: 1rem;
    }
}

/* ========================== HEADER NAVBAR ========================== */
.custom-navbar {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: 0.3s;
}
.navbar-title:hover {
    color: #00e676;
}
.navbar-nav .nav-link {
    font-weight: 500;
    color: #fff !important;
    margin-left: 20px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}
.navbar-nav .nav-link:hover {
    color: #00e676 !important;
}
.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}
.navbar-logo:hover {
    transform: scale(1.1);
}

/* ========================== HERO ACCUEIL ========================== */
.hero-section {
    padding: 100px 0 80px 0;
    background: radial-gradient(circle at center, #181818, #121212 80%);
    box-shadow: inset 0 -100px 100px rgba(0,0,0,0.5);
}
.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.logo-large {
    width: clamp(150px, 25vw, 200px);
    height: clamp(150px, 25vw, 200px);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
}
.display-hero {
    font-size: 3rem;
    font-weight: 700;
    color: #f5f5f5;
}
.lead-hero {
    font-size: 1.2rem;
    color: #cccccc;
}

/* ========================== SERVICES ========================== */
.services-section {
    background: linear-gradient(180deg, #1b1b1b 0%, #121212 100%);
    padding: 100px 0;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 5rem;
    margin-left: auto;
    margin-right: auto;
}
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.card-service {
    background: linear-gradient(to bottom left, #252525, #333);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
    text-align: center;
}
.card-service:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0,0,0,0.85);
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}
.card-service:nth-child(1) .service-icon i {
    color: #00e676;
}
.card-service:nth-child(2) .service-icon i {
    color: #f39c12;
}
.card-service:nth-child(3) .service-icon i {
    color: #9b59b6;
}
.card-service:nth-child(4) .service-icon i {
    color: #e74c3c;
}
.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ========================== LOGICIELS ========================== */
.softwares-section {
    background: linear-gradient(180deg, #121212 0%, #191919 100%);
    padding: 100px 0;
}
.grid-softwares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    justify-items: center;
}
.software-card {
    background: rgba(255,255,255,0.04);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    text-align: center;
    transition: 0.3s;
}
.software-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}
.software-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* ========================== BOUTIQUE ========================== */
#boutique {
    width: 100%;
    background: linear-gradient(180deg, #121212 0%, #1e1e1e 100%);
    padding: 40px 20px;
    min-height: 100vh;
}
.back-button {
    background: linear-gradient(145deg, #1e1e1e, #292929);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.back-button:hover {
    background: #2a2a2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.search-header-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 40px;
}
.stylish-input-group {
    display: flex;
    align-items: center;
    background: #1f1f1f;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 0 20px;
    flex: 1;
    height: 60px;
}
.stylish-input-group .input-group-text {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.4rem;
    margin-right: 10px;
}
.stylish-input-group .form-control {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 0;
    height: 100%;
    box-shadow: none !important;
}
.stylish-input-group .form-control:focus {
    background-color: transparent;
    color: #fff;
    outline: none;
    box-shadow: none !important;
}
.product-counter {
    background: #1f1f1f;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}
.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.badge-filter {
    background: #1f1f1f;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}
.badge-filter:hover {
    background: #2a2a2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.badge-filter.active {
    border: 2px solid white;
}
#products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 0 auto;
}
.product-card {
    background: #222;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    overflow: hidden;
    position: relative;
    cursor: pointer; /* <-- ICI LE CHANGEMENT */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
}

.product-card .badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #00e676, #00b25a);
    color: #000;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 3px 15px rgba(0,0,0,0.5);
    z-index: 10;
}

.img {
    height: 200px;
    overflow: hidden;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .img img {
    transform: scale(1.1);
}

.info {
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #00e676;
    opacity: 0.8;
}

.desc {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feat {
    background: linear-gradient(145deg, #333, #444);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: auto;
}

.left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 3px;
    align-items: center;
}

.stars svg {
    width: 18px;
    height: 18px;
}

.reviews {
    font-size: 0.85rem;
    color: #aaa;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
}


/* ========================== FICHE PRODUIT ========================== */
#product-detail {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 0;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
#product-detail .container-site {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    width: 100%;
    gap: 60px;
    padding: 0 30px;
    box-sizing: border-box;
}
.product-images {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-images .main-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}
.thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: 0.3s;
}
.thumbnail.active {
    border: 2px solid #FFD700;
}
.product-info {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}
.product-info h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}
.product-info .badges {
    margin-bottom: 30px;
}
.product-info .badge {
    background: #00e676;
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    margin-right: 15px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.product-info .description {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}
.price-top-right {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 20px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.8rem;
}
.rating {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.rating svg {
    margin-right: 6px;
}
.review-count {
    font-size: 1rem;
    margin-left: 15px;
    color: #aaa;
}
.add-to-cart {
    background: #FFD700;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.add-to-cart:hover {
    background: #e6c200;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
@media (max-width: 900px) {
    #product-detail .container-site {
        flex-direction: column;
        align-items: center;
    }
    .product-info {
        width: 100%;
        text-align: center;
        padding-top: 30px;
    }
    .price-top-right {
        position: static;
        margin-bottom: 30px;
    }
}

/* ========================== ADMIN ========================== */
.admin-section {
    background: linear-gradient(to bottom, #101010, #1b1b1b 50%, #121212 100%);
    padding: 80px 0;
    color: #fff;
}
.result-message {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #00e676;
}
.admin-table-section {
    background: linear-gradient(145deg, #1e1e1e, #262626);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    margin-bottom: 60px;
}
.table-container {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.admin-table thead {
    background: #2b2b2b;
}
.admin-table thead th {
    padding: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #444;
}
.admin-table tbody td {
    padding: 20px;
    background: #222;
    color: #ccc;
    border-bottom: 1px solid #333;
}
.admin-table tbody tr:hover {
    background: #2a2a2a;
}
.admin-table button {
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}
.admin-table .btn-warning {
    background: #ffc107;
    color: #000;
}
.admin-table .btn-danger {
    background: #e74c3c;
    color: #fff;
}
.admin-table button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.admin-form-card {
    background: linear-gradient(145deg, #1c1c1c, #292929);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}
.admin-form-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}
.admin-form-card .form-group {
    margin-bottom: 25px;
}
.admin-form-card label {
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    color: #bbb;
    font-size: 1rem;
}
.admin-form-card input,
.admin-form-card textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    background: #333;
    border: none;
    color: #fff;
    font-size: 1rem;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.admin-form-card input:focus,
.admin-form-card textarea:focus {
    background: #3c3c3c;
    box-shadow: 0 0 12px rgba(0,255,150,0.3);
    outline: none;
}
.upload-zone {
    display: flex;
    align-items: center;
    gap: 20px;
}
.upload-zone button {
    background: #00e676;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.upload-zone button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}
.image-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}
.image-preview img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.submit-btn {
    background: linear-gradient(145deg, #00e676, #00b25a);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin: 50px auto 0 auto;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

/* ========================== FOOTER ========================== */
.site-footer {
    background: linear-gradient(180deg, #1b1b1b, #121212);
    padding: 30px 0;
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.footer-links a {
    color: #fff;
    font-weight: 500;
    margin-left: 20px;
    transition: 0.3s;
    text-decoration: none;
}
.footer-links a:hover {
    color: #00e676;
}

/* ========================== EDITEUR TEXTE RICHE (QUILL) ========================== */
.ql-toolbar {
    background: #1f1f1f !important;
    border: 1px solid #333 !important;
    color: #fff !important;
}
.ql-toolbar button {
    color: #fff !important;
    border: none;
}
.ql-toolbar button:hover,
.ql-toolbar button.ql-active {
    color: #00e676 !important;
}
.ql-toolbar .ql-picker {
    color: #fff !important;
}
.ql-toolbar .ql-picker-label {
    border: none !important;
}
.ql-toolbar .ql-picker-options {
    background: #333 !important;
    color: #fff !important;
    border: none !important;
}
.ql-container {
    background: #121212 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
}
.ql-editor {
    color: #fff !important;
    min-height: 300px;
}
.ql-editor a {
    color: #00e676 !important;
}
