:root {
  --bg: #071226;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f5ff;
  --muted: #a3aecb;
  --sky: #3fb0f0;
  --violet: #2f8fe8;
  --pink: #6fd9cc;
  --grad: linear-gradient(120deg, #2f8fe8, #45b6ee 50%, #6fd9cc);
  --ink: #051530;
  --radius: 22px;
  --max: 1180px;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: rgba(63, 176, 240, 0.5); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

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

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; }
h1 em, .grad-text { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
p { color: var(--muted); }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Fond ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; animation: orb 22s ease-in-out infinite alternate; }
.orb-1 { width: 560px; height: 560px; top: -180px; left: -120px; background: #1d6fe0; }
.orb-2 { width: 520px; height: 520px; top: 10%; right: -180px; background: #0e7fb8; animation-delay: -8s; }
.orb-3 { width: 460px; height: 460px; bottom: -200px; left: 35%; background: #2dd4bf; opacity: 0.22; animation-delay: -14s; }
@keyframes orb { to { transform: translate(60px, 50px) scale(1.12); } }
.mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--grad); background-size: 160% 100%;
  color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 12px 34px -12px rgba(63, 176, 240, 0.8);
  transition: transform 0.25s, box-shadow 0.25s, background-position 0.4s;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(63, 176, 240, 0.95); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 50; padding: 0 16px; }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 12px 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav-inner { position: relative; }
.nav-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.3s; background: rgba(9, 22, 46, 0.72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8); }
.nav.scrolled .nav-inner { border-color: var(--line); }
.nav.scrolled .nav-inner::before { opacity: 1; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.2rem; font-weight: 500; letter-spacing: 0.02em; }
.logo b { font-weight: 800; color: var(--sky); margin-right: -10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #13233c url("images/logo-icon.png") center / cover no-repeat; }
.menu { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; font-weight: 500; }
.menu a:not(.btn) { color: var(--muted); transition: color 0.2s; }
.menu a:not(.btn):hover { color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; position: relative; z-index: 2; }
.burger span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; transition: transform 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.500px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.500px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(140px, 18vh, 190px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 52ch; margin: 24px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; font-size: 0.9rem; color: var(--muted); }
.hero-tags li { display: flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.hero-visual { position: relative; min-height: 440px; }
.hero-visual .browser { position: absolute; top: 20px; left: 0; right: 40px; transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); }
.hero-visual .phone { position: absolute; right: 0; bottom: 0; width: 168px; }
.badge {
  position: absolute; left: -10px; bottom: 44px;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px;
  font-size: 0.9rem; font-weight: 600;
  background: rgba(14, 20, 42, 0.85); border: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
}
.badge svg { width: 20px; height: 20px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.float-a { animation: floatA 9s ease-in-out infinite; }
.float-b { animation: floatB 7s ease-in-out infinite; }
.float-c { animation: floatB 8s ease-in-out infinite reverse; }
@keyframes floatA { 50% { translate: 0 -12px; } }
@keyframes floatB { 50% { translate: 0 14px; } }

/* ---------- Maquettes (navigateur / téléphone) ---------- */
.browser {
  border-radius: 16px; overflow: hidden;
  background: #0d1430; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.browser-bar i:nth-child(1) { background: #ff6b6b; }
.browser-bar i:nth-child(2) { background: #ffd166; }
.browser-bar i:nth-child(3) { background: #4ade80; }
.browser-bar .url { margin-left: 12px; flex: 1; max-width: 220px; height: 18px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.62rem; line-height: 18px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.screen { position: relative; aspect-ratio: 16 / 10; padding: 6%; overflow: hidden; background: var(--g, linear-gradient(135deg, #0b2a66, #1f7fd6 60%, #5fd0c8)); }
.screen img, .phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* squelette "site" */
.sk-nav { display: flex; align-items: center; gap: 5%; margin-bottom: 9%; }
.sk-nav b { width: 14%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.9); margin-right: auto; }
.sk-nav span { width: 8%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); }
.sk-title { width: 62%; height: 14px; border-radius: 6px; background: rgba(255, 255, 255, 0.92); margin-bottom: 3%; }
.sk-title.short { width: 44%; }
.sk-text { width: 52%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); margin: 4% 0 5%; box-shadow: 0 12px 0 -1px rgba(255, 255, 255, 0.25); }
.sk-btns { display: flex; gap: 3%; margin-top: 8%; }
.sk-btns b { width: 20%; height: 16px; border-radius: 999px; background: #fff; }
.sk-btns span { width: 18%; height: 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.sk-cards { position: absolute; left: 6%; right: 6%; bottom: -8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.sk-cards i { aspect-ratio: 4 / 3; border-radius: 10px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(4px); }

/* squelette "application web" */
.sk-app { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; }
.sk-side { background: rgba(0, 0, 0, 0.28); padding: 14% 16%; display: grid; gap: 9px; align-content: start; }
.sk-side b { height: 9px; width: 70%; border-radius: 4px; background: #fff; margin-bottom: 10px; }
.sk-side i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.sk-side i:nth-of-type(1) { background: rgba(255, 255, 255, 0.9); }
.sk-main { padding: 6%; display: grid; grid-template-rows: auto auto 1fr; gap: 7%; }
.sk-main > b { width: 38%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.9); }
.sk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.sk-kpis i { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.2); }
.sk-chart { border-radius: 10px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); display: flex; align-items: flex-end; gap: 5%; padding: 5% 6% 0; }
.sk-chart i { flex: 1; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, 0.8); }

/* téléphone */
.phone { aspect-ratio: 9 / 18.500; padding: 7px; border-radius: 30px; background: #0a0f24; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 40px 70px -28px rgba(0, 0, 0, 0.95); }
.phone-screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; padding: 16% 9% 0; background: var(--g, linear-gradient(160deg, #6fd9cc, #3fb0f0 50%, #1d5fc4)); display: flex; flex-direction: column; gap: 6%; }
.phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 9px; height: 9px; margin-left: -4.500px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); z-index: 2; }
.ph-top { width: 50%; height: 9px; border-radius: 5px; background: #fff; }
.ph-card.big { height: 30%; border-radius: 14px; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.3); }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.ph-row i { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.24); }
.ph-line { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.5); }
.ph-line.short { width: 60%; }
.ph-tab { position: absolute; left: 0; right: 0; bottom: 0; height: 11%; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: space-around; }
.ph-tab i { width: 12px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.45); }
.ph-tab i:first-child { background: #fff; }

/* ---------- Bandeau défilant ---------- */
.marquee { margin-top: clamp(64px, 9vw, 110px); padding: 20px 0; border-block: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--display); font-size: 1.05rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.marquee span::after { content: "✦"; font-size: 0.8rem; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .sub { margin-top: 14px; font-size: 1.05rem; }

/* cartes */
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(63, 176, 240, 0.22), transparent 65%);
}
.spot:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { margin-bottom: 10px; }

.bento { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.bento .card { grid-column: span 2; }
.bento .card-wide { grid-column: span 3; }
.icon { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 22px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 12px 26px -12px rgba(63, 176, 240, 0.9); }
.icon svg { width: 25px; height: 25px; fill: none; stroke: var(--ink); stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; color: #d5dcf3; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { padding: 10px 20px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: color 0.2s, background 0.2s, border-color 0.2s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.chip.active { color: var(--ink); font-weight: 600; background: var(--grad); border-color: transparent; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; padding: 0; color: inherit; }
.project.hidden { display: none; }
.project-visual { position: relative; display: grid; place-items: center; padding: 34px 30px 0; height: 250px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent); }
.project-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, rgba(7, 18, 38, 0.55)); pointer-events: none; }
.project-visual .browser { width: 100%; align-self: start; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.project-visual .phone { width: 150px; align-self: start; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.project:hover .browser, .project:hover .phone { transform: translateY(-10px) scale(1.02); }
.project-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin-bottom: 8px; }
.project-body p { font-size: 0.95rem; }
.project-body .tags { margin-top: auto; padding-top: 20px; }
.project-link { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(9, 22, 46, 0.75); border: 1px solid var(--line); backdrop-filter: blur(8px); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.project-link svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project:hover .project-link { opacity: 1; transform: none; }

.more { margin-top: 36px; text-align: center; font-size: 1.05rem; }
.more a { color: var(--sky); font-weight: 600; white-space: nowrap; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 64px; height: 2px; background: var(--grad); }
.num { display: block; margin-bottom: 14px; font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.steps h3 { margin-bottom: 8px; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about h2 { margin-bottom: 22px; }
.about p { margin-bottom: 16px; max-width: 56ch; }
.about .btn { margin-top: 14px; }
.values { display: grid; gap: 16px; }
.values-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 48px; }
.values .card { padding: 24px 28px; }
.values strong { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.values span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-box {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start;
  padding: clamp(28px, 5vw, 60px); border-radius: 32px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(47, 143, 232, 0.2), rgba(63, 176, 240, 0.12) 55%, rgba(111, 217, 204, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-box h2 { margin-bottom: 16px; }
.contact-list { margin-top: 32px; display: grid; gap: 18px; }
.contact-list span { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { border-bottom: 1px solid rgba(56, 189, 248, 0.6); }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: rgba(7, 18, 38, 0.6); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.field { display: grid; gap: 7px; }
label { font-size: 0.86rem; font-weight: 500; color: #d5dcf3; }
input, select, textarea { width: 100%; padding: 13px 15px; border-radius: 13px; font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
select option { background: #0d1430; color: var(--text); }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(63, 176, 240, 0.2); }
.field.invalid input, .field.invalid textarea { border-color: #fb7185; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-status { min-height: 1.4em; font-size: 0.9rem; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fda4af; }

/* ---------- Pied de page ---------- */
.footer { margin-top: clamp(80px, 10vw, 120px); border-top: 1px solid var(--line); padding: 30px 0; }
.about-logo { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); justify-self: center; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer p { font-size: 0.9rem; }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.visible.card:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; height: clamp(300px, 62vw, 460px); max-width: 620px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact-box { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .card, .bento .card-wide { grid-column: span 1; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 30px; font-size: 1.35rem; background: rgba(7, 18, 38, 0.97); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
  .menu.open { opacity: 1; visibility: visible; }
}
@media (max-width: 620px) {
  .bento, .steps { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .hero-visual .phone { width: 120px; }
  .hero-visual .browser { right: 24px; }
  .badge { display: none; }
  .card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Contact direct (affiché tant qu'aucune adresse e-mail n'est configurée) */
.contact-direct[hidden], .form[hidden] { display: none; }
.contact-direct { align-content: start; }
.contact-direct h3 { margin-bottom: -6px; }
.contact-direct .btn { justify-self: stretch; text-align: center; }
