/* ==========================================================================
   NEON ARCHITECT // Webconnecte — Version 2.0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* ── VARIABLES ───────────────────────────────────────────── */
:root {
  --bg-pure:    #000000;
  --bg-surface: #050505;
  --bg-card:    #0A0A0A;

  --primary:    #00CFFF;
  --secondary:  #3B82F6;
  --accent-1:   #A855F7;
  --accent-2:   #D946EF;

  --text-high:  #FFFFFF;
  --text-mid:   rgba(255,255,255,0.68);
  --text-low:   rgba(255,255,255,0.38);

  --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-accent:  linear-gradient(135deg, var(--accent-1), var(--accent-2));

  --glow-primary: 0 0 18px rgba(0,207,255,0.3);
  --glow-accent:  0 0 18px rgba(168,85,247,0.3);

  --border-tech: 1px solid rgba(255,255,255,0.07);

  --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --gutter: max(1.5rem, calc((100vw - 1100px) / 2));
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg-pure);
}

body {
  background: transparent; /* laisse passer les couches de fond (grille + vignette + canvas) */
  color: var(--text-high);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Grid lines background — stays behind the animated canvas (#bg-canvas at z-index 0) */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,207,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,207,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* Radial vignette for ambient depth */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at top, rgba(0,207,255,0.035) 0%, transparent 55%),
              radial-gradient(ellipse at bottom, rgba(168,85,247,0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

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

/* ── ACCESSIBILITY ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--primary);
  color: #000;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.title--glitch {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0,207,255,0.4));
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-mid);
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-tech);
  transition: all var(--transition);
}

header.scrolled {
  background: rgba(0,0,0,0.95);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(0,207,255,0.12);
}

/* Logo */
header > a { display: flex; align-items: center; flex-shrink: 0; }
header > a img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: filter var(--transition);
}
header > a:hover img { filter: drop-shadow(0 0 8px var(--primary)); }

/* Nav links */
nav[aria-label="Navigation principale"] ul {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

nav[aria-label="Navigation principale"] a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  padding: 0.3rem 0;
}

nav[aria-label="Navigation principale"] a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

nav[aria-label="Navigation principale"] a:hover,
nav[aria-label="Navigation principale"] a[aria-current="page"] {
  color: var(--text-high);
}
nav[aria-label="Navigation principale"] a:hover::after,
nav[aria-label="Navigation principale"] a[aria-current="page"]::after {
  width: 100%;
}

/* Burger button */
#nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: var(--border-tech);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1001;
  transition: border-color var(--transition);
}
#nav-toggle:hover { border-color: var(--primary); }

#nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-high);
  transition: all var(--transition);
  transform-origin: center;
}

#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
section[aria-labelledby="hero-heading"] {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(80px + 4rem) var(--gutter) 4rem;
  overflow: hidden;
}

section[aria-labelledby="hero-heading"]::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(0,207,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

section[aria-labelledby="hero-heading"] h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 1.25rem;
  line-height: 1.05;
  animation: fadeInUp 0.7s ease 0.15s both;
}

section[aria-labelledby="hero-heading"] > p:not([hidden]):not(.section-label) {
  font-family: var(--font-mono);
  color: var(--text-mid);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  max-width: 500px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

section[aria-labelledby="hero-heading"] .section-label {
  animation: fadeInUp 0.6s ease 0.05s both;
}

/* Hero actions wrapper */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}

/* Data panel */
.data-panel {
  background: rgba(5,5,5,0.92);
  border: var(--border-tech);
  border-left: 2px solid var(--primary);
  border-radius: 16px 0 16px 0;
  padding: 1.5rem 2rem;
  font-family: var(--font-mono);
  max-width: 280px;
  box-shadow: var(--glow-primary);
  animation: fadeInUp 0.8s ease 0.5s both;
}

.data-panel__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.data-panel__item:last-child { border-bottom: none; }
.data-panel__label { color: var(--text-low); font-size: 0.7rem; letter-spacing: 0.15em; }
.data-panel__value { color: var(--primary); font-weight: 700; font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS / CTA
   ═══════════════════════════════════════════════════════════ */
a[role="button"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  white-space: nowrap;
  background: var(--grad-primary);
  color: #000;
  box-shadow: 0 0 20px rgba(0,207,255,0.15);
  border-radius: 12px 0 12px 0;
}

a[role="button"]:hover,
button[type="submit"]:hover {
  background: var(--grad-accent);
  box-shadow: 0 0 30px rgba(168,85,247,0.35);
  transform: translateY(-2px);
  color: #fff;
}

/* Ghost button variant */
.btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: var(--text-mid) !important;
}
.btn-ghost:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(0,207,255,0.05) !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════
   GENERIC SECTIONS
   ═══════════════════════════════════════════════════════════ */
main {
  position: relative;
  z-index: 1;
}

main > section {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES / VALUES / CHIFFRES — Card Grids
   ═══════════════════════════════════════════════════════════ */
section[aria-labelledby="services-heading"] ul,
section[aria-labelledby="values-heading"] ul,
section[aria-labelledby="chiffres-heading"] ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

section[aria-labelledby="services-heading"] article,
section[aria-labelledby="values-heading"] article,
section[aria-labelledby="chiffres-heading"] article {
  background: var(--bg-card);
  border: var(--border-tech);
  border-radius: 24px 0 24px 0;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

section[aria-labelledby="services-heading"] article::before,
section[aria-labelledby="values-heading"] article::before,
section[aria-labelledby="chiffres-heading"] article::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--grad-primary);
  transition: height 0.4s ease;
}

section[aria-labelledby="services-heading"] article:hover,
section[aria-labelledby="values-heading"] article:hover,
section[aria-labelledby="chiffres-heading"] article:hover {
  transform: translateY(-5px);
  border-color: rgba(0,207,255,0.2);
  box-shadow: 0 16px 50px rgba(0,207,255,0.06);
}

section[aria-labelledby="services-heading"] article:hover::before,
section[aria-labelledby="values-heading"] article:hover::before,
section[aria-labelledby="chiffres-heading"] article:hover::before {
  height: 100%;
}

/* Card text */
section[aria-labelledby="services-heading"] article h3,
section[aria-labelledby="values-heading"] article h3,
section[aria-labelledby="chiffres-heading"] article h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

section[aria-labelledby="services-heading"] article p,
section[aria-labelledby="values-heading"] article p,
section[aria-labelledby="chiffres-heading"] article p {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

section[aria-labelledby="services-heading"] article a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: letter-spacing var(--transition);
}
section[aria-labelledby="services-heading"] article a:hover {
  letter-spacing: 0.18em;
  text-shadow: 0 0 8px var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES PAGE — Detailed sections
   ═══════════════════════════════════════════════════════════ */
section[id="web"] ul,
section[id="strategie"] ul,
section[id="seo"] ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

section[id="web"] article,
section[id="strategie"] article,
section[id="seo"] article {
  background: var(--bg-card);
  border: var(--border-tech);
  border-radius: 24px 0 24px 0;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

section[id="web"] article::before,
section[id="strategie"] article::before,
section[id="seo"] article::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--grad-primary);
  transition: height 0.4s ease;
}

section[id="web"] article:hover,
section[id="strategie"] article:hover,
section[id="seo"] article:hover {
  transform: translateY(-5px);
  border-color: rgba(0,207,255,0.2);
  box-shadow: 0 16px 50px rgba(0,207,255,0.06);
}

section[id="web"] article:hover::before,
section[id="strategie"] article:hover::before,
section[id="seo"] article:hover::before {
  height: 100%;
}

section[id="web"] article h3,
section[id="strategie"] article h3,
section[id="seo"] article h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

section[id="web"] article p,
section[id="strategie"] article p,
section[id="seo"] article p {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════ */
form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

form > div[role="group"] {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-row > div[role="group"] {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

label span[aria-hidden="true"] { color: var(--primary); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: var(--bg-card);
  border: var(--border-tech);
  border-radius: 8px 0 8px 0;
  color: var(--text-high);
  font-family: var(--font-main);
  font-size: 0.93rem;
  padding: 0.85rem 1.2rem;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300CFFF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
select option { background: #0A0A0A; color: #fff; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(0,207,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,207,255,0.08), var(--glow-primary);
}

textarea { resize: vertical; min-height: 130px; }

span[role="alert"] {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #F87171;
  min-height: 1rem;
}

#message-hint, #phone-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-low);
}

fieldset {
  border: var(--border-tech);
  border-radius: 12px 0 12px 0;
  padding: 1.25rem;
}

legend {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0 0.5rem;
}

fieldset > div {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
}

fieldset label {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text-mid);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  line-height: 1.5;
}

fieldset label a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(0,207,255,0.3);
  text-underline-offset: 3px;
}
fieldset label a:hover { text-decoration-color: var(--primary); }

#form-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.5rem;
  border-left: 2px solid transparent;
  min-height: 1.5rem;
}
#form-status.success { color: #34D399; border-left-color: #34D399; }
#form-status.error   { color: #F87171; border-left-color: #F87171; }

button[type="submit"] {
  align-self: flex-start;
  font-family: var(--font-main);
  padding: 1rem 2.5rem;
}

/* ═══════════════════════════════════════════════════════════
   RÉALISATIONS — Filter Buttons + Grid
   ═══════════════════════════════════════════════════════════ */
#filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.filter-btn {
  background: transparent;
  border: var(--border-tech);
  border-radius: 6px;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0,207,255,0.06);
  box-shadow: var(--glow-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: var(--border-tech);
  border-radius: 24px 4px 24px 4px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,207,255,0.2);
  box-shadow: 0 20px 60px rgba(0,207,255,0.07);
}

