/* ════════════════════════════════════════════════════════════
   QG INFLU — feuille de style
   DA : « une affiche de match nocturne ». Noir, blanc, bleu, rouge.
   Tranchant : angles coupés, contours 1px, aucun arrondi mou.
   Référence : site-web/direction-artistique.md
   ════════════════════════════════════════════════════════════ */

:root {
  --noir:      #0A0C10;
  --ardoise:   #141922;
  --fumee:     #232A36;
  --bleu:      #2B5BFF;
  --rouge:     #FF2D1A;
  --blanc:     #F4F2ED;
  --gris:      #8D8F93;

  --max:       1180px;
  --pad:       20px;
  --nav-h:     62px;

  /* Coin coupé : la signature géométrique du site. */
  --cut:       14px;
}

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

html {
  scroll-behavior: smooth;
  /* Décale les ancres pour qu'elles ne passent pas sous la nav collante. */
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 680px; }

/* Bloc de tête centré. Le sous-titre est plafonné à 56ch : sans les marges auto,
   il resterait collé à gauche même avec le texte centré. */
.wrap--centre { text-align: center; }
.wrap--centre .section__sub { margin-left: auto; margin-right: auto; }
.hidden { display: none; }

/* ─────────── Typographie ─────────── */

h1, h2, h3, .num, .stat b, .nav__logo {
  font-family: Anton, Impact, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}

/* Anton coupe les accents des capitales quand l'interligne est très serré.
   Le retrait doit croître avec la taille : à 92 px, un É perd son accent sans lui.
   Même raison pour l'interligne du h1 : à 0.95 puis à 1.05, l'accent de « GÈRE »
   touchait encore le bas de la ligne du dessus. Anton dessine des capitales très
   hautes et place ses accents juste au-dessus : il faut 1.15 pour les dégager. */
h1 { padding-top: .12em; line-height: 1.15; }
.h2 { padding-top: .08em; }
h3 { padding-top: .05em; }

h1 { font-size: clamp(38px, 11vw, 92px); }
.h2 { font-size: clamp(30px, 7.5vw, 58px); }
h3 { font-size: clamp(19px, 4.5vw, 24px); }

.kicker {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bleu);
  margin: 0 0 18px;
}

.lead   { font-size: 19px; color: var(--blanc); }
.note   { color: var(--gris); font-size: 15px; margin-top: 26px; }
.note b { color: var(--blanc); }
.wait   { color: var(--gris); border-bottom: 1px dashed var(--fumee); }

.hl-red  { color: var(--rouge); }
.link    { color: var(--bleu); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ─────────── Boutons ─────────── */

.btn {
  display: inline-block;
  padding: 15px 26px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn:active { transform: translateY(1px); }

.btn--red   { background: var(--rouge); color: #fff; }
.btn--red:hover { background: #ff4632; }
.btn--blue  { background: var(--bleu); color: #fff; }
.btn--blue:hover { background: #4470ff; }

/* Bouton secondaire : le contour doit suivre la coupe en biais.
   Une simple bordure serait tranchée par le clip-path et laisserait
   l'angle « ouvert » — d'où le fond de bordure + un intérieur en retrait d'1px. */
.btn--ghost {
  background: var(--fumee);
  color: var(--blanc);
  border: 0;
  position: relative;
  isolation: isolate;
}
.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--noir);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn--ghost:hover { background: var(--bleu); color: var(--bleu); }
.btn--wide  { width: 100%; text-align: center; font-size: 16px; padding: 17px; }

/* ─────────── Navigation ─────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
  background: rgba(10, 12, 16, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fumee);
}

.nav__logo {
  font-size: 22px;
  text-decoration: none;
  color: var(--blanc);
  letter-spacing: 0.01em;
}
.nav__logo span { color: var(--bleu); }

.nav__links { display: none; gap: 26px; margin-left: auto; }
.nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gris);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__links a:hover { color: var(--blanc); }
.nav__links a.is-active { color: var(--blanc); border-color: var(--bleu); }

/* En mobile la liste de liens est masquée : le bouton doit rester collé à droite. */
.nav__cta { margin-left: auto; padding: 11px 20px; font-size: 14px; }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--nav-h)));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 64px var(--pad) 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(43, 91, 255, .20), transparent 58%),
    radial-gradient(90% 70% at 8% 100%, rgba(255, 45, 26, .14), transparent 62%),
    var(--noir);
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
  z-index: 0;
}

/* Bouton son — la vidéo démarre forcément muette (aucun navigateur ne lance
   un son sans geste de l'utilisateur) ; ce bouton rend la musique.
   Pas de bordure ici : le coin coupé la trancherait aux angles. Le fond suffit. */
.son {
  position: absolute;
  top: 16px; right: var(--pad);
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px;
  font: 600 11px/1 "Inter", system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blanc);
  background: rgba(10, 12, 16, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  transition: background .18s;
}
.son:hover { background: rgba(43, 91, 255, .62); }
.son[aria-pressed="true"] { background: rgba(255, 45, 26, .68); }

