/* ==========================================================================
   POLICE "HACKNEY"
   --------------------------------------------------------------------------
   Hackney est une police à licence personnelle/premium (pas de CDN gratuit
   légal). Pour l'utiliser réellement :
     1. Achetez / téléchargez votre licence (ex. ellenlufftype.com/hackney
        pour un usage perso, ou la version FS Hackney de Fontsmith pour un
        usage commercial).
     2. Déposez les fichiers .woff2 / .woff dans assets/fonts/
     3. Adaptez les chemins ci-dessous si les noms de fichiers diffèrent.

   Tant qu'aucun fichier n'est présent, le navigateur ignore silencieusement
   ce @font-face et utilise le fallback défini dans --font-display.
   ========================================================================== */
@font-face {
  font-family: "Hackney";
  src: url("assets/fonts/Hackney-Vector.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   DESIGN TOKENS — modifiez ici pour changer couleurs / typos partout
   ========================================================================== */
:root {
  /* Couleurs de marque */
  --purple: #7f4a94;
  --teal:   #009b87;
  --ink:    #2f2d4c;
  --cream:  #f9efe5;

  /* Rôles */
  --bg-dark: var(--ink);
  --bg-light: var(--cream);
  --text-on-dark: var(--cream);
  --text-on-light: var(--ink);
  --accent: var(--teal);

  /* Typographie */
  --font-display: "Hackney", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-dark);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { margin: 0; }
p { margin: 0; }

/* ==========================================================================
   SECTION 1 — HERO (illustration en fond)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-md);
  text-align: center;
  
  background: linear-gradient(160deg, var(--ink) 30%, var(--purple) 100%);

}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--teal);
  margin-bottom: var(--space-sm);
}

.tagline {
  font-family: var(--font-display);
  font-weight: 400; /* Hackney est déjà très marquée ; ajustez si vous ajoutez des graisses */
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-wrap: balance;
}

.hero-sub {
  margin-top: var(--space-md);
  font-size: clamp(1.5rem, 1.6vw, 1.15rem);
  font-weight: 300;
/*   color: color-mix(in srgb, var(--cream) 80%, transparent); */
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, var(--cream));
  opacity: 0.5;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; opacity: 0.4; }
}

.hero-logo {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2; /* au-dessus de l'illustration et de son overlay éventuel */
  height: 3rem;   /* ajustez selon la taille de votre logo */
  width: auto;
}


/* ==========================================================================
   COMPOSANTES
   ========================================================================== */
  
.icon {
  --icon-size: 1.5rem; /* taille par défaut, surchargeable au cas par cas */
  display: inline-block;
  width: var(--icon-size);
  height: var(--icon-size);
  flex-shrink: 0;
  vertical-align: middle;
  object-fit: contain;
}

/* ==========================================================================
   SECTIONS — INFOS (dégradé de couleurs, sans illustration)
   ========================================================================== */
.info {
  position: relative;
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  text-align: center;
  color: var(--text-on-dark);

  /* Dégradé construit à partir de la palette de marque */
  background: linear-gradient(30deg, var(--teal) 0%, var(--purple) 100%);
}

.info2 {
  position: relative;
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  text-align: center;
  color: var(--text-on-dark);

  /* Dégradé construit à partir de la palette de marque */
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 100%);
}

.info-content {
  max-width: 38rem;
  margin: 0 auto;
}

.info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
/*   color: var(--ink); */
  margin-bottom: var(--space-sm);
}

.info-text {
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.6;
/*   color: color-mix(in srgb, var(--ink) 82%, transparent); */
}

.contact {
  margin-top: var(--space-lg);
}
.contact-email {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
/*   color: var(--ink); */
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-email:hover {
  color: var(--purple);
}

.socials {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}
.socials a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
/*   color: color-mix(in srgb, var(--ink) 70%, transparent); */
  transition: color 0.2s ease;
}
.socials a:hover { color: var(--purple); }

.footer {
  margin-top: var(--space-xl);
  font-size: 0.75rem;
/*   color: color-mix(in srgb, var(--ink) 55%, transparent); */
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 4.5rem;
  }
  .hero { padding: var(--space-sm); }
  .info { padding-top: var(--space-lg); }
}

/* Accessibilité clavier */
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
