/* ==========================================================================
   Netology — feuille de styles principale
   Aucune dépendance externe : pas de police distante, pas de CDN, pas de JS
   tiers. Les polices Google embarquées transmettent l'IP du visiteur à un
   tiers, ce que la jurisprudence européenne assimile à un traitement de
   données sans base légale ; la pile système évite le problème et supprime
   deux requêtes bloquantes sur le rendu.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* --- Jetons --------------------------------------------------------------- */
:root {
  --bg:          #0A0C0F;
  --bg-elev:     #11151A;
  --bg-elev-2:   #171C23;
  --line:        #212932;
  --line-strong: #2E3843;

  --text:        #E8ECF1;
  --text-dim:    #9AA5B1;
  --text-faint:  #6E7A88;

  --accent:      #6C8CFF;
  --accent-dim:  #4E6CD8;
  --accent-soft: rgba(108, 140, 255, 0.10);
  --signal:      #57D9A3;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --wrap: 1120px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --pad-section: clamp(4rem, 9vw, 7.5rem);
}

/* --- Base ----------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.35vw, 3.9rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 0.7rem 1.1rem; z-index: 100; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* --- Utilitaires ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2rem); }
.section { padding-block: var(--pad-section); }
.section + .section { border-top: 1px solid var(--line); }

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.lead { color: var(--text-dim); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem); line-height: 1.6; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head .label { display: block; margin-bottom: 1rem; }
.section-head p { color: var(--text-dim); margin-top: 1rem; }

/* --- En-tête -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(12px)) {
  .site-header { background: var(--bg); }
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 62px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.brand::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: none;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  font-size: 0.9rem; color: var(--text-dim); text-decoration: none;
  transition: color 0.16s ease;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.nav .nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 640px) {
  .nav .nav-hide { display: none; }
}

/* --- Héro ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
/* Grille fine en fond, atténuée vers le bas — décoratif, masqué aux
   technologies d'assistance via aria-hidden sur l'élément porteur. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: min(900px, 120%); aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at center, rgba(108,140,255,0.14), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 52rem; }
.hero h1 { margin-block: 1.2rem 1.5rem; }
.hero .lead { max-width: 40rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.94rem; font-weight: 500;
  padding: 0.72rem 1.35rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }

/* Bandeau d'identifiants légaux — données publiques, vérifiables. */
.hero-strip {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--bg-elev), rgba(17,21,26,0.35));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.hero-strip div {
  padding: 1.15rem 1.35rem;
  border-right: 1px solid var(--line);
}
.hero-strip div:last-child { border-right: 0; }
.hero-strip dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-faint); }
.hero-strip dd { margin-top: 0.42rem; font-size: 0.94rem; font-weight: 500; }
@media (max-width: 760px) {
  .hero-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-strip div:last-child { border-bottom: 0; }
}

/* --- Expertise ------------------------------------------------------------ */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  display: flex; flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }

.card-num {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 1.1rem;
}
.card h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); margin-bottom: 0.75rem; }
.card > p { color: var(--text-dim); font-size: 0.98rem; }

.card ul { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: 0.72rem; }
.card li {
  position: relative; padding-left: 1.5rem;
  font-size: 0.93rem; color: var(--text-dim); line-height: 1.5;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 1px;
  background: var(--accent); opacity: 0.85;
}

/* --- Approche ------------------------------------------------------------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); padding-top: 0.2rem; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 720px) {
  .step { grid-template-columns: 3rem 1fr; gap: 0.5rem 1rem; }
  .step p { grid-column: 2; }
}

/* --- Capacités ------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-sm);
}

/* --- Entreprise (données registre) ---------------------------------------- */
.facts {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.fact {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.05rem clamp(1.1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--text-faint); font-size: 0.88rem; }
.fact dd { font-size: 0.96rem; }
.fact dd .mono { font-family: var(--font-mono); letter-spacing: 0.01em; }
@media (max-width: 640px) {
  .fact { grid-template-columns: 1fr; gap: 0.28rem; padding-block: 0.95rem; }
}

.note {
  margin-top: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-faint);
  display: flex; gap: 0.6rem; align-items: baseline;
}
.note::before { content: "—"; color: var(--accent); flex: none; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-lines { display: grid; gap: 1.5rem; }
.contact-line dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.4rem; }
.contact-line dd a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.contact-line dd a:hover { border-color: var(--accent); color: var(--accent); }
.contact-line address { font-style: normal; color: var(--text-dim); }

/* --- Pied de page --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: 0.87rem;
  color: var(--text-faint);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* --- Page légale ---------------------------------------------------------- */
.legal { padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem); }
.legal-body { max-width: 46rem; }
.legal-body h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 0.75rem; }
.legal-body > p.lead { margin-bottom: 3rem; }
.legal-body section { margin-bottom: 2.75rem; }
.legal-body h2 {
  font-size: 1.15rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.legal-body p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 0.9rem; }
.legal-body ul { color: var(--text-dim); font-size: 0.96rem; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.legal-body a { color: var(--accent); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body .mono { font-family: var(--font-mono); color: var(--text); }

.todo {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: #FFCB6B;
  background: rgba(255, 203, 107, 0.10);
  border: 1px dashed rgba(255, 203, 107, 0.45);
  border-radius: var(--r-sm);
  padding: 0.1rem 0.5rem;
}

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--text-dim); text-decoration: none;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--text); }

/* --- Préférences système -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:target { scroll-margin-top: 80px; }

@media print {
  .site-header, .hero::before, .hero::after, .hero-actions, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
