/* ============ FGI – charte : noir / jaune-or / blanc ============ */
:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --yellow: #ffd60a;
  --gold: #f5a500;
  --grad: linear-gradient(135deg, var(--yellow), var(--gold));
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --glow: 0 0 24px rgba(255, 200, 0, .25);
  --font: "Inter", system-ui, sans-serif;
  --font-title: "Montserrat", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--font-title);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: .6rem;
}
.tagline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  font-family: var(--font-title); font-weight: 500; letter-spacing: .08em;
  color: var(--text); margin-bottom: 1.2rem;
}
.tagline i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* Boutons */
.btn {
  display: inline-block; padding: .85em 1.6em; border-radius: 999px; border: 0;
  font: 700 1rem var(--font-title); cursor: pointer; color: #111;
  background: var(--grad); box-shadow: var(--glow);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255, 200, 0, .45); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--yellow); }
.btn--small { padding: .55em 1.2em; font-size: .9rem; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(10, 10, 10, .75); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-color: var(--border); background: rgba(10, 10, 10, .92); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .5rem; }
.logo__img { height: 46px; width: auto; mix-blend-mode: screen; }
.nav { display: flex; align-items: center; gap: 1.8rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: .3s; }

/* Hero */
.hero {
  padding: 150px 0 100px;
  background:
    radial-gradient(700px 400px at 85% 30%, rgba(255, 200, 0, .12), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(245, 165, 0, .08), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.stats {
  list-style: none; padding: 1.5rem 0 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
}
.stats li { display: flex; flex-direction: column; }
.stats strong {
  font: italic 800 1.9rem/1.1 var(--font-title);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats li > span { font-size: .85rem; color: var(--muted); }
/* Visuel du hero : éditeur + terminal */
.hero__visual { position: relative; padding-bottom: 7.5rem; min-width: 0; }
.editor {
  background: rgba(22, 22, 22, .85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow); overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
}
.editor__bar { display: flex; align-items: center; gap: 1rem; padding: 0 14px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.editor__dots { display: flex; gap: 6px; padding: 13px 0; }
.editor__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.editor__dots i:first-child { background: var(--yellow); }
.editor__tab { font: .75rem ui-monospace, Consolas, monospace; color: #6b6b6b; padding: 12px 2px; border-bottom: 2px solid transparent; }
.editor__tab.is-active { color: var(--text); border-color: var(--yellow); }
.editor__code {
  counter-reset: ln; padding: 1.1rem 1.2rem 2rem 0; overflow-x: auto;
  font: .82rem/1.75 ui-monospace, Consolas, monospace; color: #d4d4d4;
}
.editor__code .l { white-space: pre; }
.editor__code .l::before {
  counter-increment: ln; content: counter(ln); display: inline-block; width: 2.6em; margin-right: 1em;
  text-align: right; color: #4a4a4a;
}
.editor__code .k { color: #c792ea; }
.editor__code .s { color: #fff3a3; }
.editor__code .f { color: var(--yellow); }
.editor__code .p { color: #9cdcfe; }
.editor__code .n { color: var(--gold); }
.cursor { display: inline-block; width: 8px; height: 1.1em; margin-left: 3px; vertical-align: text-bottom; background: var(--yellow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.term {
  position: absolute; right: -.75rem; bottom: 0; width: min(290px, 75%);
  background: rgba(8, 8, 8, .92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 214, 10, .25); border-radius: 12px; padding: 1rem 1.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
  font: .76rem/1.8 ui-monospace, Consolas, monospace; color: #bdbdbd;
}
.term__cmd { margin: 0 0 .3rem; color: var(--text); }
.term__cmd span { color: var(--yellow); }
.term ul { list-style: none; margin: 0; padding: 0; }
.term li { opacity: 0; transform: translateY(4px); animation: termIn .4s ease forwards; }
.term li:nth-child(1) { animation-delay: .8s; }
.term li:nth-child(2) { animation-delay: 1.6s; }
.term li:nth-child(3) { animation-delay: 2.4s; }
.term li:nth-child(4) { animation-delay: 3.2s; }
.term b { color: #4ade80; font-weight: 400; margin-right: .4rem; }
.term em { font-style: normal; color: #6b6b6b; float: right; }
.term__ok { color: var(--yellow); }
.term__ok b { color: var(--yellow); animation: blink 1.6s steps(1) infinite; }
.term__target { display: inline-block; transition: opacity .3s, transform .3s; }
.term__target.is-out { opacity: 0; transform: translateY(-4px); }
@keyframes termIn { to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: var(--glow); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 12px; background: rgba(255, 214, 10, .1); margin-bottom: 1.2rem;
}
.card p { color: var(--muted); margin: 0; }
.card--featured {
  border-color: rgba(255, 214, 10, .35);
  background: linear-gradient(160deg, rgba(255, 214, 10, .07), transparent 55%), var(--surface);
}
.card--featured .card__icon { background: rgba(255, 214, 10, .18); }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { position: relative; padding: 2rem 1.5rem; background: var(--surface); border-radius: var(--radius); border-top: 3px solid var(--yellow); }
.step__num {
  display: block; font: italic 800 2.4rem var(--font-title); margin-bottom: .5rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { color: var(--muted); margin: 0; }


/* À propos */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
.about__photo {
  aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center;
  background: #000; border: 1px solid var(--border); box-shadow: var(--shadow), var(--glow);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; position: relative; z-index: 1; }
.about__photo span { grid-area: 1 / 1; font: italic 800 4rem var(--font-title); color: var(--yellow); }
.about__text > p:not(.eyebrow) { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checks li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.checks li::before { content: "✔"; position: absolute; left: 0; color: var(--yellow); font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact__list li { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.contact__list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__list a { color: var(--yellow); font-weight: 600; }
.form { background: var(--surface); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius); display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); padding: .8em 1em;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 214, 10, .2); }
.form .is-invalid { border-color: #ef4444; }
.form button { justify-self: start; }
.form button:disabled { opacity: .6; cursor: wait; transform: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form__status.ok { color: var(--yellow); }
.form__status.err { color: #ef4444; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer p { margin: 0; }
.footer a:hover { color: var(--yellow); }

/* Animation d'apparition */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .term li { opacity: 1; transform: none; animation: none; }
  .cursor, .term__ok b { animation: none; }
  .term__target { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { max-width: 520px; }
  .editor { transform: none; }
  .term { right: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero__visual { padding-bottom: 0; }
  .term { position: relative; right: auto; width: auto; margin-top: -1rem; margin-left: 1.5rem; }
  .editor__code { font-size: .74rem; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 1.2rem;
    padding: 2rem; background: var(--bg-alt); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--3, .steps, .form__row { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 70px; }
  .section { padding: 70px 0; }
}

/* Mentions légales : coordonnées en retrait */
.legal-small { font-size: .85rem; color: var(--muted); }
