:root {
  --fond: #0f0e0d;
  --fond-carte: #1a1917;
  --trait: #2f2c28;
  --texte: #ece7e0;
  --texte-doux: #a29a90;
  --accent: #c8a165;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* En-tête */
.entete { text-align: center; margin-bottom: 2.5rem; }

.surtitre {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  color: var(--accent);
}

.entete h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
}

/* Vidéo */
.cadre-video {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.cadre-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.cadre-vide {
  border: 1px dashed var(--trait);
  background: var(--fond-carte);
}

.cadre-vide-texte {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--texte-doux);
  padding: 0 1rem;
}

.cadre-vide-texte p { margin: .25rem 0; }
.petit { font-size: .8rem; }
code { color: var(--accent); font-size: .85em; }

/* Offres */
.offres { margin-top: 3rem; }

.offres h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}

.intro {
  margin: 0 0 1.75rem;
  color: var(--texte-doux);
  max-width: 52ch;
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.offre {
  border: 1px solid var(--trait);
  border-radius: 6px;
  background: var(--fond-carte);
  padding: 1.5rem;
  text-align: center;
}

.offre h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--texte-doux);
}

.prix {
  margin: .5rem 0 .25rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
}

.detail {
  margin: 0 0 1.25rem;
  font-size: .8rem;
  color: var(--texte-doux);
}

.bouton {
  width: 100%;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #1a1917;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.bouton:disabled {
  background: var(--trait);
  color: var(--texte-doux);
  cursor: not-allowed;
}

.note {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: var(--texte-doux);
  text-align: center;
}

/* Pied */
.pied {
  border-top: 1px solid var(--trait);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--texte-doux);
  font-size: .8rem;
}

.pied p { margin: 0; }

/* Message (page de remerciement) */
.message {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}

.message p { margin: 0 0 1rem; }

.secondaire {
  color: var(--texte-doux);
  font-size: .9rem;
}

.lien {
  color: var(--accent);
  text-decoration: none;
}

.lien:hover { text-decoration: underline; }

/* Le bouton vit dans un formulaire : pas de marge parasite. */
.offre form { margin: 0; }

/* Page de lecture */
.etat {
  max-width: 54ch;
  margin: 0 auto;
  text-align: center;
}

.etat h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 .75rem;
}

.etat .intro { margin: 0 auto 1.75rem; }

.avertissement {
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--fond-carte);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.avertissement p { margin: 0; }
.avertissement .secondaire { margin-top: .5rem; }

.bouton-large {
  width: auto;
  min-width: 15rem;
  padding: .85rem 2rem;
  font-size: 1rem;
}

/* Administration */
.entete-admin { margin-bottom: 1.5rem; }

.onglets {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--trait);
}

.onglets a {
  padding: .6rem 1rem;
  color: var(--texte-doux);
  text-decoration: none;
  font-size: .9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.onglets a:hover { color: var(--texte); }

.onglets a.actif {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.bloc { margin-bottom: 2.5rem; }

.bloc h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.formulaire {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--trait);
  border-radius: 6px;
  background: var(--fond-carte);
  padding: 1.25rem;
}

.champ { display: flex; flex-direction: column; gap: .35rem; }

.champ label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--texte-doux);
}

.champ input,
.champ select {
  padding: .6rem .7rem;
  border: 1px solid var(--trait);
  border-radius: 4px;
  background: var(--fond);
  color: var(--texte);
  font-size: .95rem;
  font-family: inherit;
  min-width: 0;
}

.aide { font-size: .75rem; color: var(--texte-doux); }

.champ-action { justify-content: flex-end; }
.champ-action .bouton { width: 100%; padding: .6rem 1rem; }

.envoi { display: flex; gap: .4rem; }

.envoi input {
  min-width: 0;
  width: 11rem;
  padding: .45rem .6rem;
  border: 1px solid var(--trait);
  border-radius: 4px;
  background: var(--fond);
  color: var(--texte);
  font-size: .85rem;
  font-family: inherit;
}

.bandeau-alerte { border-left-color: #b4544a; }

.bandeau {
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--fond-carte);
  padding: .75rem 1rem;
  margin: 0 0 1.5rem;
}

.recherche {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.recherche input {
  flex: 1;
  min-width: 0;
  padding: .7rem .9rem;
  border: 1px solid var(--trait);
  border-radius: 4px;
  background: var(--fond-carte);
  color: var(--texte);
  font-size: .95rem;
  font-family: inherit;
}

.recherche .bouton { width: auto; padding: .7rem 1.5rem; }

/* Lisible par un lecteur d'écran, invisible à l'œil. */
.visuellement-cache {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Le tableau défile dans son propre cadre : la page ne part jamais en
   défilement horizontal, y compris sur téléphone. */
.tableau-large {
  overflow-x: auto;
  border: 1px solid var(--trait);
  border-radius: 6px;
}

.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.tableau th,
.tableau td {
  padding: .7rem .9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--trait);
}

.tableau th {
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--texte-doux);
  background: var(--fond-carte);
}

.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau form { margin: 0; }

.terne { color: var(--texte-doux); }

.bouton-discret {
  width: auto;
  white-space: nowrap;
  padding: .45rem .9rem;
  font-size: .85rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.lecture .note {
  margin-top: 1.25rem;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
