/* style.css — GNB INGENIERIE */
@import url('./tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── Skip link (a11y) ───────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: 0.5em 1em;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); }

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-lg); }
p  { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* ─── Layout helpers ─────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-20);
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inv);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-text-inv);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-title {
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-12);
}

/* ─── Boutons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75em 1.75em;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover {
  background: #d4a63a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 2px solid var(--color-text-inv);
  color: var(--color-text-inv);
}
.btn-outline:hover {
  background: var(--color-text-inv);
  color: var(--color-primary);
}
.btn-secondary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-inv);
}

/* ─── Header / Nav ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.logo-img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  color: var(--color-primary);
  line-height: 1.1;
}
.logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-normal);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.site-nav a {
  font-family: var(--font-heading);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--color-secondary); }
.site-nav a[aria-current="page"] { font-weight: var(--font-semibold); }

.nav-cta {
  display: none;
}

/* Burger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-base);
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  background: var(--color-bg-dark);
  color: var(--color-text-inv);
  padding-block: var(--space-24) var(--space-20);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(21, 101, 192, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 184, 75, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35em 1em;
  background: rgba(232, 184, 75, 0.15);
  border: 1px solid rgba(232, 184, 75, 0.4);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.hero h1 {
  color: var(--color-text-inv);
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}
.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  max-width: 55ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero-certifs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-10);
}
.certif-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}
.certif-item strong {
  color: var(--color-text-inv);
  font-weight: var(--font-semibold);
}

/* ─── Stats strip ─────────────────────────────── */
.stats-strip {
  background: var(--color-primary);
  padding-block: var(--space-10);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-6);
  text-align: center;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin-top: var(--space-2);
}

/* ─── Services grid ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  width: 100%;
}
.service-card-body {
  padding: var(--space-6);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(21, 101, 192, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-secondary);
}
.service-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.tag {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: rgba(17, 42, 70, 0.08);
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

/* ─── Expertise highlight ─────────────────────── */
.expertise-split {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
.expertise-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.expertise-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.expertise-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}
.expertise-item h4 { margin-bottom: var(--space-1); }
.expertise-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ─── CTA banner ──────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: var(--color-text-inv);
}
.cta-banner h2 { color: var(--color-text-inv); margin-bottom: var(--space-4); }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: var(--space-8); }

/* ─── About ───────────────────────────────────── */
.about-split {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.value-card {
  padding: var(--space-5);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}
.value-card h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.value-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ─── Contact ─────────────────────────────────── */
.contact-split {
  display: grid;
  gap: var(--space-12);
}
.contact-info h2 { margin-bottom: var(--space-4); }
.contact-info p { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
}
.contact-row svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  margin-top: 2px;
}
.contact-form-wrap {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7em 1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-rgpd {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  line-height: 1.5;
}
.form-rgpd a { text-decoration: underline; }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  margin-top: var(--space-8);
}
.map-wrap iframe {
  width: 100%;
  height: 300px;
  display: block;
}

/* ─── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-brand .logo-text { color: var(--color-text-inv); }
.footer-brand .logo-text span { color: rgba(255,255,255,0.5); }
.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-inv);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--color-accent); }

/* ─── Visual Placeholders (WEB-715) ──────────── */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-secondary) 18%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3;  }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1;  }
.visual-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4;  }
.visual-placeholder[data-aspect="21:9"] { aspect-ratio: 21 / 9; }

.visual-placeholder[data-tone="secondary"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-secondary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-primary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="accent"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-accent, var(--color-primary)) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
      color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg));
}

/* ─── Page Hero (inner pages) ─────────────────── */
.page-hero {
  background: var(--color-bg-dark);
  padding-block: var(--space-16) var(--space-12);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(21, 101, 192, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb a:hover { color: var(--color-accent); }
.page-hero h1 { color: var(--color-text-inv); margin-bottom: var(--space-4); }
.page-hero .lead {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 55ch;
}

/* ─── Services page ───────────────────────────── */
.service-detail {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border-light);
}
.service-detail:last-child { border-bottom: none; }
.service-detail-text {}
.service-detail h2 { margin-bottom: var(--space-3); }
.service-detail .lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.feature-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 22px;
  text-align: center;
}
.info-box {
  background: rgba(21, 101, 192, 0.06);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
}
.info-box p {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: 0;
}
.info-box strong { color: var(--color-secondary); }

/* ─── Mentions légales ────────────────────────── */
.legal-content {
  max-width: 72ch;
  margin-inline: auto;
}
.legal-content h2 { margin-top: var(--space-10); margin-bottom: var(--space-4); font-size: var(--text-xl); }
.legal-content h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); font-size: var(--text-lg); }
.legal-content p { color: var(--color-text-muted); }
.legal-content a { color: var(--color-secondary); text-decoration: underline; }

