/* ════════════════════════════════════════════
   IA2WEB — Design System (light theme)
   Typographie : Space Grotesk + Inter
   ════════════════════════════════════════════ */

:root {
  --teal:      #1F8A7A;
  --teal-deep: #13666A;
  --teal-pale: #E6F4F2;
  --steel:     #6E9EA0;
  --bg:        #F5F7F8;
  --bg-card:   #FFFFFF;
  --bg-alt:    #EBF1F2;
  --text:      #111820;
  --muted:     #52697A;
  --border:    #D4E0E2;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --r:         10px;
  --r-lg:      18px;
  --ease:      0.22s ease;
  --max:       1140px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout ── */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
section { padding-block: clamp(4rem, 8vw, 6.5rem); }

/* ── Typography ── */
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--muted); line-height: 1.8; }

.eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-intro { font-size: 1.05rem; max-width: 50ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.7rem;
  border-radius: var(--r);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--teal);
}
.btn-primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,138,122,0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--steel); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.84rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 5px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  border: 1px solid rgba(31,138,122,0.2);
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.52s ease, transform 0.52s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 200;
  padding-block: 1rem;
  background: rgba(245,247,248,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
#site-header.scrolled { box-shadow: var(--shadow); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  transition: opacity var(--ease);
}
.logo:hover { opacity: 0.8; }
.logo-b { color: var(--teal); font-size: 1.45em; line-height: 1; }
.logo-s { color: var(--steel); font-weight: 300; font-size: 1.2em; }
.logo-t { margin-left: 0.45rem; letter-spacing: 0.06em; }
.logo-sub { font-size: 0.56em; color: var(--muted); letter-spacing: 0.15em; display: block; font-weight: 500; margin-top: -2px; }

/* Nav */
.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  padding: 0.42rem 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r);
  transition: color var(--ease), background var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-alt); }
.nav .btn-primary { color: #fff; margin-left: 0.75rem; }
.nav .btn-primary:hover { color: #fff; background: var(--teal-deep); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0; top: 63px;
  z-index: 199;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--text); }
.mobile-nav a:hover { color: var(--teal); }