.project-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
}

.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__overlay span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--primary);
  padding: 0.5rem 1.2rem;
}

.project-card__body {
  padding: 1.5rem 1.8rem 1.8rem;
}

.project-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(0,207,255,0.2);
  background: rgba(0,207,255,0.05);
}

.project-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  text-transform: none;
  letter-spacing: 0;
}

.project-card__desc {
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-card__stack span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-low);
  background: rgba(255,255,255,0.04);
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTIONS (generic bottom CTA in pages)
   ═══════════════════════════════════════════════════════════ */
section[aria-labelledby="services-cta-heading"],
section[aria-labelledby="about-cta-heading"],
section[aria-labelledby="cta-heading"] {
  text-align: center;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

section[aria-labelledby="services-cta-heading"] .section-desc,
section[aria-labelledby="about-cta-heading"] .section-desc,
section[aria-labelledby="cta-heading"] .section-desc {
  margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  border-top: var(--border-tech);
  padding: 2.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer > a { display: flex; align-items: center; }
footer > a img {
  height: 30px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity var(--transition);
}
footer > a:hover img { opacity: 1; }

footer nav ul {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

footer nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
footer nav a:hover { color: var(--primary); }

footer small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-low);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   OFFRES / PRICING
   ═══════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: var(--border-tech);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-radius: 24px 4px 24px 4px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,207,255,0.3);
  box-shadow: 0 20px 50px rgba(0,207,255,0.08);
}

