:root {
    --primary: #0f172a;
    --accent: #00ffd5;
    --accent-dark: #00c7a0;
    --background: #0b0f1a;
    --card: #1e293b;
    --card-dark: #172033;
    --text: #ffffff;
    --text-light: #94a3b8;
    --border: #334155;
    --positive: #00ff88;
    --negative: #ff3b5c;
    --gradient-start: rgba(0, 255, 213, 0.15);
    --gradient-end: rgba(11, 15, 26, 0);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.accent {
    color: var(--accent);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.75rem 0;
    background: rgba(11, 15, 26, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1001;
}

.logo .icon {
    margin-right: 10px;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Bouton CTA en nav â€” style â€œdesktopâ€ */
.nav-menu .cta-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-menu .cta-button:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}



.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.bar {
    width: 28px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu a {
        font-size: 1.25rem;
        padding: 1rem;
    }

    .nav-menu .cta-button {
        margin-top: 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(80px, 15vh, 120px) 0;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--gradient-start), var(--gradient-end) 70%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
}

.primary-button {
    background-color: var(--accent);
    color: var(--primary);
}

.primary-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.secondary-button {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.secondary-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Phone Mockup */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: min(280px, 90vw);
    height: min(580px, 70vh);
    background-color: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 
        0 0 0 2px #2d2d2d,
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 213, 0.2);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.1), rgba(0, 255, 213, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--accent);
}

/* Market Section */
.market {
    padding: 6rem 0;
    background-color: var(--primary);
}

.crypto-table {
    background-color: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 1.5rem;
    background-color: var(--card-dark);
    font-weight: 600;
}

.table-body {
    max-height: 500px;
    overflow-y: auto;
}

.crypto-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.crypto-row:hover {
    background-color: rgba(30, 41, 59, 0.5);
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coin-icon {
    width: 36px;
    height: 36px;
    background-color: var(--card-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coin-icon i {
    font-size: 1.25rem;
    color: var(--accent);
}

.coin-name-symbol {
    min-width: 0;
}

.coin-name-symbol .symbol {
    color: var(--text-light);
    font-size: 0.875rem;
}

.change {
    font-weight: 600;
}

.positive {
    color: var(--positive);
}

.negative {
    color: var(--negative);
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-header, .crypto-row {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .table-header div:last-child,
    .crypto-row div:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .table-header, .crypto-row {
        grid-template-columns: 2fr 1fr;
    }

    .table-header div:nth-child(3),
    .crypto-row div:nth-child(3) {
        display: none;
    }

    .coin-info {
        gap: 0.5rem;
    }

    .coin-icon {
        width: 32px;
        height: 32px;
    }
}

/* How it Works Section */
.how-it-works {
    padding: 6rem 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 16px;
    flex-grow: 1;
    border: 1px solid var(--border);
}

@media (max-width: 480px) {
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background-color: var(--primary);
}

.accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    background-color: var(--card);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    padding-right: 1rem;
}

.accordion-icon {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--card-dark);
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-content p {
    padding: 1.5rem;
    margin: 0;
}

/* Footer */
footer {
    padding: 6rem 0 2rem;
    background-color: var(--background);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: clamp(2rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.125rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.75rem;
}

.link-group a {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.link-group a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .cta-group {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-links {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
}

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

.hero-content h1,
.hero-content p,
.cta-group {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.cta-group {
    animation-delay: 0.6s;
}

.features-grid,
.crypto-table,
.steps,
.accordion {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}
.hero-slider {
  position: relative;
  width: 280px;
  height: 400px;
  flex-shrink: 0;
}

.scrollarea {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  cursor: grab;
}

.scrollarea::-webkit-scrollbar {
  display: none;
}

.scrollarea {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slide {
  scroll-snap-align: center;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.scrollarea.grabbing {
  cursor: grabbing;
}

.card-info {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-left: 1.5rem;
}

.card-name {
  font-size: 1.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-button {
  width: 48px;
  height: 48px;
  background: var(--background);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background 0.3s, transform 0.2s, color 0.3s;
}

.card-button:hover {
  background: var(--accent);
  color: var(--background);
  transform: scale(1.1);
}
.freshcrypto-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;              /* espace entre logo et texte */
  }
  
  .freshcrypto-logo__icon img {
    width: 40px;           /* ajustez selon votre besoin */
    height: auto;
    display: block;
  }
  @media screen and (max-width: 768px) {
  /* 1) Masquer le slider et le gradient */
  .hero-slider,
  .hero-backdrop {
    display: none !important;
  }

  /* 2) Adapter la section hero Ã  son contenu */
  .hero {
    min-height: auto !important;
    /* header â‰ˆ4rem + petit gap */
    padding: 5rem 0 2rem !important;
  }

  /* 3) Conteneur en colonne, texte en haut */
  .hero .container {
    flex-direction: column !important;
    justify-content: flex-start !important;
    text-align: center !important;
  }

  /* 4) Centrer les boutons */
  .cta-group {
    justify-content: center !important;
  }

  /* 5) Rapprocher la section â€œfeaturesâ€ */
  .features {
    padding-top: 2rem !important;
  }

  /* 6) Ajuster le padding global du container */
  .container {
    padding: 0 20px !important;
  }

  /* (Optionnel) Si tu veux affiner le menu mobile */
  .nav-menu a {
    font-size: 1.25rem !important;
    padding: 1rem !important;
  }
}