/* 
 * Style Personnalisé — Corps des Initiateurs
 * Complète Tailwind CSS pour des détails premiums
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Animations personnalisées */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow { animation: spin-slow 8s linear infinite; }

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-primary);
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Public home hero */
.home-hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    background: linear-gradient(125deg, #064e3b 0%, #047857 58%, #065f46 100%);
    isolation: isolate;
}

.home-hero__visual,
.home-hero__shade,
.home-hero__ornament {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero__visual {
    left: 36%;
    overflow: hidden;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    background-position: center 42%;
    background-size: cover;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 1.1s ease, transform 7s ease;
}

.home-hero__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.home-hero__shade {
    background: linear-gradient(90deg, #064e3b 0%, #064e3b 31%, rgba(6, 78, 59, 0.96) 43%, rgba(6, 78, 59, 0.72) 55%, rgba(6, 78, 59, 0.08) 80%, rgba(2, 44, 34, 0.12) 100%);
}

.home-hero__ornament span {
    position: absolute;
    right: -9rem;
    top: -15rem;
    width: 34rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.home-hero__ornament span + span {
    right: -5rem;
    top: -11rem;
    width: 26rem;
    border-color: rgba(250, 204, 21, 0.16);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    width: min(62%, 700px);
    padding: 4rem 0 5.5rem clamp(2rem, 5vw, 5rem);
    color: #fff;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5f5ed;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(10px);
}

.home-hero__status-dot {
    width: 0.45rem;
    height: 0.45rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15);
}

.home-hero__eyebrow-divider {
    width: 1px;
    height: 0.8rem;
    background: rgba(255, 255, 255, 0.35);
}

.home-hero__overline {
    margin: 2rem 0 0.7rem;
    color: #facc15;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-hero__title {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.6rem, 5.2vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.04;
    text-wrap: balance;
}

.home-hero__title span {
    color: #a7f3d0;
}

.home-hero__description {
    max-width: 38rem;
    margin: 1.35rem 0 0;
    color: rgba(240, 253, 244, 0.84);
    font-size: clamp(0.98rem, 1.45vw, 1.13rem);
    line-height: 1.75;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.home-hero__primary-action,
.home-hero__secondary-action {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.8rem 1.15rem;
    border-radius: 0.85rem;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.home-hero__primary-action {
    background: #facc15;
    color: #173c30;
    box-shadow: 0 10px 26px rgba(2, 44, 34, 0.24);
}

.home-hero__primary-action:hover {
    transform: translateY(-2px);
    background: #fde047;
    box-shadow: 0 14px 30px rgba(2, 44, 34, 0.3);
}

.home-hero__secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(8px);
}

.home-hero__secondary-action:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.home-hero__primary-action:focus-visible,
.home-hero__secondary-action:focus-visible,
.hero-dot:focus-visible {
    outline: 3px solid #fde047;
    outline-offset: 4px;
}

.home-hero__values {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.65rem;
    color: rgba(236, 253, 245, 0.76);
    font-size: 0.73rem;
    font-weight: 700;
}

.home-hero__values span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.home-hero__values i {
    color: #facc15;
}

.home-hero__photo-note {
    position: absolute;
    z-index: 1;
    right: 2rem;
    bottom: 5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: #173c30;
    box-shadow: 0 14px 35px rgba(2, 44, 34, 0.22);
    backdrop-filter: blur(12px);
}

.home-hero__photo-note-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.8rem;
    background: #fef9c3;
    color: #a16207;
}

.home-hero__photo-note strong,
.home-hero__photo-note small {
    display: block;
}

.home-hero__photo-note strong {
    font-size: 0.78rem;
}

.home-hero__photo-note small {
    margin-top: 0.15rem;
    color: #648074;
    font-size: 0.65rem;
}

.home-hero__controls {
    position: absolute;
    z-index: 2;
    bottom: 2rem;
    left: clamp(2rem, 5vw, 5rem);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 250ms ease, background-color 250ms ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #facc15;
}

#a-propos {
    overflow-x: clip;
}

@media (max-width: 767px) {
    .home-hero {
        min-height: 660px;
        align-items: flex-start;
        border-radius: 1.5rem;
    }

    .home-hero__visual {
        inset: 0;
    }

    .home-hero__slide {
        background-position: center;
    }

    .home-hero__shade {
        background: linear-gradient(180deg, rgba(2, 44, 34, 0.79) 0%, rgba(6, 78, 59, 0.88) 42%, #064e3b 100%);
    }

    .home-hero__content {
        width: 100%;
        padding: 2.5rem 1.5rem 6rem;
    }

    .home-hero__eyebrow {
        gap: 0.5rem;
        font-size: 0.62rem;
    }

    .home-hero__overline {
        margin-top: 2rem;
    }

    .home-hero__title {
        font-size: clamp(2.55rem, 10vw, 4rem);
        letter-spacing: -0.045em;
    }

    .home-hero__description {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .home-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero__primary-action,
    .home-hero__secondary-action {
        width: 100%;
    }

    .home-hero__values {
        gap: 0.65rem 1rem;
    }

    .home-hero__photo-note {
        display: none;
    }

    .home-hero__controls {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero *,
    .home-hero *::before,
    .home-hero *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Card Hover Effect */
.hover-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Masonry Pinterest Style */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 1.5rem;
    grid-auto-flow: dense;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* =============================================
   SPLASH SCREEN — Premium Animated Entry
   ============================================= */

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #022c22 0%, #064e3b 25%, #047857 50%, #065f46 75%, #022c22 100%);
    background-size: 400% 400%;
    animation: splashGradientShift 6s ease infinite;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#splash-screen.splash-exit {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

@keyframes splashGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Particles */
.splash-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.splash-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: splashFloat linear infinite;
}

.splash-particle:nth-child(1) {
    width: 80px; height: 80px;
    top: 10%; left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
}
.splash-particle:nth-child(2) {
    width: 40px; height: 40px;
    top: 60%; left: 80%;
    animation-duration: 10s;
    animation-delay: 1s;
    background: rgba(234, 179, 8, 0.08);
}
.splash-particle:nth-child(3) {
    width: 120px; height: 120px;
    top: 70%; left: 15%;
    animation-duration: 12s;
    animation-delay: 0.5s;
}
.splash-particle:nth-child(4) {
    width: 60px; height: 60px;
    top: 20%; left: 75%;
    animation-duration: 9s;
    animation-delay: 2s;
    background: rgba(234, 179, 8, 0.06);
}
.splash-particle:nth-child(5) {
    width: 30px; height: 30px;
    top: 45%; left: 50%;
    animation-duration: 7s;
    animation-delay: 1.5s;
}
.splash-particle:nth-child(6) {
    width: 100px; height: 100px;
    top: 80%; left: 60%;
    animation-duration: 11s;
    animation-delay: 0.3s;
}
.splash-particle:nth-child(7) {
    width: 50px; height: 50px;
    top: 5%; left: 40%;
    animation-duration: 8.5s;
    animation-delay: 2.5s;
    background: rgba(234, 179, 8, 0.05);
}
.splash-particle:nth-child(8) {
    width: 70px; height: 70px;
    top: 35%; left: 90%;
    animation-duration: 10s;
    animation-delay: 0.7s;
}
@keyframes splashFloat {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-120vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Radial Glow behind Logo */
.splash-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.1) 40%, transparent 70%);
    animation: splashGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes splashGlowPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Content Container */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    animation: splashContentEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes splashContentEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo Wrapper with Ring */
.splash-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.splash-logo-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(234, 179, 8, 0.6);
    border-right-color: rgba(52, 211, 153, 0.4);
    animation: splashRingSpin 3s linear infinite;
}

.splash-logo-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(234, 179, 8, 0.3);
    animation: splashRingSpin 2s linear infinite reverse;
}

@keyframes splashRingSpin {
    to { transform: rotate(360deg); }
}

.splash-logo {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.3)) drop-shadow(0 0 80px rgba(5, 150, 105, 0.15));
    animation: splashLogoEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both, splashLogoFloat 4s ease-in-out 1.7s infinite;
}

