/* =========================================================
   PBXcom — Sécurité, Réseau et Télécom
   ========================================================= */

/* ---------- Polices (hébergées sur le site) ---------- */
@font-face {
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/wix-madefor-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/wix-madefor-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-latin.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
  --ink: #040A0B;
  --bg: #071113;
  --surface: #0B181B;
  --slate: #0F2327;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #EDF4F2;
  --muted: #9FB2B0;

  --paper: #F2F5F3;
  --paper-ink: #0A1618;
  --paper-muted: #55676A;
  --paper-line: rgba(10, 22, 24, .12);

  --green: #9BD23C;
  --green-deep: #5E8A14;
  --teal: #12B5C4;
  --grad: linear-gradient(100deg, #A4DA3F 0%, #47C38F 52%, #12B5C4 100%);
  --danger: #FF8A7A;

  --font: 'Wix Madefor Display', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 26px;
  --radius-sm: 14px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: #06110a; }

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

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--green); color: #06110a; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .6s var(--ease);
}
.btn--lg { padding: 17px 30px; font-size: 1.0625rem; }
.btn__arrow { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--dark:hover .btn__arrow { transform: translateY(4px); }

.btn--primary {
  color: #05130D;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 10px 30px -10px rgba(71, 195, 143, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(71, 195, 143, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--dark { color: #fff; background: var(--paper-ink); box-shadow: 0 14px 30px -14px rgba(10, 22, 24, .7); }
.btn--dark:hover { transform: translateY(-2px); background: #000; }

.btn__spinner {
  display: none; width: 18px; height: 18px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-loading .btn__arrow, .is-loading > svg { display: none; }
.is-loading .btn__spinner { display: block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(4, 10, 11, .72);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .4s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 68px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 44px; transition: height .4s var(--ease); }
.site-header.is-scrolled .brand img { height: 38px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav__list a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: .98rem; font-weight: 500; color: rgba(237, 244, 242, .86);
  transition: color .25s;
}
.nav__list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: #fff; }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.burger { display: none; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; background: none; border: 0; cursor: pointer; color: #fff; font-weight: 500; font-size: .95rem; }
.burger__icon { position: relative; width: 26px; height: 14px; }
.burger__icon i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger__icon i:first-child { top: 0; }
.burger__icon i:last-child { top: 12px; }
.burger[aria-expanded='true'] .burger__icon i:first-child { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__icon i:last-child { top: 6px; transform: rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 11, .88) 0%, rgba(4, 10, 11, .55) 45%, rgba(4, 10, 11, .1) 100%),
    linear-gradient(180deg, rgba(4, 10, 11, .55) 0%, rgba(4, 10, 11, 0) 22%, rgba(4, 10, 11, 0) 62%, var(--ink) 100%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: calc((min(100vw, 1320px) - var(--gutter) * 2) / 6) 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 110px; }
.hero__title {
  font-size: clamp(2.3rem, 5.3vw, 4.7rem);
  line-height: 1.05; letter-spacing: -.035em; font-weight: 600;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__line--accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: .12em;
}
.hero__lead { margin-top: clamp(20px, 2.6vw, 30px); max-width: 34em; font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.55; color: rgba(237, 244, 242, .82); }
.hero__actions { margin-top: clamp(28px, 3.6vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero__note { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 500; color: var(--green); line-height: 1.4; }
.hero__note i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(155, 210, 60, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(155, 210, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 210, 60, 0); } }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--green); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* entrée du hero */
.js .hero__line, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; }
.js .hero__line:nth-child(1) { animation-delay: .15s; }
.js .hero__line:nth-child(2) { animation-delay: .3s; }
.js .hero__lead { animation-delay: .5s; }
.js .hero__actions { animation-delay: .65s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Références ---------- */
.refs { background: var(--paper); color: var(--paper-ink); padding-block: clamp(44px, 6vw, 72px); }
.refs__inner { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.refs__title { font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; }
.refs__title::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 18px; }
.refs__text { margin-top: 10px; color: var(--paper-muted); font-size: 1rem; }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); width: max-content; padding-block: 6px; }
.marquee.is-ready .marquee__track { animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; }
.marquee__track img { height: 62px; width: auto; opacity: .78; transition: opacity .3s, transform .3s var(--ease); }
.marquee__track img:hover { opacity: 1; transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(calc(-50% - (clamp(40px, 5vw, 72px) / 2))); } }

/* ---------- Titres de section ---------- */
.section-head { text-align: center; max-width: 760px; margin-inline: auto; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }
.section-title::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--grad); margin: 22px auto 0; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

