/* --- Variables du thème (Propreté & Fraîcheur) --- */
:root {
  --bg-global: #f2f7fa;       
  --card-bg: #ffffff;         
  --primary-color: #0d3b66;    
  --text-muted: #000000;       
  --accent-blue: #0081a7;      
  --card-border: #eaf2f5;      
  --radius: 16px; 
  --shadow: 0 10px 30px rgba(13, 59, 102, 0.06); 
}

/* --- Conteneur Principal --- */
main, body {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  background-color: var(--bg-global);
}

/* --- Section En-tête (Vos nouvelles classes) --- */
.title-container {
  text-align: center;
  max-width: 800px;
  margin: 80px auto 50px auto; 
  padding: 0 20px;
  font-display: swap;
}

.title-container h1 {
  font-size: 2.5rem; 
  color: var(--primary-color);
  margin: 0 0 12px 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.title-container h2 {
  font-size: 1.1rem; 
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Grille et Conteneur --- */
.container {
  max-width: 1400px; 
  margin: 0 auto;
  padding: 0 20px 80px 20px;
}

/* Ciblage de votre classe .list */
.list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px; 
}

/* --- Les Cartes (Ciblage de votre classe .item) --- */
.item {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 50px 35px; 
  text-align: center;
  box-shadow: var(--text-muted);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 350px; 
}

.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 59, 102, 0.1);
  border-color: #00afb9; 
}

/* Style de l'icône générée en CSS avant chaque élément */
.item::before {
  font-size: 3.5rem; 
  margin-bottom: 25px;
  display: block;
  transition: transform 0.3s ease;
}

.item:hover::before {
  transform: scale(1.1);
}

/* --- LOGIQUE D'INJECTION DES ICÔNES --- */
.item:nth-child(1)::before { content: "🟫"; } /* Moquette */
.item:nth-child(2)::before { content: "🛏️"; } /* Matelas */
.item:nth-child(3)::before { content: "🛋️"; } /* Canapé */
.item:nth-child(4)::before { content: "🧵"; } /* Tapis */
.item:nth-child(5)::before { content: "✨"; } /* Désinfection */
.item:nth-child(6)::before { content: "🪲"; } /* Punaises de lit */

/* Titre à l'intérieur de la carte */
.item h3 {
  color: var(--primary-color);
  font-size: 1.3rem; 
  font-weight: 700;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-height: 50px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Description à l'intérieur de la carte */
.item p {
  color: var(--text-muted);
  font-size: 1.05rem; 
  line-height: 1.6;
  margin: 0;
}

/* --- Optimisation Mobile --- */
@media (max-width: 600px) {
  .title-container { margin: 40px auto 30px auto; }
  .title-container h1 { font-size: 1.8rem; }
  .title-container h2 { font-size: 0.9rem; }
  .list { 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; 
  }
  .item {
    padding: 35px 20px;
    min-height: auto; 
  }
  .item::before { font-size: 3rem; }
  .item h3 { min-height: auto; font-size: 1.15rem; }
}