/* ==========================================================================
   CSS VARIABLES & BASE STYLES
   ========================================================================== */

/* Base colors and variables */
:root {
    --primary-color: rgba(0, 0, 50, 0.9);
    --primary-light: rgba(0, 0, 50, 0.7);
    --accent-color: #2600B3;
    --accent-light: #1b2391;
    --accent-dark: #000a9c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #e6e6e6;
    --white: #fff;
    --shadow-light: 0 0 11px rgba(33, 33, 33, 0.2);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Utility classes */
.icon-blue {
    color: #007bff !important;
}

.core_bg_bl_txt_org {
    background-color: #FFD700 !important;
    color: #000;
}

.core_bg_warning {
    background-color: #FFF3CD !important;
    color: #856404;
}

.custom-padding {
    padding: 4rem;
}

.bk666 {
    background-color: var(--bg-light);
}

/* SVG styling */
.svg-white {
    fill: var(--white);
}

.svg-rgba-dark,
.bi-rgba-dark {
    fill: var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

.navbar {
    background: var(--primary-color);
}

.navbar-logo {
    font-family: 'Advent Pro', Orbitron, cursive;
    color: white;
    font-weight: 400;
    font-size: 1.4em;
    letter-spacing: 0.1em;
    text-decoration: none !important;    
    display: inline-block;
}

.powered-by {
    display: block;
    font-size: 1em;
    line-height: 1;
    text-align: center;
}

.powered-by img {
    height: 15px;
    width: auto;
    display: inline-block;
}

/* Navigation items */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 0.75rem;
    margin: 0;
}

.nav-item {
    padding: 0 8px;
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    color: white !important;
}

.nav-item.has-mega-menu {
    position: relative;
    padding: 0 8px;
}

/* Special button style for nav links */
.nav-link.btn-menu {
    color: #181846 !important;
    border-radius: 5px;
    padding: 3px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    max-height: 32px !important;
    min-width: auto;
    border: 1px solid white;
}

.nav-link.btn-menu:hover {
    background-color: #fff !important;
    color: #000 !important;
}

.nav-link.btn-menu.sp-hover:hover {
    background-color: #212156 !important;
}

.nav-item .bi-telephone {
    padding: 0.5rem 0.75rem;
}

.nav-item a:hover .icon-menu {
    color: white !important;
}

/* User initials circle */
.user-initials-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    font-size: 13px;
    border: 1px solid #cccccc;
    text-align: center;
    margin: 0;
}

/* Dropdown styles */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-top: 5px;
}

.dropdown {
    position: relative;
}

/* ==========================================================================
   MEGA MENU STYLES
   ========================================================================== */

.mega-menu {
    position: absolute;  
    display: none;
    min-width: 1300px;
    width: auto;
    left: 40%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: var(--shadow-heavy);
    margin: 0 50px;
    padding: 0 5px;
    z-index: 1000;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
    top: 100%;
}

.nav-item:hover .mega-menu {
    display: block;
}

.mega-menu-column {
    padding: 15px 20px;
    min-width: 260px;
}

.mega-menu h4 {
    color: #000;
    margin-bottom: 5px;
    font-size: 18px;
}

.mega-menu-column p {
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-light);
    font-style: italic;
    min-width: 250px;
}

.mega-menu-link {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.4;
    font-size: 0.90rem;
    margin-bottom: 4px;
}

.mega-menu-link:hover {
    color: rgba(32, 32, 203, 0.9);
    border-radius: 4px;
    padding-left: 8px;
    transition: all 0.2s ease;
    overflow: visible;
    white-space: nowrap;
}

.mega-menu-link i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.mega-menu .row {
    margin: 0 -15px;
}

/* ==========================================================================
   TYPOGRAPHY & CONTENT STYLES
   ========================================================================== */

.content h1 {
    font-family: "Roboto", "Outfit", Sans-serif;
    font-size: 2.5em;
    font-weight: 500;
    font-style: normal;
    line-height: 1.2;
    transform: scaleY(1.1);
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.content h2 {
    font-size: 2rem;
    font-weight: bold;
}

.content h3 {
    font-size: 1rem;
    font-weight: bold;
}

.content p {
    font-size: 1rem;
    margin: 30px 0;
}

.container h2 {
    font-size: 42px;
    font-family: "Outfit", sans-serif;
    font-weight: bold;
    color: var(--accent-dark);
}

.container h3 {
    font-size: 21px;
    font-family: "Outfit", sans-serif;
    font-weight: bold;
    color: var(--accent-light);
}

/* ==========================================================================
   PAGE HEADER SECTION
   ========================================================================== */

.bg-rgba-dark {
    background-color: var(--primary-color);
}

.bg-rgba-dark-top {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    position: relative;
    width: 100%;
    height: 35vh;
    min-height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-rgba-dark-top div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--white);
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.content-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-top h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-top: 3rem;
    word-wrap: break-word;
}

