/* ================================================================
   ANRDI COPYRIGHT (c) 2026 — ALL RIGHTS RESERVED - AUTHOR: LYAM
================================================================ */

/* ── Fond global ─────────────────────────────────────────────── */
body {
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, rgba(37, 99, 235, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 0%, rgba(30, 64, 175, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef3fa 100%);
    background-attachment: fixed;
}

.site-main {
    overflow-x: clip;
}

/* ── Header glass ────────────────────────────────────────────── */
.site-header {
    height: 76px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(212, 220, 234, 0.7);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(8, 21, 40, 0.08);
}

.header-inner {
    min-height: 76px;
}

.nav-link {
    border-radius: 999px;
    padding: 0.5rem 1rem;
}

.nav-link--active {
    box-shadow: inset 0 0 0 1px rgba(25, 65, 165, 0.15);
}

.btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1941a5 100%);
    border-color: transparent;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(25, 65, 165, 0.28), 0 1px 2px rgba(25, 65, 165, 0.12);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn--ghost,
.btn--outline {
    border-radius: 999px;
}

.btn--lg {
    padding: 0.9375rem 2.125rem;
    font-size: 0.9375rem;
}

/* ── Hero institutionnel ─────────────────────────────────────── */
.hero {
    background:
        radial-gradient(ellipse 70% 80% at 85% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(30, 64, 175, 0.08) 0%, transparent 55%),
        linear-gradient(165deg, #ffffff 0%, #f0f5ff 48%, #e8effa 100%);
    border-bottom: none;
    box-shadow: inset 0 -1px 0 rgba(212, 220, 234, 0.6);
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -5%;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    animation: heroOrbPulse 8s ease-in-out infinite;
}

.hero .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: min(88vh, 820px);
}

.hero-eyebrow {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 220, 234, 0.8);
    border-radius: 999px;
    padding: 0.4375rem 1rem 0.4375rem 0.625rem;
    color: var(--c-gray-600);
    backdrop-filter: blur(8px);
    margin-bottom: 1.75rem;
}

.hero-title em {
    background: linear-gradient(135deg, #1941a5 0%, #2563eb 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-trust-item {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(212, 220, 234, 0.7);
    border-radius: 999px;
    padding: 0.4375rem 0.875rem;
    backdrop-filter: blur(6px);
    color: var(--c-gray-600);
}

.hero-emblem-ring:nth-child(1) {
    animation: heroRingSpin 24s linear infinite;
    border-color: rgba(37, 99, 235, 0.15);
}

.hero-emblem-ring:nth-child(2) {
    animation: heroRingSpin 18s linear infinite reverse;
}

.hero-emblem-center {
    background: linear-gradient(145deg, #2563eb, #1941a5);
    animation: heroFloat 5s ease-in-out infinite;
}

.hero-stats {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--c-gray-100);
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
    padding: 5.5rem 0;
}

.section--gray {
    background:
        linear-gradient(180deg, rgba(243, 246, 252, 0.5) 0%, rgba(243, 246, 252, 1) 100%);
    border-block: 1px solid rgba(212, 220, 234, 0.5);
}

.section--dark {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
        linear-gradient(165deg, #081528 0%, #0d1d38 55%, #132545 100%);
    position: relative;
    overflow: hidden;
}

.section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section--dark > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    background: var(--c-blue-pale);
    border-radius: 999px;
    padding: 0.3125rem 0.875rem 0.3125rem 0.625rem;
}

.section--dark .section-label {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
}

/* ── Cartes ──────────────────────────────────────────────────── */
.card-grid {
    gap: 1.5rem;
}

.card {
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(8, 21, 40, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1941a5, #2563eb, #3b82f6);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(8, 21, 40, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #e6edff 0%, #d0dfff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card:hover .card-icon {
    background: linear-gradient(145deg, #2563eb 0%, #1941a5 100%);
    color: #fff;
    transform: scale(1.05);
    transition: all 0.25s ease;
}

.card--dark {
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.card--dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #081528 0%, #060f1c 100%);
    border-top: none;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--g-tri);
}

.social-link {
    border-radius: 999px;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* ── Auth ────────────────────────────────────────────────────── */
.auth-page {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(30, 64, 175, 0.08) 0%, transparent 50%),
        var(--c-surface);
}

.auth-panel-inner {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(8, 21, 40, 0.1);
    border: 1px solid rgba(212, 220, 234, 0.8);
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes heroRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes heroOrbPulse {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
    50%      { opacity: 1; transform: translateY(-50%) scale(1.04); }
}

.anim-up { animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.anim-in { animation: fadeIn 0.45s ease forwards; }

.hero-body {
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.hero-visual {
    animation: fadeIn 1s ease 0.3s both;
}

.site-header {
    animation: slideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.js .reveal-wait:not(.anim-up) {
    opacity: 0;
    transform: translateY(22px);
}

html.js .anim-up {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.js .reveal-delay-0 { animation-delay: 0s; }
html.js .reveal-delay-1 { animation-delay: 0.1s; }
html.js .reveal-delay-2 { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .anim-up, .anim-in, .hero-body, .hero-visual, .site-header,
    html.js .reveal-wait, .hero-emblem-center, .hero::after, .hero-emblem-ring {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-emblem-center {
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 900px) {
    .site-header { height: 68px; }
    .header-inner { min-height: 68px; }
    .hero .container { min-height: auto; padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
