/* Navigation, sections, fonds, quadrillage, filigranes, pied de page */

.grid-bg {
  background-image:
    linear-gradient(var(--quadrillage) 1px, transparent 1px),
    linear-gradient(90deg, var(--quadrillage) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
}

.on-dark {
  color: var(--texte-sur-sombre);
  background-color: var(--encre);
}

/* Navigation collante */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--separateur-sombre);
  background-color: rgb(12 16 22 / 84%);
  backdrop-filter: blur(12px);
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 16px var(--pad-lateral);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.on-dark a.logo {
  color: #fff;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ambre);
  font-family: var(--police-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ambre);
}

.logo-name {
  font-family: var(--police-titre);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 14px;
}

.navlink,
.on-dark a.navlink {
  padding: 10px 0;
  text-decoration: none;
  color: var(--texte-corps-sombre);
}

.navlink:hover,
.on-dark a.navlink:hover {
  color: #fff;
}

.btn-ghost,
.on-dark a.btn-ghost {
  padding: 10px 18px;
  border: 1px solid var(--bordure-sombre);
  font-weight: 500;
  text-decoration: none;
  color: #e8e6e0;
  transition:
    color 0.25s,
    border-color 0.25s,
    transform 0.25s;
}

.btn-ghost:hover,
.on-dark a.btn-ghost:hover {
  border-color: var(--ambre);
  color: #fff;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--bordure-sombre);
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #e8e6e0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--ambre);
  color: #fff;
}

/* Menu mobile : actif seulement une fois le script en place (classe has-js) */
@media (width <= 720px) {
  .nav.has-js .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav.has-js .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    order: 3;
  }

  .nav.has-js.is-open .nav-links {
    display: flex;
  }

  .nav.has-js .btn-ghost {
    margin-top: 8px;
    text-align: center;
  }
}

/* Sections */
.hero {
  position: relative;
  overflow: hidden;
}

/* Position de départ du projecteur, réécrite par initProjecteur (prototype index.html:25, :57) */
.spotlight {
  --mx: 72%;
  --my: 38%;
}

.sec {
  position: relative;
  overflow: hidden;
  padding: var(--pad-section) 0;
}

.sec > .container {
  position: relative;
  z-index: 1;
}

/* Section qui prolonge la précédente : pas de marge haute (prototype index.html:261) */
.sec--enchaine {
  padding-top: 0;
}

/* En-tête de section : titre à gauche, introduction à droite (prototype index.html:218-224) ; 48 px avant le contenu (gap de index.html:217) */
.sec-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 48px;
}

.sec-titre {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Le gap de .sec-titre remplace la marge basse de .eyebrow (base.css) */
.sec-titre .eyebrow {
  margin: 0;
}

.sec-intro {
  max-width: 32em;
  margin: 0;
  font-size: clamp(17px, 1.1vw, 21px);
  line-height: 1.6;
  color: var(--texte-intro-clair);
}

/* Introduction sur fond sombre (prototype index.html:296) */
.on-dark .sec-intro {
  max-width: 40em;
  font-size: clamp(15px, 1vw, 18px);
  color: var(--texte-secondaire-sombre);
}

.sec--parcours {
  background-color: var(--creme-parcours);
}

.wm {
  position: absolute;
  z-index: 0;
  top: clamp(8px, 2vw, 40px);
  right: clamp(0px, 2vw, 48px);
  font-family: var(--police-titre);
  font-size: clamp(140px, 20vw, 420px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(12 16 22 / 10%);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.on-dark .wm {
  -webkit-text-stroke: 1.5px rgb(242 169 59 / 16%);
}

@media (width <= 720px) {
  .wm {
    top: 4px;
    right: -10px;
    font-size: 120px;
  }
}

/* Pied de page */
.site-footer {
  color: var(--texte-secondaire-sombre);
  background-color: var(--encre-profonde);
  border-top: 1px solid var(--separateur-sombre);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 28px var(--pad-lateral);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
