:root {
    --isatis-primary: #080E2C;
    --isatis-primary-rgb: 8, 14, 44;

    --isatis-secondary: #2C82C9;
    --isatis-secondary-rgb: 44, 130, 201;

    --isatis-info: #38EEFC;
    --isatis-info-rgb: 56, 238, 252;

    --isatis-warning: #F2784B;
    --isatis-warning-rgb: 242, 120, 75;

    --isatis-white: #FFFFFF; /* = white */
    --isatis-dark: #404040;
    --isatis-muted: #99A1AF;

    --isatis-hc-blue: #0047AB;
    --isatis-hc-darkblue: #003080;
    --isatis-hc-red: #bc0003;

    --font-lexend: "Lexend";
    --font-brush: "Alex Brush";
}

.font-lexend {
    font-family: var(--font-lexend), sans-serif;
}

.font-brush {
    font-family: var(--font-brush), sans-serif;
}

.bg-isatis-primary {
    background-color: var(--isatis-primary) !important;
}

.bg-isatis-secondary {
    background-color: var(--isatis-secondary) !important;
}

.bg-isatis-info {
    background-color: var(--isatis-info) !important;
}

.bg-isatis-warning {
    background-color: var(--isatis-warning) !important;
}

.bg-isatis-warning-25 {
    background-color: rgba(var(--isatis-warning-rgb), 0.25) !important;
}

.bg-isatis-dark {
    background-color: var(--isatis-dark) !important;
}

.border-isatis-warning {
    border-color: var(--isatis-warning) !important;
}

.text-isatis-primary {
    color: var(--isatis-primary) !important;
}

.text-isatis-secondary {
    color: var(--isatis-secondary) !important;
}

.text-isatis-info {
    color: var(--isatis-info) !important;
}

.text-isatis-warning {
    color: var(--isatis-warning) !important;
}

.text-isatis-dark {
    color: var(--isatis-dark) !important;
}

.text-isatis-muted {
    color: var(--isatis-muted) !important;
}

.text-shadow {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.opacity-90 {
    opacity: 90%;
}

.link-hover-underline {
    text-decoration: none !important;
}

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


/* =========================
    Preloader
========================= */

/* couleurs EN DUR : critique, ne dépend d'aucune autre CSS */
#preloader{
    position:fixed; inset:0; z-index:100000; overflow:hidden; pointer-events:auto;
}

#preloader.is-done{
    pointer-events:none;
}

/* aplat de couverture : instantané, présent dès le 1er paint (anti-FOUC) */
#pl-cover{ position:absolute; inset:0; background:#404040; z-index:0; }
#pl-cover.is-hidden{ display:none; }
/* fondu de secours (WebGL absent / reduced-motion) */
#preloader.is-fading #pl-cover{ opacity:0; transition:opacity .32s ease; }

/* petite barre blanche au centre (indéterminée), au-dessus du liquide */
#preloader .pl-bar{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:64px; height:2px; border-radius:2px;
    background:rgba(255,255,255,.16); overflow:hidden; z-index:2;
}
#preloader .pl-bar::after{
    content:""; position:absolute; top:0; left:0; height:100%; width:38%;
    background:#fff; border-radius:2px;
    animation:pl-slide 1s cubic-bezier(.65,.05,.36,1) infinite;
}
@keyframes pl-slide{ 0%{transform:translateX(-110%);} 100%{transform:translateX(320%);} }

/* la barre fait un petit rebond puis disparaît au moment de la révélation */
#preloader.is-open .pl-bar{ animation:pl-bar-out .42s cubic-bezier(.34,1.56,.64,1) forwards; }
#preloader.is-open .pl-bar::after{ animation:none; }
@keyframes pl-bar-out{
    0%  { transform:translate(-50%,-50%) scaleX(1);    opacity:1; }
    40% { transform:translate(-50%,-50%) scaleX(1.35); opacity:1; }
    100%{ transform:translate(-50%,-50%) scaleX(.15);  opacity:0; }
}

