: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;

    --glass-bg: rgba(255, 255, 255, 0.8);

    --font-lexend: "Lexend", sans-serif;
}

hr {
    height: 2px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.hr-1 {
    height: 1px;
}

.minh-100 {
    min-height: 100dvh;
}

.mw-50 {
    max-width: 50%;
}

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

.text-shadow-white {
    text-shadow: 0 0 12px #dc3545;
}

.bg-info-25-circle {
    background-color: rgba(var(--isatis-info-rgb), 0.25);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: scale 0.4s ease;
}

.bg-info-25-circle:hover {
    scale: 1.1;
}

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

.btn-white-75,
#accountButton:focus {
    color: var(--isatis-primary);
    background: rgba(255,255,255,0.75);
}

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

.btn-white-75::before,
.btn-warning-75::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-white-75:hover::before,
.btn-warning-75:hover::before {
    transform: translateX(200%) skewX(-15deg);
}

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

.nav-hover .nav-link {
    transition: color .15s ease-in-out;
}

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

@media (min-width: 1080px) {
    .desktop-nav {
        display: block !important;
    }

    .mobile-icon {
        display: none !important;
    }

    #nav-logo {
        margin-bottom: 1rem;
    }
}

@media (max-width: 1079px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-icon {
        display: block !important;
    }

    #nav-logo {
        margin-bottom: 0.5rem;
    }
}

.mobile-icon {
    z-index: 1;
    padding: 0;
}

.mobile-icon svg,
.nav-svg {
    width: 32px;
    height: 32px;
    color: var(--isatis-primary);
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.5));
}

#header .container-fluid {
    height: 140px;
    max-width: 1480px;
}

#nav-logo {
    height: 75%;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.5));
}

@media (max-width: 1200px) {
    #header .container-fluid {
        height: 120px;
    }

    #nav-logo {
        height: 62%;
    }
}

@media (max-width: 600px) {
    #header .container-fluid {
        height: 100px;
    }

    #nav-logo {
        height: 50%;
    }
}

#header div {
    z-index: 1;
}

#header.full-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--header-bg) no-repeat center 48%;
    clip-path: polygon(100% 0, 100% 42%, 50% 85%, 0 42%, 0 0);
    min-height: 230px;
    max-height: 350px;
    width: 100%;
    aspect-ratio: 2 / 1;
    background-size: cover;
    z-index: 0;
}

@media (max-width: 1180px) {
    #header.full-header::before {
        max-height: 320px;
        background-position-y: 50%;
        clip-path: polygon(100% 0, 100% 42%, 50% 65%, 0 42%, 0 0);
    }
}

/* Drawer menu */
#mobileMenu,
#adminNav {
    position: fixed;
    top: 0;
    height: 100dvh;
    transition: right 0.3s;
    z-index: 1200 !important;
}

#mobileMenu {
    right: -270px;
    width: 270px;
}

#adminNav {
    right: -300px;
    width: 300px;
}

.mobile-drawer {
    background-color: white;
    height: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1199 !important;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--isatis-info) !important;
}

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

.text-gradient {
    background: linear-gradient(90deg, var(--isatis-info), var(--isatis-secondary), var(--isatis-info));
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    to { background-position: 200% center; }
}

.btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--isatis-info), var(--isatis-warning));
    border: none;
    border-radius: 50px;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.25);
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-cta.cta-outline {
    border: 3px solid white;
    border-radius: 15px;
    background: transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

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

.btn-cta:hover::before {
    transform: translateX(200%) skewX(-15deg);
}

.btn-cta:hover {
    transform: translateX(5px);
    box-shadow: 0 0.75rem 2rem rgba(0,0,0,0.35);
    color: var(--isatis-dark);
}

.btn-cta.cta-outline:hover {
    border-color: var(--isatis-dark);
}

.bg-cta-warning {
    background: var(--isatis-warning);
    border: none;
}

.bg-cta-secondary {
    background: var(--isatis-secondary);
    border: none;
}

.bg-cta-info {
    background: var(--isatis-info);
    border: none;
}

ul li .icon-wrapper svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

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

#rayonnement {
    background-size: 100% 100%;
    background-image:
        radial-gradient(
            110% 85% at 27% 5%,
            #080E2C 66%,
            #080E2CC0 72%,
            #080E2C60 85%,
            #080E2C20 92%,
            #FFFFFF00 100%
        ),
        linear-gradient(90deg,rgba(0, 0, 145, 1) 10%, rgba(255, 255, 255, 1) 38%, rgba(255, 255, 255, 1) 62%, rgba(225, 0, 15, 1) 90%);
}

