/* GAST Cosmetics — page liste d'attente
   Couleurs et typographies : charte GAST (Brand Guidelines, sections 004 et 005). */

@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
  --ube: #825F87;
  --clean-mauve: #E6E7F9;
  --deep-purple: #382045;
  --creme: #F0E7DA;
  --dust-taupe: #918481;
  --white: #FFFFFF;
  --ube-light: #AB94B0;
  --ube-dark: #6A5874;

  --f-title: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-text: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(1rem, 5vw, 4rem);
  --max: 72rem;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--clean-mauve);
  color: var(--deep-purple);
  font: 400 1rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ube); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Typo de la charte */
.mono {
  font-family: var(--f-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .175em;           /* approche 175 */
  font-size: .9375rem;
}
.h2 {
  font-family: var(--f-text);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  margin: 0;
}

/* En-tête */
.site-head { padding-block: 1.5rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-head img { height: 52px; width: auto; }
.site-head a.ig { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .08em; text-decoration: none; color: var(--ube-dark); }
.site-head a.ig:hover { color: var(--deep-purple); text-decoration: underline; }

/* Héros : les lignes barrées */
.hero { padding-block: clamp(2.5rem, 8vw, 6rem) clamp(3rem, 8vw, 5.5rem); }
.hero .mono { color: var(--ube-dark); margin: 0 0 1.25rem; }
.nope {
  list-style: none; margin: 0; padding: 0;
  font-family: var(--f-title); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.1rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: 0;
  color: var(--ube);
}
.nope li { margin: 0 0 .08em; }
.nope .strike { position: relative; display: inline; }
.nope .strike::after {
  content: "";
  position: absolute; left: -.04em; right: -.04em; top: 52%;
  height: .1em; background: var(--deep-purple);
  transform: scaleX(1); transform-origin: left center;
}
.js .nope .strike::after { transform: scaleX(0); transition: transform .55s cubic-bezier(.7,0,.2,1); }
.js .nope.go li:nth-child(1) .strike::after { transform: scaleX(1); transition-delay: .35s; }
.js .nope.go li:nth-child(2) .strike::after { transform: scaleX(1); transition-delay: .95s; }
.js .nope.go li:nth-child(3) .strike::after { transform: scaleX(1); transition-delay: 1.55s; }
/* Ligne plus longue sur deux lignes : le trait suit chaque ligne */
.nope .strike { background-image: none; }
@supports (box-decoration-break: clone) or (-webkit-box-decoration-break: clone) {
  .nope .strike {
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    background-image: linear-gradient(var(--deep-purple), var(--deep-purple));
    background-repeat: no-repeat; background-position: 0 54%; background-size: 0% .1em;
  }
  .nope .strike::after { display: none; }
  .js .nope .strike { transition: background-size .55s cubic-bezier(.7,0,.2,1); }
  .nope .strike, .js .nope.go .strike { background-size: 100% .1em; }
  .js .nope:not(.go) .strike { background-size: 0% .1em; }
  .js .nope.go li:nth-child(1) .strike { transition-delay: .35s; }
  .js .nope.go li:nth-child(2) .strike { transition-delay: .95s; }
  .js .nope.go li:nth-child(3) .strike { transition-delay: 1.55s; }
}

.hero h1 {
  font-family: var(--f-title); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 9.2vw, 6.6rem); line-height: .98;
  color: var(--deep-purple);
  margin: .5em 0 0;
}
.lede { max-width: 34rem; margin: 2rem 0 0; font-size: 1.0625rem; }
.lede a { font-weight: 600; }

/* Bloc d'inscription */
.join { background: var(--ube); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); scroll-margin-top: 1rem; }
.join .wrap { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .join .wrap { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; } }
.join .h2 { color: var(--white); }
.join p { margin: 1rem 0 0; max-width: 30rem; }

.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 500; font-size: .9375rem; margin-bottom: .4rem; }
.field label small { font-weight: 400; font-size: inherit; }
.field input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--deep-purple);
  background: var(--clean-mauve); border: 2px solid transparent; border-radius: var(--radius);
  padding: .85rem 1rem; min-height: 3.1rem;
}
.field input::placeholder { color: var(--ube-dark); opacity: .7; }
.field input:focus-visible { outline: 3px solid var(--creme); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--creme); }
.hint { font-size: .875rem; font-weight: 500; margin-top: .4rem; min-height: 1.2em; color: var(--white); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .875rem; line-height: 1.55; }
.consent input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--deep-purple); }
.consent input:focus-visible { outline: 3px solid var(--creme); outline-offset: 2px; }
.consent a { color: var(--white); }

.btn {
  font-family: var(--f-text); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: 1rem; color: var(--deep-purple); background: var(--creme);
  border: 0; border-radius: var(--radius); padding: 1rem 1.5rem; min-height: 3.25rem;
  cursor: pointer; justify-self: start; transition: background-color .15s ease;
}
.btn:hover { background: var(--white); }
.btn:focus-visible { outline: 3px solid var(--creme); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { font-size: .9375rem; min-height: 1.5em; margin: 0; }
.status.ok, .status.err { padding: .9rem 1rem; border-radius: var(--radius); }
.status.ok { background: var(--deep-purple); color: var(--clean-mauve); }
.status.err { background: var(--creme); color: var(--deep-purple); }
.form.done .field, .form.done .consent, .form.done .btn { display: none; }

/* Ce qui t'attend */
.next { background: var(--creme); padding-block: clamp(3rem, 7vw, 5rem); }
.next ul { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; max-width: 44rem; }
.next li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; font-size: 1.0625rem; }
.next li::before { content: "/"; font-family: var(--f-mono); font-weight: 500; color: var(--ube); }

/* Motif */
.motif {
  height: 200px;
  background-color: var(--clean-mauve);
  background-image: url("motif-g.webp");
  background-size: 120px 100px;
  background-position: center top;
}

/* Pied de page */
.site-foot { background: var(--deep-purple); color: var(--clean-mauve); padding-block: 2.5rem 3rem; font-size: .875rem; }
.site-foot .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-foot img { height: 40px; width: auto; }
.site-foot .mono { color: var(--ube-light); font-size: .8125rem; margin: .9rem 0 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-foot a { color: var(--clean-mauve); }
.site-foot a:focus-visible { outline-color: var(--clean-mauve); }

/* Page mentions */
.legal { padding-block: 2rem 4rem; }
.legal h1 { font-family: var(--f-title); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; margin: 0 0 2rem; }
.legal h2 { font-family: var(--f-text); font-weight: 600; font-size: 1.125rem; margin: 2.25rem 0 .5rem; }
.legal p, .legal li { max-width: 44rem; }
.legal .todo { background: var(--creme); padding: 0 .3em; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .js .nope .strike, .js .nope .strike::after { transition: none !important; }
  .js .nope:not(.go) .strike { background-size: 100% .1em; }
  .js .nope .strike::after { transform: scaleX(1); }
}
