/* ==========================================================
   NextOne Solutions — feuille de style
   Couleurs issues du logo : anthracite + dégradé orange
   ========================================================== */

:root {
  --ink-950: #121214;
  --ink-900: #1E1E21;
  --ink-700: #2E2E33;
  --ink-500: #4A4A50;
  --ink-300: #8C8C94;
  --ink-100: #E7E6E3;

  --orange-700: #D9360B;
  --orange-500: #F55A14;
  --orange-300: #FF8F3F;
  --orange-grad: linear-gradient(135deg, #D9360B 0%, #F55A14 55%, #FF8F3F 100%);

  --paper: #F7F6F3;
  --white: #FFFFFF;

  --font-title: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --shadow: 0 1px 2px rgba(18, 18, 20, .06), 0 8px 24px rgba(18, 18, 20, .06);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-title); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary {
  background: var(--orange-grad); color: var(--white);
  box-shadow: 0 6px 20px rgba(217, 54, 11, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(217, 54, 11, .45); }
.btn-ghost {
  color: var(--white); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(18, 18, 20, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 38px; height: 36px; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-name span { color: var(--orange-300); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255, 255, 255, .78); font-size: 15px; font-weight: 500;
  position: relative; padding: 6px 0; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.lang-switch {
  display: flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 3px;
}
.lang-switch a {
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7);
  padding: 4px 11px; border-radius: 999px; letter-spacing: .04em;
}
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--ink-900); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--white);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(245, 90, 20, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(74, 74, 80, .55), transparent 60%),
    var(--ink-950);
  color: var(--white);
  padding: 170px 0 120px;
}
.hero::before {
  /* grille légère */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-300); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange-grad); }

.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; margin-bottom: 24px; }
.hero h1 .accent {
  background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 19px; color: rgba(255, 255, 255, .72); max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .logo-big {
  width: min(380px, 80%); height: auto;
  filter: drop-shadow(0 30px 60px rgba(217, 54, 11, .35));
  animation: float 7s ease-in-out infinite;
}
.hero-visual::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .14);
  animation: spin 60s linear infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Chiffres ---------- */
.stats { background: var(--ink-900); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .06); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.stat:first-child { border-left: 0; }
.stat-value {
  font-family: var(--font-title); font-size: 44px; font-weight: 700; line-height: 1;
  background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .62); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 46px); }
.section-head p { font-size: 18px; color: var(--ink-500); }
.eyebrow.on-light { color: var(--orange-700); }

/* À propos */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.about-text p { color: var(--ink-500); font-size: 18px; }
.pillars { display: grid; gap: 18px; }
.pillar {
  display: flex; gap: 18px; padding: 26px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(18, 18, 20, .05);
}
.pillar-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: var(--ink-900); color: var(--orange-300);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 19px; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--ink-500); font-size: 16px; }

/* Expertises */
.services { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 34px 30px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid rgba(18, 18, 20, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--orange-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; background: var(--white); }
.card:hover::after { transform: scaleX(1); }
.card-num { font-family: var(--font-title); font-size: 14px; font-weight: 600; color: var(--orange-700); letter-spacing: .08em; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 18px 0 22px;
  display: grid; place-items: center; background: var(--orange-grad); color: var(--white);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: 16px; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--ink-100); color: var(--ink-700);
}
.card:hover .tags li { background: var(--paper); }

/* Méthode */
.method { background: var(--ink-950); color: var(--white); position: relative; overflow: hidden; }
.method .section-head p { color: rgba(255, 255, 255, .65); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step {
  position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-title); font-size: 15px; font-weight: 700;
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--orange-grad); margin-bottom: 20px;
}
.step h3 { font-size: 19px; }
.step p { color: rgba(255, 255, 255, .62); font-size: 15.5px; margin: 0; }

.highlight {
  margin-top: 46px; display: flex; gap: 22px; align-items: center;
  padding: 28px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(245, 90, 20, .18), rgba(245, 90, 20, .03));
  border: 1px solid rgba(255, 143, 63, .25);
}
.highlight svg { flex: none; width: 38px; height: 38px; color: var(--orange-300); }
.highlight p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .85); }
.highlight strong { color: var(--white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-info p { color: var(--ink-500); font-size: 18px; }
.contact-line {
  display: flex; align-items: center; gap: 14px; margin-top: 26px;
  font-weight: 600; font-family: var(--font-title);
}
.contact-line .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink-900); color: var(--orange-300);
}
.contact-line .ic svg { width: 22px; height: 22px; }
.contact-line a:hover { color: var(--orange-700); }

.form {
  background: var(--white); border-radius: var(--radius-lg); padding: 38px;
  box-shadow: var(--shadow); border: 1px solid rgba(18, 18, 20, .05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-700); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink-900);
  padding: 13px 15px; border-radius: 10px; border: 1px solid var(--ink-100); background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(245, 90, 20, .15);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; justify-content: center; }
.form .btn[disabled] { opacity: .7; cursor: wait; }
.form-status { margin: 16px 0 0; font-size: 15px; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: #13804b; }
.form-status.err { color: #b42318; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink-950); color: rgba(255, 255, 255, .6); padding: 60px 0 34px; font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-top .brand { margin-bottom: 14px; }
.footer-top p { max-width: 360px; }
.footer-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px;
}

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(18, 18, 20, .97); padding: 10px 24px 26px;
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav-links a::after { display: none; }
  .lang-switch { align-self: flex-start; margin-top: 18px; }
  .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); }

  .hero { padding: 130px 0 80px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .hero-visual .logo-big { width: 170px; }
  .hero-visual::before { width: 230px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255, 255, 255, .08); }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .form { padding: 26px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .highlight { flex-direction: column; align-items: flex-start; }
  .stat { padding: 28px 18px; }
  .stat-value { font-size: 36px; }
}