@media (prefers-reduced-motion: reduce){
    #preloader .pl-bar::after{ animation:none; }
    #preloader.is-open .pl-bar{ animation:none; opacity:0; }
}


/* =========================
    Scroll to top
========================= */

#scrollToTop {
    width: 3rem;
    height: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease;
}

#scrollToTop:hover {
    transform: scale(1.1);
}


/* =========================
    Warning hover
========================= */

.link-hover-warning,
.link-hover-dark-warning {
    transition: color 0.3s ease;
}

.link-hover-warning:hover {
    color: var(--isatis-warning) !important;
}

.link-hover-dark-warning:hover {
    color: #fa3200 !important;
}

.button-hover-warning {
    transition: background-color 0.3s ease;
}


/* =========================
    Button warning (75/90) and glass
========================= */

.btn-warning-75,
.btn-warning-90,
.btn-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    font-weight: bold;
    border: none;
    color: var(--isatis-white);
    box-shadow: 0 0.2rem 1rem rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-warning-75 {
    background: rgba(var(--isatis-warning-rgb),0.75);
}

.btn-warning-90 {
    background: rgba(var(--isatis-warning-rgb),0.9);
}

.btn-glass {
     color: var(--isatis-dark);
     background: rgba(255,255,255,0.08);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
 }

.btn-warning-75.small,
.btn-warning-90.small,
.btn-glass.small {
    font-size: .875em;
}

.btn-warning-75::before,
.btn-warning-90::before,
.btn-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(242,120,75,0.3), rgba(242,120,75,0));
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s ease;
}

.btn-warning-75:hover,
.btn-warning-90:hover,
.btn-glass:hover {
    color: var(--isatis-warning);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0.75rem 2rem rgba(0,0,0,0.35);
}

.btn-warning-75:hover::before,
.btn-warning-90:hover::before,
.btn-glass:hover::before {
    transform: translateX(200%) skewX(-15deg);
}


/* =========================
    Glass buttons
========================= */

.glass-button,
.mobile-white-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: white;
    background-color: rgba(168, 168, 168, 0.2);
    border: 1px solid white;

    border-radius: 25px;
    padding: 6px 28px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-button.active,
.mobile-white-button.active {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    background-color: rgba(120, 120, 120, 0.2) !important;
}

.glass-button-group {
    border-radius: 25px;
}

.glass-button-group .glass-button {
    border: none;
    border-radius: 0;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    background-color: rgba(168, 168, 168, 0.2);
}

.glass-button-group .glass-button:first-child {
    border-radius: 25px 0 0 25px;
    border-left: 1px solid white;
}

.glass-button-group .glass-button:last-child {
    border-radius: 0 25px 25px 0;
    border-right: 1px solid white;
}

.glass-button::before,
.mobile-white-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(242,120,75,0.3), rgba(242,120,75,0));
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s ease;
}

.glass-button:hover::before,
.mobile-white-button:hover::before {
    transform: translateX(200%) skewX(-15deg);
}

.glass-button:hover,
.mobile-white-button:hover {
    color: var(--isatis-warning);
    background: rgba(255,255,255,0.9) !important;
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.2);
    border-color: white !important;
}

@media (max-width: 768px) {
    .mobile-white-button.active {
        color: var(--isatis-warning);
        background: rgba(255,255,255,0.9) !important;
        box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.2);
        border-color: white !important;
    }
}


/* =========================
    Form warning
========================= */

.form-warning .form-control:focus,
.form-warning .form-select:focus {
    border-color: var(--isatis-warning);
    box-shadow: none;
}

.form-warning .input-group .input-group-text,
.form-warning .input-group label,
.form-warning .input-group svg {
    transition: all 0.3s ease;
}

.form-warning .input-group:focus-within label,
.form-warning .input-group:focus-within svg,
.form-warning .input-group:focus-within .input-group-text {
    color: var(--isatis-white);
}

