/* ----------------------------------------------------------
   Espace client · mon-hebergement.odratta.com/espace/

   Feuille autonome : l'espace est du PHP rendu côté serveur, Tailwind
   n'est pas là. Mêmes couleurs et mêmes polices que le site, écrites
   en CSS brut.

   ⚠️ AUCUN attribut style="" ni bloc <style> ailleurs : la CSP de
   /espace/.htaccess vaut `style-src 'self'` sans 'unsafe-inline'. Toute
   règle en ligne serait ignorée, la page s'afficherait cassée, et seule
   la console du navigateur le dirait.

   ⚠️ CACHE : le .htaccess du site met un an sur le CSS, ce qui ne vaut
   que pour un fichier empreinté par un build. Celui-ci ne l'est pas :
   à chaque modification, INCRÉMENTER le ?v= dans mh_head() (index.php).
   ---------------------------------------------------------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0b0d;
  --ink-2: #121419;
  --ink-3: #1b1e26;
  --ivory: #f4f1ea;
  --muted: #8a8f9a;
  --signal: #2d5bff;
  --signal-600: #1e45e0;
  --signal-bright: #5b82ff;
  --line: rgba(244, 241, 234, 0.09);
  --line-2: rgba(244, 241, 234, 0.16);
  /* Contour d'un contrôle : 3:1 minimum (WCAG 1.4.11). --line-2 est à
     1,56:1 et ne vaut que pour un trait décoratif. */
  --line-fort: rgba(244, 241, 234, 0.38);
  --actif: #34d399;
  --orange: #f0a132;
  --rouge: #ff8a8a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--signal-bright);
}
a:hover {
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement : hors écran, et bien visible dès qu'il prend le focus. */
.mh-evitement {
  position: absolute;
  left: -9999px;
}
.mh-evitement:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--signal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.mh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mh-wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  padding: 0 clamp(18px, 5vw, 32px) 64px;
}

/* ── En-tête ───────────────────────────────────────────────── */
.mh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}
.mh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
}
.mh-brand img {
  display: block;
  height: 34px;
  width: auto;
}
.mh-brand span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mh-lien-bouton {
  display: inline-block;
  border: 1px solid var(--line-fort);
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 241, 234, 0.85);
  font: inherit;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
}
.mh-lien-bouton:hover {
  border-color: rgba(244, 241, 234, 0.4);
  color: var(--ivory);
}
.mh-top form {
  margin: 0;
}

/* ── Navigation ────────────────────────────────────────────── */
.mh-nav {
  border-bottom: 1px solid var(--line);
}
.mh-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mh-nav a {
  display: inline-block;
  padding: 14px 0;
  font-size: 15px;
  color: rgba(244, 241, 234, 0.72);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.mh-nav a:hover {
  color: var(--ivory);
}
.mh-nav a[aria-current='page'] {
  color: var(--ivory);
  border-bottom-color: var(--signal);
}

/* ── Corps ─────────────────────────────────────────────────── */
.mh-main {
  padding-top: 40px;
}
.mh-kicker {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-bright);
}
h1 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw + 1rem, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 14px 0 0;
  text-wrap: balance;
}
h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 14px;
}
.mh-lead {
  color: var(--muted);
  font-size: 17px;
  margin: 18px 0 0;
  max-width: 60ch;
}
.mh-aide {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
  max-width: 60ch;
}
.mh-sous {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 0;
}
.mh-fac {
  color: var(--muted);
  font-weight: 400;
}

/* ── Cartes ────────────────────────────────────────────────── */
.mh-carte {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink-2);
  padding: 24px;
}
.mh-carte p {
  margin: 12px 0 0;
  max-width: 62ch;
}
.mh-carte p:first-of-type {
  margin-top: 0;
}

.mh-montant {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}
.mh-montant__ttc {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}

.mh-liste {
  margin: 10px 0 0;
  padding-left: 20px;
  color: rgba(244, 241, 234, 0.88);
}
.mh-liste li {
  margin-bottom: 6px;
}
.mh-liste--mail {
  list-style: none;
  padding-left: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
}
.mh-liste--mail li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.mh-liste--mail li:last-child {
  border-bottom: 0;
}

