:root {
    --main-bkg-color: #F58221; /*#009E60;*/
    --main-bkg-color-dark: #F58221; /*#025a38;*/
    --glass-effect-bkg: rgba(255, 255, 255, 0.2);
    --glass-effect-border: rgba(255, 255, 255, 0.3);
    --vert-ltba: #009E60;
    --orange-xoretail: #F58221;
    --color-black-900: rgba(17,24,39);
    --sep-header-height : 40vh;

}

.min-h-screen2 {
    min-height: calc(100vh - var(--sep-header-height));
}

.p-t-100px {
    padding-top: 100px;
}

/* ======== BACKGROUNDS =======*/
.gradient-bg {
    /*background: linear-gradient(135deg, var(--main-bkg-color) 0%, var(--main-bkg-color-dark) 100%);*/
    background: linear-gradient(237deg, #ffe8d9 0%, #ffdcc9 100%);
;
}

.header-divider {
    background-size: cover;
    background-position: center bottom 0;
    background-image: url(../images/header.png), linear-gradient(237deg, #ffe8d9 0%, #ffdcc9 100%);
    min-height: var(--sep-header-height);
    background-repeat: no-repeat;
}

.footer-divider {
    background-image: url("data:image/svg+xml;utf8,<svg width='100%' height='100px' viewBox='0 0 1280 140' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><g fill='%23F58221'><path d='M0 51.76c36.21-2.25 77.57-3.58 126.42-3.58 320 0 320 57 640 57 271.15 0 312.58-40.91 513.58-53.4V0H0z' fill-opacity='.3'/><path d='M0 24.31c43.46-5.69 94.56-9.25 158.42-9.25 320 0 320 89.24 640 89.24 256.13 0 307.28-57.16 481.58-80V0H0z' fill-opacity='.5'/><path d='M0 0v3.4C28.2 1.6 59.4.59 94.42.59c320 0 320 84.3 640 84.3 285 0 316.17-66.85 545.58-81.49V0z'/></g></svg>");
    background-size: 100% 100px;
    top: 0;
    height: 100px;
    z-index: 1;
    transform: scale(1, 1);
}

.xoretail-bg {
    background-color: var(--orange-xoretail);
}

.xoretail-bg-light {
    background-color: #ffe8d9;
}

.xoretail-bg-light2 {
    background-color: #FFF2E9;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-yellow-soft {
    background-color: #FFE8D9;
}

.bg-light-gray {
    background-color: #F7F7F7;
}


.text-black {
    --tw-text-opacity:1;
    color:rgba(0,0,0,var(--tw-text-opacity))
}
.text-white {
    --tw-text-opacity:1;
    color:rgba(255,255,255,var(--tw-text-opacity))
}
.text-gray-50 {
    --tw-text-opacity:1;
    color:rgba(249,250,251,var(--tw-text-opacity))
}
.text-gray-100 {
    --tw-text-opacity:1;
    color:rgba(243,244,246,var(--tw-text-opacity))
}
.text-gray-200 {
    --tw-text-opacity:1;
    color:rgba(229,231,235,var(--tw-text-opacity))
}
.text-gray-300 {
    --tw-text-opacity:1;
    color:rgba(209,213,219,var(--tw-text-opacity))
}
.text-gray-400 {
    --tw-text-opacity:1;
    color:rgba(156,163,175,var(--tw-text-opacity))
}
.text-gray-500 {
    --tw-text-opacity:1;
    color:rgba(107,114,128,var(--tw-text-opacity))
}
.text-gray-600 {
    --tw-text-opacity:1;
    color:rgba(75,85,99,var(--tw-text-opacity))
}
.text-gray-700 {
    --tw-text-opacity:1;
    color:rgba(55,65,81,var(--tw-text-opacity))
}
.text-gray-800 {
    --tw-text-opacity:1;
    color:rgba(31,41,55,var(--tw-text-opacity))
}
.text-gray-900 {
    --tw-text-opacity:1;
    color:rgba(17,24,39,var(--tw-text-opacity))
}



.xoretail-color {
    color: var(--orange-xoretail);
}

.border-xoretail {
    border-color: var(--orange-xoretail);
}



.glass-effect {
    background: var(--glass-effect-bkg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-effect-border);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

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

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background-color: var(--main-bkg-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-scroll {
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.70);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-scroll.scrolled {
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-pattern {
    background-size: cover;
    background-repeat: no-repeat;
}


.text-noir {
    color: var(--color-black-900);
}

.text-vert {
    color: var(--vert-ltba);
}

.text-orange {
    color: var(--orange-xoretail);
}

.text-jaune {
    color: #FFD580;
}

.text-bleu {
    color: #005377;
}

.hover\:text-bleu:hover {
    --tw-bg-opacity: 1;
    background-color: rgba(0, 83, 119, var(--tw-bg-opacity))
}

.gradient-orange-to-red {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

.gradient-orange-to-green {
    background: linear-gradient(135deg, #009E60 0%, #F77F00 100%);
}

.to-cyan-500 {
    --tw-gradient-to: #06b6d4
}

.from-cyan-500 {
    --tw-gradient-from: #06b6d4;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0))
}


.text-yellow-dark {
    color: #D4A62A;
}


/* Styles pour le formulaire amélioré */
.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-message {
    animation: slideInDown 0.3s ease-out;
}

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

.focused {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Animations pour les boutons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ======== MENU MOBILE ======== */

/* Overlay du menu mobile */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

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

/* Contenu du menu mobile */
.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-content.active {
    transform: translateX(0);
}

/* Header du menu mobile */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Navigation du menu mobile */
.mobile-menu-nav {
    flex: 1;
    padding: 24px 0;
    overflow-y: auto;
}

.mobile-nav-link {
    display: block;
    padding: 16px 24px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 130, 33, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    color: #F58221;
    background: rgba(245, 130, 33, 0.1);
    border-left-color: #F58221;
    padding-left: 32px;
}

.mobile-nav-link:active {
    background: rgba(245, 130, 33, 0.2);
    transform: scale(0.98);
}

/* Footer du menu mobile */
.mobile-menu-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Empêcher le scroll du body quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Animation de l'icône du bouton menu */
.mobile-menu-btn {
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Modifications pour la navbar mobile */
@media (max-width: 767px) {

    .nav-scroll .max-w-7xl {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
        max-width: 100vw;
        margin: 0;
    }

    .header-divider {
        min-height: 20vh ;
    }


    .nav-scroll {
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
        overflow-x: visible;
    }

    #mobile-menu-btn {
        margin-right: 0;
        flex-shrink: 0;
    }

    /* Assurer que la navbar reste en place sur mobile lors du scroll initial */
    .nav-scroll.scrolled {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-overlay,
    .mobile-menu-content,
    .mobile-nav-link,
    .nav-scroll {
        transition: none;
    }
}

/* Pour les très petits écrans */
@media (max-width: 360px) {
    .nav-scroll .flex.justify-between {
        gap: 8px;
    }

    .nav-scroll .flex.items-center img {
        height: 32px; /* Logo légèrement plus petit */
    }

    .mobile-menu-content {
        width: 90%;
    }

    .mobile-nav-link {
        font-size: 16px;
        padding: 14px 20px;
    }

    .mobile-menu-header {
        padding: 16px 20px;
    }

    .mobile-menu-footer {
        padding: 16px 20px;
    }
}

/* Animation d'entrée pour les liens */
.mobile-menu-content.active .mobile-nav-link {
    animation: slideInFromRight 0.4s ease forwards;
}

.mobile-menu-content.active .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-content.active .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-content.active .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-content.active .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-content.active .mobile-nav-link:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-content.active .mobile-nav-link:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu-content.active .mobile-nav-link:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Indicateur visuel pour les liens actifs */
.mobile-nav-link.active {
    color: #F58221;
    background: rgba(245, 130, 33, 0.15);
    border-left-color: #F58221;
}

/* Amélioration du bouton burger */
#mobile-menu-btn {
    position: relative;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Effet de glow subtil */
.mobile-menu-content {
    box-shadow:
            -10px 0 30px rgba(0, 0, 0, 0.3),
            inset 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Style pour le scroll de la navigation */
.mobile-menu-nav::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.mobile-menu-nav::-webkit-scrollbar-thumb {
    background: rgba(245, 130, 33, 0.6);
    border-radius: 2px;
}

.mobile-menu-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 130, 33, 0.8);
}