.content-top p {
    font-size: 1.2rem;
    margin: 0;
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */

.custom-buttons .btn {
    border: 2px solid var(--accent-color);
    border-radius: 15px;
}

.custom-buttons .btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   ICONS
   ========================================================================== */

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: .75rem;
}

.feature-icon-small {
    width: 3rem;
    height: 3rem;
}

.bluesquare-icons {
    width: 70px;
    height: 70px;
    background-color: #012a63;
    padding: 10px;
    margin: 0 auto 20px;
    border-radius: 10px;
}

/* ==========================================================================
   CARDS & COMPONENTS
   ========================================================================== */

.card {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transition: box-shadow 0.3s ease;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-text {
    flex-grow: 1;
}

.card-img-custom {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card-header {
    background-color: var(--white) !important;
    border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color) !important;
}

.card.essentiel-plan:hover,
.card.integral-plan:hover,
.card.essai-plan:hover {
    background-color: #fcfcfc;
    transition: background-color 0.3s ease;
}

/* ==========================================================================
   PARTNER SECTION STYLES
   ========================================================================== */

.partner-logo {
    width: 120px;
    height: 80px;
    max-width: 100%;
    max-height: 100px;
    margin: 0 auto;
    object-fit: contain;
}

.partner-card {
    border: none;
}

.partner-card:hover {
    box-shadow: var(--shadow-light);
}

.partner-title {
    text-align: center;
    margin-top: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--primary-color);
    color: var(--white);
}

footer li {
    padding: 3px 0;
}

/* ==========================================================================
   MARKETING SECTION
   ========================================================================== */

.marketing .col-lg-4 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.marketing .col-lg-4 p {
    margin-right: .75rem;
    margin-left: .75rem;
}

.featurette-divider {
    margin: 4rem 0;
}

.featurette-heading {
    letter-spacing: -.05rem;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.form-check {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.custom-checkbox-radio {
    border: 2px solid #000;
    background-color: var(--white);
}

.disabled-section {
    color: gray;
    opacity: 0.6;
    pointer-events: none;
}

.tooltip-inner {
    max-width: 450px !important;
    font-size: 14px;
    padding: 5px;
}

.disabled-section[disabled] {
    pointer-events: none;
}

.disabled-section .bi-info-circle-fill {
    pointer-events: auto;
}

/* ==========================================================================
   PRODUCT LIST STYLES
   ========================================================================== */

.product-row {
    border: 1px solid #dee2e6;
    margin-bottom: 8px;
    border-radius: 6px;
    padding: 10px;
}

.product-name {
    font-weight: 500;
    margin-bottom: 0;
}

.product-description {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0;
}

.quantity-controls {
    width: 110px;
}

.price-column {
    min-width: 100px;
    text-align: right;
}

.quantity-controls .input-group-append button {
    height: 50%;
    line-height: 0.5;
}

.quantity-controls .form-control {
    max-width: 50px;
}

.form-check-label {
    white-space: nowrap;
}

.btn-xs {
  padding: 0.15rem 0.25rem;
  font-size: 0.65rem;
  line-height: 1;           
  border-radius: 0.15rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (min-width: 768px) {
    .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
    }
}

@media (max-width: 768px) {
    .bg-rgba-dark-top .content-top h1 {
        font-size: 2rem;
    }    
    .bg-rgba-dark-top .content-top p {
        display: none;
    }
}







@media (min-width: 40em) {
    .featurette-heading {
        font-size: 50px;
    }
}

@media (min-width: 62em) {
    .featurette-heading {
        margin-top: 7rem;
    }
}

/* Mega menu responsive adjustments */
@media (max-width: 1200px) {
    .nav-item.has-mega-menu {
        position: static;
        left: 0;
    }
    
    .mega-menu {
        min-width: 100%;
        left: 0;
        transform: none;
        margin: 0px;
    }
}

@media (max-width: 992px) {
    .nav-item.has-mega-menu {
        position: static;
        left: 0;
    }
    
    .mega-menu {
        position: relative;
        width: 100%;
        transform: none;
    }
    
    .mega-menu-column {
        width: 100%;
    }
}

@media (max-width: 991px) {
    /* Mobile mega menu scrolling */
    .mobile-scrollable {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: static !important;
    }
    
    .has-mega-menu .mega-menu {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        max-width: 100%;
        min-width: 100% !important;
    }
    
    .mega-menu-column {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .row.g-0 {
        flex-direction: column;
    }
    
    .nav-item {
        padding: 0.5rem 8px;
    }
}