/* ═══════════════════════════════════════════════════════
   PORTFOLIO — Paul HANT
   Fichier : public/css/portfolio.css
   ═══════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg: #13182a;
  --bg2: #1a2035;
  --bg3: #202840;
  --blue: #2563ff;
  --blue-bright: #5b8aff;
  --blue-glow: rgba(37, 99, 255, 0.2);
  --blue-subtle: rgba(37, 99, 255, 0.12);
  --text: #f0f4ff;
  --text-muted: #9daec8;
  --text-dim: #5a6d8a;
  --border: rgba(91, 138, 255, 0.25);
  --border-dim: rgba(255, 255, 255, 0.09);
  --radius: 4px;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.2;
  pointer-events: none;
  z-index: 999;
}

/* ── GRID BACKGROUND ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(19, 24, 42, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-bright) !important; transform: translateY(-1px); }

/* ── SECTIONS COMMUNES ── */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue);
}

h2 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}

/* ── BOUTONS ── */
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(37, 99, 255, 0.3);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(37, 99, 255, 0.5);
}

.btn-secondary {
  color: var(--text-muted);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border);
  transform: translateY(-2px);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.12) 0%, transparent 70%);
  top: -100px; right: -150px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.07) 0%, transparent 70%);
  bottom: 0; left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue-bright);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.hero-tag .dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--blue); }
.hero-title .dim { color: var(--text-dim); }

.hero-subtitle {
  font-size: 1.15rem;
  color: #b8c8e0;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat-num {
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.stat-num span { color: var(--blue); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── CLIENTS ── */
#clients {
  padding: 120px 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.clients-header {
  text-align: center;
  margin-bottom: 64px;
}

.clients-header .section-label {
  justify-content: center;
}

.clients-header .section-label::before { display: none; }

.clients-header .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue);
}

.clients-header p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1rem;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
}

.client-logo {
  background: var(--bg2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.3s;
  position: relative;
}

.client-logo::after {
  content: attr(data-sector);
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.client-logo:hover { background: var(--bg3); }

.client-logo-img {
  width: 100px; height: 50px;
  object-fit: contain;
  transition: opacity 0.3s;
}

.client-logo:hover .client-logo-img { opacity: 0.9; }

.client-logo-placeholder {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.client-logo:hover .client-logo-placeholder { color: var(--text-muted); }

/* ── SERVICES ── */
#services {
  padding: 120px 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border-dim);
}

#services > .container > .section-label { margin-bottom: 8px; }
#services > .container > h2 { margin-bottom: 64px; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
}

.service-item {
  background: var(--bg);
  padding: 48px;
  transition: background 0.3s;
}

.service-item:hover { background: var(--bg3); }

.service-num {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.service-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.service-desc {
  color: #b8c8e0;
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 0.88rem;
  color: #a0b4cc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── COMPÉTENCES ── */
#skills {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-dim);
}

.skills-header {
  margin-bottom: 64px;
}

.skills-intro {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.skill-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--blue-glow);
}

.skill-card:hover::before { transform: scaleX(1); }

.skill-icon { font-size: 1.6rem; margin-bottom: 16px; }

.skill-name {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.skill-desc {
  font-size: 0.88rem;
  color: #b8c8e0;
  line-height: 1.7;
  margin-bottom: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--bg3);
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tag.highlight {
  background: var(--blue-subtle);
  border-color: var(--border);
  color: var(--blue-bright);
}

/* ── À PROPOS ── */
#about {
  padding: 120px 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border-dim);
}

.about-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 72px;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
}

