* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

header {
  margin-bottom: 100px;
}

/* LAYOUT GÉNÉRAL */
.main-content.accueil {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 48px;
  min-height: calc(100vh - 48px);
  justify-content: flex-start;
  gap:5em;
}

.accueil .page-header {
  width: clamp(300px, 95%, 1500px);
  padding: 0 48px;
  margin-bottom: 24px;
  margin-top:2em;
  
}

.accueil .page-title {
  font-size: clamp(18px, 3vw, 34px);
  color: #2a2a2a;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight:normal;
}

.accueil .page-title span {
  color: #E63946;
}

/* ACCORDÉON */
.accordion {
  width: clamp(300px, 95%, 1200px);
  margin: 0 auto;
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 0 48px;
  border-radius: 5px;
}

/* ITEM */
.acc-item {
  border-bottom: 2px dotted #E63946;
}

.acc-item:last-child {
  border-bottom: none;
}

/* HEADER */
.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #6a6363;
  letter-spacing: 0.01em;
  border-left: 3px solid transparent;
  padding-left: 12px;
  transition: color 0.15s, border-color 0.15s;
}

.acc-header:hover {
  color: #E63946;
}

 /*.acc-header.active {
  color: #E63946;
  font-weight:500;
} */ 

/* FLÈCHE */
.acc-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(135deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.acc-header.active .acc-icon {
  transform: rotate(315deg);
}

.acc-item:has(.acc-body.open) {
  margin-top: 1em;
}

/*.acc-item:has(.acc-body.open) .acc-header {
   background: #fdf0f1;
  border-radius: 8px;
  padding: 28px 16px;  
  border-left: 3px solid #c0394b;
  padding-left: 12px; 
}*/

.acc-item:has(.acc-body.open) .acc-body-inner {
  padding: 8px 12px 32px;
  /* aligne le contenu avec le header */
}

/* BODY — fermé par défaut */
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}

.acc-body.open {
  grid-template-rows: 1fr;
}

/* WRAPPER INTERNE — obligatoire pour l'animation */
.acc-body-inner {
  overflow: hidden;
  padding: 0;
  transition: padding 0.3s ease;
}

.acc-body.open .acc-body-inner {
  padding: 8px 0 32px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* CARTE */
.cat-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.cat-card:hover {
  border-color: #E6394622;
  box-shadow: 0 4px 16px rgba(192, 57, 75, 0.08);
}

/* IMAGE */
.cat-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-img img {
  transform: scale(1.03);
}

/* CORPS */
.cat-body {
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* BOUTON VOIR */
.cat-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cat-btn:hover {
  background: #E63946;
  border-color: #E63946;
  box-shadow: 0 2px 8px rgba(192, 57, 75, 0.3);
  outline: 1.5px solid #E63946;
  outline-offset: 4px;
}

.cat-btn::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid #E63946;
  border-top: 2.5px solid #E63946;
  transform: rotate(45deg) translate(-2px, 2px);
  transition: border-color 0.2s;
}

.cat-btn:hover::after {
  border-color: #fff;
}

/* TEXTE MASQUÉ LECTEUR D'ÉCRAN */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-img{
  display: flex;
  justify-content: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .main-content {
    padding: 24px 16px;
  }

  .page-header {
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  .accordion {
    padding: 0 16px;
  }

  .acc-header {
    font-size: 15px;
    padding: 20px 0;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cat-btn {
    width: 36px;
    height: 36px;
  }
}