/* ==========================================================================
   NEWTIV : feuille de style principale
   Thème clair par défaut + thème sombre (bascule manuelle), couleurs plates
   ========================================================================== */

:root {
  /* Thème clair (par défaut) */
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --hairline: rgba(12, 20, 32, 0.12);

  --text-100: #0c1420;
  --text-70: rgba(12, 20, 32, 0.68);
  --text-45: rgba(12, 20, 32, 0.46);

  --blue: #0b57a0;
  --blue-strong: #073a6b;
  --blue-soft: #e6eef7;

  --navy: #0b2a5e;
  --navy-strong: #061a3e;
  --navy-soft: #e7eaf1;

  --on-accent: #ffffff;

  --cta-bg: #0b2a5e;
  --cta-text: #ffffff;

  --glow-opacity: 0.06;
  --shadow-color: rgba(12, 20, 32, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Sora', 'Inter', sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #05070a;
  --bg-alt: #0d1116;
  --surface: #0d1116;
  --hairline: rgba(255, 255, 255, 0.1);

  --text-100: #f2f6fa;
  --text-70: rgba(242, 246, 250, 0.72);
  --text-45: rgba(242, 246, 250, 0.48);

  --blue: #4f9fe0;
  --blue-strong: #79bbef;
  --blue-soft: rgba(79, 159, 224, 0.16);

  --navy: #9fb8d9;
  --navy-strong: #c3d3e8;
  --navy-soft: rgba(159, 184, 217, 0.14);

  --on-accent: #04142c;

  --cta-bg: #0a1830;
  --cta-text: #f5f8fa;

  --glow-opacity: 0.16;
  --shadow-color: rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-70);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-strong);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-100);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.text-accent { color: var(--blue); }

.text-link {
  display: inline-flex;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.text-link:hover { color: var(--blue); border-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }

.btn-primary {
  background: var(--blue);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--blue-strong); box-shadow: 0 12px 28px -8px var(--shadow-color); }
[data-theme="dark"] .btn-primary:hover { background: var(--blue-strong); }

.btn-outline {
  background: transparent;
  border-color: var(--hairline);
  color: var(--text-100);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-white {
  background: #ffffff;
  color: var(--cta-bg);
}
.btn-white:hover { box-shadow: 0 12px 28px -8px rgba(0,0,0,.35); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .25s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 50%; height: auto; aspect-ratio: 1 / 1; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: .02em;
  color: var(--text-100);
}
.brand-text small { font-size: .66rem; color: var(--text-45); letter-spacing: .01em; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-weight: 600;
  font-size: .93rem;
  color: var(--text-70);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--text-100); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle,
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-70);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--text-100); border-color: var(--blue); }
.theme-toggle:active, .nav-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-100);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.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); }
/* Le tiroir plein écran (ci-dessous, <760px) est sombre : le bouton reste
   au-dessus (z-index) et repasse en clair pour rester lisible dessus. */
.nav-toggle[aria-expanded="true"] span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  background: var(--bg);
  transition: background-color .35s var(--ease);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--glow-opacity);
  transition: opacity .35s var(--ease);
}
.glow-navy { top: -220px; right: -160px; background: var(--navy); }
.glow-blue { bottom: -260px; left: -200px; background: var(--blue); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-45);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-70);
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 2px;
  transition: color .2s var(--ease);
}
.verified-badge:hover { color: var(--navy); }

.hero-mark { display: flex; justify-content: center; }
.hero-mark img {
  width: min(100%, 400px);
  height: auto;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 24px 48px var(--shadow-color));
}

.hero-stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  background: var(--bg-alt);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 24px;
}
.stat { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: var(--blue); }
.stat-label { font-size: .78rem; color: var(--text-45); }

/* ---------- Sections generic ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); transition: background-color .35s var(--ease); }

.section-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 46ch;
}
.section-lead {
  color: var(--text-70);
  max-width: 62ch;
  font-size: 1.02rem;
  margin-bottom: 36px;
}

/* ---------- Services : liste éditoriale ---------- */
.service-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 56px;
}
.service-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  break-inside: avoid;
  transition: border-color .35s var(--ease), padding-left .25s var(--ease);
}
.service-row:first-child { padding-top: 0; }
.service-row:hover { padding-left: 6px; }
.service-index {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-45);
  padding-top: 4px;
  flex: none;
  width: 26px;
}
.service-icon {
  flex: none;
  color: var(--blue);
  padding-top: 2px;
  transition: transform .25s var(--ease-pop), color .2s var(--ease);
}
.service-row:hover .service-icon { transform: scale(1.12); }
.service-row:nth-child(3n+2) .service-icon { color: var(--navy); }
.service-icon svg { width: 24px; height: 24px; }
.service-body h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--text-100); }
.service-body p { color: var(--text-45); font-size: .9rem; margin: 0; }

