/* ============================================
   AGENCE NUMÉRIQUE XALIPHA — Premium Theme
   Deux thèmes (sombre / clair) à contraste très élevé.
   Toutes les couleurs passent par les variables ci-dessous.
   ============================================ */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --bg-alt: #0e0e0e;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --border: #2e2e2e;
  --border-strong: #4a4a4a;
  --text: #ffffff;
  --text-soft: #f0f0f0;
  --muted: #cfcfcf;
  --accent: #f0c955;          /* or lisible sur fond sombre */
  --accent-strong: #d4af37;   /* or des boutons */
  --accent-strong-2: #b8962e;
  --accent-soft: rgba(240, 201, 85, 0.14);
  --accent-line: rgba(240, 201, 85, 0.35);
  --on-accent: #050505;
  --nav-bg: rgba(5, 5, 5, 0.95);
  --overlay: rgba(0, 0, 0, 0.78);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.4);
  --success: #4ade80;
  --danger: #ff8f8f;
  --warning: #fbbf24;
  --info: #60a5fa;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #f1ede3;
  --border: #d6cfbf;
  --border-strong: #8f8676;
  --text: #050505;
  --text-soft: #141414;
  --muted: #333333;
  --accent: #5a4100;          /* or foncé lisible sur fond blanc */
  --accent-strong: #d4af37;
  --accent-strong-2: #b8962e;
  --accent-soft: rgba(184, 150, 46, 0.16);
  --accent-line: rgba(110, 80, 0, 0.45);
  --on-accent: #050505;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --overlay: rgba(10, 10, 10, 0.6);
  --shadow: 0 18px 50px rgba(30, 24, 10, 0.16);
  --shadow-soft: 0 6px 24px rgba(30, 24, 10, 0.1);
  --success: #0b5320;
  --danger: #941a10;
  --warning: #8a5300;
  --info: #1d4ed8;
}

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong-2));
  color: var(--on-accent);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #e8c547, var(--accent-strong));
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--accent-line);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  max-width: none;
  padding: 0 clamp(16px, 3.5vw, 48px);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
/* Logo toujours calé à gauche, menu (ou hamburger) toujours à droite */
.navbar .logo { margin-right: auto; }
.logo img { height: 74px; width: auto; transition: height .3s ease; }
.navbar.scrolled .logo img { height: 62px; }
.footer-brand .logo img { height: 84px; }
/* Logo selon le thème : texte crème en sombre, texte noir en clair */
.theme-light-only { display: none !important; }
:root[data-theme="light"] .theme-light-only { display: block !important; }
:root[data-theme="light"] .theme-dark-only { display: none !important; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
}
.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--accent); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; }

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

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  z-index: 1002;
  transition: border-color .3s, background .3s;
}
.burger:hover { border-color: var(--accent); }
.burger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform .45s cubic-bezier(.68,-0.35,.27,1.35), opacity .2s, top .45s cubic-bezier(.68,-0.35,.27,1.35), width .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; width: 14px; transform: translateX(-30%); }
.burger span:nth-child(3) { top: 27px; }
.burger.active { border-color: var(--accent); }
.burger.active span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.burger.active span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ========== MENU MOBILE (HAMBURGER) ========== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  clip-path: circle(0 at calc(100% - 46px) 46px);
  visibility: hidden;
  transition: clip-path .7s cubic-bezier(.77,0,.18,1), visibility 0s linear .7s;
  overflow-y: auto;
}
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 0%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.mobile-menu.open {
  clip-path: circle(150% at calc(100% - 46px) 46px);
  visibility: visible;
  transition: clip-path .7s cubic-bezier(.77,0,.18,1), visibility 0s;
}
.mobile-menu-inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 120px 28px 32px;
  max-width: 560px;
  margin: 0 auto;
}
.mobile-links { display: flex; flex-direction: column; }
.mobile-links a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s ease, transform .45s ease, color .2s, padding-left .25s;
}
.mobile-links a .num { font-family: var(--font-main); font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: 1px; min-width: 22px; }
.mobile-links a .txt { flex: 1; }
.mobile-links a i { font-size: 1rem; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s; }
.mobile-links a:hover, .mobile-links a:focus-visible, .mobile-links a.active { color: var(--accent); padding-left: 10px; }
.mobile-links a:hover i, .mobile-links a.active i { opacity: 1; transform: none; }
.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s ease, transform .45s ease;
}
.mobile-menu-footer .btn { width: 100%; }
.mobile-contact { display: flex; flex-direction: column; gap: 10px; }
.mobile-contact a { color: var(--muted); font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.mobile-contact a i { color: var(--accent); width: 18px; }
.mobile-menu-footer .socials { padding-top: 20px; border-top: 1px solid var(--border); }
.mobile-menu-footer .socials a { width: 48px; height: 48px; font-size: 1.1rem; }
.mobile-menu.open .mobile-links a,
.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: none;
  transition-delay: calc(.25s + var(--i) * .06s);
}
body.menu-open { overflow: hidden; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero h1 .line { display: block; }
.hero p {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px dashed var(--accent-line);
}
.hero-visual img { width: 230px; height: auto; filter: drop-shadow(0 20px 40px rgba(212,175,55,0.22)); }

/* ========== SECTIONS ========== */
section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 60px;
}
.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ========== SERVICES CARDS ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-strong), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: var(--accent);
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-family: var(--font-main);
  font-weight: 700;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex-grow: 1;
}
.service-card .link {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
  transition: var(--transition);
}
.service-card .link:hover { gap: 12px; }