.mh-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(140px, 13em) 1fr;
  gap: 0 20px;
  border-top: 1px solid var(--line);
}
.mh-dl dt {
  padding: 11px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mh-dl dd {
  margin: 0;
  padding: 11px 0;
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) {
  .mh-dl {
    grid-template-columns: 1fr;
  }
  .mh-dl dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .mh-dl dd {
    padding-top: 2px;
  }
}

/* ── Pastille d'état ───────────────────────────────────────── */
.mh-pastille {
  display: inline-block;
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--muted);
  vertical-align: middle;
  margin-right: 4px;
}
.mh-pastille--verte {
  background: var(--actif);
}
.mh-pastille--orange {
  background: var(--orange);
}
.mh-pastille--rouge {
  background: var(--rouge);
}
.mh-pastille--neutre {
  background: var(--muted);
}
.mh-etat {
  font-size: 15.5px;
}

/* ── Formulaires ───────────────────────────────────────────── */
.mh-form {
  margin-top: 6px;
}
.mh-label {
  display: block;
  margin: 16px 0 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(244, 241, 234, 0.9);
}
.mh-input {
  display: block;
  width: 100%;
  border: 1px solid var(--line-fort);
  border-radius: 12px;
  background: var(--ink);
  color: var(--ivory);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
}
.mh-input:focus {
  border-color: var(--signal);
  outline: none;
}
.mh-textarea {
  resize: vertical;
  min-height: 96px;
}
.mh-input--code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  max-width: 15ch;
}
.mh-form--code {
  margin-top: 24px;
}

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--line-fort);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.mh-btn:hover {
  border-color: rgba(244, 241, 234, 0.4);
  background: rgba(244, 241, 234, 0.04);
  color: var(--ivory);
}
.mh-btn--primaire {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}
.mh-btn--primaire:hover {
  background: var(--signal-600);
  border-color: var(--signal-600);
  color: #fff;
}
/* Le vert de WhatsApp, pour qu'on reconnaisse le bouton sans le lire.
   Texte encre dessus : 11:1, là où du blanc ne tiendrait pas 3:1. */
.mh-btn--wa {
  background: #25d366;
  border-color: #25d366;
  color: #08130c;
  font-weight: 600;
}
.mh-btn--wa:hover {
  background: #1fbb59;
  border-color: #1fbb59;
  color: #08130c;
}

/* ── Messages ──────────────────────────────────────────────── */
.mh-erreur,
.mh-info {
  margin: 18px 0 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  max-width: 62ch;
}
.mh-erreur {
  border: 1px solid rgba(255, 138, 138, 0.35);
  background: rgba(255, 138, 138, 0.08);
  color: var(--rouge);
}
.mh-info {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.07);
  color: var(--actif);
}

/* ── Demandes ──────────────────────────────────────────────── */
.mh-demande {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.mh-demande:first-of-type {
  border-top: 0;
}
.mh-demande summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}
.mh-demande summary::-webkit-details-marker {
  display: none;
}
.mh-demande__sujet {
  font-weight: 500;
  font-size: 15.5px;
}
.mh-tag {
  flex: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-fort);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}
.mh-tag--ouverte {
  border-color: rgba(240, 161, 50, 0.45);
  color: var(--orange);
}
.mh-tag--en_cours {
  border-color: rgba(91, 130, 255, 0.45);
  color: var(--signal-bright);
}
.mh-tag--traitee {
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--actif);
}

.mh-msg {
  border-left: 2px solid var(--line-2);
  padding: 2px 0 2px 14px;
  margin: 12px 0 0;
}
.mh-msg--nous {
  border-left-color: var(--signal);
}
.mh-msg__qui {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mh-msg__texte {
  margin: 5px 0 0;
  font-size: 15px;
  color: rgba(244, 241, 234, 0.9);
}
.mh-form--reponse {
  margin-top: 16px;
  padding-bottom: 8px;
}

/* ── Pied ──────────────────────────────────────────────────── */
.mh-foot {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
}
.mh-foot p {
  margin: 0;
}
.mh-foot a {
  color: rgba(244, 241, 234, 0.8);
  text-decoration: none;
}
.mh-foot a:hover {
  color: var(--ivory);
}