@keyframes splashLogoEntrance {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
        filter: drop-shadow(0 0 0 transparent) blur(8px);
    }
    60% {
        transform: scale(1.08) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.3)) drop-shadow(0 0 80px rgba(5, 150, 105, 0.15));
    }
}

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

/* Tagline Text */
.splash-text {
    text-align: center;
    animation: splashTextEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

.splash-tagline {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@keyframes splashTextEntrance {
    from {
        opacity: 0;
        transform: translateY(15px);
        letter-spacing: 0.5em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.2em;
    }
}

/* Loader Progress Bar */
.splash-loader-bar {
    width: 200px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    overflow: hidden;
    animation: splashBarEntrance 0.5s ease 1.5s both;
}

@keyframes splashBarEntrance {
    from { opacity: 0; width: 0; }
    to { opacity: 1; width: 200px; }
}

.splash-loader-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #eab308, #34d399);
    background-size: 200% 100%;
    width: 0;
    animation: splashBarFill 2s cubic-bezier(0.4, 0, 0.2, 1) 1.8s forwards, splashBarShimmer 1.5s linear infinite;
}

@keyframes splashBarFill {
    0% { width: 0; }
    60% { width: 75%; }
    100% { width: 100%; }
}

@keyframes splashBarShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 640px) {
    .splash-logo {
        width: 160px;
    }
    .splash-logo-ring {
        width: 220px;
        height: 220px;
    }
    .splash-glow {
        width: 300px;
        height: 300px;
    }
    .splash-tagline {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }
    .splash-loader-bar {
        width: 150px;
    }
    @keyframes splashBarEntrance {
        from { opacity: 0; width: 0; }
        to { opacity: 1; width: 150px; }
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 380px) {
    .splash-logo {
        width: 120px;
    }
    .splash-logo-ring {
        width: 170px;
        height: 170px;
    }
    .splash-glow {
        width: 220px;
        height: 220px;
    }
    .splash-tagline {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
    .splash-logo-wrapper {
        margin-bottom: 1.25rem;
    }
    .splash-loader-bar {
        width: 120px;
    }
    @keyframes splashBarEntrance {
        from { opacity: 0; width: 0; }
        to { opacity: 1; width: 120px; }
    }
}

/* PWA standalone mode — safe areas for notches */
@media (display-mode: standalone) {
    #splash-screen {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .splash-logo {
        width: 100px;
    }
    .splash-logo-ring {
        width: 150px;
        height: 150px;
    }
    .splash-logo-wrapper {
        margin-bottom: 0.75rem;
    }
    .splash-glow {
        width: 200px;
        height: 200px;
    }
    .splash-tagline {
        font-size: 0.75rem;
    }
    .splash-loader-bar {
        margin-top: 1rem;
    }
}

/* Splash statique : teinte du carré du logo, sans effets animés */
#splash-screen {
    background: #0A7270;
    transition: none;
    animation: none;
}