/* ---------- Timeline (Notre approche) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 44px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
}
.tl-step { position: relative; padding-top: 32px; }
.tl-num {
  position: absolute;
  top: -4px; left: 0;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--blue);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease-pop);
}
.tl-step:hover .tl-num { transform: scale(1.1); }
.tl-step:nth-child(2n) .tl-num { background: var(--navy); }
.tl-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.tl-step p { color: var(--text-45); font-size: .9rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { max-width: 760px; }
.about-copy p { color: var(--text-70); font-size: 1.02rem; }
.value-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 22px 0 18px;
  padding: 0;
}
.value-line li {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-100);
  position: relative;
  padding-left: 18px;
}
.value-line li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}
.value-line li:nth-child(3n)::before { background: var(--navy); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cta-bg);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background-color .35s var(--ease);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 52px 24px;
}
.cta-inner h2 { color: var(--cta-text); font-size: 1.55rem; margin-bottom: 6px; }
.cta-inner p { color: var(--cta-text); opacity: .82; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--text-70); }
.contact-icon { flex: none; color: var(--blue); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-list a { color: var(--navy); font-weight: 600; transition: color .2s var(--ease); }
.contact-list a:hover { color: var(--blue); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Champ piège anti-robot (voir index.html + js/script.js) : hors écran,
   jamais display:none — un lecteur d'écran doit pouvoir constater qu'il n'y a
   rien à y faire, un robot de formulaire le remplit quand même. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-row { display: flex; flex-direction: column; gap: 4px; }
.form-row label { font-size: .72rem; font-weight: 700; color: var(--text-45); text-transform: uppercase; letter-spacing: .05em; }
.form-row input,
.form-row textarea {
  border: none;
  border-bottom: 1.5px solid var(--hairline);
  border-radius: 0;
  padding: 9px 2px;
  font-family: inherit;
  font-size: .94rem;
  background: transparent;
  color: var(--text-100);
  resize: vertical;
  transition: border-color .2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-note { font-size: .85rem; color: var(--blue); font-weight: 600; min-height: 1.2em; margin: 0; }

/* Champ avec icône (petit, compact — voir devis/commentaires) : l'icône et
   le soulignement vivent sur le CONTENEUR, le champ lui-même redevient sans
   bordure pour ne pas la doubler. L'icône change de couleur au focus — un
   petit signal vivant plutôt qu'un simple trait qui s'épaissit. */
.field-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--hairline);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease);
}
.field-input:focus-within { border-color: var(--blue); }
.field-icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--text-45);
  transition: color .2s var(--ease), transform .2s var(--ease-pop);
}
.field-input:focus-within .field-icon { color: var(--blue); transform: scale(1.1); }
.field-input input,
.field-input select,
.field-input textarea {
  flex: 1;
  min-width: 0;
  border: none !important;
  padding: 9px 0 !important;
}
.field-input textarea { padding-top: 9px !important; }
.field-input select { background-position: right 0 center !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--text-45); padding-top: 56px; border-top: 1px solid var(--hairline); transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand .brand-mark { border-radius: 50%; }
.footer-brand p { font-size: .88rem; color: var(--text-45); margin: 0; }
.footer-col h4 { color: var(--text-100); font-size: .9rem; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .88rem; color: var(--text-45); margin-bottom: 10px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-verified { color: var(--navy); font-weight: 600; transition: color .2s var(--ease); }
.footer-verified:hover { color: var(--blue); }

/* ---------- CTA flottant ---------- */
.cta-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 250px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px 18px;
  box-shadow: 0 20px 45px -10px var(--shadow-color);
  opacity: 0;
  transform: translateY(20px) scale(.94);
  pointer-events: none;
  transition: opacity .45s var(--ease-pop), transform .45s var(--ease-pop), background-color .35s var(--ease), border-color .35s var(--ease);
}
.cta-float.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cta-float p { margin: 0 0 12px; font-size: .88rem; font-weight: 600; color: var(--text-100); padding-right: 16px; }
.cta-float-close {
  position: absolute;
  top: 8px; right: 10px;
  width: 24px; height: 24px;
  border: none;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-45);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.cta-float-close:hover { color: var(--text-100); }

