/* index.css */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  color: #111;
  font-size: 14px; /* Taille de texte par défaut */
  line-height: 1.5;
}

    header {
      padding: 16px 24px;
      border-bottom: 1px solid #ddd;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: 0.02em;
      font-size: 18px;
      color: #111;
      text-decoration: none;
      transition: transform .18s ease, filter .18s ease;
    }

    .logo img {
      height: 42px;
      width: auto;
      display: block;
      border-radius: 8px;
      transition: transform .18s ease, filter .18s ease;
      filter: drop-shadow(0 6px 18px rgba(255,0,0,0.12));
    }

    .logo:hover {
      opacity: 0.95;
      transform: translateY(-2px);
    }

    .logo span {
      display: inline-block;
      font-weight: 800;
      font-size: 18px;
      background: #111111;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-shadow: 0 1px 0 rgba(0,0,0,0.06);
      padding-left: 4px;
      transition: transform .18s ease, text-shadow .18s ease;
    }

    .logo:hover span {
      transform: translateY(-2px) scale(1.02);
      text-shadow: 0 6px 22px rgba(0,0,0,0.22);
    }


    nav a {
      margin-left: 16px;
      text-decoration: none;
      color: #333;
      font-size: 14px;
    }

    nav a:hover {
      text-decoration: underline;
    }

    main {
      max-width: 1100px;
      margin: 0 auto;
      padding: 24px 16px 40px;
    }

    .hero {
      max-width: 618px;     /* 👈 réduit la largeur */
      margin-left: 0;       /* 👈 colle à gauche */
      margin-right: auto;   /* 👈 espace libre à droite */
      margin-top: 0px;
      margin-bottom: 0px;
      padding: 38px 20px;
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    }

    .hero h1 {
      margin-top: 0;
      margin-bottom: 12px;
      font-size: 24px;
    }

    .hero p {
      margin: 0 0 8px;
      line-height: 1.5;
    }

    .tagline {
      font-size: 14px;
      color: #555;
    }

    .btn-primary {
      display: inline-block;
      margin-top: 16px;
      padding: 10px 18px;
      border-radius: 999px;
      border: none;
      background: #111;
      color: #fff;
      font-size: 14px;
      cursor: pointer;
      text-decoration: none;
    }
/* for training page button */
/* 🔴 Bouton CTA Entraînements */
.btn-primary2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: 18px;
  padding: 12px 22px;

  border-radius: 999px;
  border: none;

  background: linear-gradient(135deg, #ff2d2d, #d90000);
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;

  cursor: pointer;
  text-decoration: none;

  box-shadow:
    0 6px 16px rgba(255, 45, 45, 0.35),
    inset 0 -2px 0 rgba(0,0,0,0.15);

  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary2:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(255, 45, 45, 0.45),
    inset 0 -2px 0 rgba(0,0,0,0.2);
  filter: brightness(1.05);
}

.btn-primary2:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(255, 45, 45, 0.3),
    inset 0 2px 4px rgba(0,0,0,0.25);
}


    .layout-two-col {
      display: grid;
      grid-template-columns: 1.85fr 1.25fr; /* 👈 plus compact */
      gap: 15px;
      align-items: start; /* 👈 empêche l'étirement vertical */
      margin-bottom: 20px;
      align-items: stretch; /* 🔑 clé : force la même hauteur */


    }
        /* Variante spécifique : image plus étroite, texte plus large */
    .layout-two-col.narrow-media {
      grid-template-columns: minmax(0, 1.95fr) minmax(0, 2.6fr);
      align-items: stretch; /* 🔑 clé : force la même hauteur */

    }



    @media (max-width: 800px) {
      .layout-two-col {
        grid-template-columns: 1fr;
      }
      .layout-two-col.narrow-media {
          grid-template-columns: 1fr;
        }

        /* TEXTE d'abord */
        .layout-two-col.narrow-media section {
          order: 1;
        }

        /* IMAGE ensuite */
        .layout-two-col.narrow-media aside {
          order: 2;
        }
    }


    .card {
      background: #ffffff;
      border-radius: 14px;
      padding: 18px 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.03);
      display:flex;
      flex-direction: column;
    }


    .card h2 {
      margin-top: 0;
      margin-bottom: 10px;
      font-size: 20px;
    }

    .card h3 {
      margin-top: 0;
      margin-bottom: 6px;
      font-size: 16px;
    }

    .card p {
      margin: 0 0 8px;
      line-height: 1.5;
      font-size: 14px;
    }

    .pill-list {
      list-style: none;
      padding: 0;
      margin: 8px 0 0;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .pill-list li {
      font-size: 12px;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid #ddd;
      background: #fafafa;
    }

    .post-preview {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px dashed #ddd;
      font-size: 14px;
      color: #444;
    }

    .post-preview a {
      text-decoration: none;
      color: #111;
      font-weight: 600;
    }

    .post-preview a:hover {
      text-decoration: underline;
    }

    .section-title {
      font-size: 18px;
      margin-bottom: 8px;
    }
    .gold-card {
      margin-top: 25px;
      background: linear-gradient(180deg, #fffaf0 0%, #fff2d9 100%);
      border: 1px solid #d4af37;
      box-shadow: 0 6px 20px rgba(212,175,55,0.12);
      border-radius: 14px;
      padding: 18px;
    }
    .gold-card .section-title {
      color: #5a3d00;
    }



    /* MEDIA COLUMN (images à droite) */
    .right-media {
      padding: 0;
      overflow: hidden;
    }

    .right-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 14px;
    }

    .hero-tutorial {
      margin: 0 auto 32px auto; /* centre horizontalement */
      max-width: 1100px;        /* largeur maîtrisée */
      margin-bottom: 10px;
      background: #ffffff;
      border-radius: 16px;
      padding: 24px 22px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.05);
      text-align: left;
    }

    .hero-tutorial h1 {
      margin-top: 0;
      margin-bottom: 12px;
      font-size: 26px;
      letter-spacing: -0.02em;
    } 

    .hero-tutorial p {
      font-size: 15px;
      line-height: 1.6;
      color: #333;
      margin-bottom: 10px;
    }

/* HEADER GLOBAL */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 14px 20px;
}

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

/* LOGO: styles defined earlier (consolidated) */

/* NAV DESKTOP */
.desktop-nav {
  display: flex;
  gap: 18px;
} 

.desktop-nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.desktop-nav a:hover {
  text-decoration: underline;
}


/* ===== NAVIGATION MOBILE PATCH ===== */

/* bouton hamburger */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
}

/* nav mobile cachée par défaut */
.mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #eee;
  margin-top: 12px;
}

.mobile-nav a {
  padding: 12px 16px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

/* ===== HEADER MOBILE FIX ===== */

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

/* MOBILE */
@media (max-width: 768px) {

  /* header reste en ligne */
  .site-header {
    flex-direction: row;          /* 🔑 clé */
    align-items: center;
    flex-wrap: wrap;              /* permet au menu de passer dessous */
  }

  /* cache la nav desktop */
  .main-nav {
    display: none;
  }

  /* bouton hamburger à droite */
  .menu-toggle {
    display: block;
    margin-left: auto;            /* 🔑 pousse à droite */
    font-size: 26px;
  }

  /* menu mobile en dessous sur toute la largeur */
  .mobile-nav {
    width: 100%;
    margin-top: 12px;
  }

  .mobile-nav.open {
    display: flex;
  }
}


