/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Couleurs de fond basées sur la bannière */
    --bg-dark: #070314;      /* Très sombre, presque noir/violet profond */
    --bg-darker: #04010a;
    --bg-purple: #110934;    /* Violet très foncé */
    --bg-indigo: #2A1659;    /* Indigo pour les cartes */
    
    /* Textes */
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --text-light: #D1D5DB;
    
    /* Dégradé vibrant du logo Birds Finance */
    --grad-1: #8B5CF6; /* Violet vif */
    --grad-2: #EC4899; /* Magenta vibrant */
    --grad-3: #F97316; /* Orange feu */
    
    /* Typographie */
    --font-main: 'Outfit', sans-serif;
    
    /* Utilitaires */
    --border-light: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   HEADER & NAVBAR (Glassmorphism)
   ========================================= */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 9, 52, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--grad-3), var(--grad-2), var(--grad-1));
    border-radius: 8px 16px 8px 16px; /* Forme organique rappelant une tête d'oiseau */
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFFFFF;
}

/* Ligne animée sous le lien au survol */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--grad-2), var(--grad-3));
    transition: width 0.3s ease;
}

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

.header-contact {
    display: flex;
    gap: 16px;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 99px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-pill.outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-pill.outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.contact-pill.solid {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-pill.solid:hover {
    background: white;
    color: var(--bg-dark);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Espace pour le header */
    overflow: hidden;
}

/* Effets de lueur en arrière-plan */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.purple-orb {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--grad-1);
    animation: drift 20s ease-in-out infinite alternate;
}

.orange-orb {
    bottom: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--grad-3);
    opacity: 0.2;
    animation: drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.badge-wrapper {
    margin-bottom: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 99px;
    color: #C4B5FD;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-1);
    box-shadow: 0 0 10px var(--grad-1);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    /* Le dégradé qui brille sur le texte */
    background: linear-gradient(to right, #FFFFFF 10%, var(--grad-1) 30%, var(--grad-2) 60%, var(--grad-3) 90%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 6s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 48px;
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: white;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.5);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* Stats (ex: +100 projets) */
.metrics-preview {
    display: flex;
    align-items: center;
    gap: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.users-avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.avatar:first-child {
    margin-left: 0;
}

.bg-grad-1 { background: var(--grad-1); }
.bg-grad-2 { background: var(--grad-2); }
.bg-grad-3 { background: var(--grad-3); }
.bg-dark { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(4px); }

/* Decorative curve */
.hero-bottom-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-darker), transparent);
    z-index: 10;
}

/* =========================================
   SECTION SERVICES
   ========================================= */
.services-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.glass-card {
    background: rgba(42, 22, 89, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.service-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   SECTION REALISATIONS (PROJETS)
   ========================================= */
.projects-section {
    padding: 100px 0;
    position: relative;
    background: var(--bg-dark);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}

.align-right {
    text-align: right;
    margin: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(42, 22, 89, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 200px;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    padding: 20px;
}

.project-tags {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.tag-alt {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
    color: #FBCFE8;
}

.tag-alt2 {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.4);
    color: #FFEDD5;
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-location {
    font-size: 0.85rem;
    color: var(--grad-1);
    font-weight: 600;
    margin-bottom: 16px;
}

.project-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1; /* Pousse le lien vers le bas */
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.project-link:hover {
    color: var(--grad-2);
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(4px);
}

/* =========================================
   SECTION LE CERCLE
   ========================================= */
.cercle-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-darker);
    overflow: hidden;
}

.cercle-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.container-cercle {
    position: relative;
    z-index: 10;
}

.cercle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cercle-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.cercle-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cercle-features {
    list-style: none;
    margin-bottom: 40px;
}

.cercle-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    color: var(--grad-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cercle-features span {
    font-size: 1.05rem;
    font-weight: 500;
    padding-top: 4px; /* Alignement textuel avec l'icône */
}

/* Visuel abstrait du cercle */
.cercle-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-circle {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2;
}

.center-node {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    font-size: 1.5rem;
    z-index: 3;
    animation: pulseNode 3s infinite;
}

.node-1 { width: 60px; height: 60px; background: #1F2937; top: 70px; left: 70px; border: 2px solid var(--border-light); }
.node-2 { width: 80px; height: 80px; background: rgba(42, 22, 89, 0.8); top: 80px; right: 60px; border: 2px solid var(--grad-1); backdrop-filter: blur(4px); }
.node-3 { width: 70px; height: 70px; background: rgba(236, 72, 153, 0.2); bottom: 60px; right: 110px; border: 2px solid var(--grad-2); backdrop-filter: blur(4px); }

@keyframes pulseNode {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* =========================================
   SECTION CONTACT & CTA
   ========================================= */
.cta-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Chevauchement sur la section précédente */
}

.cta-card {
    background: linear-gradient(135deg, rgba(42, 22, 89, 0.4), rgba(17, 9, 52, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(236, 72, 153, 0.1);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: #04010a;
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: var(--grad-1);
    background: rgba(139, 92, 246, 0.1);
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--grad-2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* =========================================
   RESPONSIVE DESIGN (Finalisation)
   ========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .nav-links { display: none; } /* Bouton burger dans une version future */
    .cercle-grid { grid-template-columns: 1fr; gap: 40px; }
    .cercle-visual { height: 300px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-contact span { display: none; }
    .hero-title { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 24px; }
    .metric-divider { display: none; }
    .metrics-preview { flex-direction: column; align-items: flex-start; gap: 16px; }
    .logo-text { font-size: 1.1rem; }
    
    .section-title { font-size: 2.2rem; }
    .header-flex { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
    .align-right { text-align: left; }
    
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    
    .cercle-section { padding: 60px 0; }
    .cercle-title { font-size: 2.2rem; }
    
    .cta-card { padding: 30px 20px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 1rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; line-height: 1.1; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-title { font-size: 1.8rem; }
    .cercle-title { font-size: 1.8rem; }
}
