/* zeyi-symfony/assets/styles/base.css
   Reset, typographie, primitives de mise en page. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Mise en page ---------- */

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: var(--section-y) 0;
}

.section--tight {
  padding: calc(var(--section-y) * 0.6) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark);
  color: var(--text-on-dark);
}

/* ---------- Typographie ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Les deux niveaux de titre portent l'identité : condensés, en capitales,
   très serrés. C'est de là que vient la force de la maquette, davantage que
   du fond sombre. Anton n'a qu'une graisse, d'où le font-weight normal. */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(52px, 7.4vw, 104px);
}

h2 {
  font-size: clamp(38px, 5vw, 72px);
}

h3 {
  font-size: clamp(19px, 1.5vw, 22px);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* Le mot accentué dans un titre : italique, orange. Un seul par titre. */
.accent {
  font-style: italic;
  color: var(--orange);
  font-weight: 700;
}

/* Dans un titre, l'accent est déjà porté par la couleur. Anton n'ayant pas
   d'italique, le navigateur en fabriquerait une penchée artificiellement,
   ce qui abîme une condensée. */
h1 .accent,
h2 .accent {
  font-style: normal;
  font-weight: inherit;
}

/* Sur-titre : petite ligne en mono au-dessus du titre */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow--center {
  justify-content: center;
}

.lead {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 17px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head .lead {
  margin: 18px auto 0;
}

/* En-tête de section sur deux colonnes : texte à gauche, action à droite */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.section-head-row .section-head {
  margin: 0;
  max-width: 620px;
  text-align: left;
}

.section-head-row .section-head .eyebrow,
.section-head-row .section-head .lead {
  justify-content: flex-start;
  margin-left: 0;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: var(--orange-contrast);
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--outline {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--text);
}

.btn--light {
  background: var(--surface);
  color: var(--text);
}

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

/* ---------- Cartes ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Divers ---------- */

.no-scroll {
  overflow: hidden;
}

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

@media (max-width: 900px) {
  :root {
    --section-y: var(--section-y-sm);
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