.form-warning .input-group:focus-within .input-group-text {
    background-color: var(--isatis-warning);
    border-color: var(--isatis-warning);
}

.form-warning .form-check-input {
    accent-color: var(--isatis-warning);
    margin-top: 0;
}

.form-warning .form-check-input:focus {
    border-color: var(--isatis-warning);
    box-shadow: 0 0 0 0.25rem rgba(var(--isatis-warning-rgb), 0.25);
}

.form-warning .form-check-input:checked {
    background-color: var(--isatis-warning);
    border-color: var(--isatis-warning);
}

.form-warning .form-check-input:checked:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--isatis-warning-rgb), 0.35);
}

.form-warning textarea {
    resize: none;
    overflow: hidden;
}

.form-warning .form-label {
    margin-bottom: 0;
}

.input-warning-focus.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--isatis-warning-rgb), 0.25);
}

.toggle-warning:focus {
    box-shadow: 0 0 0 .25rem rgba(var(--isatis-warning-rgb), .25);
    border-color: var(--isatis-warning);
}

.toggle-warning:checked {
    background-color: var(--isatis-warning);
    border-color: var(--isatis-warning);
}


/* =========================
    Navbar
========================= */

.nav-link {
    color: var(--isatis-primary);
    transition: color .15s ease-in-out;
}

.nav-link:hover,
.nav-link:focus,
.dropdown-item:hover .dropdown-icon {
    color: var(--isatis-warning) !important;
}

#sticky-navbar {
    position: fixed;
    left: 0;
    right: 0;

    height: 75px;

    z-index: 1000;
    transition: all 0.2s ease;
}

.nav-container {
    position: relative;

    height: 75px;
    width: 100%;
}


/* =========================
    Dropdown items — état actif/focus
========================= */

.dropdown-item:active,
.dropdown-item.active,
.dropdown-item:focus {
    color: inherit !important;
    background-color: rgba(var(--isatis-warning-rgb), 0.08) !important;
}

.dropdown-item:active .dropdown-icon,
.dropdown-item.active .dropdown-icon,
.dropdown-item:focus .dropdown-icon {
    color: var(--isatis-warning) !important;
}

.dropdown-item:active .text-dark,
.dropdown-item.active .text-dark,
.dropdown-item:focus .text-dark {
    color: var(--isatis-primary) !important;
}


/* =========================
    Offcanvas mobile
========================= */

#mobileMenu {
    max-width: 300px;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23080E2C'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F2784B'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#mobileMenu .offcanvas-header {
    min-height: 65px;
    padding: 1rem 1.5rem;
    border-bottom-color: rgba(208, 208, 208, 0.5) !important;
}

#mobileMenu .accordion-item {
    border: none;
    background: transparent;
}

#mobileMenu .mobile-accordion-btn {
    padding: 0.75rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--isatis-primary);
    background: transparent;
    box-shadow: none;
    border-radius: 0 !important;
}

#mobileMenu .mobile-accordion-btn:not(.collapsed) {
    color: var(--isatis-warning);
    background: transparent;
    box-shadow: none;
}

#mobileMenu .mobile-accordion-body {
    padding: 0 1.5rem 0.75rem 2.25rem;
    display: flex;
    flex-direction: column;
}

#mobileMenu .mobile-sub-link {
    display: block;
    padding: 0.35rem 0;
    font-size: .875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

#mobileMenu .mobile-sub-link:hover {
    color: var(--isatis-warning);
}

#mobileMenu .mobile-sub-link--accent {
    color: var(--isatis-warning);
    font-weight: 500;
    padding-top: 0.6rem;
}

#mobileMenu .mobile-nav-separator {
    margin: 0.25rem 1.5rem;
    opacity: 1;
    border-color: rgba(208, 208, 208, 0.5);
}

#mobileMenu .mobile-nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--isatis-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

#mobileMenu .mobile-nav-link:hover {
    color: var(--isatis-warning);
}

#mobileMenu .mobile-nav-cta {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(208, 208, 208, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* =========================
    Footer
