/* Explain: Base styles, animated aurora background, and scroll animations. */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.45;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Fond aurore ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.aurora i {
    position: absolute;
    width: 64vmax;
    height: 64vmax;
    border-radius: 50%;
    opacity: var(--blob);
}
.aurora .b1 {
    background: radial-gradient(circle, var(--market) 0%, transparent 62%);
    top: -30vmax;
    left: -22vmax;
    animation: d1 22s ease-in-out infinite alternate;
}
.aurora .b2 {
    background: radial-gradient(circle, var(--food) 0%, transparent 62%);
    top: 10vmax;
    right: -34vmax;
    animation: d2 26s ease-in-out infinite alternate;
}
.aurora .b3 {
    background: radial-gradient(circle, var(--serv) 0%, transparent 62%);
    bottom: -40vmax;
    left: 4vmax;
    animation: d3 30s ease-in-out infinite alternate;
}
.aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: var(--grain);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
@keyframes d1 { to { translate: 14vmax 10vmax; } }
@keyframes d2 { to { translate: -14vmax 12vmax; } }
@keyframes d3 { to { translate: 12vmax -14vmax; } }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Custom cursor (fine pointers only) */
.custom-cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    background: rgba(18, 59, 43, 0.18); border: 1px solid rgba(18, 59, 43, 0.35);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    display: none;
}
@media (pointer: fine) {
    .custom-cursor { display: block; }
}
.custom-cursor.hover {
    width: 46px; height: 46px; background: rgba(18, 59, 43, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .aurora i { animation: none; }
    .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.01ms!important}
}