html {
    scroll-behavior: smooth;
}

body {
    color: #1A1A1A;
    animation: page-fade .45s ease;
}

@keyframes page-fade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.immersive-layer {
    position: relative;
    overflow: hidden;
}

.immersive-layer::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    right: -120px;
    top: -120px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(212,160,23,.32), transparent 65%);
    filter: blur(8px);
    pointer-events: none;
    animation: float-glow 9s ease-in-out infinite;
}

.immersive-layer::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    left: -90px;
    bottom: -130px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255,255,255,.24), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    animation: float-glow 11s ease-in-out infinite reverse;
}

@keyframes float-glow {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-18px) translateX(8px); }
}

.hero-gradient {
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 160, 23, .20), transparent 38%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .09), transparent 30%),
        linear-gradient(120deg, #111827 0%, #1f2937 50%, #0f172a 100%);
}

.hero-gradient,
.hero-image-overlay {
    background-size: 140% 140%;
    animation: gradient-pan 16s ease-in-out infinite;
}

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

.section-pattern {
    background-image:
        linear-gradient(rgba(248, 248, 248, 0.92), rgba(248, 248, 248, 0.92)),
        url("/static/images/pattern.1bf987048e6d.png");
    background-size: 220px;
    background-repeat: repeat;
}

.section-connector {
    position: relative;
}

.section-connector::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -38px;
    width: 2px;
    height: 76px;
    background: linear-gradient(to bottom, rgba(212, 160, 23, .38), rgba(212, 160, 23, 0));
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(18px);
    pointer-events: none;
    animation: pulse-soft 7s ease-in-out infinite;
}

.network-grid {
    position: relative;
}

.network-grid::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 1rem;
    background-image:
        linear-gradient(rgba(212, 160, 23, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 160, 23, .07) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
    pointer-events: none;
}

.network-grid > * {
    position: relative;
    z-index: 1;
}

.tech-chip {
    border: 1px solid rgba(15, 23, 42, .1);
    background: #fff;
    border-radius: 9999px;
    padding: .55rem .95rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 700;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tech-chip:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 160, 23, .45);
    box-shadow: 0 8px 20px rgba(2, 6, 23, .08);
}

.timeline-line {
    position: relative;
}

.timeline-line::before {
    content: '';
    position: absolute;
    left: .56rem;
    top: 1rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(212, 160, 23, .5), rgba(212, 160, 23, .08));
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: .7; }
    50% { transform: scale(1.06); opacity: .95; }
}

.hero-image-overlay {
    background:
        linear-gradient(100deg, rgba(11, 16, 32, .9), rgba(11, 16, 32, .5)),
        url("/static/images/cga_home.bb631e1ba0a8.png") center/cover no-repeat;
}

.reveal {
    opacity: 0;
    transform: translateY(20px) scale(.98);
    transition: opacity .65s ease, transform .65s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.glass-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(8px);
}

.hover-rise {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.hover-rise:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(212, 160, 23, .18);
    border-color: rgba(212, 160, 23, .5);
}

.float-card {
    animation: float-card 5.5s ease-in-out infinite;
}

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

.link-line {
    position: relative;
}

.link-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #D4A017;
    transition: width .25s ease;
}

.link-line:hover::after {
    width: 100%;
}

.marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    animation: marquee-scroll 24s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.card-soft {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    background: rgba(212, 160, 23, .14);
    color: #D4A017;
    font-size: .95rem;
}

.media-frame {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 40px rgba(2, 6, 23, .25);
}

.team-photo {
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid rgba(212, 160, 23, .35);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.team-photo-lg {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 3px solid rgba(212, 160, 23, .45);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .15);
}

.parallax-soft {
    transform: translateY(var(--parallax-y, 0px));
    transition: transform .15s linear;
}

.stat-pill {
    border: 1px solid rgba(212, 160, 23, .35);
    background: rgba(212, 160, 23, .08);
    border-radius: 9999px;
    padding: .45rem .95rem;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .03em;
    color: #D4A017;
}

.service-item::before {
    content: '•';
    color: #D4A017;
    font-weight: 800;
    margin-right: .5rem;
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(212, 160, 23, .15);
    color: #D4A017;
    font-weight: 800;
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple:focus-visible,
.nav-link-item:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(212, 160, 23, .65);
    outline-offset: 3px;
}

.btn-ripple-effect {
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .55);
    transform: scale(0);
    animation: ripple .55s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

#main-nav.nav-scrolled {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(212, 160, 23, .16);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(2, 6, 23, .07);
}

#main-nav.nav-scrolled .nav-link-item,
#main-nav.nav-scrolled [data-nav-label] {
    color: #1f2937;
}

#main-nav.nav-scrolled .nav-link-item:hover {
    color: #D4A017;
}

@media (max-width: 1023px) {
    #main-nav {
        background: rgba(15, 23, 42, .86);
        backdrop-filter: blur(8px);
    }
}

@media (max-width: 767px) {
    .section-connector::after {
        height: 58px;
        bottom: -30px;
    }
}

/* ==============================
   FORM INPUTS – Public site
   Tailwind preflight supprime le
   style natif des inputs, on
   restore une base propre.
   ============================== */
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="range"]),
select,
textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):focus,
select:focus,
textarea:focus {
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Toast notifications - public site position */
.toast-root {
    top: 5.5rem;
}
