/**
 * Charte graphique All Solutions - Plateforme Stage
 * Couleurs : Orange #E85D04, Bleu foncé #1a365d
 */

:root {
    --as-orange: #E85D04;
    --as-orange-hover: #d65303;
    --as-blue-dark: #1a365d;
    --as-blue-darker: #0f2744;
    --as-white: #ffffff;
    --as-gray-light: #f8f9fa;
    --as-gray-dark: #212529;
    --sidebar-width: 260px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--as-gray-dark);
}

/* Layout sidebar + main */
.layout-sidebar {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar gauche */
.sidebar-allsolutions {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--as-blue-dark) 0%, var(--as-blue-darker) 100%);
    color: var(--as-white);
    overflow-y: auto;
    transition: transform 0.3s ease, margin 0.3s ease;
}

.sidebar-allsolutions .sidebar-brand .brand-all { font-style: italic; color: var(--as-white); }
.sidebar-allsolutions .sidebar-brand .brand-solutions { color: var(--as-white); }
.sidebar-allsolutions .sidebar-brand .brand-solutions .s-orange { color: var(--as-orange); }
.sidebar-allsolutions .sidebar-slogan { color: rgba(255,255,255,0.7); font-size: 0.75rem; }

.sidebar-allsolutions .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.sidebar-allsolutions .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--as-white);
}

.sidebar-allsolutions .nav-link.active {
    background-color: var(--as-orange);
    color: var(--as-white);
}

.sidebar-allsolutions .nav-icon { margin-right: 0.5rem; opacity: 0.9; }
.sidebar-allsolutions .sidebar-chevron { font-size: 0.7rem; transition: transform 0.2s; }
.sidebar-allsolutions a[aria-expanded="true"] .sidebar-chevron { transform: rotate(180deg); }

.sidebar-allsolutions .submenu {
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255,255,255,0.2);
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-allsolutions .submenu .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1029;
    background: rgba(0,0,0,0.4);
}

@media (max-width: 991.98px) {
    .sidebar-allsolutions {
        transform: translateX(-100%);
    }
    .sidebar-allsolutions.sidebar-collapsed {
        transform: translateX(0);
    }
}

@media (min-width: 992px) {
    .sidebar-allsolutions { transform: none; }
    .sidebar-overlay { display: none !important; }
}

/* Main wrapper */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--as-gray-light);
}

@media (max-width: 991.98px) {
    .main-wrapper { margin-left: 0; }
}

/* Topbar */
.topbar-allsolutions {
    background: var(--as-white);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.topbar-allsolutions .btn-sidebar-toggle {
    text-decoration: none;
}

.topbar-allsolutions .btn-sidebar-toggle:hover {
    background-color: var(--as-gray-light);
}

/* Main content */
.main-content {
    flex: 1;
    padding: 1.5rem;
}

.content-header {
    margin-bottom: 1.25rem;
}

.content-title {
    background-color: var(--as-orange);
    color: var(--as-white);
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.content-body {
    background: var(--as-white);
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.content-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
}

/* Brand (logo) - utilisable hors sidebar */
.brand-all { font-style: italic; color: var(--as-blue-dark); }
.brand-solutions { color: var(--as-blue-dark); }
.brand-solutions .s-orange { color: var(--as-orange); }

/* Navbar All Solutions (legacy / welcome) */
.navbar-allsolutions {
    background: linear-gradient(135deg, var(--as-blue-dark) 0%, var(--as-blue-darker) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-allsolutions .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar-allsolutions .navbar-brand .brand-all {
    font-style: italic;
    color: var(--as-white);
}

.navbar-allsolutions .navbar-brand .brand-solutions {
    color: var(--as-white);
}

.navbar-allsolutions .navbar-brand .brand-solutions .s-orange {
    color: var(--as-orange);
}

.navbar-allsolutions .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem;
}

.navbar-allsolutions .nav-link:hover,
.navbar-allsolutions .nav-link.active {
    color: var(--as-white) !important;
    background-color: rgba(232, 93, 4, 0.3);
}

/* Boutons */
.btn-allsolutions {
    background-color: var(--as-orange);
    border-color: var(--as-orange);
    color: var(--as-white);
}

.btn-allsolutions:hover {
    background-color: var(--as-orange-hover);
    border-color: var(--as-orange-hover);
    color: var(--as-white);
}

.btn-outline-allsolutions {
    border-color: var(--as-orange);
    color: var(--as-orange);
}

.btn-outline-allsolutions:hover {
    background-color: var(--as-orange);
    color: var(--as-white);
}

/* Bandeau slogan */
.banner-slogan {
    background: linear-gradient(135deg, var(--as-blue-dark) 0%, var(--as-blue-darker) 100%);
    color: var(--as-white);
    padding: 1.5rem 0;
}

.banner-slogan h2 {
    font-weight: 700;
    margin: 0;
}

.banner-slogan .slogan-text {
    color: var(--as-orange);
    font-weight: 600;
}

/* Section titre orange */
.section-title-orange {
    background-color: var(--as-orange);
    color: var(--as-white);
    padding: 0.75rem 1rem;
    font-weight: 700;
    margin: 0;
}

/* Cards */
.card-allsolutions {
    border-left: 4px solid var(--as-orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Footer All Solutions */
.footer-allsolutions {
    background-color: var(--as-gray-light);
    border-top: 3px solid var(--as-orange);
}

.footer-allsolutions .footer-contact-bar {
    background-color: var(--as-orange);
    color: var(--as-white);
    padding: 0.75rem 0;
    font-weight: 600;
}

.footer-allsolutions .footer-icon {
    color: var(--as-orange);
    margin-right: 0.5rem;
}

.footer-allsolutions a {
    color: var(--as-gray-dark);
    text-decoration: none;
}

.footer-allsolutions a:hover {
    color: var(--as-orange);
}

/* Liens Bootstrap override */
.text-allsolutions { color: var(--as-orange) !important; }
.bg-allsolutions { background-color: var(--as-orange) !important; }
.border-allsolutions { border-color: var(--as-orange) !important; }

/* Cartes résumé dashboard */
.card-summary { border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; }
.card-summary .card-header { padding: 0.75rem 1rem; font-weight: 600; color: white; border: none; }
.card-summary .card-body { padding: 1.25rem; font-size: 1.5rem; font-weight: 700; }
.card-summary.card-blue .card-header { background-color: #0d6efd; }
.card-summary.card-orange .card-header { background-color: var(--as-orange); }
.card-summary.card-green .card-header { background-color: #198754; }
.card-summary.card-red .card-header { background-color: #dc3545; }
