/*!
 * HELIOS RD · styles communs du site de vente (consentement, formulaires,
 * navigation projets, pied de page). Marque : navy #0a0a12 + doré #f0b429 + Inter.
 */

:root {
  --hx-ink: #0a0a12;
  --hx-gold: #f0b429;
  --hx-gold-soft: #f5c65e;
  --hx-pearl: #f5f2ea;
  --hx-muted: rgba(245, 242, 234, .62);
  --hx-line: rgba(245, 242, 234, .14);
}

/* ============================== consentement ============================== */
.hx-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9000;
  padding: clamp(12px, 2vw, 22px);
  transform: translateY(115%);
  transition: transform .34s cubic-bezier(.22, .8, .3, 1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.hx-consent.is-in { transform: translateY(0); }

.hx-consent__box {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(14, 14, 24, .96);
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  color: var(--hx-pearl);
}
@supports not (backdrop-filter: blur(10px)) {
  .hx-consent__box { background: #0e0e18; }
}

.hx-consent__t {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 6px;
}
.hx-consent__b {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--hx-muted);
  max-width: 78ch;
}
.hx-consent__b a { color: var(--hx-gold); text-decoration: underline; }

.hx-consent__opts {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--hx-line);
  padding-top: 16px;
}
/* `display:grid` l'emporterait sur la règle [hidden] du navigateur : on la
   rétablit pour que le panneau reste replié tant que « Personnaliser » n'a
   pas été cliqué. */
.hx-consent__opts[hidden] { display: none; }
.hx-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.hx-row input { margin-top: 3px; accent-color: var(--hx-gold); width: 16px; height: 16px; }
.hx-row input:disabled { opacity: .55; cursor: not-allowed; }
.hx-row b { display: block; font-weight: 600; }
.hx-row em { font-style: normal; color: var(--hx-muted); font-size: 12.5px; }
.hx-always {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hx-muted);
  white-space: nowrap;
}

.hx-consent__acts {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hx-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, transform .2s;
}
.hx-btn--gold { background: var(--hx-gold); color: #1a1206; }
.hx-btn--gold:hover { background: var(--hx-gold-soft); transform: translateY(-1px); }
.hx-btn--ghost {
  background: transparent;
  color: var(--hx-pearl);
  border-color: var(--hx-line);
}
.hx-btn--ghost:hover { border-color: var(--hx-gold); color: var(--hx-gold); }
.hx-btn:focus-visible { outline: 2px solid var(--hx-gold); outline-offset: 2px; }

@media (max-width: 620px) {
  .hx-consent__acts { justify-content: stretch; }
  .hx-consent__acts .hx-btn { flex: 1 1 auto; }
}

/* ====================== section contact + formulaire ===================== */
/* Ces règles vivent ici (et non dans la page) parce que la section contact est
   injectée dans des pages produites par la chaîne SEO : elle doit être stylée
   sans dépendre de leur feuille interne. */

.hx-contact .sec__in {
  padding-top: clamp(64px, 9vh, 104px);
  padding-bottom: clamp(40px, 7vh, 80px);
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
}
.hx-contact .cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.hx-contact .cta-side .cap-title { max-width: 14ch; text-align: left; margin: 0; }
.hx-contact .cta-sub {
  margin-top: 16px;
  color: var(--hx-muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 42ch;
}
.hx-contact .card-form {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  text-align: left;
}
.hx-contact .card-form h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 26px);
  margin: 0 0 5px;
}
.hx-contact .card-form .sm {
  color: var(--hx-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 20px;
}

/* Une colonne par défaut : les pages liste d'attente ont une carte étroite.
   La grille à deux colonnes est réservée à la section contact des pages projet. */
.hx-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  text-align: left;
}
.hx-contact .hx-form { grid-template-columns: 1fr 1fr; }
.hx-field { display: flex; flex-direction: column; gap: 6px; }
.hx-field--full { grid-column: 1 / -1; }
.hx-field label {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hx-muted);
  font-weight: 500;
}
.hx-field input,
.hx-field select,
.hx-field textarea {
  background: var(--hx-ink);
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--hx-pearl);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  width: 100%;
  appearance: none;
}
.hx-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5l5-5' stroke='%23f0b429' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 34px;
}
.hx-field input:focus,
.hx-field select:focus,
.hx-field textarea:focus { outline: none; border-color: var(--hx-gold); }
.hx-field textarea { resize: vertical; min-height: 74px; }