.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-hover-warning:hover {
    background-color: var(--isatis-warning) !important;
}

.img-wrapper {
     width: 90%;
     margin-left: auto;
 }

.desktop-price {
    max-width: 90%;
    left: -1.2rem;
    bottom: -1.2rem;
}

@media (max-width: 991.98px) {
    .img-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .desktop-price {
        display: none;
    }
}

.article-card {
    height:320px;
}

.article-card img {
    height:150px;
    object-fit:cover;
}

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

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider::before,
.slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 12px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.slider::before {
    left: 0;
    background: linear-gradient(to right, var(--isatis-primary), rgba(var(--isatis-primary-rgb), 0));
}

.slider::after {
    right: 0;
    background: linear-gradient(to left, var(--isatis-primary), rgba(var(--isatis-primary-rgb), 0));
}

.track {
    display: flex;
    transition: transform 0.4s ease;
}

.slide {
    min-width: calc(100% / 3);
    padding: 5px;
}

.slide img {
    width: 100%;
    border-radius: 10px;
}

.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    width: 35px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
}

.prev { left: 0; }
.next { right: 0; }

.sidebar-title {
    position: relative;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-title span {
    position: relative;
    z-index: 20;
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-title:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #222;
    top: 50%;
    margin-top: -1px;
    z-index: 0;
}

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

#admin-header {
    height: 92px;
}

#draggable-content {
    height: calc(100dvh - 92px);
}

.movable-card {
    position: absolute;
    width: fit-content;
    min-width: 285px;
    max-width: 320px;
    border-radius: 6px;
    cursor: grab;
    visibility: hidden;
}

.movable-card:active {
    cursor: grabbing;
}

.movable-card .card-block {
    padding: 25px;
}

@media (max-width: 768px) {
    #draggable-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        position: relative;
    }

    .movable-card {
        position: static;
        margin: 10px 0;
        width: 90%;
        visibility: visible;
    }
}

.chevron svg {
    transition: transform 0.3s ease;
}

.movable-card.open .chevron svg {
    transform: rotate(180deg);
}

.card-content {
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.card-content.d-none {
    max-height: 0;
    padding: 0;
}

.movable-card.open .card-content {
    padding: 1rem;
}

table thead tr th:first-child {
    border-top-left-radius: 5px;
}

table thead tr th:last-child {
    border-top-right-radius: 5px;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

@media (max-width: 450px) {
    .col-categorie {
        display: none;
    }
}

.row-toggle {
    cursor: pointer;
}

.details-row {
    display: none;
}

.details-row.open {
    display: table-row;
}

.chevron svg {
    transform: rotate(0deg);
    transition: transform 0.25s ease;
}

.icon-hover-grow {
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.35));
    opacity: 92%;
    transition: all 0.3s ease;
}

.icon-hover-grow:hover {
    transform: scale(1.1);
}

.chevron svg:hover {
    transform: scale(1.2);
}

.chevron.open svg {
    transform: rotate(90deg);
}

.transition {
    transition: all 0.25s ease;
}

[data-toggle] {
    user-select: none;
    cursor: pointer;
}

#dropdownContent {
    position: relative;
    overflow-x: hidden;
    max-width: 100%;
}

.region-toggle,
.dept-toggle,
.dropdown-item {
    user-select: none;
    border-radius: 0.25rem;
}

.region-toggle.selected,
.dept-toggle.selected,
.dropdown-item.selected,
.region-toggle.selected span,
.dept-toggle.selected span,
.dropdown-item.selected span,
.dept-toggle:active span,
.dropdown-item:active span,
.region-toggle:active span,
.dept-toggle:active span,
.commune-item:active span,
.article-item span {
    color: var(--isatis-white);
}

