/* ==========================================================================
   Klaro — Studio Web — Feuille de style principale
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio', serif;

  --bg: #0a0b0f;
  --bg-alt: #111319;
  --bg-card: #15171f;
  --bg-card-hover: #1b1e28;
  --border: #24272f;
  --text: #f2f3f5;
  --text-muted: #9aa0ac;
  --text-dim: #6b7280;

  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, 0.12);
  --gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --gradient-text: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);

  --success: #34d399;
  --danger: #f87171;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.6);

  --container: 1160px;
  --nav-h: 76px;

  color-scheme: dark;
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-alt: #f3f3f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f6f6fb;
  --border: #e6e6ee;
  --text: #14151a;
  --text-muted: #565a66;
  --text-dim: #8a8f9c;
  --accent-soft: rgba(124, 92, 255, 0.08);
  --shadow: 0 10px 40px -12px rgba(20, 21, 26, 0.12);
  --shadow-lg: 0 24px 60px -16px rgba(20, 21, 26, 0.16);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

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

section { position: relative; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

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

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 12px 32px -8px rgba(124, 92, 255, 0.8); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-block { width: 100%; white-space: normal; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 800;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-tagline { font-size: 10.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }

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

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme='light'] .theme-toggle .icon-sun { display: block; }
[data-theme='light'] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .btn-nav-cta { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--accent-2); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--nav-h) + 76px) 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124,92,255,0.25), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -240px; left: -200px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(34,211,238,0.16), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); }
.hero .lead { font-size: 19px; color: var(--text-muted); margin: 22px 0 36px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 28px; margin-top: 64px; flex-wrap: wrap; }
.hero-badges div { display: flex; flex-direction: column; gap: 4px; }
.hero-badges strong { font-family: var(--font-display); font-size: 28px; }
.hero-badges span { font-size: 13.5px; color: var(--text-dim); }

.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr); gap: 48px; align-items: center; }
.hero-visual-wrap { position: relative; }
.hero-visual {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
  z-index: 0;
}
.hero-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, var(--accent-soft), transparent 60%); }
.hero-visual svg { width: 84%; height: 84%; position: relative; z-index: 1; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.25)); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual img.photo-fail { display: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .hero-visual-wrap { order: -1; max-width: 340px; margin: 0 auto; }
}

.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124,92,255,0.18), transparent 65%);
  pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); max-width: 720px; }
.page-hero p.lead { color: var(--text-muted); font-size: 17px; margin-top: 18px; max-width: 620px; }

/* ---------- Indicateur « défiler vers le bas » ---------- */
/* Invite discrète à glisser vers le bas d'un .page-hero un peu vide en dessous du texte.
   Masquée en JS (classe .hidden) dès que l'élément ciblé par son href devient visible.
   .has-scroll-hint agrandit le padding bas du hero pour garder un vrai espace entre
   le texte et la flèche (sans ça, elle touchait quasiment le bas du dernier paragraphe). */
.page-hero.has-scroll-hint { padding-bottom: 132px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-muted);
  z-index: 2;
  animation: scrollHintBounce 1.8s ease-in-out infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease, color 0.2s ease, border-color 0.2s ease;
}
.scroll-hint svg { width: 18px; height: 18px; }
.scroll-hint:hover { color: var(--accent); border-color: var(--accent); }
.scroll-hint.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

/* ---------- Cards ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--bg-card-hover); }

.icon-tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.icon-tile svg { width: 24px; height: 24px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Process steps ---------- */

.process-step { display: flex; gap: 20px; }
.process-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent-2);
}
.process-step h3 { font-size: 18px; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 15px; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at 50% 0%, rgba(124,92,255,0.15), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-banner p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.cta-banner .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 120px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid p { color: var(--text-muted); font-size: 14.5px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-dim); flex-wrap: wrap; gap: 12px; }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { font-size: 13.5px; color: var(--text-dim); }
.footer-legal-links a:hover { color: var(--accent-2); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent-2); }
.social-links svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pages légales ---------- */

.legal-content { max-width: 760px; }
.legal-updated { font-size: 13.5px; color: var(--text-dim); margin-bottom: 40px; }
.legal-content h2 { font-size: 22px; margin: 44px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin: 22px 0 10px; }
.legal-content p { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 20px; margin: 0 0 14px; }
.legal-content li { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 8px; }
.legal-content strong { color: var(--text); }
.legal-todo {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
}
.legal-todo strong { color: var(--accent-2); }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Tags / badges ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid transparent;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-outline { background: transparent; border-color: var(--border); color: var(--text-muted); }

/* ---------- Portfolio ---------- */

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--gradient); color: #fff; border-color: transparent; }

.project-card { cursor: pointer; overflow: hidden; padding: 0; }
.project-thumb {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}
/* z-index:1 sur le voile assure qu'il reste TOUJOURS au-dessus de la photo (contexte
   d'empilement propre à .project-thumb grâce à son position:relative + overflow:hidden) */
.project-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.15); z-index: 1; }
.project-thumb svg { width: 110px; height: 110px; position: relative; z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3)); }
.project-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-thumb img.photo-fail { display: none; }
.project-body { padding: 26px; }
.project-body .tag-list { margin-bottom: 14px; }
.project-body h3 { font-size: 19px; margin-bottom: 8px; }
.project-body p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }
.project-link { font-size: 14px; font-weight: 600; color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; }
.project-card[hidden] { display: none; }