========================= */

.footer__newsletter {
    background-color: #1a2635;
}

.footer__tagline {
    color: var(--isatis-warning);
    font-size: 1.75rem;
    line-height: 1.1;
}

.footer__eyebrow {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--isatis-warning);
    margin: 0;
}

.footer__link {
    text-decoration: none;
    transition: color .2s ease;
}

.footer__link:hover {
    color: #93c5fd !important;
}

.footer__social-line {
    height: 1px;
    background: rgba(255, 255, 255, .1);
}

.footer__social-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #9ca3af;
    transition: all .2s ease;
}
.footer__social-icon:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.footer__signature {
    color: #6b7280;
    font-size: .75rem;
}


/* =========================
    Flash messages
========================= */

.flash-stack {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;

    display: flex;
    flex-direction: column;
    gap: 10px;

    width: min(92vw, 400px);
    pointer-events: none;
}

.flash-card {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(8, 14, 44, 0.04),
        0 12px 32px rgba(8, 14, 44, 0.12);

    font-size: .85rem;
    font-weight: 500;
    color: var(--isatis-dark);

    pointer-events: auto;
    animation: flash-in .35s cubic-bezier(.2, .8, .3, 1);
}

.flash-card.is-hiding {
    animation: flash-out .25s ease-in forwards;
}

.flash-card__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    color: #fff;
}

.flash-success .flash-card__icon { background: linear-gradient(135deg, #22c55e, #16a34a); }
.flash-error   .flash-card__icon { background: linear-gradient(135deg, #f87171, #dc2626); }
.flash-info    .flash-card__icon { background: linear-gradient(135deg, #38bdf8, var(--isatis-secondary)); }

.flash-card__text {
    flex: 1;
    line-height: 1.4;
}

.flash-card__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--isatis-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.flash-card__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--isatis-dark);
}

.flash-card__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: currentColor;
    opacity: .35;
    transform-origin: left;
    animation: flash-progress linear forwards;
}

.flash-success .flash-card__progress { color: #16a34a; }
.flash-error   .flash-card__progress { color: #dc2626; }
.flash-info    .flash-card__progress { color: var(--isatis-secondary); }

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes flash-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-8px) scale(.98); }
}

@keyframes flash-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 576px) {
    .flash-stack {
        top: 12px;
    }
}


/* =========================
    Learn more buttons
========================= */

.btn-learn-more__arrow {
    display: inline-grid;
}

.btn-learn-more__arrow > * {
    grid-area: 1 / 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-learn-more__hover {
    opacity: 0;
    transform: translateX(-4px);
}

.btn-learn-more:hover .btn-learn-more__default {
    opacity: 0;
    transform: translateX(4px);
}

.btn-learn-more:hover .btn-learn-more__hover {
    opacity: 1;
    transform: translateX(3px);
}


/* =========================
    Value cards
========================= */

.value-card {
    background: #fff;
    border: 1px solid rgba(8, 14, 44, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(8, 14, 44, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
    border-color: rgba(8, 14, 44, 0.08);
    box-shadow: 0 12px 32px rgba(8, 14, 44, 0.08);
}

.value-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: rgba(var(--isatis-warning-rgb), 0.12);
    color: var(--isatis-warning);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.value-card:hover .value-icon,
.value-card.inverted:hover .value-icon {
    background: linear-gradient(135deg, #ffb38c, var(--isatis-warning));
    color: #fff;
}

.value-card:hover .value-icon {
    transform: rotate(8deg);
}

.value-card.inverted:hover .value-icon {
    transform: rotate(-8deg);
}

.value-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--isatis-primary);
}

.value-text {
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.6;
}


/* =========================
    Others
========================= */

.pb-6 {
    padding-bottom: 5rem;
}

.absolute-x-centered {
    left: 0;
    right: 0;
}

@media (min-width: 1700px) {
    .px-1700px-3rem {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    content: none;
}

.nav-link-small {
    font-size: 0.75rem;
}

.container-wide {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}
