/* ============================= */
/* BASE PAGE                     */
/* ============================= */
body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
}

.container {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 0 60px;
}

.title {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 40px 0 25px;
}

/* ========================================= */
/* STYLE COMMUN A TOUTES LES MINIATURES     */
/* ========================================= */
.sommaire-item, .sommaire-large {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;    /* Toutes les photos sont carrées */
  border-radius: 15px;    /* Coins arrondis */
  overflow: hidden;
  background: #111;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sommaire-item img, .sommaire-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sommaire-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 8px 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

.sommaire-item:hover, .sommaire-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}

/* =============================================== */
/* SECTION PHOTOS (2 COLONNES SUR PC)              */
/* =============================================== */
.sommaire-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 25px;
  margin-bottom: 100px; /* Grand espace entre les sections */
}

/* =============================================== */
/* SECTION CDs (3 COLONNES SUR PC)                 */
/* =============================================== */
.sommaire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 15px;
  margin-bottom: 50px;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
.footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding: 30px 0 20px;
}

/* ============================= */
/* RESPONSIVE (ADAPTATION MOBILE)*/
/* ============================= */

/* Pour les tablettes et smartphones */
@media (max-width: 768px) {
  .sommaire-main {
    gap: 15px;
    margin-bottom: 60px;
  }
  
  /* Sur mobile, les photos passent sur 1 colonne (très grandes) */
  .sommaire-main {
    grid-template-columns: 1fr;
  }

  /* Sur mobile, les CD passent sur 2 colonnes (beaucoup plus petites) */
  .sommaire-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  /* On réduit un peu la taille du texte sur mobile pour les petits carrés */
  .sommaire-title {
    font-size: 0.8rem;
    padding: 5px 0;
  }
}