#splash-screen.splash-exit {
    opacity: 0;
    transform: none;
    transition: none;
}

.splash-particles,
.splash-glow,
.splash-logo-ring,
.splash-loader-bar {
    display: none;
}

.splash-content,
.splash-logo,
.splash-text,
.splash-loader-fill {
    animation: none !important;
}

.splash-logo {
    filter: none;
}

/* =========================================================
   OBJECTIFS — Cercles colorés qui se chevauchent
   ========================================================= */
.objectives-circles {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.obj-circle {
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

/* Les cercles se chevauchent horizontalement */
.obj-circle + .obj-circle {
    margin-left: -40px;
}

.obj-circle:hover {
    z-index: 10;
    transform: scale(1.12) translateY(-8px);
}

.obj-circle-inner {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 3px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.obj-circle-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.obj-circle:hover .obj-circle-inner {
    border-color: rgba(255, 255, 255, 0.35);
    transform: none;
}

/* Augmenter le z-index progressivement pour l'effet de chevauchement */
.obj-circle-1 { z-index: 1; }
.obj-circle-2 { z-index: 2; }
.obj-circle-3 { z-index: 3; }
.obj-circle-4 { z-index: 4; }

/* Responsive: tablette */
@media (max-width: 900px) {
    .objectives-circles {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        max-width: 500px;
    }
    .obj-circle + .obj-circle {
        margin-left: -30px;
    }
    .obj-circle-inner {
        width: 170px;
        height: 170px;
    }
    .obj-circle-inner p {
        font-size: 12px;
    }
}

/* Responsive: mobile */
@media (max-width: 640px) {
    .objectives-circles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        max-width: 340px;
    }
    .obj-circle + .obj-circle {
        margin-left: 0;
    }
    /* Chevauchement vertical sur mobile */
    .obj-circle-1 { transform: translate(10px, 10px); }
    .obj-circle-2 { transform: translate(-10px, 10px); }
    .obj-circle-3 { transform: translate(10px, -10px); }
    .obj-circle-4 { transform: translate(-10px, -10px); }
    .obj-circle:hover {
        transform: scale(1.08);
        z-index: 10;
    }
    .obj-circle-inner {
        width: 150px;
        height: 150px;
    }
    .obj-circle-inner i {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    .obj-circle-inner p {
        font-size: 11px;
        padding: 0 8px;
    }
}

/* Très petit mobile */
@media (max-width: 380px) {
    .objectives-circles {
        max-width: 280px;
    }
    .obj-circle-inner {
        width: 125px;
        height: 125px;
    }
    .obj-circle-inner p {
        font-size: 10px;
    }
}

/* Page Loading Overlay (route transitions) */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#loader-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Custom Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #059669, #10b981, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .text-gradient {
    background: linear-gradient(135deg, #34d399, #10b981, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Sidebar Styling */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pulsing Dots for loading state */
.dot-pulse {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #10b981;
    color: #10b981;
    box-shadow: 9999px 0 0 0 #10b981;
    animation: dot-pulse 1.5s infinite linear;
}

@keyframes dot-pulse {
    0% {
        box-shadow: 9999px 0 0 -5px #10b981;
    }
    30% {
        box-shadow: 9999px 0 0 2px #10b981;
    }
    60%, 100% {
        box-shadow: 9999px 0 0 -5px #10b981;
    }
}

/* Hide scrollbars for horizontal scroll tabs on mobile */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* =============================================
   SECRETARIAT DASHBOARD — PREMIUM STYLES
   ============================================= */

/* Hero Banner */
.sec-hero {
    background: linear-gradient(135deg, #065f46 0%, #047857 40%, #0f766e 70%, #115e59 100%);
    position: relative;
    overflow: hidden;
}

.sec-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.sec-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Stat Cards */
.sec-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sec-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.sec-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.sec-stat-card:hover::before {
    opacity: 1;
}

.sec-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sec-stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.sec-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.65);
}

/* Sidebar Active Indicator */
.sec-sidebar-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    color: #64748b;
    background: transparent;
    pointer-events: auto;
    z-index: 1;
}

.sec-sidebar-btn:hover {
    background: #f8fafc;
    color: #334155;
    transform: translateX(2px);
}

.dark .sec-sidebar-btn:hover {
    background: rgba(30, 41, 59, 0.5);
    color: #e2e8f0;
}

.sec-sidebar-btn.active {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(16, 185, 129, 0.12));
    color: #059669;
    border-left: 3px solid #059669;
    padding-left: calc(1rem - 3px);
}

.dark .sec-sidebar-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.08));
    color: #34d399;
    border-left-color: #34d399;
}