/* ========== MODALE « EN SAVOIR PLUS » ========== */
.modal {
  border: none;
  padding: 0;
  margin: auto;
  width: min(880px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  box-shadow: var(--shadow);
  outline: 1px solid var(--accent-line);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modalIn 0.28s ease; }
.modal::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
}
.modal-header .icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  border: 1px solid var(--accent-line);
}
.modal-header .eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}
.modal-header h3 { font-size: 1.7rem; margin-top: 4px; }
.modal-header p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }
.modal-close {
  margin-left: auto;
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border-strong); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.05rem;
  transition: var(--transition);
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.insight-col {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.insight-col h4 {
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.insight-col ul { display: grid; gap: 13px; }
.insight-col li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text-soft); line-height: 1.55; }
.insight-col li i { margin-top: 4px; flex-shrink: 0; }
.insight-col.pros { border-top: 3px solid var(--success); }
.insight-col.pros h4, .insight-col.pros li i { color: var(--success); }
.insight-col.cons { border-top: 3px solid var(--danger); }
.insight-col.cons h4, .insight-col.cons li i { color: var(--danger); }
.insight-col li strong { color: var(--text); }
.modal-footer {
  padding: 22px 32px 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.modal-footer p { color: var(--muted); font-size: 0.92rem; }
.modal-footer .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== ABOUT / STATS ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.stat-item {
  text-align: center;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-item .number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-item .label { color: var(--muted); font-size: 0.92rem; }

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px));
  justify-content: center;
  gap: 28px;
}
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.project-card .img-wrap {
  height: 200px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.project-card .img-wrap i { font-size: 3rem; color: var(--accent); opacity: 0.6; }
.project-card .body { padding: 24px; }
.project-card .cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.project-card h3 { font-size: 1.2rem; margin-bottom: 8px; font-family: var(--font-main); }
.project-card p { color: var(--muted); font-size: 0.9rem; }
.project-card .tech { margin-top: 12px; font-size: 0.8rem; color: var(--accent); font-weight: 600; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0 10px; }
.empty-state .btn { margin-top: 24px; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.testimonial-card .t-photo {
  position: relative;
  height: 240px;
  background: var(--surface-2);
  overflow: hidden;
}
.testimonial-card .t-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  transition: transform 0.6s ease;
}
.testimonial-card:hover .t-photo img { transform: scale(1.04); }
.testimonial-card .t-photo::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}
.testimonial-card .t-photo .initial {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 4rem; color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
}
.testimonial-card .t-badge {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 50px;
  background: rgba(5,5,5,0.8); color: #ffffff;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3px;
  border: 1px solid rgba(240, 201, 85, 0.6);
  backdrop-filter: blur(6px);
}
.testimonial-card .t-badge i { color: #f0c955; }
.testimonial-card .t-quote-mark {
  position: absolute; right: 22px; top: 214px; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong-2));
  color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(212,175,55,0.4);
  border: 4px solid var(--surface);
}
.testimonial-card .t-body { padding: 34px 28px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.testimonial-card .stars {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 0.9rem;
  display: flex; gap: 3px;
}
.testimonial-card .content {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  line-height: 1.75;
  font-style: italic;
  flex-grow: 1;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-card .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent-strong);
}
.testimonial-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.testimonial-card .author-info .name { font-weight: 700; color: var(--text); }
.testimonial-card .author-info .role { font-size: 0.87rem; color: var(--muted); }

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
  text-align: center;
}
.cta-section h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.cta-section p { color: var(--muted); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ========== SERVICE DETAIL / À PROPOS ========== */
.prose { font-size: 1.1rem; line-height: 1.8; color: var(--text-soft); margin-bottom: 48px; }
.prose p + p { margin-top: 24px; }
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
.feature-list li i { color: var(--accent); }
.detail-title { margin-bottom: 24px; color: var(--accent); }
.detail-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.detail-actions { margin-top: 48px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== CONTACT FORM ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-item .text strong { display: block; margin-bottom: 2px; }
.contact-item .text a, .contact-item .text span { color: var(--muted); font-size: 0.97rem; }
.contact-item .text a:hover { color: var(--accent); }
.contact-socials { margin-top: 32px; }
.contact-socials strong { display: block; margin-bottom: 14px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .form-intro { color: var(--muted); margin-bottom: 26px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-control::placeholder { color: var(--muted); opacity: 0.85; }
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b8962e'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-submit { width: 100%; }
.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; font-weight: 500; }
.form-card.highlight { animation: formPulse 1.4s ease; }
@keyframes formPulse {
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.6); }
  100% { box-shadow: 0 0 0 18px rgba(212,175,55,0); }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 300px; margin-bottom: 22px; }
.footer .footer-title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent);
}
.footer ul li { margin-bottom: 12px; color: var(--muted); font-size: 0.92rem; }
.footer ul a { color: var(--muted); font-size: 0.92rem; }
.footer ul a:hover { color: var(--accent); }
.footer ul li i { color: var(--accent); width: 18px; margin-right: 6px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.87rem;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1rem;
}
.socials a:hover { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--on-accent); transform: translateY(-2px); }

