/* ===================================
   FAN'EST DAO - LANDING PAGE CSS
   CSS Optimisé et Moderne
   =================================== */

/* Reset CSS moderne */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables CSS - Couleurs Espérance */
:root {
    /* Couleurs principales */
    --rouge-est: #ff0000;
    --or-est: #ffdd00;
    --noir-est: #000000;
    
    /* Couleurs interface */
    --blanc: #ffffff;
    --gris-clair: #f8f9fa;
    --gris-moyen: #6c757d;
    --gris-fonce: #343a40;
    
    /* Gradients */
    --gradient-rouge-or: linear-gradient(135deg, var(--rouge-est) 0%, var(--or-est) 100%);
    --gradient-fond: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    
    /* Ombres */
    --ombre-legere: 0 2px 10px rgba(0,0,0,0.1);
    --ombre-moyenne: 0 4px 20px rgba(0,0,0,0.15);
    --ombre-forte: 0 8px 30px rgba(0,0,0,0.2);
    
    /* Rayons de bordure */
    --rayon-petit: 8px;
    --rayon-moyen: 16px;
    --rayon-grand: 24px;
    
    /* Espacements */
    --espace-xs: 0.5rem;
    --espace-sm: 1rem;
    --espace-md: 2rem;
    --espace-lg: 3rem;
    --espace-xl: 4rem;
    
    /* Typographie */
    --police: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Base typographique */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--police);
    line-height: 1.6;
    color: var(--gris-fonce);
    background: var(--blanc);
    overflow-x: hidden;
}

/* Container responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espace-sm);
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--espace-sm);
    color: var(--noir-est);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: var(--espace-sm);
    color: var(--gris-moyen);
}

/* Boutons modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--espace-sm) var(--espace-md);
    border: none;
    border-radius: var(--rayon-moyen);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.btn-primary {
    background: var(--gradient-rouge-or);
    color: var(--blanc);
    box-shadow: var(--ombre-moyenne);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-forte);
}

.btn-secondary {
    background: var(--gris-fonce);
    color: var(--blanc);
}

.btn-secondary:hover {
    background: var(--gris-moyen);
}

.btn-large {
    padding: var(--espace-md) var(--espace-lg);
    font-size: 1.125rem;
    min-height: 60px;
}

/* Header fixe */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: var(--ombre-legere);
}

.navbar {
    padding: var(--espace-sm) 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--espace-sm);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rouge-est);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.brand-text {
    background: var(--gradient-rouge-or);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--espace-md);
}

.nav-link {
    color: var(--gris-moyen);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--espace-xs) var(--espace-sm);
    border-radius: var(--rayon-petit);
}

.nav-link:hover {
    color: var(--rouge-est);
    background: rgba(255, 0, 0, 0.05);
}

.btn-cta-header {
    background: var(--gradient-rouge-or);
    color: var(--blanc);
    padding: var(--espace-sm) var(--espace-md);
    border-radius: var(--rayon-moyen);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombre-moyenne);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--noir-est);
    font-size: 1.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--rouge-est);
    transition: all 0.3s ease;
}

/* Section Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    background: var(--gradient-fond);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 221, 0, 0.05) 0%, transparent 50%);
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

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

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--espace-xl);
    align-items: center;
    padding: var(--espace-xl) 0;
}

.hero-flag {
    font-size: 2rem;
    margin-bottom: var(--espace-sm);
    text-align: center;
    display: inline-block;
    padding: var(--espace-xs) var(--espace-sm);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--rayon-grand);
    box-shadow: var(--ombre-legere);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--espace-md);
}

.text-gradient {
    background: var(--gradient-rouge-or);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-esperance {
    color: var(--rouge-est);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gris-moyen);
    margin-bottom: var(--espace-lg);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--espace-md);
    flex-wrap: wrap;
    margin-bottom: var(--espace-lg);
}

.hero-stats {
    display: flex;
    gap: var(--espace-lg);
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rouge-est);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gris-moyen);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.floating-nft, .floating-token, .floating-flag {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ombre-moyenne);
}

.floating-nft {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-token {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.floating-flag {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--rayon-grand);
    box-shadow: var(--ombre-forte);
}

/* Section Projet DAO */
.projet-dao-section {
    background: var(--gradient-fond);
    border-top: 4px solid var(--rouge-est);
    border-bottom: 4px solid var(--or-est);
    padding: var(--espace-xl) 0;
    position: relative;
    overflow: hidden;
}

.projet-dao-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 221, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.projet-content-simple {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.projet-block-unique {
    background: var(--blanc);
    border-radius: var(--rayon-moyen);
    padding: var(--espace-xl);
    box-shadow: var(--ombre-forte);
    border: 3px solid var(--rouge-est);
    position: relative;
    overflow: hidden;
}

.projet-block-unique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--gradient-rouge-or);
}

.projet-titre {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--espace-xl);
    color: var(--noir-est);
    background: var(--gradient-rouge-or);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.projet-texte {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gris-fonce);
}

.projet-texte p {
    margin-bottom: var(--espace-md);
    font-size: 1.125rem;
}

.projet-texte p strong {
    color: var(--rouge-est);
    font-weight: 700;
    font-size: 1.25rem;
}

