/* ---------- Corps de la page ---------- */
body {
  margin: 0; /* Supprime les marges par défaut du navigateur */
  font-family: 'Segoe UI', sans-serif; /* Définie une police lisible et moderne */
  background-color: c; /* Fond sombre pour un style élégant */
  color: #ffffff; /* Texte en blanc pour un bon contraste */
  text-align: center; /* Centre le texte par défaut */

}

/* ---------- En-tête du site ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px; /* ✅ Hauteur réduite */
  background-color: #1e293b; /* Couleur de fond sombre */
  z-index: 1000; /* Toujours visible en haut */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center; /* Centre verticalement les éléments */
}

/* ---------- Conteneur interne ---------- */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Espace horizontal interne */
}

/* ---------- Logo ou titre principal ---------- */
h1 {
  color: #00d9ff;
  font-size: 1rem; /* Augmenté pour être visible */
  margin: 0;
}

h1 img {
  height: 40px; /* Taille du logo */
}

/* ---------- Liens de navigation ---------- */
nav a {
  color: #fff;
  margin-left: 21px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00b4d8;
}

/* ---------- Contenu principal (éviter qu’il soit masqué par l'en-tête) ---------- */
body {
  margin: 0;
  padding-top: 60px; /* ⬅ Même hauteur que l'en-tête */
  background-color: #020617;
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
}


/* ---------- Section d’accueil (Hero) ---------- */
.hero {
  background: linear-gradient(to right, #0d1117, #1f2937); /* Dégradé sombre */
  padding: 60px 10%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: -5px;
}

.text {
  flex: 1;
  padding: 20px;
}

.text h2 {
  font-size: 2.5rem;
  color: #00d9ff;
  margin-bottom: 15px;
}

.text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  background-color: #00d9ff;
  color: #0f172a;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.image {
  flex:1;
  text-align: center;
  padding: 20px;
}

.image img {
  width: 500px;
  margin: 15px;
  animation: float 3s ease-in-out infinite; /* Animation flottante */
}

/* Délai pour certaines images */
img.delay {
  animation-delay: 1s;
}

/* Animation de flottement (haut-bas) */
@keyframes float {
  0% { transform: translateY(0); }
  80% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ---------- Section des fonctionnalités ---------- */
.features {
  padding: 60px 10%;
  background-color: #1e293b;
  text-align: center;
}

.features h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Espacement entre les cartes */
}

.card {
  background-color: #0f172a;
  padding: 20px;
  width: 250px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05); /* Effet zoom au survol */
}

.card img {
  width: 60px;
  margin-bottom: 10px;
}

.card h4 {
  margin: 10px 0;
  color: #00d9ff;
}

/* ---------- Section témoignages ---------- */
.testimonials {
  background-color: #0d1117;
  text-align: center;
  padding: 60px 10%;
  font-style: italic;
}

blockquote {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #cbd5e1;
}

cite {
  display: block;
  margin-bottom: 30px;
  color: #64748b;
}

/* ---------- Pied de page ---------- */
footer {
  background-color: #1e293b;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Section Crypto-monnaies (15x10cm) ---------- */
.crypto-container {
  background-color: #fef9c3; /* Jaune pâle */
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  width: 2500px;   /* 30 cm ≈ px */
  height: 378px;  /* 10 cm ≈ 378px */
  overflow-y: auto;
  font-family: Arial, sans-serif;
  margin: auto;
  border: 2px solid #e4e4e4;
  color: black; /* Texte noir par défaut */
}

/* Liste de cryptos compacte en grille */
.crypto-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Carte crypto centrée, image réduite */
.crypto-item {
  background-color: #ffffff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  width: 140px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Texte tout en bas */
  text-align: center;
  font-size: 0.8rem;
  color: black;
  position: relative;
}

/* Image crypto centrée en haut et réduite */
.crypto-item img {
  width: 24px !important;
  height: 24px !important;
  display: block;
  margin: 0 auto 6px auto;
  object-fit: contain;
}


/* Nom de la crypto */
.crypto-name {
  font-size: 0.9rem;
  font-weight: bold;
  margin-top: 6px;
  margin-bottom: 3px;
}

/* Prix */
.price {
  font-size: 0.95rem;
  margin: 2px 0;
}

/* Variation de prix */
.change.up {
  color: #22c55e; /* Vert */
  font-weight: bold;
}

.change.down {
  color: #ef4444; /* Rouge */
  font-weight: bold;
}

/* Date/Heure (facultatif) */
.update-time {
  font-size: 0.7rem;
  color: #666;
  margin-top: 6px;
}

/* Animation (facultatif) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ---------- Bannière promotionnelle ---------- */
.promo-banner {
  background-color: #facc15; /* Jaune vif */
  color: #0f172a;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.promo-content {
  max-width: 1000px;
  width: 90%;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.promo-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.promo-banner p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.btn-trade {
  background-color: #0f172a;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.btn-trade:hover {
  background-color: #1e293b;
}

/* ---------- Section vidéo ---------- */
.video-section {
  background-color: #facc15;
  padding: 60px 20px;
  text-align: center;
}

.video-title {
  color: #0f172a;
  font-size: 2rem;
  margin-bottom: 30px;
}

.video-frame {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* Maintient un format vidéo standard */
  border: 4px solid #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