/* ---------- Réalisations : carrousel de projets ---------- */
.realisations-track-wrap { position: relative; margin-top: 8px; }
.realisations-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.realisations-track::-webkit-scrollbar { display: none; }
.realisations-card {
  flex: 0 0 min(340px, 84vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.realisations-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px var(--shadow-color); border-color: var(--blue); }
.realisations-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-45);
  overflow: hidden;
  transition: background-size .5s var(--ease);
}
.realisations-card:hover .realisations-thumb { background-size: 112%; }
.realisations-thumb svg { width: 34px; height: 34px; opacity: .5; }
.realisations-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.realisations-client { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.realisations-body h3 { font-size: 1.05rem; margin: 0; }
.realisations-body p { font-size: .88rem; color: var(--text-45); margin: 0; flex: 1; }
.realisations-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700; color: var(--blue);
  margin-top: 6px; transition: gap .2s var(--ease), color .2s var(--ease);
}
.realisations-link:hover { gap: 10px; color: var(--navy); }
.realisations-nav { display: flex; gap: 10px; margin-top: 6px; }
.realisations-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--text-100);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.realisations-nav button:hover { border-color: var(--blue); color: var(--blue); }
.realisations-nav button:active { transform: scale(.92); }
.realisations-nav svg { width: 18px; height: 18px; }
.realisations-empty { color: var(--text-45); font-size: .92rem; }

/* ---------- Modal (Demande de devis) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 24, .58);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-panel {
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--hairline);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.45);
  padding: 22px 24px 20px;
  transform: translateY(18px) scale(.96);
  transition: transform .35s var(--ease-pop), opacity .3s var(--ease);
}
.modal-overlay.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.modal-head h3 { font-size: 1.15rem; margin: 0; }
.modal-close {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--hairline); background: transparent; color: var(--text-45);
  font-size: 1rem; line-height: 1; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.modal-close:hover { color: var(--text-100); border-color: var(--blue); transform: rotate(90deg); }
.modal-sub { color: var(--text-45); font-size: .84rem; margin-bottom: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.modal-panel .form-row + .form-row, .modal-panel .form-grid-2 + .form-row,
.comment-form .form-row + .form-row, .comment-form .form-grid-2 + .form-row { margin-top: 10px; }

/* Champs réactifs : état invalide visible SEULEMENT après une tentative
   (classe posée par script.js), jamais au premier rendu — sinon un
   formulaire vide s'affiche déjà « en erreur ». */
.form-row.is-invalid input,
.form-row.is-invalid select,
.form-row.is-invalid textarea { border-color: #d64545; }
.form-row-error {
  font-size: .78rem; color: #d64545;
  max-height: 0; overflow: hidden; margin-top: 0;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), max-height .18s var(--ease), margin-top .18s var(--ease);
}
.form-row.is-invalid .form-row-error { opacity: 1; transform: translateY(0); max-height: 1.4em; margin-top: 4px; }

.form-row select {
  border: none; border-bottom: 1.5px solid var(--hairline); border-radius: 0;
  padding: 10px 2px; font-family: inherit; font-size: .96rem;
  background: transparent; color: var(--text-100); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808a99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 16px;
  transition: border-color .2s var(--ease);
}
.form-row select:focus { outline: none; border-color: var(--blue); }

.btn[disabled] { opacity: .6; cursor: default; transform: none !important; }
.btn-spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn[data-loading="true"] .btn-spinner { display: inline-block; }
.btn[data-loading="true"] .btn-label { opacity: .85; }
.btn[data-loading="true"] .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note.is-error { color: #d64545; }
.form-note.is-success { color: var(--blue); }

.form-trust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .78rem; color: var(--text-45); margin: 10px 0 0;
}
.form-trust svg { width: 13px; height: 13px; flex: none; }
.btn svg.btn-icon { width: 16px; height: 16px; }