.sec-sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    font-size: 0.625rem;
    font-weight: 800;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

/* Enhanced Table Rows */
.sec-table thead th {
    padding: 0.875rem 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.dark .sec-table thead th {
    border-bottom-color: #1e293b;
    color: #475569;
}

.sec-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.dark .sec-table tbody tr {
    border-bottom-color: #1e293b;
}

.sec-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.03), rgba(5, 150, 105, 0.06));
}

.dark .sec-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.08));
}

.sec-table tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.5);
}

.dark .sec-table tbody tr:nth-child(even) {
    background-color: rgba(15, 23, 42, 0.3);
}

/* Reunion Cards */
.sec-reunion-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.dark .sec-reunion-card {
    background: #0f172a;
    border-color: #1e293b;
}

.sec-reunion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #eab308);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sec-reunion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    border-color: #10b981;
}

.dark .sec-reunion-card:hover {
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.3);
    border-color: #059669;
}

.sec-reunion-card:hover::before {
    opacity: 1;
}

/* Rapport Data Cards */
.sec-rapport-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.dark .sec-rapport-card {
    background: #0f172a;
    border-color: #1e293b;
}

.sec-rapport-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dark .sec-rapport-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Progress bar with gradient */
.sec-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.dark .sec-progress-bar {
    background: #1e293b;
}

.sec-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.sec-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Drag & Drop zone */
.sec-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
    cursor: pointer;
}

.dark .sec-dropzone {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.5);
}

.sec-dropzone:hover,
.sec-dropzone.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.dark .sec-dropzone:hover,
.dark .sec-dropzone.dragover {
    border-color: #059669;
    background: rgba(16, 185, 129, 0.06);
}

.sec-dropzone-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.15));
    color: #059669;
    font-size: 1.5rem;
}

.dark .sec-dropzone-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.2));
    color: #34d399;
}

/* Custom Radio Buttons for Attendance */
.sec-radio-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dark .sec-radio {
    border-color: #475569;
    background: #0f172a;
}

.sec-radio:checked {
    border-width: 6px;
}

