/* ==========================================================
   ACG Systèmes — feuille de style principale
   ========================================================== */

:root {
  --violet: #8A2BE2;
  --violet-light: #B565F5;
  --violet-pale: #D4A6FF;
  --ink: #2B1B4E;
  --bg: #0a0614;
  --bg-deep: #060310;
  --text: #F5F3FA;
  --text-muted: rgba(245, 243, 250, 0.65);
  --text-soft: rgba(245, 243, 250, 0.72);
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-border: rgba(138, 43, 226, 0.2);
  --card-border-hover: rgba(181, 101, 245, 0.6);
  --gradient: linear-gradient(135deg, var(--violet), var(--violet-light));
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 6vw, 64px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #1c1035 0%, var(--bg) 55%, var(--bg-deep) 100%) fixed, var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--violet-light); }
a:hover { color: var(--violet-pale); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .footer, .copyright { position: relative; z-index: 1; }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--violet-light);
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; }
.section-head p { font-size: 16px; color: var(--text-muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4); }
.btn--primary:hover { color: #fff; box-shadow: 0 14px 36px rgba(138, 43, 226, 0.55); }
.btn--ghost { border: 1px solid rgba(245, 243, 250, 0.25); color: var(--text); }
.btn--ghost:hover { color: var(--text); border-color: var(--violet-light); }
.btn--small { padding: 10px 22px; font-size: 14px; box-shadow: 0 8px 24px rgba(138, 43, 226, 0.35); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 27, 78, 0.1);
}
.nav__logo img { height: 34px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 3vw, 36px); }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(43, 27, 78, 0.55);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); border-bottom-color: var(--violet); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone svg { flex-shrink: 0; }
.nav__burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: rgba(43, 27, 78, 0.06); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .2s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Pages & transitions ---------- */
main { animation: pageIn .7s var(--ease-out) both; }
.page--inner { padding: 150px var(--gutter) 100px; }

/* ---------- Accueil : hero ---------- */
.hero {
  min-height: 92vh;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 150px var(--gutter) 80px;
}
.hero__text { flex: 1 1 460px; min-width: 280px; max-width: 600px; position: relative; z-index: 2; }
.hero__text > * { animation: fadeUp .7s ease both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero .eyebrow { letter-spacing: 2.5px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5.5vw, 58px); line-height: 1.08; font-weight: 700; margin-bottom: 24px; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--text-soft); max-width: 540px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.planet {
  position: relative;
  flex-shrink: 0;
  width: min(540px, 88vw);
  aspect-ratio: 1;
  margin: -30px -20px;
  pointer-events: none;
  animation: fadeIn 1.8s ease .2s both;
}
.planet canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Sections génériques ---------- */
.section { padding: 60px var(--gutter) 100px; }
.container { max-width: 1200px; margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }

/* ---------- Cartes ---------- */
.reveal { animation: fadeUp .6s ease both; animation-delay: calc(var(--i, 0) * .1s + .15s); }

.card {
  height: 100%;
  padding: 32px 26px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s, background .3s;
}
.card:hover {
  color: inherit;
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  background: rgba(138, 43, 226, 0.08);
  box-shadow: 0 18px 40px rgba(138, 43, 226, 0.25);
}
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.card--value { padding: 30px; }
.card--value h3 { color: var(--violet-light); }
.card--value:hover { transform: translateY(-6px); }

/* Icône en orbite */
.orbit-icon { position: relative; width: 44px; height: 44px; margin-bottom: 22px; flex-shrink: 0; }
.orbit-icon::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--violet); border-radius: 50%; }
.orbit-icon span { position: absolute; inset: -3px; animation: spin 16s linear infinite; }
/* chaque point tourne à son rythme, avec un départ décalé */
.reveal:nth-child(4n+1) .orbit-icon { transform: rotate(0deg); }
.reveal:nth-child(4n+2) .orbit-icon { transform: rotate(90deg); }
.reveal:nth-child(4n+3) .orbit-icon { transform: rotate(180deg); }
.reveal:nth-child(4n+4) .orbit-icon { transform: rotate(270deg); }
.reveal:nth-child(4n+1) .orbit-icon span,
.reveal:nth-child(4n+3) .orbit-icon span { animation-duration: 16s; animation-direction: reverse; }
.reveal:nth-child(4n+2) .orbit-icon span,
.reveal:nth-child(4n+4) .orbit-icon span { animation-duration: 20s; }
.orbit-icon span::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 8px var(--violet-light);
}
.orbit-icon--lg { width: 56px; height: 56px; margin-bottom: 0; }
.orbit-icon--lg span::after { width: 11px; height: 11px; margin-left: -5.5px; }

