/* ======================
   CONDITIONS PAGE — CSS FINAL & RESPONSIVE
====================== */

/* === Box sizing global === */
*, *::before, *::after {
  box-sizing: border-box;
}

/* === Page globale === */
.conditions-page {
  padding: 2rem 1rem;
  background: #f7f9fc;
}

/* === Titre principal === */
.conditions-page h1 {
  font-size: 2.4rem;
  color: #003366;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

/* === Section centrale === */
.conditions-section {
  max-width: 950px;
  margin: 0 auto;
}

/* === Card moderne === */
.conditions-card {
  background: #ffffff;
  padding: 2rem 2.2rem;
  margin: 2rem auto;
  max-width: 800px;
  width: 90%;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.conditions-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.10);
}

/* === Titres internes === */
.conditions-card h2 {
  color: #0066cc;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 1.5rem;
}

/* === Paragraphes & listes (DESKTOP) === */
.conditions-card p,
.conditions-card li {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
  text-align: justify; /* Desktop uniquement */
}

/* === Listes === */
.conditions-card ul {
  margin-left: 1.3rem;
  padding-left: 1rem;
  list-style: disc;
  overflow-wrap: break-word;
}

/* === Boutons === */
.conditions-card a.btn {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.7rem 1.4rem;
  background: #0066cc;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.25s ease;
}

.conditions-card a.btn:hover {
  background: #004f9e;
}

/* ======================
   RESPONSIVE
====================== */

/* --- Tablette --- */
@media (max-width: 900px) {
  .conditions-page h1 {
    font-size: 2rem;
  }

  .conditions-card {
    padding: 1.6rem;
  }
}

/* --- Mobile (IMPORTANT FIX) --- */
@media (max-width: 768px) {
  .conditions-card p,
  .conditions-card li {
    text-align: left;       /* 🔥 RETIRE JUSTIFY */
    line-height: 1.65;
    word-spacing: normal;
  }
}

/* --- Petit mobile --- */
@media (max-width: 600px) {
  .conditions-page h1 {
    font-size: 1.7rem;
  }

  .conditions-card h2 {
    font-size: 1.3rem;
  }

  .conditions-card p,
  .conditions-card li {
    font-size: 1rem;
  }
}

/* --- Très petit écran --- */
@media (max-width: 400px) {
  .conditions-page h1 {
    font-size: 1.5rem;
  }

  .conditions-card h2 {
    font-size: 1.1rem;
  }

  .conditions-card p,
  .conditions-card li {
    font-size: 0.95rem;
  }
}