.sec-radio.radio-present:checked {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.sec-radio.radio-absent:checked {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.sec-radio.radio-justifie:checked {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Pagination */
.sec-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sec-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dark .sec-page-btn {
    border-color: #334155;
    background: #1e293b;
    color: #94a3b8;
}

.sec-page-btn:hover:not(:disabled) {
    background: #059669;
    color: #fff;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.sec-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Panel Card */
.sec-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dark .sec-panel {
    background: #0f172a;
    border-color: #1e293b;
}

.sec-panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dark .sec-panel-header {
    border-bottom-color: #1e293b;
}

.sec-panel-body {
    padding: 1.5rem;
}

/* Grid group headers */
.sec-grid-region {
    background: linear-gradient(90deg, #065f46, #047857) !important;
    color: #fff !important;
}

.sec-grid-doyenne {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.12), rgba(16, 185, 129, 0.08)) !important;
    color: #065f46 !important;
}

.dark .sec-grid-doyenne {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.06)) !important;
    color: #34d399 !important;
}

.sec-grid-paroisse {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.dark .sec-grid-paroisse {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #94a3b8 !important;
}

/* Pulsing badge for pending items */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(234, 179, 8, 0); }
}

.sec-badge-pulse {
    animation: badgePulse 2s infinite;
}

/* Fade-slide-in animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sec-animate-in {
    animation: fadeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered animation delays */
.sec-delay-1 { animation-delay: 0.05s; opacity: 0; }
.sec-delay-2 { animation-delay: 0.1s; opacity: 0; }
.sec-delay-3 { animation-delay: 0.15s; opacity: 0; }
.sec-delay-4 { animation-delay: 0.2s; opacity: 0; }

/* Select input styling */
.sec-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Empty state */
.sec-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.sec-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #94a3b8;
}

.dark .sec-empty-icon {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #475569;
}

/* Private Workspace Shell */
.workspace-header {
    --workspace-header-height: 68px;
    display: none;
    position: sticky;
    top: 0;
    z-index: 70;
    min-height: var(--workspace-header-height);
    align-items: center;
    gap: 1rem;
    padding: 0 clamp(1rem, 2.5vw, 2.5rem);
    color: #15332b;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dce8e2;
    box-shadow: 0 5px 20px rgba(15, 55, 43, 0.05);
    backdrop-filter: blur(16px);
}

.workspace-mode {
    background: #f4f8f6;
}

.dark.workspace-mode {
    background: #080f0d;
}

.workspace-mode #workspace-header {
    display: flex;
}

.workspace-mode #site-header {
    display: none !important;
}

.workspace-mode #app-content {
    width: 100%;
    max-width: none;
    padding: 1.5rem clamp(1rem, 2.5vw, 2.5rem);
}

.workspace-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.workspace-brand img {
    display: block;
    width: 3.25rem;
    height: 3rem;
    object-fit: contain;
}

.workspace-heading {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    line-height: 1.25;
}

.workspace-eyebrow {
    color: #648074;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.workspace-heading strong {
    overflow: hidden;
    color: #173c30;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .workspace-header {
    color: #e2f0e9;
    background: rgba(12, 24, 20, 0.96);
    border-bottom-color: #20362d;
}

.dark .workspace-eyebrow {
    color: #92ad9f;
}

.dark .workspace-heading strong {
    color: #edf7f1;
}

.workspace-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
}

.workspace-space-menu {
    position: relative;
    flex: 0 0 auto;
}

.workspace-space-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 90;
    width: min(17rem, calc(100vw - 1.5rem));
    padding: 0.45rem;
    border: 1px solid #dce8e2;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 45, 34, 0.16);
}

.dark .workspace-space-dropdown {
    border-color: #2d493c;
    background: #12231c;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.workspace-space-menu-title {
    padding: 0.55rem 0.7rem 0.45rem;
    color: #789084;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dark .workspace-space-menu-title {
    color: #9aafa5;
}

.workspace-space-item {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.6rem;
    color: #29483a;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.workspace-space-item i {
    width: 1rem;
    color: #07805a;
    text-align: center;
}

.workspace-space-item:hover {
    color: #075c42;
    background: #edf6f1;
}

.dark .workspace-space-item {
    color: #d7e8dd;
}

.dark .workspace-space-item:hover {
    color: #fff;
    background: #1b382b;
}

.workspace-identity {
    display: flex;
    max-width: 12rem;
    flex-direction: column;
    margin-right: 0.35rem;
    line-height: 1.2;
}