/* ========== ALERTS ========== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid currentColor;
  background: var(--surface);
}
.alert-success { color: var(--success); }
.alert-danger { color: var(--danger); }
.alert-warning { color: var(--warning); }
.alert-info { color: var(--info); }
.flash-wrap { padding-top: 110px; position: relative; z-index: 50; }

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: 170px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 16px; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.page-hero .hero-badge { margin-bottom: 20px; }

/* ========== DIVERS (accessibilité, fil d'Ariane, vidéos) ========== */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--accent-strong); color: var(--on-accent); padding: 10px 18px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }
.breadcrumb { padding-top: 130px; margin-bottom: -130px; position: relative; z-index: 2; font-size: .88rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.stats-row.stats-3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.stats-row.stats-2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin-left: auto; margin-right: auto; }
.project-card .img-wrap.has-video { height: auto; aspect-ratio: 16 / 9; background: #000; }
.project-card .img-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.project-card .cat i { margin-right: 2px; }
.project-card .link { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: .9rem; }
.demos-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px)); }
address { font-style: normal; }

/* ========== À PROPOS ========== */
.about-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.statement { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.25; }
.about-split .prose { margin-bottom: 0; }
.process { list-style: none; display: grid; gap: 0; counter-reset: none; }
.process li { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--border); position: relative; }
.process li:last-child { border-bottom: none; }
.process .step { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.process h3 { font-family: var(--font-main); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.process p { color: var(--muted); }
.commitments { display: grid; gap: 0; }
.commitments li { display: flex; gap: 24px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid var(--border); }
.commitments li:last-child { border-bottom: none; }
.commitments i { font-size: 1.35rem; color: var(--accent); width: 32px; margin-top: 4px; text-align: center; }
.commitments h3 { font-family: var(--font-main); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.commitments p { color: var(--muted); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1440px) {
  .nav-links { gap: 22px; }
  .navbar .logo img { height: 64px; }
  .navbar.scrolled .logo img { height: 56px; }
}
@media (max-width: 1280px) {
  .nav-links { display: none; }
  .burger { display: inline-block; }
}
@media (max-width: 992px) {
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row, .stats-row.stats-3 { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .stats-row.stats-3 { grid-template-columns: 1fr; }
  .process li { grid-template-columns: 56px 1fr; gap: 16px; }
  .commitments li { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .modal-body, .detail-insights { grid-template-columns: 1fr; }
  .modal-header, .modal-body, .modal-footer { padding-left: 20px; padding-right: 20px; }
  .modal-header h3 { font-size: 1.35rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 28px 22px; }
  .navbar .logo img, .navbar.scrolled .logo img { height: 54px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .cta-section .btn, .modal-footer .btn, .detail-actions .btn { width: 100%; }
  .logo img, .navbar.scrolled .logo img { height: 50px; }
  .navbar .logo img, .navbar.scrolled .logo img { height: 46px; }
  .nav-inner, .nav-actions { gap: 10px; }
  .modal-footer .actions { width: 100%; }
  .modal-header .icon { display: none; }
  .modal-header p { font-size: 0.92rem; }
}

@media (max-width: 360px) {
  .navbar .logo img, .navbar.scrolled .logo img { height: 38px; }
  .theme-toggle { width: 40px; height: 40px; }
  .burger { width: 42px; height: 42px; }
  .burger span:nth-child(1) { top: 13px; }
  .burger span:nth-child(2), .burger.active span:nth-child(1), .burger.active span:nth-child(3) { top: 19px; }
  .burger span:nth-child(3) { top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
