/* Fichier CSS personnalisé - Portail Applicatif Data-Major */

/* === PALETTE DE COULEURS === */
:root {
    --color-blue-dark: #45708C;
    --color-teal-dark: #00605F;
    --color-teal-bright: #09AC81;
    --color-teal-light: #92ECD8;
    --color-cream: #FAF7EC;
    --color-white: #ffffff;
    
    /* Colores con transparencia */
    --color-teal-dark-alpha-15: rgba(0, 96, 95, 0.15);
    --color-teal-bright-alpha-15: rgba(9, 172, 129, 0.15);
    --color-teal-bright-alpha-20: rgba(9, 172, 129, 0.2);
    --color-teal-bright-alpha-30: rgba(9, 172, 129, 0.3);
    --color-teal-bright-alpha-40: rgba(9, 172, 129, 0.4);
    --color-teal-light-alpha-20: rgba(146, 236, 216, 0.2);
    --color-teal-light-alpha-30: rgba(146, 236, 216, 0.3);
    --color-teal-light-alpha-50: rgba(146, 236, 216, 0.5);
    --color-teal-light-alpha-60: rgba(146, 236, 216, 0.6);
    
    --shadow-sm: 0 2px 8px rgba(0, 96, 95, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 96, 95, 0.2);
    --shadow-lg: 0 12px 32px rgba(0, 96, 95, 0.3);
    --shadow-xl: 0 20px 48px rgba(0, 96, 95, 0.4);
}

/* === STYLES GLOBAUX === */
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    background-image: url('/images/background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

html {
    background-image: url('/images/background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

#__next,
main {
    background: transparent !important;
}

/* === EN-TÊTE ET WIDGETS === */
#information-widgets,
div#information-widgets.bg-theme-100\/20,
.bg-theme-100\/20,
#information-widgets.dark\:bg-white\/5,
.dark #information-widgets {
    background: var(--color-cream) !important;
    background-color: var(--color-cream) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg) !important;
    border: 2px solid var(--color-teal-dark-alpha-15) !important;
    padding: 1.5rem !important;
    position: relative !important;
    /*overflow: hidden !important;*/
}

#information-widgets::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 96, 95, 0.05),
        transparent
    ) !important;
    transition: left 0.5s ease !important;
}

#information-widgets:hover::before {
    left: 100% !important;
}

/* Widget titre principal */
.information-widget-greeting span,
span.text-theme-800,
.text-theme-800,
#information-widgets .text-theme-800,
.information-widget-greeting .text-theme-800 {
    color: var(--color-teal-dark) !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5) !important;
}

/* Mode dark pour les textes */
.dark .text-theme-200,
.dark\:text-theme-200,
.dark .text-theme-300,
h2.text-theme-800,
.dark h2.text-theme-300,
h2.dark\:text-theme-300 {
    color: var(--color-teal-dark) !important;
}

h2[class*="text-theme"],
div[class*="services"] [class*="text-theme-8"],
div[class*="services"] [class*="text-theme-2"],
div[class*="services"] [class*="text-theme-3"],
.service-card [class*="text-theme"] {
    color: var(--color-teal-dark) !important;
}

/* Widget date/heure */
.information-widget-datetime span {
    color: var(--color-blue-dark) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

/* === ONGLETS === */
#tabs ul {
    background: var(--color-cream) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-md) !important;
    border: 2px solid var(--color-teal-bright-alpha-20) !important;
    padding: 0.5rem !important;
}

#tabs ul li button {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--color-blue-dark) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem !important;
}

#tabs ul li button:hover {
    background-color: var(--color-teal-light-alpha-30) !important;
    color: var(--color-teal-dark) !important;
    transform: translateY(-1px) !important;
}

#tabs ul li button[aria-selected="true"] {
    background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal-bright) 100%) !important;
    color: var(--color-white) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 96, 95, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* === TITRES DE GROUPES/SECTIONS === */
h2.text-theme-800,
.service-group-name,
h2.service-group-name,
.text-theme-800.service-group-name,
.services-group h2,
.service-group h2,
h2[class*="text-theme"],
div[class*="services"] > h2,
main h2,
section h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--color-teal-dark) !important;
    margin-bottom: 1.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    position: relative !important;
    padding-bottom: 0.75rem !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8) !important;
}

.services-group h2::after,
.service-group h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 80px !important;
    height: 4px !important;
    background: var(--color-teal-dark) !important;
    border-radius: 2px !important;
    box-shadow: 0 2px 8px rgba(0, 96, 95, 0.4) !important;
}

/* === CARTES DE SERVICES === */
.service-card,
a.service-card {
    background: linear-gradient(135deg, var(--color-teal-bright) 0%, var(--color-teal-dark) 100%) !important;
    border-radius: 18px !important;
    border: 2px solid var(--color-teal-light-alpha-30) !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0.5rem 1.5rem !important;
    animation: fadeInUp 0.6s ease-out backwards !important;
}

.service-card::before,
a.service-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 18px !important;
    padding: 2px !important;
    background: linear-gradient(
        135deg,
        var(--color-teal-light) 0%,
        var(--color-white) 50%,
        var(--color-teal-light) 100%
    ) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.service-card::after,
a.service-card::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    ) !important;
    transform: rotate(45deg) !important;
    opacity: 0 !important;
    transition: all 0.6s ease !important;
}

.service-card:hover,
a.service-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: var(--shadow-xl) !important;
    background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal-bright) 100%) !important;
    border-color: var(--color-teal-light-alpha-60) !important;
}

.service-card:hover::before,
a.service-card:hover::before {
    opacity: 1 !important;
}

.service-card:hover::after,
a.service-card:hover::after {
    opacity: 1 !important;
    right: 150% !important;
}

/* === CONTENU DES CARTES === */
.service-card h3,
a.service-card h3,
.service-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--color-cream) !important;
    margin-bottom: 0.25rem !important;
    transition: all 0.3s ease !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.service-card:hover h3,
a.service-card:hover h3,
.service-card:hover .service-name {
    color: var(--color-teal-dark) !important;
    transform: translateX(4px) !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5) !important;
}

.service-card p,
.service-description,
p[class*="text-theme-"] {
    font-size: 0.95rem !important;
    color: var(--color-cream) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    transition: color 0.3s ease !important;
    margin: 0 !important;
}

.service-card:hover p,
.service-card:hover .service-description {
    color: var(--color-teal-dark) !important;
}

/* Icônes des cartes */
.service-card img,
.service-card svg,
.service-icon img,
.service-icon svg {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
}

.service-card:hover img,
.service-card:hover svg {
    transform: scale(1.1) rotate(5deg) !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) !important;
}

/* === BOOKMARKS === */
.bookmark-card,
a.bookmark {
    background: linear-gradient(135deg, var(--color-teal-bright-alpha-15) 0%, var(--color-teal-dark-alpha-15) 100%) !important;
    border-radius: 12px !important;
    border: 2px solid var(--color-teal-light-alpha-20) !important;
    padding: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-sm) !important;
    animation: slideIn 0.5s ease-out backwards !important;
}

.bookmark-card:hover,
a.bookmark:hover {
    transform: translateY(-4px) !important;
    background: linear-gradient(135deg, var(--color-teal-light-alpha-30) 0%, var(--color-teal-bright-alpha-30) 100%) !important;
    border-color: var(--color-teal-light-alpha-50) !important;
    box-shadow: var(--shadow-md) !important;
}

.bookmark-name,
div.bookmark-name,
.pl-3.py-2.text-xs.bookmark-name {
    color: var(--color-teal-dark) !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;}

.bookmark-description,
.text-xs.bookmark-description {
    font-size: 1rem !important;
    color: var(--color-teal-dark) !important;
}

.bookmark-card img,
.bookmark-card svg {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.bookmark-card:hover img,
.bookmark-card:hover svg {
    transform: scale(1.15) !important;
}

/* === LIENS === */
a {
    color: var(--color-teal-bright) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    position: relative !important;
}

a:hover {
    color: var(--color-teal-dark) !important;
}

/* === INDICATEURS DE STATUT === */
.status-indicator,
div[class*="status"] {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal-bright) 100%) !important;
    color: var(--color-teal-dark) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px var(--color-teal-bright-alpha-30) !important;
    border: 1px solid var(--color-teal-bright-alpha-30) !important;
}

/* Conteneur principal */
.service-tags,
.service-card .service-tags,
div.absolute.top-0.right-0.service-tags {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 30 !important;
    padding: 0.5rem !important;
    margin: 0 !important;
}

/* Éliminer tous les paddings des conteneurs intermédiaires */
.service-tag,
.service-site-monitor,
.shrink-0.flex.items-center.justify-center.service-tag {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.site-monitor-status,
.site-monitor-status.p-4,
div.site-monitor-status,
.w-auto.text-center.site-monitor-status {
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.site-monitor-status div,
.rounded-full.h-3.w-3,
div.rounded-full.h-3.w-3.bg-rose-500,
.bg-rose-500,
.bg-green-500,
.bg-emerald-500 {
    width: 10px !important;
    height: 10px !important;
}

.service-card .service-site-monitor::before,
.service-card .service-site-monitor::after {
    display: none !important;
}

/* === BARRE DE DÉFILEMENT === */
::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

::-webkit-scrollbar-track {
    background: var(--color-cream) !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 6px rgba(0, 96, 95, 0.1) !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-teal-bright) 0%, var(--color-teal-dark) 100%) !important;
    border-radius: 6px !important;
    border: 2px solid var(--color-cream) !important;
    box-shadow: 0 2px 8px rgba(0, 96, 95, 0.3) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-teal-light) 0%, var(--color-teal-bright) 100%) !important;
    box-shadow: 0 4px 12px var(--color-teal-bright-alpha-40) !important;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.service-card:nth-child(1) { animation-delay: 0.1s !important; }
.service-card:nth-child(2) { animation-delay: 0.2s !important; }
.service-card:nth-child(3) { animation-delay: 0.3s !important; }
.service-card:nth-child(4) { animation-delay: 0.4s !important; }
.service-card:nth-child(5) { animation-delay: 0.5s !important; }
.service-card:nth-child(6) { animation-delay: 0.6s !important; }

.services-grid,
div[class*="grid"],
.grid,
[class*="grid-cols"],
.grid-cols-1,
.grid-cols-2, 
.grid-cols-3 {
    gap: 2rem !important;
    column-gap: 6rem !important;
    row-gap: 2.5rem !important;
    grid-column-gap: 6rem !important;
}

/* Espacement des groupes */
.service-group,
.services-group,
div.services-group,
#layout-groups .services-group {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-bottom: 0 !important;
}

/* Conteneur principal */
#layout-groups {
    gap: 0 !important;
}

/* Forcer l'espacement horizontal dans les conteneurs flex */
.flex.flex-wrap > div,
.flex > div[class*="service"] {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Espacement vertical entre les services */
li.service,
.service {
    margin-bottom: 1rem !important;
}

.services-list li {
    margin-bottom: 1rem !important;
}

/* === FORCER TEXTES CELESTES EN VERT FONCÉ === */
[style*="color: #92ECD8"],
[style*="color: rgb(146, 236, 216)"] {
    color: var(--color-teal-dark) !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .service-card h3,
    .service-name {
        font-size: 1.25rem !important;
    }
    
    .service-card p,
    .service-description {
        font-size: 0.85rem !important;
    }
    
    .services-group h2,
    .service-group h2 {
        font-size: 1.5rem !important;
    }
    
    .service-card,
    a.service-card {
        padding: 0.875rem 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .service-card:hover,
    a.service-card:hover {
        transform: translateY(-4px) scale(1.01) !important;
    }
}

/* === ACCESSIBILITÉ === */
.service-card:focus-visible,
a.service-card:focus-visible {
    outline: 3px solid var(--color-teal-light) !important;
    outline-offset: 4px !important;
}