/* ---------- Cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 180;
  max-width: 620px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px -16px var(--shadow-color);
  padding: 20px 22px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner p { font-size: .86rem; color: var(--text-70); margin: 0 0 10px; }
.cookie-more {
  font-size: .82rem; color: var(--text-45); max-height: 0; overflow: hidden;
  transition: max-height .3s var(--ease);
}
.cookie-more.is-open { max-height: 220px; margin-bottom: 10px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-link { font-size: .82rem; font-weight: 600; color: var(--navy); margin-right: auto; cursor: pointer; }
.cookie-link:hover { color: var(--blue); }

/* ---------- Newsletter (pied de page) ---------- */
.newsletter-col h4 { color: var(--text-100); font-size: .9rem; margin-bottom: 10px; }
.newsletter-col p { font-size: .85rem; color: var(--text-45); margin: 0 0 14px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 180px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit; font-size: .88rem;
  background: var(--surface); color: var(--text-100);
  transition: border-color .2s var(--ease);
}
.newsletter-form input:focus { outline: none; border-color: var(--blue); }
.newsletter-note { font-size: .78rem; margin-top: 8px; min-height: 1.1em; color: var(--blue); font-weight: 600; }

/* ---------- Reveal au scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Entrée plus marquée (badge héros) : zoom + légère rotation, ressort. */
.fade-up-scale {
  opacity: 0;
  transform: scale(.82) rotate(-3deg);
  transition: opacity .8s var(--ease-pop), transform .8s var(--ease-pop);
  transition-delay: var(--delay, 0ms);
}
.fade-up-scale.is-visible { opacity: 1; transform: scale(1) rotate(0deg); }

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* Soulignement des éyebrows qui se « dessine » à l'apparition — un détail
   qui rend la section suivante plus vivante à l'arrivée. */
.section-eyebrow {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.section-eyebrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--blue);
  transition: width .6s var(--ease) .15s;
}
.section-eyebrow.is-visible::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .fade-up-scale, .stagger > *, .cta-float, .btn, .service-icon, .tl-num, .section-eyebrow::after {
    transition-duration: .01ms !important;
    transform: none !important;
  }
  .fade-up, .fade-up-scale, .stagger > * { opacity: 1; }
  .section-eyebrow::after { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(55%, 260px); margin: 0 auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-inner { height: 66px; }
  .brand-text small { display: none; }

  .main-nav { display: none; }
  .nav-toggle { display: flex; z-index: 101; position: relative; }
  .header-actions .btn-primary { display: none; }

  /* ── Tiroir déroulant ─────────────────────────────────────────────────────
     ⚠️ NE JAMAIS dimensionner ce panneau sur la hauteur de viewport
     (`inset:0`, `100vh`…) : certains navigateurs mobiles (barre d'adresse
     dynamique) calculent mal cette hauteur pour un élément `position:fixed`,
     et la page réelle apparaît alors DANS le panneau, sous les liens — bug
     constaté et non un détail cosmétique. Le panneau est donc dimensionné
     par SON PROPRE CONTENU (`top` = hauteur du bandeau, pas de `bottom`),
     avec un plafond de sécurité en cas d'écran très bas. Fond dégradé de
     marque, liens numérotés, entrée en cascade — le style reste immersif,
     seule la stratégie de taille change.
     Compte SES LIENS EN CSS (counter) : fonctionne aussi bien avec le repli
     codé en dur qu'avec le menu injecté par le CMS (js/script.js). */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 66px);
    z-index: 95;
    padding: 12px 28px 24px;
    gap: 2px;
    background:
      radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--blue) 35%, transparent), transparent 55%),
      linear-gradient(165deg, var(--navy-strong) 0%, var(--navy) 55%, var(--blue-strong) 130%);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
    counter-reset: navlink;
    overflow-y: auto;
    animation: navFadeIn .25s var(--ease);
  }
  .main-nav.open a {
    counter-increment: navlink;
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    padding: 13px 2px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    opacity: 0;
    transform: translateY(10px);
    animation: navLinkIn .4s var(--ease-pop) forwards;
    animation-delay: calc(40ms + var(--i, 0) * 45ms);
  }
  .main-nav.open a:nth-child(1) { --i: 1; }
  .main-nav.open a:nth-child(2) { --i: 2; }
  .main-nav.open a:nth-child(3) { --i: 3; }
  .main-nav.open a:nth-child(4) { --i: 4; }
  .main-nav.open a:nth-child(5) { --i: 5; }
  .main-nav.open a:nth-child(6) { --i: 6; }
  .main-nav.open a:nth-child(7) { --i: 7; }
  .main-nav.open a::before {
    content: counter(navlink, decimal-leading-zero);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255,255,255,.55);
  }
  .main-nav.open a::after { display: none; } /* pas de soulignement animé ici */
  .main-nav.open a:active { opacity: .7; }
  .main-nav.open a:last-child { border-bottom: none; }

  .main-nav.open::after {
    content: "Discutons de votre projet : support@newtiv.com";
    order: 99;
    margin-top: 18px;
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    opacity: 0;
    animation: navLinkIn .4s var(--ease-pop) forwards;
    animation-delay: 320ms;
  }

  @keyframes navFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes navLinkIn { to { opacity: 1; transform: translateY(0); } }

  @media (prefers-reduced-motion: reduce) {
    .main-nav.open, .main-nav.open a, .main-nav.open::after {
      animation: none !important; opacity: 1 !important; transform: none !important;
    }
  }

  .hero { padding-top: 66px; }
  .hero-inner { padding-bottom: 44px; gap: 36px; }
  .hero-mark img { width: min(50%, 190px); }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 150px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }

  .section { padding: 64px 0; }
  .service-list { columns: 1; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .footer-bottom { justify-content: flex-start; }

  .cta-float {
    left: 14px; right: 14px; bottom: 14px; max-width: none;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 40px 14px 18px;
  }
  .cta-float p { margin: 0; padding-right: 0; }
  .cta-float-close { top: 50%; transform: translateY(-50%); right: 12px; }

  .form-grid-2 { grid-template-columns: 1fr; }
  .modal-panel { padding: 26px 20px 22px; max-height: 92vh; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 18px; }
}