.son svg { width: 16px; height: 16px; flex: none; }
.son__corps { fill: currentColor; }
.son__off path, .son__on path {
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
}

/* Muet : la croix. Son actif : les ondes. */
.son__on { display: none; }
.son[aria-pressed="true"] .son__off { display: none; }
.son[aria-pressed="true"] .son__on  { display: block; }

/* Texture fine — remplace une image décorative, ne coûte rien à charger. */
.hero__grain {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Un fondu vers le noir en bas, qui assoit le texte et raccorde le hero à la
     section suivante. La texture rayée en diagonale qui se superposait ici a été
     retirée le 2026-09-13 : sur une vidéo, elle se lisait comme un défaut d'image.
     En mobile le texte occupe toute la largeur — le voile latéral n'arrive qu'en
     desktop (voir plus bas). */
  background-image:
    linear-gradient(to top, var(--noir) 1%, rgba(10, 12, 16, .68) 46%, rgba(10, 12, 16, .06) 88%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; }

.hero__sub {
  max-width: 46ch;
  margin: 20px 0 0;
  font-size: 17px;
  color: #C9C7C2;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Bandeau de chiffres */
.stats {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--fumee);
  border-left: 1px solid var(--fumee);
}
.stat {
  padding: 14px 14px;
  border-right: 1px solid var(--fumee);
  border-bottom: 1px solid var(--fumee);
}
.stat b { display: block; font-size: clamp(28px, 7vw, 40px); color: var(--blanc); }
.stat span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }

/* ─────────── Sections ─────────── */

/* Discipline de longueur : la page entière doit rester lisible d'un pouce.
   Les concurrents montent à 11 000-18 000 px ; on tient volontairement sous 8 000. */
.section { padding: 46px 0; border-top: 1px solid var(--fumee); }
.section--alt { background: #0C0F14; }
.section__sub { color: var(--gris); font-size: 17px; margin: 12px 0 0; max-width: 56ch; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* ─────────── 2. Services 01→10 ─────────── */

.services { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--fumee); }
.services li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 2px 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--fumee);
  transition: background .15s ease;
}
.services li:hover { background: rgba(43, 91, 255, .06); }
.services i {
  font-family: Anton, sans-serif;
  font-style: normal;
  font-size: 23px;
  color: var(--bleu);
  line-height: 1.1;
}
.services h3 { align-self: center; }
.services p { grid-column: 2; margin: 0; color: var(--gris); font-size: 14.5px; line-height: 1.4; max-width: 62ch; }

/* ─────────── 3. Terrains ─────────── */

/* Chaque case porte une photo de fond assombrie (principe repris de night.co).
   Le voile noir est indispensable : sans lui, le texte blanc devient illisible
   dès que l'image contient une zone claire. */

.terrains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--fumee);
  border: 1px solid var(--fumee);
  margin-top: 30px;
}

.terrain {
  position: relative;
  min-height: 182px;
  display: flex;
  overflow: hidden;
  background: #0E121A;
}

.terrain__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* L'image est volontairement écrasée : c'est un fond, pas un sujet. */
  filter: grayscale(20%) brightness(.92);
  transition: transform .4s ease, filter .3s ease;
}

/* Le voile. Le texte étant centré dans la case, il doit être lisible au milieu de
   l'image et plus seulement en bas : d'où un voile presque uniforme, à peine plus
   clair sur les bords pour qu'on devine encore la photo. */
.terrain::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(72% 68% at 50% 50%, rgba(10, 12, 16, .80), rgba(10, 12, 16, .46) 100%),
    linear-gradient(to top, rgba(10, 12, 16, .50), rgba(10, 12, 16, .30));
}

.terrain:hover .terrain__bg { transform: scale(1.04); filter: grayscale(0) brightness(1.05); }

.terrain__body {
  position: relative;
  z-index: 2;
  align-self: center;
  text-align: center;
  padding: 18px;
  width: 100%;
}