.pricing-card.pricing-card--featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0,207,255,0.03) 0%, transparent 100%), var(--bg-card);
}

.pricing-card__badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--primary);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.4rem 1rem;
  border-radius: 0 10px 0 10px;
}

.pricing-card__label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.pricing-card__price {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-card__price-from {
  font-size: 0.85rem;
  color: var(--text-low);
}

.pricing-card__price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.pricing-card__price-period {
  font-size: 0.85rem;
  color: var(--text-low);
}

.pricing-card__subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.feature--included { color: #fff; }
.feature--included .feature-icon { color: #34D399; }

.feature--excluded { color: var(--text-low); text-decoration: line-through; }
.feature--excluded .feature-icon { color: #F87171; text-decoration: none; }

.pricing-card__cta {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 6px;
  clip-path: none;
}

.pricing-card__delay {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-low);
}

/* Addons */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.addon-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  height: 100%;
  border-radius: 16px 4px 16px 4px;
}

.addon-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.addon-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.addon-card .addon-price {
  font-family: var(--font-mono);
  color: var(--primary);
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: var(--border-tech);
  border-radius: 16px 4px 16px 4px;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}

details[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --gutter: 2rem; }
}

@media (max-width: 768px) {
  :root { --gutter: 1.5rem; }

  /* Mobile nav */
  #nav-toggle { display: flex; position: relative; z-index: 1001; }

  #nav-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(3,3,3,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    z-index: 999;
    border: none;
    padding: 0;
    pointer-events: none;
  }
  #nav-menu.open { 
    transform: translateY(0); 
    opacity: 1;
    pointer-events: auto;
  }

  nav[aria-label="Navigation principale"] ul { flex-direction: column; gap: 2rem; width: 100%; }
  #nav-menu li { width: 100%; text-align: center; border: none; }
  #nav-menu a { 
    display: inline-block; 
    padding: 0.5rem 1rem; 
    font-size: 1.8rem; 
    font-weight: 700;
    letter-spacing: 0.15em;
  }
  #nav-menu a::after { display: none; }
  #nav-menu a:hover, #nav-menu a[aria-current="page"] {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0,207,255,0.4);
  }

  /* Hero */
  section[aria-labelledby="hero-heading"] h1 {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .data-panel { display: none; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  button[type="submit"] { width: 100%; justify-content: center; }

  /* Cards */
  .projects-grid, .pricing-grid, .addons-grid { grid-template-columns: 1fr; }

  /* Footer */
  footer { flex-direction: column; align-items: flex-start; }
  footer nav ul { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 480px) {
  header { padding: 0.9rem 1.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions a[role="button"] { text-align: center; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
  body::before, .data-panel, #nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  header { position: static; background: #fff; border-bottom: 1px solid #ccc; }
}

/* ═══════════════════════════════════════════════════════════
   CHATBOT IA WIDGET
   ═══════════════════════════════════════════════════════════ */
#chatbot-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  font-family: var(--font-main);
}

#chatbot-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,207,255,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

#chatbot-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,207,255,0.4);
}

#chatbot-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  max-width: calc(100vw - 4rem);
  background: var(--bg-card);
  border: var(--border-tech);
  border-radius: 24px 4px 24px 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chatbot-panel.chatbot-open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}

#chatbot-header {
  background: rgba(0,207,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
}

#chatbot-header-info { display: flex; align-items: center; gap: 0.8rem; }
#chatbot-avatar { 
  background: var(--primary); color: #000;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
#chatbot-header-info strong { display: block; font-size: 0.95rem; }
#chatbot-status { font-family: var(--font-mono); font-size: 0.65rem; color: #34D399; }

#chatbot-close { background: none; border: none; color: var(--text-mid); cursor: pointer; padding: 5px; }
#chatbot-close:hover { color: #fff; }

#chatbot-messages {
  height: 350px;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.chatbot-msg { display: flex; margin-bottom: 0.5rem; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; }
.chatbot-msg--visible { opacity: 1; transform: translateY(0); }

.chatbot-msg--bot { justify-content: flex-start; }
.chatbot-msg--user { justify-content: flex-end; }

.chatbot-msg__content {
  max-width: 85%;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chatbot-msg--bot .chatbot-msg__content {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px 12px 12px 12px;
  color: var(--text-high);
}

.chatbot-msg--user .chatbot-msg__content {
  background: var(--grad-primary);
  color: #000;
  border-radius: 12px 12px 4px 12px;
  font-weight: 500;
}

#chatbot-form {
  display: flex;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--bg-surface);
}

#chatbot-input {
  flex: 1; background: transparent; border: none; color: #fff;
  font-family: var(--font-main); font-size: 0.9rem; padding: 0.5rem; outline: none;
}
#chatbot-input::placeholder { color: var(--text-low); }

#chatbot-send {
  background: none; border: none; color: var(--primary);
  cursor: pointer; padding: 0.5rem; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
#chatbot-send:hover { transform: scale(1.1); }

/* Typing animation */
.chatbot-typing .chatbot-msg__content { display: flex; gap: 4px; align-items: center; padding: 12px 16px; }
.chatbot-dot { width: 6px; height: 6px; background: var(--text-mid); border-radius: 50%; animation: chatbotPulse 1.4s infinite ease-in-out; }
.chatbot-dot:nth-child(1) { animation-delay: -0.32s; }
.chatbot-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes chatbotPulse { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

@media (max-width: 480px) {
  #chatbot-widget { bottom: 1rem; right: 1rem; }
  #chatbot-panel { bottom: 70px; right: 0; width: calc(100vw - 2rem); }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-primary);
  box-shadow: 0 0 10px rgba(0,207,255,0.5);
  z-index: 10001;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,207,255,0.35);
  color: var(--primary);
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(0,207,255,0.4);
  transform: translateY(-3px) scale(1);
}