@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .theme-toggle, .nav-toggle { width: 36px; height: 36px; }
  .hero h1 { font-size: 1.85rem; }
  .verified-badge { font-size: .8rem; }
}

/* ==========================================================================
   BLOG — liste (blog.html) + article (article.html)
   Style éditorial épuré : une colonne de lecture large, peu d'éléments,
   beaucoup de respiration. Le carrousel/carte reprend le langage visuel des
   « Réalisations » pour rester cohérent.
   ========================================================================== */

.blog-hero { padding-bottom: 40px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-empty { color: var(--text-45); font-size: .95rem; grid-column: 1 / -1; }

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px var(--shadow-color); border-color: var(--blue); }
.blog-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt) center/cover no-repeat;
  overflow: hidden;
  transition: background-size .5s var(--ease);
}
.blog-card:hover .blog-card-thumb { background-size: 112%; }
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-meta { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.blog-card-body h3 { font-size: 1.08rem; margin: 0; }
.blog-card-body p { color: var(--text-45); font-size: .9rem; margin: 0; flex: 1; }
.blog-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .85rem; font-weight: 700; color: var(--blue);
  transition: gap .2s var(--ease), color .2s var(--ease);
  margin-top: 4px;
}
.blog-card:hover .blog-card-link { gap: 8px; color: var(--navy); }

/* ---------- Article ---------- */
.article-container { max-width: 720px; }
.article-back { display: inline-flex; margin-bottom: 24px; }
.article-meta {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
}
.article-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 24px; }
.article-cover {
  aspect-ratio: 16 / 8;
  background: var(--bg-alt) center/cover no-repeat;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--text-70); }
.article-body h2 { font-size: 1.4rem; margin: 1.6em 0 .6em; }
.article-body h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.article-body p { margin: 0 0 1.2em; }
.article-body ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--text-100); }
.article-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue);
  color: var(--text-45); font-style: italic;
}
.article-body blockquote p { margin: 0 0 .4em; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.article-tag {
  font-size: .78rem; font-weight: 600; color: var(--navy);
  background: var(--navy-soft); padding: 5px 12px; border-radius: 999px;
}

/* ---------- Commentaires ---------- */
.comments-list { margin: 20px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.comments-empty { color: var(--text-45); font-size: .92rem; }
.comment-item {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.comment-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment-item-head strong { font-size: .92rem; color: var(--text-100); }
.comment-item-head span { font-size: .76rem; color: var(--text-45); }
.comment-item p { margin: 0; font-size: .92rem; color: var(--text-70); }
.comment-form { max-width: 100%; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-cover { aspect-ratio: 16 / 10; margin-bottom: 24px; }
  .article-body { font-size: 1rem; }
}
