/* =========================================================
   STYLE_LOGICIELS.CSS (SIMPLIFIÉ + COMMENTÉ)
   Objectifs :
   - Fond uniforme comme index (#fafafa)
   - Hero blanc avec pattern cartes + capsule lisible
   - Tous les boutons deviennent rouges
   - Titres de sections comme index (icônes + gros titre + sous-titre)
   ========================================================= */


/* =========================
   1) RESET + BASE
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Police + couleurs globales (comme index) */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #fafafa; /* <-- fond uniforme */
}

/* Scroll doux vers les ancres (#...) */
html {
  scroll-behavior: smooth;
}

/* Container central */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =========================
   2) HERO (BLANC + PATTERN + CAPSULE)
   ========================= */

/*
  IMPORTANT :
  Pour utiliser ce style, ton HTML doit être comme ça :
  <section class="hero hero--pattern">
    <svg class="hero-pattern">...</svg>
    <div class="hero-content hero-capsule">...</div>
  </section>
*/

.hero.hero--pattern {
  position: relative;
  background: #fff;
  color: #111827;
  padding: 5rem 1rem;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
}

/* Pattern en arrière-plan (ne bloque PAS les clics) */
.hero.hero--pattern .hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;           /* ajuste si besoin */
  pointer-events: none;    /* <-- essentiel */
}

/* Capsule blanche pour la lisibilité du texte */
.hero.hero--pattern .hero-capsule {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

/* Icônes bridge en haut (noir / rouge alterné) */
.card-suits {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 54px;
  margin-bottom: 18px;
}
/* ♠ en bleu */
.suit-heart,
.suit-diamond {
  color: #1f0568;
}


/* ♥ ♦ en rouge */
.suit-heart,
.suit-diamond {
  color: #dc2626;
}

/* ♣ en noir */
.suit-spade,
.suit-club {
  color: #000;
}


/* Titre HERO */
.hero.hero--pattern h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #111827;
}

/* Texte HERO */
.hero.hero--pattern p {
  font-size: 1.125rem;
  color: #4b5563;
}


/* =========================
   3) TITRES DE SECTIONS (STYLE INDEX)
   ========================= */

/*
  Pour avoir le rendu comme index, structure HTML recommandée :
  <div class="section-header">
    <div class="suits">
      <span class="black">♠</span><span class="red">♥</span><span class="red">♦</span><span class="black">♣</span>
    </div>
    <h2>Mon titre</h2>
    <p>Mon sous-titre</p>
  </div>
*/

.section {
  padding: 60px 20px;
}

.section-header {
  text-align: center;
  margin: 0 auto 2rem;
}

.section-header .suits {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 40px;
  margin-bottom: 14px;
}

.section-header .suits .black { color: #000; }
.section-header .suits .red { color: #dc2626; }

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0 0 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}


/* =========================
   4) ALERT (INFO)
   - Même style mais en rouge (cohérence)
   ========================= */

.alert {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border: 2px solid #dc2626;
  border-radius: 10px;
  display: flex;
  gap: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.alert-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #dc2626;
}

.alert-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.alert-description {
  color: #374151;
  font-size: 0.95rem;
}


/* =========================
   5) BOUTONS (TOUS EN ROUGE)
   ========================= */

/* Style commun bouton */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Toutes les variantes -> ROUGE */
.btn,
.btn-blue,
.btn-green,
.btn-purple,
.btn-pink,
.btn-orange {
  background: #dc2626;
  color: #fff;
}

.btn:hover,
.btn-blue:hover,
.btn-green:hover,
.btn-purple:hover,
.btn-pink:hover,
.btn-orange:hover {
  background: #000;
}

.btn:active {
  transform: scale(0.99);
}

/* Centre */
.center {
  text-align: center;
  margin-bottom: 20px;
}


/* =========================
   6) BLOCS CONTENU (STATS / INFO / CARDS)
   ========================= */

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #dc2626;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.stat-icon { font-size: 1.5rem; }
.stat-text { font-weight: 700; color: #111827; }

/* Info box */
.info-box {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 25px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.info-box p {
  margin-bottom: 12px;
  color: #111827;
}

.info-box .highlight {
  color: #dc2626;
  font-weight: 800;
}

.info-box .link {
  color: #dc2626; /* cohérence rouge */
  text-decoration: none;
  font-weight: 700;
}

.info-box .link:hover {
  text-decoration: underline;
}

/* Si tu gardes "blue-text" dans le HTML, on le rend rouge */
.info-box .blue-text {
  color: #dc2626;
  font-weight: 700;
}


/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 60px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.10);
}

.card-header {
  background: linear-gradient(to right, #dc2626, #111827);
  color: #fff;
  padding: 18px 20px;
}

.card-header h3 {
  font-size: 1.2rem;
}

.card-content {
  padding: 22px;
}

.card-content h4 {
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.card-content ul {
  list-style: none;
  margin-bottom: 20px;
}

.card-content li {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #374151;
}

.card-content .bullet {
  color: #dc2626;
  font-weight: 900;
}

/* Footer de carte (bouton pleine largeur) */
.card-footer {
  padding: 18px 20px;
}

.card-footer .btn {
  width: 100%;
}


/* =========================
   7) SECTIONS COLORÉES -> NEUTRALISÉES
   (fond identique partout)
   ========================= */

.green-section,
.amber-section {
  background: transparent;
  padding: 60px 20px;
}

/* 2 colonnes (cartes fin de coup / aventure...) */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Anciennes cartes "pink/orange" : on garde structure, mais cohérence border */
.pink-card,
.orange-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.pink-card:hover,
.orange-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.10);
}

/* Headers des cartes : version rouge/noir */
.pink-header,
.orange-header {
  background: linear-gradient(to right, #dc2626, #111827);
  color: #fff;
  padding: 26px 20px;
  text-align: center;
}


/* =========================
   8) RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .card-suits { font-size: 34px; }
  .two-col-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* =========================
   9) VIDEO
   ========================= */

   .video-container {
    text-align: center;
    background: #2b2b2b;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-container h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

video {
    max-width: 100%;
    width: 700px;
    height: auto;
    border-radius: 10px;
    outline: none;
}

