/* ==========================================================================
   idea2web.ca — feuille de style centrale
   Toutes les pages du site pointent vers ce fichier unique.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Couleurs */
  --bg: #0a0517;
  --bg-alt: #120a28;
  --bg-card: rgba(255, 255, 255, 0.035);
  --border-soft: rgba(255, 255, 255, 0.09);
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --text: #f5f3ff;
  --text-muted: #b6acd6;
  --text-faint: #8579a8;

  --gradient-brand: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 55%, var(--pink) 100%);
  --gradient-btn: linear-gradient(135deg, var(--purple-deep) 0%, var(--pink) 100%);

  /* Typographie */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --header-h: 84px;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Fond nébuleuse commun aux sections sombres */
body {
  background-image:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 40% at 92% 18%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(236, 72, 153, 0.10), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ---- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(236, 72, 153, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(236, 72, 153, 0.7); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--purple); background: rgba(168, 85, 247, 0.08); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 5, 23, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(10, 5, 23, 0.85);
  border-bottom-color: var(--border-soft);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.logo-two {
  color: var(--pink);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(236, 72, 153, 0.7);
}
.logo-tld { color: var(--text-faint); font-weight: 500; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 40px; }
.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: right 0.25s ease;
  border-radius: 2px;
}
.nav-list a:hover { color: var(--text); }
.nav-list a:hover::after,
.nav-list a.active::after { right: 0; }
.nav-list a.active { color: var(--text); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  align-items: flex-start;
  padding: 110px 0 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 55%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(10, 5, 23, 0.94) 22%, rgba(10, 5, 23, 0.55) 46%, rgba(10, 5, 23, 0.15) 65%, transparent 82%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  width: 100%;
  padding-left: clamp(24px, 6vw, 90px);
  padding-right: 32px;
  box-sizing: border-box;
}
.hero-content { max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 14px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   SERVICES / FEATURE CARDS
   ========================================================================== */
.services { padding: 40px 0 120px; }
.services-intro { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.services-intro h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 10px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  padding: 42px 36px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(255, 255, 255, 0.055);
}
.pillar-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.pillar-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 22px; }
.pillar-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cyan);
  transition: color 0.2s ease, gap 0.2s ease;
}
.pillar-link:hover { color: var(--pink); }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  padding: 34px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(255, 255, 255, 0.055);
}
.service-icon {
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  border-radius: var(--radius-s);
  background: rgba(168, 85, 247, 0.08);
}
.service-icon svg {
  width: 32px; height: 32px;
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   PROCESS / WHY SECTION (contenu additionnel page d'accueil)
   ========================================================================== */
.about {
  padding: 20px 0 120px;
}
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.section-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
  display: block;
}
.about h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.about-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 40ch; }

.checklist { display: grid; gap: 18px; }
.checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-s);
  background: var(--bg-card);
}
.checklist .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.checklist h4 { font-size: 1rem; margin-bottom: 4px; }
.checklist p { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  margin: 0 32px 120px;
  max-width: calc(var(--container) - 64px);
  margin-left: auto; margin-right: auto;
  padding: 64px 48px;
  border-radius: var(--radius-l);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(245, 243, 255, 0.85);
  max-width: 50ch;
  margin: 0 auto 30px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border-soft);
  padding-top: 70px;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -120px; left: 50%;
  width: 600px; height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.25), transparent 70%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-tagline {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-tagline .arrow { color: var(--cyan); }
.footer-nav h3, .footer-contact h3, .footer-social h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-nav ul, .footer-contact ul { display: grid; gap: 12px; }
.footer-nav a, .footer-contact a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-contact li { color: var(--text-muted); font-size: 0.95rem; }

.social-list { display: flex; gap: 12px; }
.social-list a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-list a:hover {
  border-color: var(--purple);
  color: var(--text);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-section { padding: 20px 0 140px; }
.contact-inner { display: flex; justify-content: center; }
.contact-form {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  padding: 44px;
  display: grid;
  gap: 24px;
}
.form-group { display: grid; gap: 8px; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group textarea { resize: vertical; min-height: 180px; line-height: 1.5; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.06);
}
.form-submit { justify-self: start; margin-top: 4px; }

@media (max-width: 560px) {
  .contact-form { padding: 30px 24px; }
  .form-submit { width: 100%; }
}

/* ==========================================================================
   RÉALISATIONS — EN CONSTRUCTION
   ========================================================================== */
.construction {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 90px 0 100px;
}
.construction-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.construction-icon {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-bottom: 28px;
}
.construction-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}
.construction .eyebrow { margin-bottom: 22px; }
.construction h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}
.construction-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 36px;
}
.construction-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}
.construction-cta {
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.construction-cta p { color: var(--text-faint); font-size: 0.95rem; }

@media (max-width: 560px) {
  .construction-actions { flex-direction: column; width: 100%; }
  .construction-actions .btn { width: 100%; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero { min-height: 620px; padding: 120px 0 70px; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(10, 5, 23, 0.85) 45%, rgba(10, 5, 23, 0.55) 70%, rgba(10, 5, 23, 0.3) 100%);
  }
  .hero-content { max-width: 100%; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 5, 23, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-list.is-open { max-height: 260px; }
  .nav-list li { padding: 14px 32px; border-bottom: 1px solid var(--border-soft); }
  .nav-list a::after { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band { margin: 0 20px 90px; padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}