.region-toggle.selected,
.dept-toggle.selected,
.dropdown-item.selected {
    background-color: var(--isatis-warning);
}

.dropdown-item:active,
.region-toggle:active,
.dept-toggle:active,
.commune-item:active,
.article-item:active {
    background-color: var(--bs-dark) !important;
}

.dropdown-item:focus,
.region-toggle:focus,
.dept-toggle:focus,
.commune-item:focus,
.article-item:focus {
    box-shadow: none;
    outline: none;
}

.society-card-image {
    border-radius: 0 0 1rem 0;
}

.society-card-content {
    border-radius: 0;
}

@media (max-width: 767px) {
    .society-card-image {
        height: 90px !important;
        border-radius: 1rem 0 1rem 0;
    }
}

@media (max-width: 575px) {
    .society-card-image {
        border-radius: 0 0 1rem 0;
    }
}

@media (min-width: 768px) {
    .society-card {
        height: 120px;
    }

    .society-card-image {
        border-radius: 1rem;
    }
}

@media (min-width: 576px) {
    .society-card {
        border-radius: 1rem;
    }

    .society-card-content {
        border-radius: 1rem;
    }
}

#about table * {
    font-size: 0.92rem;
}

.quote-icon svg {
    font-size: 6rem;
    color: var(--bs-light);
    width: auto;
    height: auto;
}

#description .quote-icon {
    top: -36px;
    left: -30px;
    z-index: 0;
}

@media (max-width: 576px) {
    #description .quote-icon {
        left: -8px;
    }
}

#description p {
    position: relative;
    font-size: medium;
    z-index: 1;
    margin-bottom: 0;
}

.description-wrapper {
    position: relative;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-wrapper.expanded {
    max-height: none;
}

.fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100
}

.description-wrapper.expanded .fade-bottom {
    opacity: 0;
}

.logo-linkedin, .logo-facebook,
.logo-instagram, .logo-youtube,
.logo-tiktok, .logo-x,
.logo-pinterest {
    color: var(--isatis-muted);
    transition: all 0.3s ease;
}

.logo-linkedin:hover {
    color: #0a66c2;
}

.logo-facebook:hover {
    color: #0866ff;
}

.logo-instagram:hover {
    color: #e1306c;
}

.logo-youtube:hover {
    color: #ff0033;
}

.logo-tiktok:hover {
    color: #fe2c55;
}

.logo-x:hover {
    color: #1d9bf0;
}

.logo-pinterest:hover {
    color: #e60023;
}

.product-card {
    background-color: #f5f5f5;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-arrow {
    transition: transform 0.2s ease;
}

.product-card:hover .product-arrow {
    transform: translateX(4px);
}

.chevron {
    transition: transform 0.3s ease;
    display: flex;
}

.chevron.collapsed svg {
    transform: rotate(0deg);
}

.chevron:not(.collapsed) svg {
    transform: rotate(90deg);
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
    color: var(--isatis-muted);
    font-style: italic;
    font-weight: lighter;
    font-size: 0.85rem
}

.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;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.input-shake {
    animation: shake 0.4s ease;
}

.textarea-shake {
    animation: shake 0.3s;
}

.char-counter {
    position: absolute;
    bottom: 0;
    right: 0.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.char-counter.is-visible {
    opacity: 1;
}

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

.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);
}

.closed-establishment,
#moreEstBtn:disabled,
#lessEstBtn:disabled {
    display: none;
}

.show-closed .closed-establishment {
    display: list-item;
    list-style: none;
}

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

button[type="submit"].btn-warning-75:active {
    background-color: #ffffff !important;
    color: #fa3200 !important;
    box-shadow: 0 0.5rem 2rem rgba(var(--isatis-warning-rgb), 0.5) !important;
}


/******************************************************************************
 * FIX DROPDOWN OVERLAP & CLIC BLOCKING
 ******************************************************************************/

