/* Palette « A prime » */
:root {
  --bg: #07171A;
  --surface: #1A434A;
  --text: #FAF5EC;
  --text-muted: #9DBDBF;
  --accent: #A1E900;

  --marge: 40px;
  --espace-section: 120px;
  --espace-tuiles: 24px;
  --rayon: 12px;
}

@media (max-width: 1199.98px) {
  :root { --marge: 32px; --espace-section: 80px; }
}
@media (max-width: 809.98px) {
  :root { --marge: 20px; --espace-tuiles: 16px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 18px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* Styles de texte */
.h1 { font-size: 56px; line-height: 1.05; font-weight: 500; }
.h2 { font-size: 32px; line-height: 1.1; font-weight: 500; }
.h3 { font-size: 20px; line-height: 1.2; font-weight: 500; }
.body { font-size: 18px; line-height: 1.5; }
.small { font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.label {
  font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
@media (max-width: 809.98px) {
  .h1 { font-size: 36px; }
  .h2 { font-size: 24px; }
  .h3 { font-size: 18px; }
  .body { font-size: 16px; }
}

/* En-tête fixe */
.entete {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 10;
  background: var(--bg);
}
.entete-contenu {
  height: 80px; max-width: 1920px; margin: 0 auto; padding: 0 var(--marge);
  display: flex; align-items: center; justify-content: space-between;
}
.entete-liens { display: flex; align-items: center; gap: 32px; }
.lien-entete { color: var(--text-muted); transition: color .2s; }
.lien-entete:hover { color: var(--accent); }
.icone-linkedin { width: 24px; height: 24px; fill: currentColor; }
.burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; margin-right: -8px; }
.burger svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.burger .croix { display: none; }
.entete.ouvert .burger .barres { display: none; }
.entete.ouvert .burger .croix { display: block; }
.menu-mobile { display: none; }

@media (max-width: 809.98px) {
  .entete-liens { display: none; }
  .burger { display: block; }
  .entete.ouvert .menu-mobile {
    display: flex; flex-direction: column; gap: 16px;
    padding: 8px var(--marge) 24px; background: var(--bg);
  }
  .lien-menu { color: var(--text); transition: color .2s; }
  .lien-menu:hover { color: var(--accent); }
}

/* Hero */
.hero { max-width: 1920px; margin: 0 auto; padding-top: 80px; }
.cadre-showreel { aspect-ratio: 2.33; background: var(--surface); overflow: hidden; }
.cadre-showreel video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1199.98px) { .cadre-showreel { aspect-ratio: 1.78; } }


/* Section Projets */
.section-projets {
  max-width: 1920px; margin: 0 auto; padding: 48px var(--marge) 0;
  display: flex; flex-direction: column; gap: 32px;
  scroll-margin-top: 32px;
}
.grille {
  display: grid; gap: var(--espace-tuiles);
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
}
@media (max-width: 1199.98px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 809.98px) { .grille { grid-template-columns: 1fr; } }

/* Tuile */
.tuile { display: flex; flex-direction: column; gap: 12px; }
.vignette {
  aspect-ratio: 1.78; background: var(--surface); border-radius: var(--rayon); overflow: hidden;
}
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.tuile-texte { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tuile-texte .small { white-space: nowrap; }

/* Contact et pied de page */
.contact {
  max-width: 1920px; margin: var(--espace-section) auto 0; padding: 0 var(--marge) 48px;
  scroll-margin-top: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.contact .body { max-width: 720px; }
.lien-accent { color: var(--accent); width: fit-content; }
.lien-accent:hover { text-decoration: underline; }
.separateur { height: 1px; background: var(--surface); margin-top: 24px; }
.pied { display: flex; gap: 8px; flex-wrap: wrap; }
.pied a:hover { color: var(--text); }

/* Page projet */
.page-projet { padding-top: 80px; }
.contenu-projet {
  max-width: 1280px; margin: 0 auto; padding: 32px var(--marge) 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.contenu-projet > * { max-width: 1200px; width: 100%; }
.contenu-projet > .lien-accent { width: fit-content; }
.infos { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.info { display: flex; flex-direction: column; gap: 4px; }
.cadre-video { aspect-ratio: 1.78; background: var(--surface); border-radius: var(--rayon); overflow: hidden; }
.cadre-video iframe { width: 100%; height: 100%; border: 0; }
.textes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 24px; }
.textes section { display: flex; flex-direction: column; gap: 16px; }
.texte-riche p { margin-bottom: 20px; }
.texte-riche p:last-child { margin-bottom: 0; }
@media (max-width: 809.98px) { .textes { grid-template-columns: 1fr; gap: 32px; } }
.section-autres {
  max-width: 1920px; margin: var(--espace-section) auto 0; padding: 0 var(--marge);
  display: flex; flex-direction: column; gap: 32px;
}
@media (max-width: 1199.98px) { .grille-autres .tuile:nth-child(n+5) { display: none; } }

/* Mentions légales et 404 */
.page-legale { padding-top: 80px; }
.contenu-legal {
  max-width: 1920px; margin: 0 auto; padding: 32px var(--marge) 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.contenu-legal section { max-width: 720px; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

/* Accroche de l'Accueil */
.accroche {
  max-width: 1920px; margin: 0 auto; padding: 48px var(--marge) 0;
  display: flex; flex-direction: column; gap: 16px;
}
.accroche .h2 { max-width: 1000px; }
.accroche .body { max-width: 720px; }
.texte-attenue { color: var(--text-muted); }
