/* ==================================================
   PIPE – CSS DÉDIÉ AUTONOME (cohérent avec hero-seo + seo-block)
   - NE TOUCHE PAS à la police et au background de body
   - categories-center INCHANGÉ (bloc conservé tel quel)
================================================== */

/* =========================
   RESET LOCAL
========================= */
body {
  margin: 0;
  padding: 0;
  background: black;
  text-align: center;
  box-sizing: border-box;
}

/* Pour éviter les incohérences de box sizing sans toucher au body */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   TYPO / TITRES (conservé)
========================= */
h1 {
  font-size: 1.4em;
  color: #8B0000;
  font-family: slime, serif;
  margin: 20px auto 10px;
}

h2 {
  color: gold;
  font-style: italic;
  font-size: 1em;
  margin-bottom: 30px;
}

h3 {
  color: gold;
  font-size: 1em;
  margin: 12px 0 6px;
}

/* ✅ IMPORTANT : ton H1 utilise .toggle-title,
   donc on force son rendu "gold" (sinon conflit avec h1 rouge). */
h1.toggle-title {
  color: gold;
  font-family: slime, serif; /* on respecte ta police */
  margin: 12px auto;
}

/* =========================
   BLOCS (cohérence des sections)
========================= */
.parag {
  max-width: 980px;
  margin: 0 auto;
  padding: 6px 12px;
}

/* hero-seo : même style, un peu plus "headline" */
.hero-seo .toggle-title {
  box-shadow: 0 0 18px rgba(255,215,0,0.10);
  border: 1px solid rgba(255,215,0,0.22);
}

/* seo-block : respiration + lisibilité */
.seo-block {
  margin-top: 10px;
  padding-bottom: 18px;
}

/* Séparateurs plus propres */
hr {
  border: none;
  height: 1px;
  max-width: 980px;
  margin: 18px auto;
  background: linear-gradient(to right, transparent, rgba(255,215,0,0.35), transparent);
}

/* =========================
   TOGGLE (CONSERVÉ + petites améliorations)
========================= */
.toggle-title {
  cursor: pointer;
  display: inline-block;
  padding: 6px 10px;
  margin: 12px auto;
  background-color: black;
  border-radius: 8px;
  font-weight: bold;
  color: gold;
  border: 1px solid rgba(255,215,0,0.16);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.toggle-title:hover {
  transform: translateY(-1px);
  border-color: rgba(255,215,0,0.32);
  box-shadow: 0 0 14px rgba(255,215,0,0.10);
}

.toggle-title:focus-visible {
  outline: 2px solid rgba(0,255,0,0.35);
  outline-offset: 4px;
}

.toggle-content {
  display: none;
  padding: 12px;
  margin: 0 auto 15px;
  max-width: 900px;
  background-color: black;
  border-left: 3px solid #666;
  border-radius: 8px;
  animation: fadeIn 0.3s ease-in-out;
}

/* Texte : équilibré */
.toggle-content p {
  font-size: 0.95em;
  line-height: 1.55em;
  color: #C0FFC0;
  margin: 10px auto;
  max-width: 860px;
}

.toggle-content h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.toggle-content a {
  color: gold;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,215,0,0.35);
}

.toggle-content a:hover {
  border-bottom-color: rgba(0,255,0,0.55);
}

.toggle-content strong {
  color: #d9ffd9;
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* =========================
   CONTENEUR DES 3 PIPES
   (FORÇAGE HORIZONTAL)  ✅ INCHANGÉ
========================= */
.categories-center {
  display: block !important;     /* SORT DE TOUT FLEX GLOBAL */
  width: 100%;
  text-align: center;            /* CLÉ DU CENTRAGE */
  padding: 40px 0;
}

/* ✅ Stabilise inline-block (évite qu'une carte passe à la ligne) */
.categories-center {
  font-size: 0;
}
.category-card {
  font-size: 16px; /* restaure une taille normale dans les cartes */
}

/* =========================
   CARTES PIPE (CÔTE À CÔTE)
========================= */
.category-card {
  display: inline-block !important;  /* HORIZONTAL GARANTI */
  vertical-align: top;
  width: 32%;                         /* 3 sur une ligne */
  max-width: 380px;
  margin: 0 1%;
  box-sizing: border-box;
  text-align: center;
}

/* =========================
   IMAGES
========================= */
.category-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow:
    0 0 20px rgba(0,255,0,0.15),
    0 0 40px rgba(0,0,0,0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-card img:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(255,215,0,0.4),
    0 0 60px rgba(0,0,0,1);
}

/* =========================
   TEXTE DESCRIPTIF
========================= */
.category-text {
  font-size: 0.95em;
  line-height: 1.5em;
  color: #C0FFC0;
  margin: 10px auto;
  max-width: 95%;
}

/* =========================
   BOUTON
========================= */
.bouton a {
  display: inline-block;
  background: #008000;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 10px;
}

/* =========================
   RESPONSIVE – IMAGES RÉDUITES
========================= */

/* Tablette large */
@media (max-width: 1000px) {
  .category-card {
    width: 45%;
    margin-bottom: 30px;
  }

  .category-card img {
    max-width: 260px;
  }

  .toggle-content {
    margin-left: 10px;
    margin-right: 10px;
  }
}


/* ================================
   SCROLL UP
================================ */
#scrollUp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

#scrollUp img {
    width: 50px;
    height: auto;
}

/* Mobile */
@media (max-width: 600px) {
  .category-card {
    width: 90%;
    margin: 0 auto 30px;
  }

  .category-card img {
    max-width: 210px;
  }

  .category-text {
    font-size: 0.9em;
    line-height: 1.45em;
  }

  .toggle-content p {
    font-size: 0.92em;
    line-height: 1.5em;
  }

  h1 {
    font-size: 1.1em;
  }
}

/* Très petits écrans */
@media (max-width: 400px) {
  .category-card img {
    max-width: 180px;
  }
}