/* Arguments */
.value-prop__num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--violet-light); margin-bottom: 10px; }
.value-prop h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.value-prop p { font-size: 15px; line-height: 1.55; color: var(--text-muted); }

/* Bandeau d'appel */
.cta { padding: 80px var(--gutter); text-align: center; }
.cta__box {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.16), rgba(138, 43, 226, 0.04));
  border: 1px solid rgba(138, 43, 226, 0.28);
}
.cta__box h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
.cta__sub { display: block; margin-top: 8px; font-size: 0.6em; font-weight: 600; color: var(--violet-pale); }
.cta__box p { font-size: 16px; color: rgba(245, 243, 250, 0.68); margin-bottom: 28px; }

/* ---------- Page Services ---------- */
.services-list { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.services-list .reveal { animation-name: slideIn; animation-duration: .7s; animation-timing-function: var(--ease-out); }
.service-row {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  padding: 36px;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.service-row:hover { color: inherit; transform: translateX(8px); border-color: var(--card-border-hover); box-shadow: -8px 14px 40px rgba(138, 43, 226, 0.22); }
.service-row__body { flex: 1; min-width: 240px; }
.service-row h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.service-row p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 18px; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bullets li { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; color: rgba(245, 243, 250, 0.8); }
.bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-light); flex-shrink: 0; transform: translateY(-1px); }
.more { display: inline-flex; gap: 6px; margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--violet-light); transition: gap .25s var(--ease-out); }
.service-row:hover .more { gap: 12px; color: var(--violet-pale); }
.center { text-align: center; margin-top: 70px; }

/* ---------- Détail d'un service ---------- */
.detail { max-width: 900px; margin: 0 auto; }
.detail > * { animation: fadeUp .6s ease both; }
.detail > :nth-child(2) { animation-delay: .06s; }
.detail > :nth-child(3) { animation-delay: .12s; }
.detail > :nth-child(n+4) { animation-delay: .18s; }
.detail__back { display: inline-flex; gap: 8px; margin-bottom: 36px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--text-muted); }
.detail__back:hover { color: var(--violet-pale); }
.detail__head { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.detail__head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.1; margin-bottom: 12px; }
.detail__tagline { font-size: 18px; line-height: 1.5; color: var(--violet-pale); max-width: 620px; }
.detail__intro { font-size: 17px; line-height: 1.75; color: var(--text-soft); margin-bottom: 64px; max-width: 760px; }
.detail__h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.detail__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 64px; }
.detail__features .card { padding: 26px; }
.detail__features .card h3 { font-size: 17px; }
.detail__steps { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.detail__steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid rgba(138, 43, 226, 0.35); }
.detail__steps li::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--violet-light); margin-bottom: 10px; }
.detail__steps strong { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.detail__steps span { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.detail__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 32px 36px; border-radius: 22px; background: linear-gradient(135deg, rgba(138, 43, 226, 0.16), rgba(138, 43, 226, 0.04)); border: 1px solid rgba(138, 43, 226, 0.28); margin-bottom: 56px; }
.detail__cta p { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.detail__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 32px; border-top: 1px solid rgba(138, 43, 226, 0.18); }
.detail__arrow { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text); text-decoration: none; transition: border-color .3s, background .3s, transform .35s var(--ease-out); }
.detail__arrow:hover { color: var(--text); border-color: var(--card-border-hover); background: rgba(138, 43, 226, 0.08); transform: translateX(-4px); }
.detail__arrow--next { justify-content: flex-end; text-align: right; }
.detail__arrow--next:hover { transform: translateX(4px); }
.detail__arrow small { display: block; font-size: 12.5px; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 4px; }
.detail__arrow strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.detail__arrow-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gradient); color: #fff; font-size: 18px; }

