/* Landing page et page de clôture — charte c-roy.be (docs/specs/08-charte-graphique.md) */

:root {
  --yellow: #EFAF00;
  --yellow-hover: #D99E00;
  --yellow-pale: #FFF4D6;
  --anthracite: #353740;
  --anthracite-dark: #25272E;
  --title: #333333;
  --text: #555555;
  --text-muted: #6B6B6D;
  --field-border: #D6D6D6;
  --error: #B42318;
  --error-bg: #FEE4E2;
  --font-title: Rubik, system-ui, Arial, sans-serif;
  --font-text: Inter, system-ui, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--title);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--anthracite); }
a:hover { color: var(--yellow); }

.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;
}

[hidden] { display: none !important; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page__main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* En-tête */

.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E6E6E6;
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__logo {
  display: block;
  height: 46px;
  width: auto;
}

.site-header__event {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-align: right;
}

/* Bandeau photo */

.hero {
  background-image: linear-gradient(rgba(37, 39, 46, 0.68), rgba(37, 39, 46, 0.68)), url("../img/hero.jpg");
  background-color: var(--anthracite-dark);
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  text-align: center;
}

.hero--landing {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  padding: 88px 24px 136px;
}

.hero--closed {
  flex: 1;
  background-image: linear-gradient(rgba(37, 39, 46, 0.72), rgba(37, 39, 46, 0.72)), url("../img/hero.jpg");
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding: 120px 24px 160px;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero--closed .hero__title { font-size: 48px; line-height: 1.12; }

.hero__text {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: #F2F2F2;
}

.hero__text--large { font-size: 20px; }

.hero__signature {
  margin: 0;
  font-size: 16px;
  color: #D5D6DA;
}

.hero__infos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 4px;
  font-size: 15px;
}

/* Traits jaunes */

.rule {
  width: 106px;
  height: 2px;
  background: var(--yellow);
}

.rule--hero {
  width: 160px;
  height: 3px;
}

/* Carte du formulaire sur fond anthracite en biais */

.form-section {
  flex: 1;
  position: relative;
  margin-top: -88px;
  padding: 0 24px 72px;
}

.form-section__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 200px;
  bottom: 0;
  background: var(--anthracite);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
}

.card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: #FFFFFF;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 44px 40px;
}

.card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  text-align: center;
}

.card__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  color: var(--title);
}

.card__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Formulaire */

.request-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter__bar {
  flex: 1;
  min-width: 0;
  height: 6px;
  border: 0;
  background: #ECECEC;
  -webkit-appearance: none;
  appearance: none;
}

.counter__bar::-webkit-progress-bar { background: #ECECEC; }
.counter__bar::-webkit-progress-value { background: var(--yellow); }
.counter__bar::-moz-progress-bar { background: var(--yellow); }

.counter__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--title);
  white-space: nowrap;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.field-row .field { flex: 1 1 220px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--field-border);
  border-radius: 0;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--title);
  background: #FFFFFF;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder { color: #8A8A8C; opacity: 1; }

.field input:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 0;
  border-color: var(--yellow);
}

.field input[aria-invalid="true"] { border-color: var(--error); }

.field-error {
  font-size: 13px;
  color: var(--error);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--yellow);
}

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

.consent input[aria-invalid="true"] { outline: 1px solid var(--error); outline-offset: 2px; }

.form-message {
  padding: 12px 16px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 14px;
}

/* Champ piège : hors écran, jamais visible */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.cf-turnstile { display: flex; justify-content: center; }

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 0;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  height: 56px;
  border: 0;
  background: var(--yellow);
  color: #FFFFFF;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.btn--primary:hover,
.btn--primary:focus-visible { background: var(--yellow-hover); color: #FFFFFF; }

.btn--primary:focus-visible { outline: 2px solid var(--anthracite); outline-offset: 2px; }

.btn--primary:disabled { opacity: 0.75; cursor: wait; }

.btn--secondary {
  border: 1px solid var(--anthracite);
  background: #FFFFFF;
  color: var(--anthracite);
}

.btn--secondary:hover { background: var(--anthracite); color: #FFFFFF; }

.btn--block { width: 100%; }

/* Confirmation */

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  text-align: center;
}

.confirmation:focus { outline: none; }

.confirmation__icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--yellow-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

.confirmation__text strong,
.confirmation__ref strong { color: var(--title); }

.confirmation__ref {
  background: #F5F5F5;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
}

/* Pied de page */

.site-footer {
  background: var(--anthracite);
  color: #D5D6DA;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.site-footer a {
  color: #D5D6DA;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
}

.site-footer a:hover { color: var(--yellow); }

/* Mobile */

@media (max-width: 600px) {
  .site-header__inner { padding: 16px; }
  .site-header__logo { height: 38px; }
  .site-header__event { font-size: 12px; }

  .hero--landing { padding: 56px 16px 112px; }
  .hero--closed { padding: 80px 16px 120px; }
  .hero__title,
  .hero--closed .hero__title { font-size: 34px; }
  .hero__text { font-size: 17px; }

  .form-section { padding: 0 16px 48px; }
  .card { padding: 32px 20px; }
  .card__title { font-size: 24px; }
  .counter { flex-wrap: wrap; }
  .counter__bar { flex-basis: 100%; }

  .site-footer__inner { padding: 24px 16px; }
}