.about-kpi {
  background: var(--bg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.about-kpi::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.about-kpi:hover::after { opacity: 1; }

.about-kpi-num {
  font-family: 'Roboto', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.about-kpi-num span { color: var(--blue); }

.about-kpi-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-content { padding-top: 12px; }

.about-text {
  color: #b8c8e0;
  line-height: 1.85;
  margin-top: 24px;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.about-text strong { color: var(--text); font-weight: 600; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.value-item {
  background: var(--bg);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.value-icon { font-size: 1.1rem; line-height: 1; margin-top: 2px; }
.value-label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.value-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── CONTACT ── */
#contact {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.contact-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.08) 0%, transparent 70%);
  bottom: -200px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 20px; }

.contact-info p {
  color: #b8c8e0;
  line-height: 1.75;
  margin-bottom: 40px;
  font-size: 1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
  padding: 14px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: var(--bg2);
}

.contact-link:hover { color: var(--text); border-color: var(--border); }

.contact-link-icon {
  width: 36px; height: 36px;
  background: var(--blue-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── FORMULAIRE ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input, textarea, select {
  background: var(--bg2);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

input::placeholder, textarea::placeholder { color: var(--text-dim); }

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

.form-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(37, 99, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(37, 99, 255, 0.5);
}

/* ── CONTACT FORM STATES ── */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-global-error {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  letter-spacing: 0.03em;
}

.input-error {
  border-color: #e74c3c !important;
}

.field-error {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.68rem;
  color: #e74c3c;
  letter-spacing: 0.05em;
}

.contact-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}

.contact-success-icon {
  font-size: 2.5rem;
  color: #27ae60;
  margin: 0;
}

.contact-success-title {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.contact-success-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.contact-success-reset {
  margin-top: 8px;
  background: none;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.contact-success-reset:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--text);
}

.footer-logo span { color: var(--blue); }

.footer-copy {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ── ANIMATIONS SCROLL ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   Breakpoints :
   - xs  : < 480px   (petits mobiles)
   - sm  : < 640px   (mobiles)
   - md  : < 768px   (tablettes portrait)
   - lg  : < 1024px  (tablettes paysage / petits laptops)
   - xl  : < 1280px  (laptops)
   ═══════════════════════════════════════════════════════ */

/* ── BURGER MENU ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(19, 24, 42, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-mobile a:hover,
.nav-mobile a.nav-cta { color: var(--text); }

.nav-mobile .nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 1rem;
  box-shadow: 0 0 30px rgba(37, 99, 255, 0.4);
}

/* ── XL : 1024px → 1280px ── */
@media (max-width: 1280px) {
  .container { max-width: 100%; padding: 0 48px; }
  .hero-title { font-size: clamp(2.8rem, 5vw, 5rem); }
}

/* ── LG : tablettes paysage / petits laptops ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  nav { padding: 16px 32px; }
  footer { padding: 24px 32px; }

  /* Hero */
  #hero { padding: 110px 0 70px; }
  .hero-stats { gap: 32px; }

  /* Skills : 2 colonnes */
  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  /* Services : déjà 2 col, on garde */

  /* About */
  .about-grid { gap: 48px; }

  /* Contact */
  .contact-grid { gap: 48px; }

  /* Clients : 4 col on garde, les cellules rétrécissent */
  .client-logo { padding: 28px 16px; }
}

/* ── MD : tablettes portrait ── */
@media (max-width: 768px) {
  /* ── NAV ── */
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* ── CONTAINER ── */
  .container { padding: 0 20px; }

  /* ── HERO ── */
  #hero { padding: 90px 0 60px; }

  .hero-inner {
    max-width: 100%;
    padding: 0 4px;
  }

  .hero-tag { font-size: 0.68rem; padding: 5px 12px; }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 90%;
    text-align: center;
    padding: 14px 20px;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
  }

  .stat-num { font-size: 1.6rem; }

  /* ── SECTIONS padding ── */
  #clients, #services, #skills, #about, #contact {
    padding: 80px 0;
  }

  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* ── CLIENTS ── */
  .clients-logos { grid-template-columns: repeat(2, 1fr); }
  .client-logo { padding: 32px 16px 40px; }

  /* ── SERVICES ── */
  .services-grid { grid-template-columns: 1fr; }
  .service-item { padding: 32px 24px; }

  /* ── SKILLS ── */
  .skills-grid { grid-template-columns: 1fr; gap: 16px; }
  .skill-card { padding: 24px; }

  /* ── ABOUT ── */
  .about-kpis { grid-template-columns: repeat(3, 1fr); }
  .about-kpi { padding: 24px 12px; }
  .about-kpi-num { font-size: 2rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-values { grid-template-columns: 1fr; }

  /* ── CONTACT ── */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* ── FOOTER ── */
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 20px;
  }
}

/* ── SM : mobiles ── */
@media (max-width: 640px) {
  /* Hero */
  .hero-title { font-size: clamp(1.9rem, 7.5vw, 2.6rem); }
  .hero-stats { grid-template-columns: 1fr; gap: 2px; }
  .stat { min-width: 80px; }

  /* Clients : 1 colonne sur petits mobiles */
  .clients-logos { grid-template-columns: repeat(2, 1fr); }
  .clients-header p { font-size: 0.9rem; }

  /* Services */
  .service-item { padding: 28px 20px; }
  .service-title { font-size: 1.2rem; }

  /* About KPIs : empilés */
  .about-kpis { grid-template-columns: 1fr; gap: 2px; }
  .about-kpi { padding: 20px; }
  .about-kpi-num { font-size: 2.2rem; }

  /* Contact */
  .contact-info h2 { font-size: 1.6rem; }
}

/* ── XS : très petits écrans ── */
@media (max-width: 480px) {
  nav { padding: 12px 16px; }
  .container { padding: 0 16px; }

  .hero-tag { font-size: 0.62rem; letter-spacing: 0.06em; }
  .hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-subtitle { font-size: 0.95rem; }

  .btn-primary, .btn-secondary { font-size: 0.88rem; padding: 12px 16px; }

  .hero-stats { flex-direction: column; align-items: center; gap: 16px; }
  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: 0.85rem; }

  #clients, #services, #skills, #about, #contact { padding: 60px 0; }

  .clients-logos { grid-template-columns: 1fr 1fr; }
  .client-logo { padding: 24px 12px 36px; }
  .client-logo-placeholder { font-size: 0.85rem; }

  .service-item { padding: 24px 16px; }
  .service-title { font-size: 1.1rem; }

  .skill-card { padding: 20px; }
  .skill-name { font-size: 1rem; }

  .about-text { font-size: 0.95rem; }

  .form-submit { font-size: 0.88rem; }

  footer { padding: 20px 16px; }
  .footer-copy { font-size: 0.65rem; }
}
