/*
 * FICHIER : conforama.css
 * EMPLACEMENT : /public/assets/css/conforama.css
 *
 * CSS personnalisé pour MyToolsBox.
 * Ce fichier centralise tous les styles custom.
 * Ne jamais mettre de styles directement dans les fichiers PHP.
 *
 * SOMMAIRE
 * ─────────────────────────────────────────────────────────
 *  1. Header & navigation
 *  2. Page générique (titres, sous-titres)
 *  3. Page d'accueil - News / Actualités
 *  4. Settings (paramètres utilisateur)
 *  5. Page de connexion (login)
 * ─────────────────────────────────────────────────────────
 */


/* ============================================================
   1. HEADER & NAVIGATION
   ============================================================ */

.header-right {
    width: 100%;
    justify-content: space-between;
    display: flex !important;
}

.nxl-header {
    left: 0px;
}

html.minimenu .nxl-header {
    left: 0;
}

.nxl-container {
    margin-left: 0px;
}

.minimenu .nxl-container {
    margin-left: 0px;
}

.conforama-logo {
    margin-left: 0px;
    padding: 27px 16px;
    display: inline-block;
}

.conforama-text {
    color: #E30613;
    font-size: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1;
    vertical-align: middle;
}

.conforama-enseigne {
    color: #64748b;
    font-size: 15px;
    display: block;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1;
    vertical-align: middle;
}

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

.header-link {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.header-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #E30613, #ff4757);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.header-link:hover {
    color: #E30613;
}

.header-link:hover::before {
    width: 80%;
}

.header-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(227, 6, 19, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-link:hover::after {
    opacity: 1;
}

/* Sous-menu */
.header-link-dropdown {
    position: relative;
}

.header-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 12px;
    padding: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-link-dropdown:hover .header-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submenu-link i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.submenu-link span {
    font-size: 14px;
    font-weight: 500;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #E30613, #ff4757);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.submenu-link:hover {
    background: linear-gradient(90deg, rgba(227, 6, 19, 0.05), transparent);
    color: #E30613;
    padding-left: 20px;
}

.submenu-link:hover::before {
    height: 70%;
}

.submenu-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.d-flex.align-items-center {
    margin-left: auto;
}

a:hover {
    color: #E30613;
}


/* ============================================================
   2. PAGE GÉNÉRIQUE — titres, en-têtes de page
   ============================================================ */

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: #E30613;
}

.page-subtitle {
    color: #64748b;
    font-size: 15px;
}


/* ============================================================
   3. PAGE D'ACCUEIL — News / Actualités
   ============================================================ */

.news-grid {
    max-width: 900px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.news-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: white;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-badge.new {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.news-badge.update {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.news-badge.info {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.news-version {
    background: white;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.news-date {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.news-body {
    padding: 24px;
}

.news-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 14px;
}

.news-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.news-features li {
    position: relative;
    padding-left: 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.news-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .news-meta {
        flex-wrap: wrap;
    }
}


/* ============================================================
   4. SETTINGS — Paramètres utilisateur
   ============================================================ */

.page-container {
    min-height: calc(100vh - 200px);
}

.settings-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.settings-card-icon {
    width: 40px;
    height: 40px;
    background: #E30613;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.settings-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.settings-card-description {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.user-info-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.user-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.user-info-item:last-child {
    border-bottom: none;
}

.user-info-label {
    color: #64748b;
    font-size: 14px;
}

.user-info-value {
    font-weight: 600;
    font-size: 14px;
}


/* ============================================================
   5. PAGE DE CONNEXION (login)
   ============================================================ */

.login-page-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page-body *,
.login-page-body *::before,
.login-page-body *::after {
    box-sizing: border-box;
}

.login-page-body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.login-page-body::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 116, 139, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.login-container {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-name {
    text-align: left;
}

.enseigne-text {
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
}

.enseigne-text .highlight {
    color: #E30613;
}

.magasin-enseigne {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 20px 60px -10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.login-body {
    padding: 40px 36px;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-title i {
    color: #E30613;
}

.login-body .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-body .form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.login-body .form-control {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: #0f172a;
}

.login-body .form-control:hover {
    border-color: #cbd5e1;
    background: white;
}

.login-body .form-control:focus {
    outline: none;
    border-color: #E30613;
    background: white;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.08);
}

.login-body .input-group {
    position: relative;
}

.login-body .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
    transition: color 0.3s;
}

.login-body .input-group:focus-within .input-icon {
    color: #E30613;
}

.login-body .input-group .form-control {
    padding-left: 44px;
}

.store-search-wrapper {
    position: relative;
}

.store-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px 12px 44px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s;
}

.store-input:focus {
    outline: none;
    border-color: #E30613;
    background: white;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.08);
}

.store-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.store-dropdown.active {
    display: block;
    animation: dropdownShow 0.2s ease-out;
}

.store-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.store-option:last-child {
    border-bottom: none;
}

.store-option:hover,
.store-option.selected {
    background: linear-gradient(90deg, rgba(227, 6, 19, 0.05), transparent);
}

.store-option-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.store-option-code {
    display: inline-block;
    background: #E30613;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 600;
}

.store-option-city {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #E30613 0%, #c90512 100%);
    border: none;
    color: white;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.35);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-body .alert {
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

.login-body .alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-left: 3px solid #dc2626;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}

.login-footer-text {
    color: #64748b;
    font-size: 13px;
}

.login-footer-text a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.login-footer-text a:hover {
    color: #E30613;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dropdownShow {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}