.workspace-identity span {
    overflow: hidden;
    color: #243c33;
    font-size: 0.72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-identity small {
    margin-top: 0.2rem;
    color: #73877e;
    font-size: 0.62rem;
}

.dark .workspace-identity span {
    color: #e2f0e9;
}

.dark .workspace-identity small {
    color: #9aafa5;
}

.workspace-icon-button,
.workspace-menu-toggle {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce8e2;
    border-radius: 0.75rem;
    color: #426455;
    background: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.workspace-icon-button:hover,
.workspace-menu-toggle:hover {
    color: #075c42;
    background: #edf6f1;
    border-color: #bdd9ca;
}

.dark .workspace-icon-button,
.dark .workspace-menu-toggle {
    color: #c2d6ca;
    background: #12231c;
    border-color: #2d493c;
}

.dark .workspace-icon-button:hover,
.dark .workspace-menu-toggle:hover {
    color: #fff;
    background: #1b382b;
    border-color: #3e6953;
}

.workspace-return {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 0.9rem;
    border-radius: 0.75rem;
    color: #fff;
    background: #087451;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.workspace-return:hover {
    background: #065c42;
}

.workspace-menu-toggle {
    display: none;
}

.workspace-sidebar-backdrop {
    display: none;
}

.workspace-mode .workspace-dashboard-grid {
    max-width: 1600px;
    margin-right: auto;
    margin-left: auto;
    align-items: start;
}

.workspace-mode #app-content .fixed.inset-0.z-50 {
    z-index: 100 !important;
    overflow-y: auto;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.workspace-mode #app-content .fixed.inset-0.z-50 > div {
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.workspace-mode .workspace-role-sidebar {
    position: sticky;
    top: calc(var(--workspace-header-height, 68px) + 1rem);
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.workspace-mode .workspace-role-sidebar > .sticky {
    position: static !important;
    top: auto !important;
}

.workspace-mode :focus-visible {
    outline: 3px solid #e0a92f;
    outline-offset: 3px;
}

.territory-type-btn {
    border-color: #d7e3dc;
    color: #587064;
    background: #fff;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.territory-type-btn:hover {
    border-color: #9ccbb1;
    color: #087451;
    background: #f0f8f3;
}

.territory-type-btn.active {
    border-color: #69b88c;
    color: #087451;
    background: #eaf6ef;
    box-shadow: inset 0 -2px #087451;
}

.dark .territory-type-btn {
    border-color: #2d493c;
    color: #b5c9bd;
    background: #12231c;
}

.dark .territory-type-btn.active {
    border-color: #3e8060;
    color: #a9e1c1;
    background: #173729;
    box-shadow: inset 0 -2px #4fb582;
}

@media (max-width: 1023px) {
    .workspace-header {
        --workspace-header-height: 64px;
        gap: 0.65rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .workspace-menu-toggle {
        display: inline-flex;
    }

    .workspace-brand img {
        width: 2.75rem;
        height: 2.75rem;
    }

    .workspace-eyebrow {
        display: none;
    }

    .workspace-heading strong {
        max-width: 26vw;
        font-size: 0.78rem;
    }

    .workspace-actions {
        gap: 0.35rem;
    }

    .workspace-identity,
    .workspace-actions > a[aria-label="Mon profil"],
    .workspace-logout {
        display: none;
    }

    .workspace-return {
        min-height: 2.35rem;
        padding: 0 0.65rem;
        font-size: 0.65rem;
    }

    .workspace-mode #app-content {
        padding: 1rem 0.85rem 1.5rem;
    }

    .workspace-mode .workspace-role-sidebar {
        position: fixed !important;
        z-index: 65 !important;
        top: var(--workspace-header-height, 64px);
        bottom: 0;
        left: 0;
        width: min(88vw, 340px);
        max-height: none;
        padding: 0.85rem;
        overflow-y: auto;
        background: #f4f8f6;
        box-shadow: 18px 0 40px rgba(9, 38, 28, 0.14);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.24s ease, visibility 0.24s ease;
    }

    .dark.workspace-mode .workspace-role-sidebar {
        background: #080f0d;
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
    }

    .workspace-mode.workspace-sidebar-open .workspace-role-sidebar {
        display: block;
        transform: translateX(0);
        visibility: visible;
    }

    .workspace-sidebar-backdrop:not(.hidden) {
        display: block;
        position: fixed;
        z-index: 60;
        inset: var(--workspace-header-height, 64px) 0 0;
        width: 100%;
        border: 0;
        background: rgba(9, 22, 17, 0.48);
    }

    body.workspace-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 390px) {
    .workspace-heading strong {
        max-width: 22vw;
        font-size: 0.7rem;
    }

    .workspace-return span {
        display: none;
    }

    .workspace-return {
        width: 2.35rem;
        padding: 0;
    }
}