/* ─── Responsive ─────────────────────────────── */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-values  { gap: var(--space-5); }
  .stats-grid    { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .hero-inner           { grid-template-columns: 1fr 1fr; }
  .services-grid        { grid-template-columns: repeat(3, 1fr); }
  .expertise-split      { grid-template-columns: 1fr 1fr; }
  .about-split          { grid-template-columns: 1fr 1fr; }
  .contact-split        { grid-template-columns: 1fr 1fr; }
  .footer-grid          { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .service-detail       { grid-template-columns: 1fr 1fr; }
  .service-detail:nth-child(even) .service-detail-text { order: 2; }
  .nav-cta              { display: block; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-6);
    transform: translateY(-110%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open {
    transform: translateY(0);
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }
  .site-nav a { font-size: var(--text-base); }
  .hero { padding-block: var(--space-16) var(--space-12); }
  .hero-certifs { flex-direction: column; gap: var(--space-3); }
  .section { padding-block: var(--space-12); }
  .cta-banner { padding: var(--space-8) var(--space-6); }
  .contact-form-wrap { padding: var(--space-6); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATION PASS — Template A (atelier technique), sobre & mesuré
   Toutes les animations sont encapsulées dans prefers-reduced-motion:no-preference.
   ═════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {

  /* 1 · Hero entry — bloc texte fade-up, visual placeholder retardé */
  @keyframes gnbFadeUp {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  .hero-badge   { animation: gnbFadeUp 520ms ease-out both; animation-delay:  40ms; }
  .hero h1      { animation: gnbFadeUp 620ms ease-out both; animation-delay: 120ms; }
  .hero-desc    { animation: gnbFadeUp 620ms ease-out both; animation-delay: 220ms; }
  .hero-actions { animation: gnbFadeUp 620ms ease-out both; animation-delay: 320ms; }
  .hero-certifs { animation: gnbFadeUp 620ms ease-out both; animation-delay: 420ms; }
  .hero-visual  { animation: gnbFadeUp 700ms ease-out both; animation-delay: 500ms; }

  /* 2 · Service cards — lift + border color shift + placeholder glide */
  .service-card {
    transition:
      transform 320ms cubic-bezier(.2, .7, .2, 1),
      box-shadow 320ms ease,
      border-color 320ms ease;
    will-change: transform;
  }
  .service-card:hover,
  .service-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--color-secondary, currentColor);
    box-shadow: 0 14px 32px rgba(17, 42, 70, 0.12);
  }
  .service-card .visual-placeholder {
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position 600ms ease;
  }
  .service-card:hover .visual-placeholder,
  .service-card:focus-within .visual-placeholder {
    background-position: 100% 50%;
  }

  /* 3 · Icônes services — rotation légère au hover */
  .service-icon {
    transition: transform 400ms cubic-bezier(.2, .7, .2, 1), color 300ms ease;
  }
  .service-card:hover .service-icon,
  .service-card:focus-within .service-icon {
    transform: rotate(-4deg) scale(1.06);
  }

  /* 4 · Nav links — underline reveal (background-size 0→100%) */
  .site-nav a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1.5px;
    transition: background-size 260ms ease, color 200ms ease;
    padding-bottom: 2px;
  }
  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a[aria-current="page"] {
    background-size: 100% 1.5px;
  }

  /* 5 · Boutons primaires — shimmer discret au survol */
  .btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 260ms ease, background-color 220ms ease;
  }
  .btn-primary:hover,
  .btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 42, 70, 0.18);
  }
  .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 620ms cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
  }
  .btn-primary:hover::after,
  .btn-primary:focus-visible::after {
    transform: translateX(120%);
  }

  /* 6 · Focus-visible — anneau distinct, halo animé */
  @keyframes gnbFocusHalo {
    from { box-shadow: 0 0 0 0 rgba(17, 42, 70, 0.35); }
    to   { box-shadow: 0 0 0 6px rgba(17, 42, 70, 0.00); }
  }
  a:focus-visible,
  button:focus-visible,
  .btn:focus-visible {
    outline: 2px solid var(--color-primary, #112A46);
    outline-offset: 3px;
    animation: gnbFocusHalo 600ms ease-out;
  }

  /* 7 · Section-label — underline draw-in au scroll (view-timeline) */
  .section-label {
    position: relative;
    display: inline-block;
  }
  .section-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    background: currentColor;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 520ms cubic-bezier(.2, .7, .2, 1);
  }
  /* Scroll-driven quand supporté */
  @supports (animation-timeline: view()) {
    @keyframes gnbLabelDraw {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
    .section-label::after {
      animation: gnbLabelDraw linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 40%;
    }
  }
  /* Fallback — reveal quand la section est visible via IO existant */
  .section:hover .section-label::after,
  .section:focus-within .section-label::after,
  .stats-strip .section-label::after {
    transform: scaleX(1);
  }

  /* 8 · Stat values — grow + glow subtil à l'entrée en vue */
  .stat-value {
    transition: opacity 500ms ease, transform 500ms ease, color 400ms ease;
  }

  /* 9 · Expertise numérotée — trait vertical qui grandit au hover */
  .expertise-item {
    position: relative;
    transition: transform 260ms ease;
  }
  .expertise-item .expertise-num {
    transition: color 260ms ease, transform 320ms cubic-bezier(.2, .7, .2, 1);
  }
  .expertise-item:hover .expertise-num,
  .expertise-item:focus-within .expertise-num {
    transform: scale(1.06);
    color: var(--color-secondary, currentColor);
  }

  /* 10 · Visual placeholders — respiration lente, jamais de CLS */
  @keyframes gnbPlaceholderShift {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
  }
  .visual-placeholder {
    background-size: 200% 200%;
    animation: gnbPlaceholderShift 14s ease-in-out infinite;
  }

  /* 11 · CTA banner — léger relief au survol */
  .cta-banner {
    transition: transform 320ms ease, box-shadow 320ms ease;
  }
  .cta-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(17, 42, 70, 0.14);
  }
}
