/* Base : remise à zéro, fond, typographie, motifs réutilisables (plaques, rivets, boutons, champs). */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* clip, pas hidden : hidden ferait du body un conteneur de défilement et casserait la barre collante. */
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 30%, transparent 40%, #0000008c 100%),
    repeating-linear-gradient(135deg, #ffffff06 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #1d2026, #16181c);
}

.main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
.mono {
  font-family: var(--font-mono);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--black);
  font: 700 14px var(--font-ui);
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------- mise en page */
.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-dark {
  background: linear-gradient(180deg, #15171ad9, #16181cf2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.small {
  font-size: 14px;
}

/* -------------------------------------------------------------- typographie */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 12px/1.4 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 8px;
  flex: none;
  background: var(--hazard-thin);
  box-shadow: 0 0 0 1px var(--black);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 0 4px 0 var(--black), 0 0 40px #ffd16626;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 0 3px 0 var(--black);
  margin-bottom: 14px;
}

.block-title {
  font: 700 21px/1.3 var(--font-ui);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.plate-title {
  font: 700 18px/1.3 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.plate-sub {
  font: 600 12px var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
}

.lede {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 28px;
}

.chip {
  display: inline-block;
  padding: 1px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--yellow);
  font-size: 0.92em;
  border-radius: var(--radius);
}

.link-arrow {
  font: 700 14px var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- motifs */
.hazard {
  height: 12px;
  background: var(--hazard);
  box-shadow: 0 0 0 2px #0e0f11;
}

/* Plaque d'acier : coins coupés, liseré, rivets aux coins. */
.plate {
  position: relative;
  background: linear-gradient(180deg, var(--plate), #20242a);
  border: 1px solid var(--line);
  clip-path: polygon(
    var(--bevel) 0,
    calc(100% - var(--bevel)) 0,
    100% var(--bevel),
    100% calc(100% - var(--bevel)),
    calc(100% - var(--bevel)) 100%,
    var(--bevel) 100%,
    0 calc(100% - var(--bevel)),
    0 var(--bevel)
  );
  padding: 28px;
  box-shadow: inset 0 1px 0 #ffffff0d;
}

/* Bande danger en haut, comme les cartes de la promo. */
.plate-hazard {
  padding-top: 37px;
}

.plate-hazard::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  background: repeating-linear-gradient(45deg, var(--danger) 0 12px, var(--black) 12px 24px);
}

.rivet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c7ccd4 0 1.5px, #6b7280 2.5px, #3b4048 4px, #22252b 5px);
  box-shadow: 0 1px 1px #0009;
  pointer-events: none;
}

.r1 { top: 16px; left: 14px; }
.r2 { top: 16px; right: 14px; }
.r3 { bottom: 14px; left: 14px; }
.r4 { bottom: 14px; right: 14px; }
.plate-hazard > .r1,
.plate-hazard > .r2 { top: 20px; }

/* ----------------------------------------------------------------- boutons
   Coins biseautés par clip-path : il coupe tout ce qui dépasse (ombre portée,
   outline), d'où la tranche et l'anneau de focus en ombres intérieures. */
.btn {
  --btn-bg: var(--plate-2);
  --btn-ink: var(--text);
  --btn-edge: #0b0c0e;
  --btn-ring: var(--yellow);
  --btn-line: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px 15px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 700 15px/1.2 var(--font-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 -4px 0 var(--btn-edge), inset 0 0 0 1px var(--btn-line);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 -4px 0 var(--btn-edge), inset 0 0 0 3px var(--btn-ring);
}

/* Effet « poussé » : le bouton s'enfonce dans sa tranche. */
.btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 -1px 0 var(--btn-edge), inset 0 0 0 1px var(--btn-line);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: progress;
  filter: saturate(0.4) brightness(0.85);
}

.btn-primary {
  --btn-bg: var(--yellow);
  --btn-ink: var(--black);
  --btn-edge: var(--yellow-ink);
  --btn-ring: var(--black);
}

.btn-ghost {
  --btn-bg: var(--plate-2);
  --btn-line: var(--line-strong);
}

.btn-danger {
  --btn-bg: #c94b4b;
  --btn-ink: #fff;
  --btn-edge: #7a2626;
  --btn-ring: #fff;
}

.btn-sm {
  padding: 8px 16px 11px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 30px 19px;
  font-size: 17px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--plate-2);
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  flex-shrink: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -3px 0 #0b0c0e;
}

.icon-btn:hover {
  background: var(--plate-3);
}

.icon-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--yellow);
}

/* ---------------------------------------------------------------- champs */
.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font: 600 13px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px #ffd16633;
}

input::placeholder {
  color: var(--dim);
}

.hint {
  font-size: 13.5px;
  color: var(--dim);
  margin-top: 6px;
}

.form-error,
.form-ok {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 14.5px;
  border-left: 4px solid;
}

.form-error {
  color: var(--red);
  background: #ff7b7b14;
  border-color: var(--red);
}

.form-ok {
  color: var(--ok);
  background: #80ff7214;
  border-color: var(--ok);
}

[hidden] {
  display: none !important;
}

/* -------------------------------------------------------------- bannières */
.banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  font-size: 15px;
  color: var(--text);
  max-width: 900px;
}

.banner-icon {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}

.banner-warn {
  border-left-color: var(--orange);
}

.banner-warn .banner-icon {
  color: var(--orange);
}

.banner-ok {
  border-left-color: var(--ok);
}

.banner-soon {
  border-left-color: var(--cyan);
}

.banner-soon .banner-icon {
  color: var(--cyan);
}

/* -------------------------------------------------------------------- FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.qa {
  background: var(--plate);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
}

.qa[open] {
  border-left-color: var(--yellow);
}

.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 16px;
  position: relative;
  font: 700 16px/1.4 var(--font-ui);
  letter-spacing: 0.02em;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font: 700 22px var(--font-mono);
  color: var(--yellow);
}

.qa[open] summary::after {
  content: "−";
}

.qa p {
  padding: 0 16px 16px;
  color: var(--muted);
}

/* -------------------------------------------------------------- étiquette */
.tag-soon {
  display: inline-block;
  vertical-align: 1px;
  padding: 0 6px;
  font: 700 10.5px/17px var(--font-ui);
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--cyan);
  white-space: nowrap;
}

/* ------------------------------------------------------------- téléphone */
@media (max-width: 620px) {
  :root {
    --gutter: 16px;
  }
  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .plate {
    padding: 22px 18px;
  }
  .plate-hazard {
    padding-top: 32px;
  }
  .lede {
    font-size: 16.5px;
  }
}