.project-card:nth-of-type(6n+1) .project-thumb { background: linear-gradient(135deg,#7c5cff,#4c3fd6); }
.project-card:nth-of-type(6n+2) .project-thumb { background: linear-gradient(135deg,#22d3ee,#0891b2); }
.project-card:nth-of-type(6n+3) .project-thumb { background: linear-gradient(135deg,#f472b6,#a855f7); }
.project-card:nth-of-type(6n+4) .project-thumb { background: linear-gradient(135deg,#34d399,#059669); }
.project-card:nth-of-type(6n+5) .project-thumb { background: linear-gradient(135deg,#fb923c,#ea580c); }
.project-card:nth-of-type(6n+6) .project-thumb { background: linear-gradient(135deg,#60a5fa,#2563eb); }

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,7,10,0.72);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-thumb { height: 180px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; align-items: center; justify-content: center; font-size: 46px; position: relative; overflow: hidden; }
.modal-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-thumb img.photo-fail { display: none; }
.modal-content { padding: 32px; }
.modal-content h3 { font-size: 24px; margin-bottom: 10px; }
.modal-content p { color: var(--text-muted); margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.modal-meta div span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 4px; }
.modal-meta div strong { font-size: 14.5px; }

/* ---------- Pricing ---------- */

.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 8px; }
.pricing-card .price { font-family: var(--font-display); font-size: 42px; margin: 16px 0 4px; }
.pricing-card .price span { font-size: 15px; color: var(--text-dim); font-family: var(--font-sans); font-weight: 500; }
.pricing-card .price-note { color: var(--text-dim); font-size: 13.5px; margin-bottom: 24px; }
.pricing-features { margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.pricing-features li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 1px; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  background: none; border: none;
  text-align: left;
  font-size: 16.5px; font-weight: 600;
  color: var(--text);
}
.faq-question .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-question .plus::before, .faq-question .plus::after {
  content: ''; position: absolute; background: var(--accent-2); border-radius: 2px;
}
.faq-question .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-question .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); transition: transform 0.25s ease; }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 4px 22px; color: var(--text-muted); font-size: 15px; max-width: 640px; }
.faq-answer p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); transition: text-decoration-color 0.2s ease; }
.faq-answer p a:hover { text-decoration-color: currentColor; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.form-alert {
  background: rgba(220, 53, 53, 0.08); border: 1px solid var(--danger);
  color: var(--danger); border-radius: 10px; padding: 10px 14px;
  font-size: 13.5px; margin-top: 16px;
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* visibility (pas display) : l'espace du message reste toujours réservé, pour
   qu'un champ qui redevient valide ne fasse jamais sauter la mise en page —
   ce saut pouvait faire « fuir » un bouton juste en dessous au moment du clic. */
.form-field .error-msg { font-size: 12.5px; color: var(--danger); display: block; visibility: hidden; margin-top: 6px; }
.form-field.invalid input, .form-field.invalid textarea, .form-field.invalid select { border-color: var(--danger); }
.form-field.invalid .error-msg { visibility: visible; }

.budget-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.budget-options input { display: none; }
.budget-options label {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.budget-options input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
@media (max-width: 560px) { .budget-options { grid-template-columns: repeat(2, 1fr); } }

.form-success {
  display: none;
  text-align: center;
  padding: 56px 24px;
}
.form-success.show { display: block; }
.form-success .icon-tile { margin: 0 auto 24px; width: 64px; height: 64px; border-radius: 50%; }
.form-success .icon-tile svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--text-muted); }

.contact-info-card { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.contact-info-card .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card > div { min-width: 0; }
.contact-info-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-info-card p { color: var(--text-muted); font-size: 14.5px; overflow-wrap: break-word; }

/* ---------- About page ---------- */

.value-card { text-align: left; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item .year { font-family: var(--font-display); color: var(--accent-2); font-size: 16px; }
.timeline-item h3 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { color: var(--text-muted); font-size: 14.5px; }
@media (max-width: 560px) { .timeline-item { grid-template-columns: 1fr; gap: 6px; } }

.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-photo span { font-family: var(--font-display); font-size: 120px; color: rgba(255,255,255,0.9); }
.about-photo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 55%); }

.skill-tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Services page ---------- */

.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--border); }
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block h2 { font-size: 28px; margin-bottom: 16px; }
.service-block p.desc { color: var(--text-muted); margin-bottom: 24px; }
.service-visual {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.service-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.22), transparent 55%); }
.service-visual svg { width: 62%; height: 62%; position: relative; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.2)); }
.service-feature-list { display: flex; flex-direction: column; gap: 12px; }
.service-feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-muted); }
.service-feature-list li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 800px) {
  .service-block, .service-block.reverse { grid-template-columns: minmax(0, 1fr); direction: ltr; }
  .service-block .service-visual { order: -1; }
}

/* ---------- Utilities ---------- */

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-8 { margin-top: 8px; }
.mb-24 { margin-bottom: 24px; }
.pt-section { padding: 100px 0; }
.pt-section-sm { padding: 64px 0; }

@media (max-width: 640px) {
  .pt-section { padding: 64px 0; }
  .cta-banner { padding: 48px 24px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 56px; }
  .page-hero { padding: calc(var(--nav-h) + 32px) 0 40px; }
  .service-block { padding: 48px 0; gap: 32px; }
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }
