:root {
  --bg: #0F0F13;
  --bg2: #16161D;
  --bg3: #1C1C26;
  --purple: #9B8FFF;
  --purple-dark: #5B5BD6;
  --purple-glow: rgba(155, 143, 255, 0.12);
  --purple-glow2: rgba(155, 143, 255, 0.06);
  --green: #3DDB85;
  --blue: #5EB8FF;
  --white: #EEEEF5;
  --muted: #7878A0;
  --muted2: #55556E;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --border-purple: rgba(155, 143, 255, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  display: block;
  width: 100%;
  height: 100%;
}

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 0 1.25rem;
  transition: background 0.3s, border-color 0.3s;
}

#nav.scrolled {
  background: rgba(15, 15, 19, 0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  z-index: 201;
  position: relative;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
}

.logo-x {
  color: var(--purple);
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-btn {
  padding: 0.45rem 1.1rem !important;
  background: var(--purple-glow2) !important;
  border: 1px solid var(--border-purple) !important;
  border-radius: 6px !important;
  color: var(--purple) !important;
  transition: background 0.2s !important;
}

.nav-btn:hover {
  background: var(--purple-glow) !important;
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
  position: relative;
  touch-action: manipulation;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(15, 15, 19, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 199;
  padding: 2rem;
}

.nav-links.open li {
  list-style: none;
}

.nav-links.open a {
  font-size: 1.4rem;
  color: var(--white);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 88px 1.25rem 60px;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-left {
  width: 100%;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.grad-text {
  background: linear-gradient(135deg, #9B8FFF 0%, #C4B9FF 50%, #5EB8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-right {
  display: none;
}

.btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  background: var(--purple);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  touch-action: manipulation;
}

.btn-main:hover {
  background: #B0A5FF;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(155, 143, 255, 0.3);
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: transparent;
  transition: background 0.2s;
  text-align: center;
  touch-action: manipulation;
}

.btn-outline:hover {
  background: var(--bg3);
}

.card-mockup {
  width: 100%;
  max-width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 80px rgba(155, 143, 255, 0.25);
  animation: floatCard 7s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.cm-header {
  background: var(--bg3);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.cm-dots {
  display: flex;
  gap: 5px;
}

.cm-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cm-dots span:nth-child(1) { background: #FF5F57; }
.cm-dots span:nth-child(2) { background: #FFBD2E; }
.cm-dots span:nth-child(3) { background: #28C840; }

.cm-url {
  flex: 1;
  min-width: 0;
  font-size: 0.65rem;
  color: var(--muted2);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(61, 219, 133, 0.1);
  color: var(--green);
  border: 1px solid rgba(61, 219, 133, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.cm-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg3);
  border-radius: 6px;
}

.cm-nav-logo { width: 50px; height: 8px; background: var(--border2); border-radius: 4px; }
.cm-nav-links { display: flex; gap: 8px; }
.cm-nav-links div { width: 24px; height: 6px; background: var(--border); border-radius: 3px; }

.cm-hero-area {
  background: linear-gradient(135deg, rgba(155, 143, 255, 0.08), rgba(94, 184, 255, 0.05));
  border: 1px solid var(--border-purple);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmtl-1 { height: 12px; width: 80%; background: var(--border2); border-radius: 6px; }
.cmtl-2 { height: 12px; width: 60%; background: linear-gradient(90deg, var(--purple-dark), var(--purple)); border-radius: 6px; opacity: 0.7; }
.cmtl-3 { height: 8px; width: 90%; background: var(--border); border-radius: 4px; }
.cm-cta-block { display: flex; gap: 8px; }
.cm-cta-btn { height: 22px; width: 80px; background: var(--purple); border-radius: 5px; opacity: 0.8; }
.cm-cta-ghost { height: 22px; width: 70px; border: 1px solid var(--border2); border-radius: 5px; }
.cm-cards { display: flex; gap: 8px; }
.cm-card { flex: 1; height: 48px; border-radius: 6px; background: var(--bg3); border: 1px solid var(--border); }
.cm-card.c1 { border-color: var(--border-purple); background: var(--purple-glow2); }
.cm-footer-bar { display: flex; gap: 8px; padding: 10px 14px; background: var(--bg3); border-top: 1px solid var(--border); }
.cf-item { flex: 1; height: 6px; background: var(--border); border-radius: 3px; }
.cf-item:nth-child(2) { flex: 2; background: var(--border2); }

section {
  position: relative;
  z-index: 1;
  padding: 70px 1.25rem;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-glow2);
  border: 1px solid var(--border-purple);
  padding: 0.28rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.projets {
  background: var(--bg2);
}

.projets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.proj-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s;
}

.proj-card:hover {
  border-color: var(--border-purple);
  transform: translateY(-4px);
}

.proj-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg3);
}

.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.proj-card:hover .proj-img-wrap img {
  transform: scale(1.04);
}

.proj-img-wrap.no-img img {
  display: none;
}

.proj-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: absolute;
  inset: 0;
  background: var(--bg3);
}

.proj-img-wrap.no-img .proj-placeholder {
  display: flex;
}

.proj-placeholder span {
  font-size: 0.7rem;
  color: var(--muted2);
  font-family: monospace;
}

.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 15, 0.88);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proj-card:hover .proj-overlay {
  opacity: 1;
}

.proj-overlay-inner {
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.proj-card:hover .proj-overlay-inner {
  transform: translateY(0);
}

.proj-overlay-inner h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.3rem 0 0.35rem;
}

.proj-overlay-inner p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.proj-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid var(--border-purple);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.proj-cta:hover { color: #C4B9FF; }

.proj-meta {
  padding: 0.9rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.proj-meta-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.proj-meta h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.proj-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-glow2);
  border: 1px solid var(--border-purple);
  padding: 2px 7px;
  border-radius: 4px;
}

.chateau-tag {
  color: #90C070;
  background: rgba(144, 192, 112, 0.06);
  border-color: rgba(144, 192, 112, 0.25);
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.proj-stack span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted2);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
}

.competences {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  perspective: 1000px;
}

.skill-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155, 143, 255, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-card:hover {
  border-color: var(--border-purple);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-purple);
}
.skill-card:hover::before, .skill-card:hover::after {
  opacity: 1;
}

.skill-card.html::before { background: linear-gradient(90deg, #E34F26, #FF7043); }
.skill-card.css::before { background: linear-gradient(90deg, #1572B6, #42A5F5); }
.skill-card.js::before { background: linear-gradient(90deg, #c4a800, #F7DF1E); }
.skill-card.seo::before { background: linear-gradient(90deg, #2E7D32, #3DDB85); }
.skill-card.responsive::before { background: linear-gradient(90deg, #0288D1, #5EB8FF); }
.skill-card.analytics::before { background: linear-gradient(90deg, #6A1B9A, #9B8FFF); }

.skill-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.skill-ico i {
  font-size: 20px;
  line-height: 1;
}

.skill-ico.html i { color: #E34F26; }
.skill-ico.css i { color: #1572B6; }
.skill-ico.js i { color: #F7DF1E; }
.skill-ico.seo i { color: var(--green); }
.skill-ico.responsive i { color: var(--blue); }
.skill-ico.design i { color: var(--purple); }

.skill-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.skill-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.skill-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.tarifs {
  background: var(--bg2);
}

.tarifs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.tarif-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.tarif-card:hover {
  border-color: var(--border2);
}

.tarif-card.featured {
  border-color: var(--border-purple);
  background: linear-gradient(180deg, rgba(155, 143, 255, 0.07) 0%, var(--bg3) 100%);
  box-shadow: 0 12px 40px rgba(155, 143, 255, 0.1);
  margin-top: 0.75rem;
}

.tarif-card.featured:hover {
  border-color: var(--purple);
}

.tc-best {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--purple);
  color: #fff;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.tc-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.tc-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.tc-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}

.tarif-card.featured .tc-price {
  color: var(--purple);
}

.tc-ht {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
}

.tc-divider {
  height: 1px;
  background: var(--border);
  margin: 1.1rem 0;
}

.tc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.tc-list li {
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tc-list li::before {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: 58%;
  background-repeat: no-repeat;
  background-position: center;
}

.tc-list li.ok { color: var(--white); }

.tc-list li.ok::before {
  background-color: rgba(61, 219, 133, 0.12);
  border: 1px solid rgba(61, 219, 133, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5L4.5 7.5L8 3' stroke='%233DDB85' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

.tc-list li.no { color: var(--muted2); }

.tc-list li.no::before {
  background-color: var(--bg);
  border: 1px solid var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 3L7 7M7 3L3 7' stroke='%2355556E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.tc-btn {
  display: block;
  text-align: center;
  padding: 0.72rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border2);
  color: var(--white);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
  touch-action: manipulation;
}

.tc-btn:hover {
  background: var(--purple);
  color: #fff;
}

.tc-btn-featured {
  background: var(--purple);
  border-color: transparent;
  color: #fff;
}

.tc-btn-featured:hover {
  background: #B0A5FF;
  box-shadow: 0 4px 20px rgba(155, 143, 255, 0.3);
}

.contact {
  background: var(--bg);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cib-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.cib-line svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.cib-line a, .cib-line span {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.cib-line a:hover {
  color: var(--white);
}

.contact-note {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted2);
  border-left: 2px solid var(--border-purple);
  padding-left: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted2);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1L5.5 6L10 1' stroke='%237878A0' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg3);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-purple);
  background: var(--bg3);
  box-shadow: 0 0 0 3px rgba(155, 143, 255, 0.07);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-mention {
  font-size: 0.7rem;
  color: var(--muted2);
  line-height: 1.5;
}

#submitBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  touch-action: manipulation;
}

#submitBtn.loading .btn-text { opacity: 0; }
#submitBtn.loading .btn-loader { display: block; }

.btn-loader {
  display: none;
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.form-success,
.form-error {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid;
}

.form-success {
  color: var(--green);
  background: rgba(61, 219, 133, 0.06);
  border-color: rgba(61, 219, 133, 0.2);
}

.form-error {
  color: #FF6B6B;
  background: rgba(255, 107, 107, 0.06);
  border-color: rgba(255, 107, 107, 0.2);
}

.form-success.visible,
.form-error.visible {
  display: flex;
}

footer {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.f-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.f-logo span {
  color: var(--purple);
}

.f-logo small {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted2);
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
}

.f-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.f-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.f-links a:hover {
  color: var(--white);
}

.f-copy {
  font-size: 0.76rem;
  color: var(--muted2);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (min-width: 560px) {
  .hero-btns {
    flex-direction: row;
  }

  .btn-main, .btn-outline {
    width: auto;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card {
    flex-direction: column;
    padding: 1.6rem;
  }

  .skill-ico {
    width: 46px;
    height: 46px;
  }

  .skill-ico i {
    font-size: 24px;
  }

  .tarifs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  #submitBtn {
    width: auto;
    min-width: 190px;
  }

  .form-mention {
    max-width: 240px;
  }
}

@media (min-width: 768px) {
  section {
    padding: 80px 1.5rem;
  }

  .projets-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .proj-card {
    height: 100%;
  }

  .proj-img-wrap {
    aspect-ratio: 16 / 9;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tarifs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tarif-card.featured {
    transform: translateY(-6px);
    margin-top: 0;
  }

  .contact-wrap {
    grid-template-columns: 240px 1fr;
    gap: 3rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .f-links {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  #nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: flex;
  }

  .burger {
    display: none;
  }

  .hero {
    padding: 100px 1.5rem 80px;
  }

  .hero-inner {
    flex-direction: row;
    gap: 4rem;
    align-items: center;
  }

  .hero-left {
    flex: 1;
  }

  .hero-right {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
  }

  h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .skills-grid {
    perspective: 1100px;
    perspective-origin: 50% 30%;
  }

  .skill-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .skill-card:hover {
    transform: rotateY(10deg) rotateX(6deg) translateY(-8px);
  }

  section {
    padding: 90px 1.5rem;
  }
}

@media (min-width: 768px) {
  .projets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .proj-featured {
    grid-column: auto;
  }

  .proj-card {
    height: 100%;
  }

  .proj-img-wrap {
    aspect-ratio: 16 / 9;
  }

  .proj-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 768px) {
  .projets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  .projets-grid > .proj-featured {
    grid-column: auto / auto !important;
  }

  .projets-grid > .proj-card {
    height: 100% !important;
  }

  .projets-grid > .proj-card .proj-img-wrap {
    aspect-ratio: 16 / 9 !important;
  }

  .projets-grid > .proj-card .proj-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .skills-grid {
    perspective: 1100px !important;
    perspective-origin: 50% 30% !important;
  }

  .skill-card {
    transform-style: preserve-3d;
    will-change: transform;
  }

  .skill-card:hover {
    transform: rotateY(10deg) rotateX(6deg) translateY(-8px) !important;
  }
}

  
.ia-cta {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ia-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 0;
}

.ia-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-glow2);
  border: 1px solid var(--border-purple);
  padding: 0.28rem 0.85rem;
  border-radius: 20px;
}

.ia-cta-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ia-cta h2 {
  margin-bottom: 0;
}

.ia-cta-sub {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
}

.ia-cta-btn {
  margin-top: 0.25rem;
}

  