.hx-submit {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  background: var(--hx-gold);
  color: #1a1206;
  padding: 15px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background .25s;
}
.hx-submit:hover:not(:disabled) { background: var(--hx-gold-soft); }
.hx-submit:disabled { opacity: .6; cursor: progress; }
.hx-privacy { margin-top: 11px; font-size: 11.5px; color: var(--hx-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .hx-contact .cta-grid { grid-template-columns: 1fr; }
  .hx-form { grid-template-columns: 1fr; }
}

/* ============================ messages formulaire ========================= */
.hx-msg {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.hx-msg--ok { background: rgba(240, 180, 41, .12); border-color: rgba(240, 180, 41, .38); color: var(--hx-gold-soft); }
.hx-msg--err { background: rgba(248, 113, 113, .10); border-color: rgba(248, 113, 113, .34); color: #fca5a5; }
.hx-msg--info { background: rgba(245, 242, 234, .06); border-color: var(--hx-line); color: var(--hx-muted); }
.hx-wa-link { color: #25d366; font-weight: 600; }

/* piège à robots — invisible pour l'humain, jamais annoncé aux lecteurs d'écran */
.hx-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ============================ navigation projets ========================= */
.hx-nav { display: flex; align-items: center; gap: 8px; }
.hx-nav__item { position: relative; }

.hx-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--hx-pearl);
  background: rgba(10, 10, 18, .42);
  border: 1px solid var(--hx-line);
  border-radius: 100px;
  padding: 8px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .25s, color .25s, background .25s;
  backdrop-filter: blur(8px);
}
.hx-nav__link:hover,
.hx-nav__link[aria-expanded="true"] { border-color: var(--hx-gold); color: var(--hx-gold); }
.hx-nav__link--gold { background: var(--hx-gold); color: #1a1206; border-color: var(--hx-gold); }
.hx-nav__link--gold:hover { background: var(--hx-gold-soft); color: #1a1206; }
.hx-nav__link svg { width: 11px; height: 11px; transition: transform .25s; }
.hx-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.hx-drop {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 262px;
  background: rgba(14, 14, 24, .97);
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.hx-drop.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.hx-drop a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--hx-pearl);
  font-size: 13.5px;
  transition: background .2s, color .2s;
}
.hx-drop a:hover { background: rgba(240, 180, 41, .12); color: var(--hx-gold); }
.hx-drop a b { font-weight: 500; }
.hx-drop a span { font-size: 11px; color: var(--hx-muted); white-space: nowrap; }

@media (max-width: 900px) {
  .hx-nav__label { display: none; }
  .hx-nav__link { padding: 8px 11px; }
  .hx-drop { right: -40px; min-width: 232px; }
}

/* ================================ pied de page =========================== */
/* Sur les pages projet, le pied de page est la dernière diapositive du deck :
   il doit porter ses propres styles, la feuille de la page ne le connaît pas. */
.hx-footer {
  position: relative;
  z-index: 2;
  background: #08080f;
  border-top: 1px solid var(--hx-line);
  padding: clamp(38px, 5vw, 58px) clamp(22px, 6vw, 90px) 28px;
  scroll-snap-align: start;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--hx-pearl);
}
.hx-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(22px, 3vw, 42px);
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.hx-footer__brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hx-footer__brand b { color: var(--hx-gold); }
.hx-footer p { color: var(--hx-muted); font-size: 13px; line-height: 1.6; max-width: 38ch; }
.hx-footer a {
  display: block;
  color: var(--hx-muted);
  font-size: 13px;
  padding: 4px 0;
  text-decoration: none;
  transition: color .2s;
}
.hx-footer a:hover { color: var(--hx-gold); }
.hx-footer .hx-lbl {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hx-pearl);
  margin-bottom: 9px;
}
.hx-footer__bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--hx-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--hx-muted);
}
.hx-certs { display: flex; gap: 9px; flex-wrap: wrap; }
.hx-certs span {
  border: 1px solid var(--hx-line);
  border-radius: 100px;
  padding: 4px 11px;
  font-size: 10.5px;
  letter-spacing: .1em;
}
@media (max-width: 900px) { .hx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hx-footer__grid { grid-template-columns: 1fr; } }

.hx-stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.hx-store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .25s, transform .2s;
  color: var(--hx-pearl);
}
.hx-store:hover { border-color: var(--hx-gold); transform: translateY(-2px); }
.hx-store svg { width: 20px; height: 20px; flex: none; }
.hx-store span { display: flex; flex-direction: column; line-height: 1.2; }
.hx-store small { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--hx-muted); }
.hx-store b { font-size: 13px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hx-consent, .hx-drop, .hx-btn, .hx-store { transition: none; }
}

/* ========================= cible tactile des puces ======================= */
/* Les puces du deck font 9 px : on élargit la zone cliquable sans toucher au
   dessin, pour atteindre les 24 px recommandés. */
.dots button { position: relative; }
.dots button::after { content: ""; position: absolute; inset: -8px; }