.terrain__icone {
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  fill: none;
  stroke: var(--bleu);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terrain h3 { color: var(--blanc); font-size: clamp(17px, 4vw, 24px); }
/* text-wrap: balance — répartit les mots également entre les lignes au lieu de
   laisser un mot seul sur la dernière. Ignoré par les navigateurs qui ne le
   connaissent pas, sans conséquence. */
.terrain h3, .terrain p { text-wrap: balance; }
.terrain p { margin: 7px auto 0; max-width: 32ch; color: #C9C7C2; font-size: 14px; line-height: 1.45; }

/* Le texte se pose sur une photo qu'on ne maîtrise pas : cette ombre garantit
   la lisibilité même si l'image comporte une zone claire à cet endroit. */
.terrain h3, .terrain p, .terrain__icone { text-shadow: 0 1px 14px rgba(10, 12, 16, .95); }
.terrain__icone { filter: drop-shadow(0 1px 8px rgba(10, 12, 16, .9)); }

/* ─────────── 1. Talents ─────────── */

/* Carte centrée autour d'un avatar rond de 200 px (la taille du fichier lui-même,
   affiché à 110 px : sur un écran Retina, 110 px affichés consomment 220 px réels,
   donc l'image reste nette sans peser davantage). */

.talents { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }

.talent {
  background: var(--ardoise);
  border: 1px solid var(--fumee);
  padding: 26px 20px 24px;
  text-align: center;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.talent__avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  border-radius: 50%;
  /* Le fichier porte déjà son disque ; ce liseré le détache du fond de la carte. */
  border: 2px solid var(--fumee);
  background: #0E121A;
}

.talent__liens {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.chips {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
  padding: 0; margin: 14px 0 16px;
}
.chips li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--fumee);
  background: var(--noir);
}
.chips span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.chips b { font-family: Anton, sans-serif; font-size: 20px; color: var(--bleu); letter-spacing: 0; }
.chip--wait b { color: var(--gris); font-size: 15px; }

/* ─────────── Bandeaux des marques visées ─────────── */

.bandeau {
  margin-top: 30px;
  overflow: hidden;
  border-top: 1px solid var(--fumee);
  padding: 18px 0;
  /* Estompe les deux bords : les logos entrent et sortent sans être tranchés net. */
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.bandeau--bas { margin-top: 0; border-bottom: 1px solid var(--fumee); }

.bandeau__piste {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
}

/* Deux sens opposés. La piste du haut va vers la gauche — le sens du regard d'un
   lecteur européen, qui lit de gauche à droite et rattrape donc ce qui vient de la
   droite. Celle du bas remonte vers la droite : le contraste crée le mouvement. */
.bandeau__piste--gauche { animation: defile-gauche 42s linear infinite; }
.bandeau__piste--droite { animation: defile-droite 48s linear infinite; }

.bandeau:hover .bandeau__piste { animation-play-state: paused; }

.logo {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
  /* Les logos sont normalisés en amont (outils/normaliser-logos.py) : les sombres ont
     été inversés, les colorés conservés. Pas de filtre ici — peindre un logo en
     silhouette blanche détruirait ceux qui reposent sur un aplat plein. */
  opacity: .62;
  transition: opacity .25s ease;
}
.logo:hover { opacity: 1; }

/* Chaque liste est écrite deux fois : à -50 %, on retombe exactement sur le premier
   élément, donc la boucle ne saute pas. */
@keyframes defile-gauche {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes defile-droite {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bandeau__piste { animation: none; }
  .bandeau { overflow-x: auto; }
}

/* ─────────── 5. Marques ─────────── */

.marques {
  background: var(--ardoise);
  border: 1px solid var(--fumee);
  border-top: 3px solid var(--bleu);
  padding: 26px 20px;
}
.marques p { max-width: 62ch; color: #C9C7C2; }
.marques .btn { margin-top: 18px; }

/* ─────────── 6. Formulaire ─────────── */

.switch { display: flex; gap: 8px; margin: 26px 0 20px; }
.switch__btn {
  flex: 1;
  padding: 14px 12px;
  background: transparent;
  border: 1px solid var(--fumee);
  color: var(--gris);
  font-family: Inter, sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.switch__btn:hover { color: var(--blanc); }
.switch__btn.is-active { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }

.field { display: block; margin-bottom: 15px; }
.field span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; color: var(--gris); }
.field i { font-style: normal; opacity: .7; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 15px;
  background: var(--noir);
  border: 1px solid var(--fumee);
  color: var(--blanc);
  font-family: Inter, sans-serif;
  font-size: 16px; /* 16px minimum : en dessous, iOS zoome au focus. */
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bleu); }
.field textarea { resize: vertical; }

/* ─────────── Pied de page ─────────── */

.footer { padding: 34px 0 44px; border-top: 1px solid var(--fumee); }
.footer__inner p { margin: 12px 0 0; color: var(--gris); font-size: 14px; }
.footer__legal { font-size: 13px; }

/* ════════════════════ DESKTOP ════════════════════ */

@media (min-width: 760px) {
  :root { --pad: 32px; --nav-h: 70px; }

  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }

  .hero { padding-top: 120px; }
  .stats { grid-template-columns: repeat(4, 1fr); }

  .hero__grain {
    background-image:
      linear-gradient(to right, rgba(10, 12, 16, .82), rgba(10, 12, 16, .10) 62%),
      linear-gradient(to top, var(--noir) 1%, rgba(10, 12, 16, .55) 36%, rgba(10, 12, 16, 0) 82%);
  }

  .section { padding: 96px 0; }

  .marques { padding: 44px 40px; }

  .services li { grid-template-columns: 78px 1fr 1.1fr; align-items: center; gap: 18px; padding: 26px 6px; }
  .services i { font-size: 34px; }
  .services p { grid-column: 3; }

  .terrains { grid-template-columns: repeat(3, 1fr); }

  .talents { grid-template-columns: repeat(2, 1fr); }
  .talents--solo { grid-template-columns: minmax(0, 420px); justify-content: center; }


  .form { display: block; }
}

@media (min-width: 1100px) {
  .services li { grid-template-columns: 90px 1fr 1.2fr; }
}

/* Respecte le réglage système « réduire les animations ». */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