/* Assure que la navigation bureau passe devant le hero */
.desktop-nav {
    position: relative;
    z-index: 2000 !important;
}

/* Empêche les décors du hero de bloquer les clics */
#header .position-absolute.bg-secondary.opacity-75,
#header .position-absolute.opacity-100 {
    pointer-events: none !important;
}

#accountButton + .dropdown-menu {
    z-index: 2100 !important;
    pointer-events: auto !important;
}


/******************************************************************************
 * DROPDOWN ITEMS INTERACTION STYLE
 ******************************************************************************/

/* Style au clic (active) et au focus pour les liens du dropdown */
.dropdown-item, .dropdown-item span {
    transition: all 0.15s ease-in-out !important;
}

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


/******************************************************************************
 * FIX DROPDOWN Z-INDEX ON SMALLER SCREENS
 ******************************************************************************/

/* Assure que le header entier est au-dessus du reste du body */
#header {
    position: relative;
    z-index: 1050 !important; /* Supérieur aux sections standards mais inférieur aux modales/drawers */
}

/* Force le container de la nav à laisser passer le dropdown */
#header .container-fluid {
    position: relative;
    z-index: 1051 !important;
}

/******************************************************************************/

.form-label {
    /* @override bootstrap */
    margin-bottom: 0 !important;
}

.input-group-btn:not(:disabled) {
    transition: all ease 0.3s;
}

.input-group-btn:not(:disabled):hover {
    cursor: pointer;
    color: var(--isatis-warning);
}

.input-group-btn:not(:disabled):active {
    color: white;
    background-color: rgba(var(--isatis-warning-rgb), 0.75);
    border: none;
}

#tagInput:disabled {
    background-color: #f8f9fa;
}

#article-form img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin: 5px;
}

/******************************************************************************
 * SAVE REMINDER FOR SOCIETY EDIT
 ******************************************************************************/

.save-reminder {
    /* Positionnement */
    position: fixed;
    top: 3rem;
    right: 1.5rem;
    z-index: 9999;

    /* Layout */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;

    /* Design & Glassmorphism */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;

    /* Ombre subtile avec une touche de la couleur primaire */
    box-shadow:
        0 10px 15px -3px rgba(var(--isatis-primary-rgb), 0.1),
        0 4px 6px -4px rgba(var(--isatis-primary-rgb), 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);

    /* Typographie */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--isatis-primary);
    white-space: nowrap;

    /* Animations */
    animation: floating 3s ease-in-out infinite, glowPulse 3s infinite;
    transition: all 0.3s ease;

    cursor: pointer;
}

.save-reminder:hover {
    transform: scale(1.02);
    border-color: rgba(var(--isatis-warning-rgb), 0.75);
}

.indicator {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.indicator span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid var(--isatis-warning);
    border-right: 2px solid var(--isatis-warning);
    transform: rotate(45deg);
    opacity: 0;
    animation: arrowSlide 2s infinite ease-in-out;
}

/* Échelonnement des flèches */
.indicator span:nth-child(1) { animation-delay: 0s; top: 2px; }
.indicator span:nth-child(2) { animation-delay: 0.2s; top: 7px; }
.indicator span:nth-child(3) { animation-delay: 0.4s; top: 12px; }

/* Nouvelles Animations */
@keyframes arrowSlide {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-4px, -4px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(4px, 4px);
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 10px 15px -3px rgba(var(--isatis-primary-rgb), 0.1); }
    50%      { box-shadow: 0 0 18px rgba(var(--isatis-warning-rgb), 0.3); }
}

/******************************************************************************/

.aspect-4-3 {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
}

#img-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1050;
    cursor: zoom-out;

    /* Centrage de l'image */
    justify-content: center;
    align-items: center;
}

#img-modal.open {
    display: flex;
}

#img-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0.5rem;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

[data-modal] {
    cursor: zoom-in;
}

#crop-canvas {
    position: relative;
    overflow: hidden;
}

cropper-selection {
    width: 300px !important;
    height: 300px !important;

    position: absolute;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

cropper-image {
    max-width: none; /* évite contraintes bootstrap */
}