/* ---------- Page À propos ---------- */
.about { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about h1 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 700; line-height: 1.15; margin-bottom: 22px; }
.about p { font-size: 16px; line-height: 1.7; color: rgba(245, 243, 250, 0.7); margin-bottom: 18px; }
.about strong { color: var(--text); }
.about__visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp .8s ease .15s both;
}
.about__visual svg { width: 90%; height: auto; overflow: visible; }
.values { max-width: 1100px; margin: 90px auto 0; gap: 28px; }

/* ---------- Page Contact ---------- */
.contact { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; }
.contact__info { display: flex; flex-direction: column; gap: 20px; }
.panel { padding: 32px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--card-border); }
.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-list dt { font-size: 12.5px; letter-spacing: 1px; color: rgba(245, 243, 250, 0.5); margin-bottom: 6px; }
.info-list dd { margin: 0; font-size: 16px; }
.info-list a { text-decoration: none; }
.info-list .phone { font-size: 18px; font-weight: 600; }

.map { height: 260px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(138, 43, 226, 0.25); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(200deg) saturate(0.7) brightness(0.95); }

.form { display: flex; flex-direction: column; gap: 16px; padding: 36px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(245, 243, 250, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet-light); }
.form input::placeholder, .form textarea::placeholder { color: rgba(245, 243, 250, 0.35); }
.form select option { background: #150C2A; color: var(--text); }
.form textarea { resize: vertical; }
.form button {
  margin-top: 6px;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.form-success {
  display: none;
  min-height: 400px;
  padding: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(138, 43, 226, 0.1);
  border-color: rgba(138, 43, 226, 0.3);
}
.form-success.is-visible { display: flex; animation: fadeIn .5s ease both; }
.form-success__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
  color: #fff;
}
.form-success h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding: 56px var(--gutter) 32px;
  border-top: 1px solid rgba(138, 43, 226, 0.18);
}
.footer__brand { max-width: 420px; }
.footer__brand img { height: 32px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__brand p { font-size: 14px; line-height: 1.7; color: rgba(245, 243, 250, 0.6); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(245, 243, 250, 0.6); }
.footer__col strong { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.footer__col a { color: rgba(245, 243, 250, 0.6); text-decoration: none; }
.footer__col a:hover { color: var(--violet-pale); }
.footer__col { font-style: normal; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px var(--gutter) 28px; border-top: 1px solid rgba(138, 43, 226, 0.12); font-size: 12.5px; color: rgba(245, 243, 250, 0.45); }
.copyright__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.copyright__links a { color: rgba(245, 243, 250, 0.55); text-decoration: none; }
.copyright__links a:hover { color: var(--violet-pale); }

/* Les sur-titres sont des <p> : on les protège des règles « .xxx p » */
p.eyebrow, .hero p.eyebrow, .section-head p.eyebrow, .about p.eyebrow, .legal p.eyebrow, .detail p.eyebrow {
  font-size: 13px;
  line-height: 1.4;
  color: var(--violet-light);
  max-width: none;
  margin-bottom: 14px;
}
.hero p.eyebrow { margin-bottom: 18px; }

/* ---------- Accessibilité ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--violet-pale); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Pages légales ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 10px; }
.legal__date { font-size: 14px; color: var(--text-muted); margin-bottom: 40px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 40px 0 14px; color: var(--violet-pale); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; color: var(--text-soft); }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal strong { color: var(--text); }
.legal .todo { background: rgba(255, 196, 0, 0.18); color: #ffd666; padding: 1px 6px; border-radius: 4px; }
.legal__table { overflow-x: auto; margin-bottom: 16px; border-radius: 14px; border: 1px solid var(--card-border); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(138, 43, 226, 0.15); color: var(--text-soft); }
.legal th { color: var(--text); background: rgba(138, 43, 226, 0.08); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.consent-box { padding: 24px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--card-border); margin-bottom: 16px; }
.consent-box p { color: var(--text); margin-bottom: 16px; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 440px; padding: 22px 24px; border-radius: 18px; background: #150C2A; border: 1px solid rgba(138, 43, 226, 0.35); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); animation: fadeUp .5s ease both; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 14px; line-height: 1.6; color: var(--text-soft); margin-bottom: 16px; }
.cookie-banner strong { color: var(--text); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cookie-banner__actions .btn--small { box-shadow: none; }

/* ---------- Carte (chargée après consentement) ---------- */
.map__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--card-bg); }
.map__placeholder p { font-size: 14px; color: var(--text-muted); }
.map__placeholder a { font-size: 13.5px; }
.form__legal { font-size: 12.5px; line-height: 1.5; color: rgba(245, 243, 250, 0.5); }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes novaPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__visual { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .form__row { grid-template-columns: 1fr; }
  .detail__nav { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
}

/* ---------- Mobile & tablette ---------- */
@media (max-width: 960px) {
  html { scroll-padding-top: 76px; }
  .nav { flex-wrap: nowrap; gap: 12px; padding: 12px 16px; }
  .nav__logo img { height: 28px; }
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(43, 27, 78, 0.1);
    box-shadow: 0 18px 30px rgba(10, 6, 20, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease-out), visibility .25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(43, 27, 78, 0.08); }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link.is-active { border-bottom-color: rgba(43, 27, 78, 0.08); color: var(--violet); }

  .page--inner { padding: 112px 20px 72px; }
  .hero { min-height: 0; padding: 112px 20px 40px; gap: 8px; justify-content: center; }
  .hero__text { flex-basis: 100%; max-width: none; }
  .planet { width: min(420px, 92vw); margin: 0 auto; }
  .section { padding: 40px 20px 64px; }
  .section-head { margin-bottom: 36px; }
  .cta { padding: 40px 20px 72px; }
  .cta__box { padding: 40px 22px; }
  .about { gap: 32px; }
  .values { margin-top: 56px; }
  .contact { gap: 20px; }
  .detail__intro { margin-bottom: 44px; }
  .detail__features, .detail__steps { margin-bottom: 44px; }
}