/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 45%, rgba(31,138,122,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(168,191,192,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: 3.5rem;
}
.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--teal); border-radius: 2px; }
.hero-title { margin-bottom: 1.5rem; }
.hero-accent { color: var(--teal); }
.cursor {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--teal);
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc { font-size: 1.05rem; max-width: 44ch; margin-bottom: 2.25rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Code window */
.code-win {
  background: #16202E;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.code-win::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,138,122,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.code-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  background: #0F1624;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.dot-b { background: #498ec6; }
.dot-w { background: #EFEFEF; }
.dot-g { background: #28C840; }
.code-file { margin-left: auto; font-size: 0.75rem; color: #4A6070; font-family: 'Courier New', monospace; }
.code-body {
  padding: 1.5rem 1.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.87rem;
  line-height: 2.05;
  color: #CDD6F4;
}
.ck { color: #C792EA; }
.cv { color: #82AAFF; }
.cs { color: #C3E88D; }
.cp { color: #89DCEB; }
.cf { color: #4FD6BE; }
.cn { color: #FF9E64; }
.cm { color: #4A6070; font-style: italic; }


/* ════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════ */
#services {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.svc-card:hover {
  border-color: var(--teal);
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(31,138,122,0.10);
}
.svc-icon { width: 44px; height: 44px; color: var(--teal); margin-bottom: 1.25rem; }
.svc-card h3 { margin-bottom: 0.65rem; }
.svc-card p  { font-size: 0.93rem; }


/* ════════════════════════════════════════════
   STATS
════════════════════════════════════════════ */
#stats {
  background: var(--teal-deep);
  padding-block: 3.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-n {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.stat-l { font-size: 0.88rem; color: rgba(255,255,255,0.65); }


/* ════════════════════════════════════════════
   PROJETS
════════════════════════════════════════════ */
#projets { background: var(--bg); }
.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.proj-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.proj-thumb {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
}
.proj-1 { background: linear-gradient(135deg, #0F4C4C 0%, #1F8A7A 100%); }
.proj-2 { background: linear-gradient(135deg, #1A2A4A 0%, #2A4A8A 100%); }
.proj-3 { background: linear-gradient(135deg, #3A1A4A 0%, #7A3A9A 100%); }
.proj-body { padding: 1.5rem; }
.proj-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.proj-card h3 { margin-bottom: 0.3rem; }
.proj-client { font-size: 0.8rem; color: var(--teal); font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin-bottom: 0.6rem; display: block; }
.proj-body p  { font-size: 0.88rem; margin-bottom: 1rem; }
.proj-link    { color: var(--teal); font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 600; }
.proj-link:hover { text-decoration: underline; }


/* ════════════════════════════════════════════
   PROCESS
════════════════════════════════════════════ */
#process {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.proc-step { position: relative; padding-top: 0.5rem; }
.proc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.9rem;
  left: calc(100% - 0.5rem);
  width: 1rem; height: 1px;
  background: var(--border);
}
.proc-num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--teal-pale);
  border: 2px solid rgba(31,138,122,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.proc-step h3 { margin-bottom: 0.6rem; font-size: 1.05rem; }
.proc-step p  { font-size: 0.9rem; }


/* ════════════════════════════════════════════
   BLOG
════════════════════════════════════════════ */
#blog { background: var(--bg); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color var(--ease), transform var(--ease);
}
.blog-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.blog-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.blog-date { font-size: 0.78rem; color: var(--muted); font-family: 'Space Grotesk', sans-serif; }
.blog-card h3 { margin-bottom: 0.65rem; font-size: 1.1rem; }
.blog-card p  { font-size: 0.9rem; margin-bottom: 1.1rem; }
.blog-link { color: var(--teal); font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 600; }
.blog-link:hover { text-decoration: underline; }


/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
#contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 1.5rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-links a { color: var(--teal); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; transition: opacity var(--ease); }
.contact-links a:hover { opacity: 0.75; }

/* Form */
.form {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fgrp { display: flex; flex-direction: column; gap: 0.45rem; }
.fgrp label { font-family: 'Space Grotesk', sans-serif; font-size: 0.84rem; font-weight: 600; color: var(--text); }
.required { color: var(--teal); }
.fgrp input,
.fgrp textarea,
.fgrp select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 0.78rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
  width: 100%;
}
.fgrp select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2352697A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.fgrp input:focus,
.fgrp textarea:focus,
.fgrp select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,138,122,0.12);
}
.fgrp input::placeholder,
.fgrp textarea::placeholder { color: var(--border); }


/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
#site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.87rem; color: var(--muted); transition: color var(--ease); }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.footer-made { font-size: 0.82rem; color: var(--muted); }
.footer-made code { color: var(--teal-deep); font-family: 'Courier New', monospace; background: var(--teal-pale); padding: 0.15rem 0.4rem; border-radius: 4px; }


/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner          { grid-template-columns: 1fr; }
  .code-win            { display: none; }
  .services-grid       { grid-template-columns: 1fr 1fr; }
  .projets-grid        { grid-template-columns: 1fr 1fr; }
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .process-grid        { grid-template-columns: 1fr 1fr; }
  .proc-step::after    { display: none; }
  .contact-inner       { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav                            { display: none; }
  .burger                         { display: flex; }
  .services-grid,
  .projets-grid,
  .blog-grid                      { grid-template-columns: 1fr; }
  .stats-grid                     { grid-template-columns: repeat(2, 1fr); }
  .process-grid                   { grid-template-columns: 1fr; }
  .form-row                       { grid-template-columns: 1fr; }
  .footer-inner                   { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════
   PAGE HERO (liste blog)
════════════════════════════════════════════ */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero-desc { font-size: 1.05rem; max-width: 50ch; margin-top: 0.5rem; }

.blog-list { background: var(--bg); }
.blog-card-title { font-size: 1.15rem; margin-bottom: 0.65rem; }

/* ════════════════════════════════════════════
   ARTICLE SINGLE
════════════════════════════════════════════ */
.article { padding-bottom: 5rem; }

.article-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding-top: 8rem;
  padding-bottom: 3rem;
}
.back-link {
  display: inline-block;
  color: var(--teal);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: opacity var(--ease);
}
.back-link:hover { opacity: 0.7; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.article-meta time {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
}
.article-author {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
}
.article-header h1 { margin-bottom: 1rem; }
.article-summary {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* Corps de l'article */
.article-body {
  padding-block: 2rem;
}
.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-body h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body code {
  background: var(--teal-pale);
  color: var(--teal-deep);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}
.article-body pre {
  background: #16202E;
  color: #CDD6F4;
  border-radius: var(--r);
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
}
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
  margin-block: 1.5rem;
  color: var(--muted);
  font-style: italic;
}

.article-footer { padding-bottom: 3rem; }

/* Bouton outline (manquait dans le CSS global) */
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal-pale);
  transform: translateY(-2px);
}