/* ==================================================
   PIPE – CSS DÉDIÉ AUTONOME
   Inclut toggle-title / toggle-content
   3 images SUR UNE SEULE LIGNE (desktop)
================================================== */

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

/* =========================
   TYPO / TITRES
========================= */
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;
}

/* =========================
   TOGGLE (CONSERVÉ)
========================= */
.toggle-title {
  cursor: pointer;
  display: inline-block;
  padding: 6px 10px;
  margin: 12px auto;
  background-color: black;
  border-radius: 8px;
  font-weight: bold;
  color: gold;
}

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

.toggle-content p {
  font-size: 0.95em;
  line-height: 1.45em;
  color: #C0FFC0;
}

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

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

/* =========================
   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;   /* ⬅ réduction nette */
  }
}

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

  .category-card img {
    max-width: 210px;   /* ⬅ image clairement plus petite */
  }

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

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