/* ---------- Services ---------- */
.services { position: relative; padding-block: clamp(72px, 10vw, 130px); background: var(--bg); isolation: isolate; overflow: hidden; }
.services::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(18, 181, 196, .16), transparent 70%),
    radial-gradient(50% 45% at 92% 100%, rgba(155, 210, 60, .12), transparent 70%);
}
.services::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .6;
  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: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.services__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }

.service {
  position: relative; padding: 12px 12px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.service::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad); opacity: 0; transition: opacity .5s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(18, 181, 196, .45); }
.service:hover::before { opacity: 1; }

.service__media { position: relative; border-radius: 17px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__media img { transform: scale(1.07); }
.service__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 10, 11, .05) 30%, rgba(4, 10, 11, .86) 100%); pointer-events: none; }
.service__title { position: absolute; left: 20px; right: 70px; bottom: 16px; z-index: 1; font-size: clamp(1.4rem, 1.9vw, 1.75rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.service__title a::after { content: ''; position: absolute; inset: -400px; } /* toute l'image est cliquable */
.service__go {
  position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #05130D; background: var(--grad); pointer-events: none;
  transform: scale(.85); opacity: .0; transition: transform .45s var(--ease), opacity .45s;
}
.service__go svg { width: 20px; height: 20px; }
.service:hover .service__go, .service__media:focus-within .service__go { transform: none; opacity: 1; }

.service__list { padding: 8px 10px 4px; }
.service__list li { display: flex; align-items: center; gap: 18px; padding: 15px 4px; font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; transition: transform .35s var(--ease), color .35s; }
.service__list li + li { border-top: 1px solid var(--line); }
.service__list li:hover { transform: translateX(6px); color: #fff; }
.service__icon { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(155, 210, 60, .08); border: 1px solid rgba(155, 210, 60, .16); }
.service__icon img { width: 32px; height: 32px; object-fit: contain; }

/* ---------- À propos ---------- */
.about { position: relative; padding-block: clamp(72px, 10vw, 140px); background: var(--slate); isolation: isolate; overflow: hidden; }
.about::before {
  content: ''; position: absolute; z-index: -1; right: -12%; top: -30%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(18, 181, 196, .2), transparent);
}
.about::after {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.about__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(36px, 7vw, 110px); }
.about__photo { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.about__photo::before {
  content: ''; position: absolute; inset: 0; border-radius: 30px; transform: rotate(-5deg) translate(-10px, 8px);
  background: var(--grad); opacity: .9;
}
.about__photo::after {
  content: ''; position: absolute; right: -26px; top: -26px; width: 120px; height: 120px; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1.5px, transparent 1.5px); background-size: 14px 14px;
}
.about__frame { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 506 / 699; background: #222; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.about__title { margin-top: 20px; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.about__text { margin-top: clamp(22px, 3vw, 34px); display: grid; gap: 20px; max-width: 36em; color: rgba(237, 244, 242, .74); font-size: 1.06rem; }
.about__lead { font-size: clamp(1.15rem, 1.6vw, 1.38rem); line-height: 1.5; color: var(--text); letter-spacing: -.012em; }
.about__text p:not(.about__lead) { padding-left: 20px; border-left: 2px solid rgba(155, 210, 60, .5); }

/* ---------- Étapes ---------- */
.steps { background: var(--paper); color: var(--paper-ink); padding-block: clamp(72px, 9vw, 120px); }
.steps .section-sub { color: var(--paper-muted); }
.steps__list { position: relative; margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); counter-reset: none; }
.step {
  position: relative; padding: clamp(24px, 2.8vw, 36px); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--paper-line);
  box-shadow: 0 30px 50px -40px rgba(10, 22, 24, .35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -36px rgba(10, 22, 24, .45); }
.step__num {
  display: block; font-family: var(--mono); font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(100deg, #6E9F18 0%, #18A07A 55%, #0A93A3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.step__title { margin-top: clamp(26px, 4vw, 54px); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.step p { margin-top: 10px; color: var(--paper-muted); font-size: 1.02rem; }
/* flèche entre les étapes */
.step:not(:last-child)::after {
  content: ''; position: absolute; top: clamp(40px, 4.4vw, 58px); right: clamp(24px, 2.8vw, 36px); width: clamp(40px, 6vw, 84px); height: 12px;
  background:
    linear-gradient(var(--paper-ink), var(--paper-ink)) left center / calc(100% - 2px) 1.5px no-repeat,
    conic-gradient(from -135deg at 100% 50%, var(--paper-ink) 90deg, transparent 0) right center / 7px 12px no-repeat;
  opacity: .28;
}
.steps__cta { margin-top: clamp(32px, 4vw, 52px); display: flex; justify-content: center; }

/* ---------- Devis ---------- */
.contact { position: relative; padding-block: clamp(72px, 10vw, 140px); background: var(--ink); isolation: isolate; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 55% at 0% 30%, rgba(155, 210, 60, .13), transparent 70%),
    radial-gradient(50% 60% at 100% 80%, rgba(18, 181, 196, .16), transparent 70%);
}
.contact__inner { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__head { position: sticky; top: 110px; }
.contact__title { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 600; }
.contact__title .grad-text { white-space: nowrap; }

.contact__orbit { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin-top: clamp(30px, 4vw, 56px); }
.contact__orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-strong); }
.contact__orbit i:nth-child(2) { inset: 17%; border-style: dashed; animation: spin 40s linear infinite; }
.contact__orbit i:nth-child(3) { inset: 34%; border-color: rgba(155, 210, 60, .4); }
.contact__orbit b { position: absolute; inset: 44%; border-radius: 50%; background: var(--grad); box-shadow: 0 0 60px 10px rgba(71, 195, 143, .45); }
.contact__orbit::before, .contact__orbit::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.contact__orbit::before { top: 13%; left: 15%; }
.contact__orbit::after { bottom: 3%; right: 34%; background: var(--teal); box-shadow: 0 0 14px var(--teal); }

.contact__card {
  position: relative; padding: clamp(22px, 3.4vw, 44px);
  border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.contact__card::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 2px; border-radius: 2px;
  background: var(--grad);
}

/* ---------- Formulaire ---------- */
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { position: relative; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__input {
  display: block; width: 100%;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 25px 18px 9px; min-height: 60px;
  font-size: 1.02rem; color: #fff;
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field__input:hover { border-color: rgba(255, 255, 255, .3); }
.field__input:focus { outline: none; border-color: var(--green); background: rgba(155, 210, 60, .06); box-shadow: 0 0 0 4px rgba(155, 210, 60, .16); }
.field__input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #12262a inset; caret-color: #fff; }
.field__label {
  position: absolute; left: 19px; top: 18px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .22s var(--ease), color .22s;
}
.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label { transform: translateY(-10px) scale(.74); color: var(--green); }

.field__question { display: block; margin-bottom: 10px; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; padding: 0; }
.req { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 11px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .045); font-size: .97rem; font-weight: 500;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.chip i { position: relative; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .4); transition: background .25s, border-color .25s; }
.chip i::after { content: ''; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid #05130D; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.chip:hover span { border-color: rgba(255, 255, 255, .34); }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.chip input:checked + span { background: var(--grad); border-color: transparent; color: #05130D; font-weight: 600; }
.chip input:checked + span i { background: rgba(255, 255, 255, .55); border-color: transparent; }
.chip input:checked + span i::after { transform: rotate(45deg) scale(1); }
.chips--radio .chip i { border-radius: 50%; }
.chips--radio .chip i::after { left: 4px; top: 4px; width: 7px; height: 7px; border: 0; border-radius: 50%; background: #05130D; transform: scale(0); }
.chips--radio .chip input:checked + span i::after { transform: scale(1); }
.field--static + .field--static { margin-top: 4px; }
@media (min-width: 681px) {
  .chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .chips--radio { grid-template-columns: repeat(3, auto); }
  .chip span { display: flex; width: 100%; }
}

.field--area .field__input { padding: 16px 18px; min-height: 150px; resize: vertical; line-height: 1.55; }
.field__input::placeholder { color: var(--muted); opacity: 1; }
.field:not(.field--area) .field__input::placeholder { color: transparent; }

.field__error { margin-top: 7px; font-size: .87rem; color: var(--danger); }
.field.has-error .field__input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 138, 122, .12); }
.field.has-error .chip span { border-color: rgba(255, 138, 122, .7); }

.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__status { flex: 1 1 220px; font-size: .96rem; color: var(--danger); min-height: 1.2em; }
.form__noscript { margin-bottom: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 138, 122, .12); border: 1px solid rgba(255, 138, 122, .4); color: #ffd9d3; }

.form__done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; min-height: 340px; padding: 30px 10px; outline: none; }
.form__done[hidden] { display: none; }
.form__done-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #05130D; background: var(--grad); box-shadow: 0 0 0 12px rgba(155, 210, 60, .1), 0 0 60px rgba(71, 195, 143, .5); animation: pop .6s var(--ease) both; }
.form__done-icon svg { width: 40px; height: 40px; }
.form__done-text { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 600; max-width: 18em; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); color: rgba(237, 244, 242, .78); font-size: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1.7fr; gap: clamp(28px, 4vw, 60px); padding-block: clamp(52px, 7vw, 84px) clamp(36px, 5vw, 56px); }
.footer__brand img { height: 58px; width: auto; }
.footer__title { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 500; margin-bottom: 18px; }
.footer__title--gap { margin-top: 30px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a, .footer__address { color: rgba(237, 244, 242, .82); }
.footer__links a { position: relative; display: inline-block; transition: color .25s, transform .3s var(--ease); }
.footer__links a:hover { color: #fff; transform: translateX(5px); }
.footer__address { max-width: 15em; line-height: 1.6; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: #fff; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--grad); color: #05130D; border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 21px; height: 21px; }

.footer__news { padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); align-self: start; }
.footer__news-text { color: rgba(237, 244, 242, .72); font-size: .98rem; }
.footer__news-title { margin-top: 8px; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; color: #fff; }
.news { position: relative; margin-top: 18px; display: flex; align-items: center; padding: 5px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); transition: border-color .25s, box-shadow .25s; }
.news:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(155, 210, 60, .16); }
.news__input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 10px 14px 10px 18px; color: #fff; font-size: 1rem; }
.news__input::placeholder { color: var(--muted); opacity: 1; }
.news__input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #12262a inset; border-radius: 999px; }
.news__btn { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #05130D; background: var(--grad); transition: transform .3s var(--ease), box-shadow .3s; }
.news__btn:hover { transform: scale(1.07); box-shadow: 0 8px 24px -8px rgba(71, 195, 143, .8); }
.news__btn svg { width: 20px; height: 20px; }
.news__status { margin-top: 10px; font-size: .92rem; min-height: 1.2em; color: var(--danger); }
.news__status.is-ok { color: var(--green); }

.footer__bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 22px 28px; font-size: .9rem; color: rgba(237, 244, 242, .55); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__grid .service:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__news { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }

  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 36px;
    padding: 100px var(--gutter) 40px;
    background: rgba(4, 10, 11, .96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav__list a { font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; padding: 8px 0; color: #fff; }
  .nav__cta { align-self: flex-start; padding: 17px 30px; font-size: 1.0625rem; }
  .site-header.menu-open { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }

  .hero__shade { background: linear-gradient(180deg, rgba(4, 10, 11, .7) 0%, rgba(4, 10, 11, .5) 40%, rgba(4, 10, 11, .65) 75%, var(--ink) 100%); }
  .hero__inner { padding-bottom: 96px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .refs__inner { grid-template-columns: 1fr; }
  .marquee__track img { height: 50px; }

  .about__inner { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; justify-self: start; margin-left: 10px; }
  .about__body { order: -1; }

  .steps__list { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; }
  .step__num { grid-row: span 2; font-size: 2.6rem; }
  .step__title { margin-top: 2px; }
  .step:not(:last-child)::after { display: none; }

  .contact__inner { grid-template-columns: 1fr; }
  .contact__head { position: static; }
  .contact__orbit { display: none; }
}

@media (max-width: 680px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__grid .service:last-child { display: block; }
  .form__grid { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer__bottom { flex-direction: column; }
  .service__go { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
}

@media (hover: none) {
  .service__go { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal, .js .hero__line, .js .hero__lead, .js .hero__actions { opacity: 1; transform: none; }
  .marquee.is-ready .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden='true'] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