@media (max-width: 480px) {
  #back-to-top { bottom: 5.5rem; left: 1rem; width: 42px; height: 42px; }
}

/* ═══════════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 140%);
  max-width: min(720px, calc(100vw - 2rem));
  width: 100%;
  background: rgba(8,8,10,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0,207,255,0.25);
  border-radius: 16px 4px 16px 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,207,255,0.08);
  z-index: 9997;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s ease;
}
#cookie-banner.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
#cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
}
#cookie-banner__text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-high);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
#cookie-banner__text p {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.55;
}
#cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(0,207,255,0.4);
  text-underline-offset: 2px;
}
.cookie-btn {
  background: var(--grad-primary);
  color: #000;
  border: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  border-radius: 10px 0 10px 0;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.cookie-btn:hover {
  background: var(--grad-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(168,85,247,0.25);
}

@media (max-width: 640px) {
  #cookie-banner__inner { grid-template-columns: 1fr; }
  #cookie-banner { bottom: 0; border-radius: 16px 16px 0 0; max-width: 100%; }
  .cookie-btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   PLACEHOLDER POUR IMAGES MANQUANTES
   ═══════════════════════════════════════════════════════════ */
.project-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(0,207,255,0.08), rgba(168,85,247,0.08)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(0,207,255,0.35);
  text-shadow: 0 0 20px rgba(0,207,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════ */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 2rem;
}
.legal-page article {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: var(--border-tech);
}
.legal-page article:first-of-type { border-top: none; padding-top: 0; }
.legal-page h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}
.legal-page p, .legal-page li {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 0.7rem;
}
.legal-page ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin-bottom: 1rem;
}
.legal-page ul li::marker { color: var(--primary); }
.legal-page strong { color: var(--text-high); }
.legal-page a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(0,207,255,0.4);
  text-underline-offset: 3px;
}
.legal-page a:hover { text-decoration-color: var(--primary); }
.legal-update {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-low);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════ */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gutter);
}
.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,207,255,0.3));
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.error-page__title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.error-page__desc {
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* ═══════════════════════════════════════════════════════════
   PRICING CARD HEADER FIX (wrapper used but no padding rule)
   ═══════════════════════════════════════════════════════════ */
.pricing-card__header {
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   SUBMIT BUTTON — LOADING STATE
   ═══════════════════════════════════════════════════════════ */
button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
button[type="submit"][disabled]:hover {
  background: var(--grad-primary);
  color: #000;
  transform: none !important;
  box-shadow: 0 0 20px rgba(0,207,255,0.15) !important;
}

/* ═══════════════════════════════════════════════════════════
   FORM ROW — RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════════════════════ */
::selection { background: rgba(0,207,255,0.3); color: #fff; }
::-moz-selection { background: rgba(0,207,255,0.3); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb {
  background: rgba(0,207,255,0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,207,255,0.45); }
html { scrollbar-color: rgba(0,207,255,0.25) #050505; scrollbar-width: thin; }