.projet-texte ul {
    margin-bottom: var(--espace-lg);
    margin-left: var(--espace-md);
    list-style: none;
    padding: 0;
}

.projet-texte ul li {
    margin-bottom: var(--espace-sm);
    padding-left: var(--espace-sm);
    position: relative;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gris-fonce);
}

.projet-texte ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--rouge-est);
    border-radius: 50%;
}

/* Sections génériques */
section {
    padding: var(--espace-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--espace-xl);
}

.section-title {
    margin-bottom: var(--espace-sm);
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gris-moyen);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections avec styles minimalistes */
.pourquoi-section {
    background: var(--gris-clair);
}

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--espace-md);
}

.pourquoi-card {
    background: var(--blanc);
    border-radius: var(--rayon-moyen);
    padding: var(--espace-lg);
    box-shadow: var(--ombre-legere);
    text-align: center;
    transition: all 0.3s ease;
}

.pourquoi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-forte);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--espace-md);
}

.pourquoi-card h3 {
    margin-bottom: var(--espace-sm);
    color: var(--rouge-est);
}

/* Timeline et exemples */
.fonctionnement-section,
.exemples-section,
.galerie-section,
.communaute-section,
.cta-final-section {
    padding: var(--espace-xl) 0;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--espace-md);
}

.timeline-item {
    background: var(--blanc);
    border-radius: var(--rayon-moyen);
    padding: var(--espace-lg);
    box-shadow: var(--ombre-legere);
    text-align: center;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-forte);
}

.timeline-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-rouge-or);
    color: var(--blanc);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--espace-md);
}

.timeline-content h3 {
    margin-bottom: var(--espace-sm);
    color: var(--rouge-est);
}

.exemples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--espace-md);
}

.exemple-card {
    background: var(--blanc);
    border-radius: var(--rayon-moyen);
    padding: var(--espace-lg);
    box-shadow: var(--ombre-legere);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.exemple-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-forte);
}

.exemple-icon {
    font-size: 3rem;
    margin-bottom: var(--espace-md);
}

.exemple-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-rouge-or);
    color: var(--blanc);
    padding: 5px 10px;
    border-radius: var(--rayon-petit);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Social cards */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--espace-md);
}

.social-card {
    background: var(--blanc);
    border-radius: var(--rayon-moyen);
    padding: var(--espace-lg);
    box-shadow: var(--ombre-legere);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--espace-md);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-forte);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-rouge-or);
    color: var(--blanc);
    flex-shrink: 0;
}

.social-content h4 {
    margin-bottom: 5px;
    color: var(--rouge-est);
}

.social-followers {
    font-size: 0.875rem;
    color: var(--gris-moyen);
    font-weight: 600;
}

/* CTA final */
.cta-final-section {
    background: var(--gradient-fond);
    text-align: center;
}

.cta-final-title {
    font-size: 3rem;
    margin-bottom: var(--espace-md);
}

.cta-final-subtitle {
    font-size: 1.25rem;
    color: var(--gris-moyen);
    margin-bottom: var(--espace-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final-buttons {
    display: flex;
    gap: var(--espace-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--espace-md);
}

.cta-final-note p {
    color: var(--gris-moyen);
    font-size: 0.875rem;
}

.colors-flag {
    font-size: 2rem;
}

/* Footer */
.footer {
    background: var(--noir-est);
    color: var(--blanc);
    padding: var(--espace-xl) 0 var(--espace-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--espace-lg);
    margin-bottom: var(--espace-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--espace-sm);
    margin-bottom: var(--espace-sm);
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-brand h3 {
    color: var(--blanc);
    margin: 0;
}

.footer-description {
    color: #ccc;
    margin-bottom: var(--espace-md);
}

.footer-social {
    display: flex;
    gap: var(--espace-sm);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--rouge-est);
    border-radius: 50%;
    color: var(--blanc);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--or-est);
    transform: translateY(-2px);
}

.footer-section h4 {
    color: var(--blanc);
    margin-bottom: var(--espace-sm);
}

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

.footer-links li {
    margin-bottom: var(--espace-xs);
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--or-est);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: var(--espace-md);
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--espace-sm);
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
}

.footer-tagline {
    margin-top: var(--espace-xs);
}

/* Carrousel galerie */
.galerie-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--rayon-grand);
}

.carousel-slide {
    display: none;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--blanc);
    padding: var(--espace-lg);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--espace-sm);
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--noir-est);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--blanc);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--espace-xs);
    margin-top: var(--espace-md);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--rouge-est);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--espace-md);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .projet-content-simple {
        max-width: 100%;
        padding: 0 var(--espace-sm);
    }
    
    .projet-block-unique {
        padding: var(--espace-lg);
    }
    
    .projet-titre {
        font-size: 2rem;
    }
    
    .timeline,
    .exemples-grid,
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .social-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-final-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--espace-xs);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-final-title {
        font-size: 2rem;
    }
    
    .btn-large {
        width: 100%;
        margin-bottom: var(--espace-sm);
    }
}

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

.hero-content,
.projet-block-unique,
.pourquoi-card,
.timeline-item,
.exemple-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animation pulse pour les boutons CTA */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Classes utilitaires */
.smooth-scroll {
    scroll-behavior: smooth;
}

.coming-soon {
    opacity: 0.6;
    pointer-events: none;
}