@media (max-width: 560px) {
  .nav__phone { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .nav__phone-text { display: none; }
  .nav__phone svg { width: 18px; height: 18px; }

  .eyebrow, p.eyebrow, .hero p.eyebrow { letter-spacing: 1.5px; font-size: 12px; }
  .hero h1 { font-size: 32px; margin-bottom: 18px; }
  .hero p { font-size: 16px; margin-bottom: 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .center .btn, .cta__box .btn { justify-content: center; width: 100%; }
  .section-head h1, .detail__head h1, .about h1, .legal h1 { font-size: 28px; }
  .section-head h2 { font-size: 25px; }
  .cta__box h2 { font-size: 24px; }

  .card { padding: 24px 22px; }
  .service-row { padding: 24px 20px; gap: 18px; }
  .service-row h2 { font-size: 20px; }
  .detail__head { gap: 18px; }
  .detail__tagline { font-size: 16px; }
  .detail__intro { font-size: 16px; }
  .detail__cta { padding: 24px 20px; }
  .detail__cta .hero__actions { width: 100%; }
  .detail__arrow { padding: 14px 16px; gap: 14px; }
  .detail__arrow-icon { width: 38px; height: 38px; }

  .panel { padding: 22px; }
  .form { padding: 22px; }
  .info-list .phone { font-size: 17px; }
  .info-list dd { overflow-wrap: anywhere; }
  .map { height: 220px; }

  .footer { padding: 44px 20px 28px; }
  .footer__cols { gap: 28px 40px; }
  .copyright { flex-direction: column; padding: 18px 20px 24px; }

  .cookie-banner { padding: 18px; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
  .legal th, .legal td { padding: 12px; font-size: 13.5px; }
}

/* Pas d'effets de survol « collants » sur écran tactile */
@media (hover: none) {
  .card:hover, .service-row:hover, .card--value:hover, .detail__arrow:hover, .btn:hover { transform: none; }
}
