/* NetForge — charte chaleureuse, fond clair, touches colorées (stratégie PDF 2026) */
:root {
  --white: #ffffff;
  --cream: #fffbf7;
  --warm-50: #fff5ed;
  --warm-100: #ffe8d9;
  --coral: #e85d3c;
  --coral-soft: #f0785a;
  --amber: #f0a63b;
  --steel: #3d5a73;
  --steel-light: #5a7a94;
  --text: #2c3138;
  --text-muted: #5c6570;
  --line: #e8dfd6;
  --accent-blue: #4a7ab8;
  --shadow: 0 8px 32px rgba(45, 55, 72, 0.08);
  --shadow-hover: 0 16px 40px rgba(45, 55, 72, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 76px;
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

/* Progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10000;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  transition: width 0.12s linear;
}

/* Nav */
.top-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  background: rgba(255, 251, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 223, 214, 0.65);
  transition:
    background 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth);
}

.top-nav.scrolled {
  background: rgba(255, 251, 247, 0.97);
  box-shadow: 0 8px 32px rgba(45, 55, 72, 0.06);
  border-bottom-color: var(--line);
}

.nav-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--steel);
  flex-shrink: 0;
}

.logo:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 6px;
}

.logo__img {
  height: 34px;
  width: auto;
  max-width: min(200px, 42vw);
  display: block;
  object-fit: contain;
  object-position: left center;
}

.footer__logo {
  height: 26px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-soft);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
  transform: scaleX(1);
}

.nav-links a.active:not(.btn) {
  color: var(--coral);
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--steel);
  margin: 5px 0;
  border-radius: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.28s var(--ease-out-soft),
    box-shadow 0.28s var(--ease-smooth),
    border-color 0.28s var(--ease-smooth),
    color 0.2s var(--ease-smooth);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--coral-soft));
  box-shadow: 0 4px 20px rgba(232, 93, 60, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 93, 60, 0.4);
}

.btn-outline {
  color: var(--steel);
  background: var(--white);
  border: 2px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--coral-soft);
  color: var(--coral);
}

/* Hero — calques séparés : photo atténuée + voile lisible (le texte reste toujours au-dessus) */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(5.5rem, 11vw, 7.25rem) 0 clamp(3.25rem, 7vw, 5.25rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--warm-50) 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Fichiers : images/hero-background.jpg (prioritaire) puis repli images/hero-background.svg (voir index.html) */
.hero__photo {
  position: absolute;
  inset: 0;
}

.hero__photo picture {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
}

/* Remplissage explicite du bloc (évite height:100% qui peut rester à 0 selon les cas) */
.hero__photo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  display: block;
}

/* Voile léger : le visuel reste bien visible, le texte lisible */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 251, 247, 0.52) 38%,
    rgba(255, 245, 237, 0.42) 72%,
    rgba(255, 251, 247, 0.55) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 40px rgba(255, 251, 247, 0.9);
}

/* Accent du titre : couleur de repli si background-clip indisponible */
.hero h1 .gradient {
  color: var(--coral);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .gradient {
    background: linear-gradient(135deg, var(--coral), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 8px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--steel);
  font-weight: 500;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.typing {
  min-height: 28px;
  margin: 16px 0 0;
  font-weight: 600;
  color: var(--coral);
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2.5vw, 18px);
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1.2;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.section__header .section-title {
  margin-bottom: 0.5rem;
}

.section__header .section-sub {
  margin-bottom: 0;
}

.section__header--center {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section__header--center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.section-alt {
  background: var(--white);
}

.section-warm {
  background: linear-gradient(180deg, var(--warm-50) 0%, var(--white) 100%);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.section-title .gradient {
  background: linear-gradient(135deg, var(--steel), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  margin: 0 0 36px;
  color: var(--text-muted);
  max-width: 720px;
}

/* Cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s var(--ease-out-soft),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.25s var(--ease-smooth);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

.card-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--warm-50);
  font-weight: 600;
  color: var(--steel);
}

tr:last-child td {
  border-bottom: none;
}

/* En-tête de page (sous la nav) */
.page-head {
  padding: clamp(5rem, 11vw, 6.75rem) 0 clamp(2rem, 4.5vw, 3rem);
  background: linear-gradient(180deg, var(--white) 0%, var(--warm-50) 100%);
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  max-width: 42rem;
}

.page-head__inner--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--text);
}

.page-head__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 38rem;
}

.page-head__inner--center .page-head__lead {
  margin-left: auto;
  margin-right: auto;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.team-card h3 {
  color: var(--coral);
  margin-top: 0;
}

.team-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--coral);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Reveal — jamais sur tout le hero d'accueil (risque d'écran vide) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease-out-soft),
    transform 0.6s var(--ease-out-soft);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.contact-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Première section après l'en-tête de page : enchaînement plus naturel */
.page-head + .section {
  padding-top: clamp(2.5rem, 6vw, 3.75rem);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.spaced-top {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(240, 166, 59, 0.35);
}

@media (max-width: 960px) {
  .stats-bar,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .grid-2,
  .team-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
    z-index: 998;
  }

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

  .stats-bar {
    grid-template-columns: 1fr;
  }
}
