/* ============================================================
   SECTION GUIDES LLM - Composant r&eacute;utilisable
   Pr&eacute;fixe : llmg- (LLM Guides)
   Utilisable sur : Horizon GEO, Accueil, Comprendre les LLM
   ============================================================ */

/* ---- Container principal ---- */
.llmg-section {
  padding: 70px 0;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

.llmg-section *,
.llmg-section *::before,
.llmg-section *::after {
  box-sizing: border-box;
}

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

/* ---- En-t&ecirc;te ---- */
.llmg-header {
  text-align: center;
  margin-bottom: 48px;
}

.llmg-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff6a1c;
  padding: 5px 18px;
  background: rgba(255,106,28,0.08);
  border: 1px solid rgba(255,106,28,0.25);
  border-radius: 50px;
  margin-bottom: 16px;
}

.llmg-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.25;
  margin: 0 0 12px;
}

.llmg-title span {
  background: linear-gradient(135deg, #ff6a1c, #fce721);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.llmg-subtitle {
  font-size: 17px;
  color: #666;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
  font-weight: 400;
}

/* ---- Grille desktop ---- */
.llmg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---- Carte individuelle ---- */
.llmg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 32px 20px 24px;
  text-decoration: none !important;
  color: inherit !important;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1),
              box-shadow 0.3s cubic-bezier(.22,.61,.36,1),
              border-color 0.3s ease;
}

/* Barre gradient top */
.llmg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6a1c, #fce721);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.llmg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255,106,28,0.12), 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(255,106,28,0.2);
}

.llmg-card:hover::before {
  opacity: 1;
}

/* Logo container */
.llmg-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8f8fb, #eeeef4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.llmg-card:hover .llmg-logo-wrap {
  transform: scale(1.08);
  background: linear-gradient(145deg, #fff3ec, #ffe8d9);
}

.llmg-logo-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Nom + maker */
.llmg-name {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 2px;
  line-height: 1.2;
}

.llmg-maker {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

/* Description */
.llmg-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 auto;
  padding-bottom: 16px;
  flex: 1;
}

/* Bouton CTA */
.llmg-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ff6a1c !important;
  text-decoration: none !important;
  padding: 8px 20px;
  border: 2px solid rgba(255,106,28,0.25);
  border-radius: 50px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.llmg-cta::after {
  content: '\2192';
  font-size: 15px;
  transition: transform 0.25s ease;
}

.llmg-card:hover .llmg-cta {
  background: linear-gradient(135deg, #ff6a1c, #ff8c42);
  color: #fff !important;
  border-color: #ff6a1c;
  box-shadow: 0 4px 16px rgba(255,106,28,0.3);
}

.llmg-card:hover .llmg-cta::after {
  transform: translateX(3px);
}

/* ---- Indicateur scroll mobile ---- */
.llmg-scroll-hint {
  display: none;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #aaa;
  font-weight: 500;
}

.llmg-scroll-hint::before {
  content: '\2190\00a0\00a0\2192';
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
  color: #ff6a1c;
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette */
@media (max-width: 1024px) {
  .llmg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Petit tablette */
@media (max-width: 850px) {
  .llmg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile : carrousel horizontal */
@media (max-width: 767px) {
  .llmg-section {
    padding: 50px 0;
  }

  .llmg-header {
    margin-bottom: 32px;
  }

  .llmg-inner {
    padding: 0 16px;
  }

  .llmg-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 8px;
    /* Masquer la scrollbar tout en gardant le scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .llmg-grid::-webkit-scrollbar {
    display: none;
  }

  .llmg-card {
    flex: 0 0 260px;
    min-width: 260px;
    scroll-snap-align: start;
    padding: 24px 18px 20px;
  }

  .llmg-card:first-child {
    margin-left: 0;
  }

  .llmg-card:last-child {
    margin-right: 16px;
  }

  .llmg-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .llmg-logo-wrap img {
    width: 34px;
    height: 34px;
  }

  .llmg-name {
    font-size: 18px;
  }

  .llmg-desc {
    font-size: 13px;
  }

  .llmg-scroll-hint {
    display: block;
  }
}

/* ============================================================
   VARIANTE FOND SOMBRE (pour pages dark)
   Ajouter la classe .llmg-section--dark
   ============================================================ */
.llmg-section--dark {
  background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
}

.llmg-section--dark .llmg-title {
  color: #fff;
}

.llmg-section--dark .llmg-subtitle {
  color: rgba(255,255,255,0.6);
}

.llmg-section--dark .llmg-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.llmg-section--dark .llmg-card:hover {
  border-color: rgba(255,106,28,0.3);
  box-shadow: 0 16px 48px rgba(255,106,28,0.15);
}

.llmg-section--dark .llmg-name {
  color: #fff;
}

.llmg-section--dark .llmg-maker {
  color: rgba(255,255,255,0.45);
}

.llmg-section--dark .llmg-desc {
  color: rgba(255,255,255,0.55);
}

.llmg-section--dark .llmg-logo-wrap {
  background: rgba(255,255,255,0.06);
}

.llmg-section--dark .llmg-card:hover .llmg-logo-wrap {
  background: rgba(255,106,28,0.1);
}

.llmg-section--dark .llmg-scroll-hint {
  color: rgba(255,255,255,0.4);
}
