/* Brouillon — non validé. Feuille de style commune du site Écho Client. */

* {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16 px par défaut, respecte le réglage du navigateur */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.125rem; /* 18 px */
  line-height: 1.6;
  color: #1f2933;
  background: #ffffff;
}

.conteneur {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* En-tête */
.entete {
  background: #0f4c5c;
  color: #ffffff;
  padding: 1rem 0;
}

.entete a {
  color: #ffffff;
}

.marque {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
}

.menu {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu a {
  display: inline-block;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.5rem;
  text-decoration: none;
}

.menu a:hover,
.menu a:focus {
  background: rgba(255, 255, 255, 0.15);
}

/* Titres et texte */
h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 2rem 0 1rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  color: #0f4c5c;
}

h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

p,
li {
  font-size: 1.125rem;
}

a {
  color: #0b5f73;
}

a:focus {
  outline: 3px solid #f2a541;
  outline-offset: 2px;
}

.slogan {
  font-size: 1.3rem;
  font-weight: bold;
  color: #0f4c5c;
}

/* Bouton */
.bouton {
  display: inline-block;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  background: #0f4c5c;
  color: #ffffff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  margin: 0.5rem 0;
}

.bouton:hover,
.bouton:focus {
  background: #0b3945;
}

/* Encadrés */
.encadre {
  background: #eef6f7;
  border-left: 5px solid #0f4c5c;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
}

.attention {
  background: #fff6e5;
  border-left-color: #c77d00;
}

/* Étapes */
.etapes {
  padding-left: 1.5rem;
}

.etapes li {
  margin-bottom: 1rem;
}

/* Prix : une colonne sur petit écran, plusieurs si la place le permet */
.prix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.carte-prix {
  border: 2px solid #0f4c5c;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.carte-prix .montant {
  font-size: 2rem;
  font-weight: bold;
  color: #0f4c5c;
  margin: 0.25rem 0;
}

.carte-prix p {
  margin: 0.25rem 0;
}

/* Repères à compléter (brouillon) */
.a-completer {
  background: #ffe8e8;
  color: #8a1c1c;
  font-weight: bold;
  padding: 0 0.25rem;
}

/* Tableaux simples (confidentialité) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid #c9d3d8;
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
  font-size: 1rem;
}

th {
  background: #eef6f7;
}

/* Pied de page */
.pied {
  margin-top: 3rem;
  padding: 1.5rem 0;
  background: #f3f5f6;
  border-top: 1px solid #d9e0e3;
}

.pied ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.pied li a {
  display: inline-block;
  min-height: 48px;
  padding: 0.75rem 0;
}

.pied p {
  font-size: 1rem;
}

/* Écran étroit : tableaux lisibles, une seule colonne */
@media (max-width: 36rem) {
  h1 {
    font-size: 1.6rem;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    left: -9999px;
  }

  tr {
    border: 1px solid #c9d3d8;
    margin-bottom: 1rem;
  }

  td {
    border: none;
    border-bottom: 1px solid #e3e8ea;
  }

  td::before {
    content: attr(data-titre) " : ";
    font-weight: bold;
  }
}
