/* Salon Lumière - site de démonstration (entreprise fictive) */

:root {
  --fond: #fbfaf6;
  --fond-doux: #eef2ec;
  --texte: #2a2f2b;
  --texte-doux: #55605a;
  --accent: #4f7058; /* sauge foncé : 5,54:1 avec du texte blanc, 5,22:1 sur le fond */
  --accent-fonce: #3f5c48;
  --trait: #dde3da;
  /* Hauteur de l'en-tête fixe (tablette et ordinateur seulement) */
  --hauteur-entete: 4.5rem;
  /* Pile de polices système : aucune police demandée par son nom, rien à charger */
  --police: system-ui, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

.conteneur {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

/* En-tête : sur mobile il défile avec la page, sur tablette et ordinateur il reste en haut */
.entete {
  background: var(--fond);
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}
.marque {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--texte);
  text-decoration: none;
}
.menu {
  display: flex;
  gap: 0.25rem 1.25rem;
  order: 3;
  width: 100%;
}
.menu a {
  color: var(--texte-doux);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a:focus-visible { color: var(--accent); }
.menu a[aria-current="page"] { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.actions-entete { display: flex; align-items: center; gap: 0.5rem; }

/* Sections */
section { padding-block: clamp(3rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--trait); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }

p { margin: 0 0 1rem; }

.accroche {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--texte-doux);
  max-width: 34rem;
}

/* Boutons */
.bouton {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.bouton:hover, .bouton:focus-visible { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton-clair { background: transparent; color: var(--accent); }
.bouton-clair:hover, .bouton-clair:focus-visible { background: var(--fond-doux); color: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton-petit { padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Haut de page et sections avec image */
.duo { display: grid; gap: 2.5rem; align-items: center; }
.duo img { border-radius: 1.25rem; width: 100%; }
.mention { color: var(--texte-doux); font-size: 0.9375rem; margin-top: 1rem; }
.points { padding-left: 1.25rem; margin: 1rem 0 0; }
.points li { margin-bottom: 0.4rem; }

/* Cartes (aperçu des prestations) */
.cartes {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.cartes li { padding: 1.25rem 1.5rem; background: var(--fond-doux); border-radius: 1rem; }
.cartes p { margin: 0; color: var(--texte-doux); }
.lien-suite { display: inline-block; margin-top: 1.5rem; font-weight: 600; }

/* Tarifs */
.groupe-tarifs { margin-top: 2rem; }
.groupe-tarifs h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.tarifs { list-style: none; margin: 0; padding: 0; }
.tarifs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--trait);
}
.tarifs .prix { font-weight: 700; white-space: nowrap; }
.note { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--fond-doux); border-radius: 1rem; color: var(--texte-doux); }

/* Horaires */
.horaires { border-collapse: collapse; width: 100%; max-width: 28rem; }
.horaires th, .horaires td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--trait);
  font-weight: 400;
}
.horaires th { color: var(--texte-doux); }
.cache { position: absolute; left: -9999px; }

/* Contact */
.contact-liste { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-liste li { margin-bottom: 0.5rem; }

/* Pied de page */
.pied {
  padding-block: 2rem;
  border-top: 1px solid var(--trait);
  color: var(--texte-doux);
  font-size: 0.9375rem;
}
.pied p { margin: 0 0 0.4rem; }
.pied .demo { font-weight: 600; color: var(--texte); }

/* Page simple (mentions légales, 404) */
.page-texte { max-width: 42rem; }
.page-texte h2 { margin-top: 2rem; font-size: 1.5rem; }

/* Tablette et ordinateur */
@media (min-width: 48rem) {
  .entete { position: sticky; top: 0; z-index: 10; }
  html { scroll-padding-top: var(--hauteur-entete); }
  .menu { order: 0; width: auto; }
  .duo { grid-template-columns: 1.1fr 0.9fr; }
  .duo.inverse { grid-template-columns: 0.9fr 1.1fr; }
  .duo.inverse img { order: -1; }
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .cartes li:last-child { grid-column: span 2; }
  .tarifs-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
}

@media (min-width: 64rem) {
  .cartes { grid-template-columns: repeat(6, 1fr); }
  .cartes li { grid-column: span 2; }
  .cartes li:nth-child(n+4) { grid-column: span 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
