/* ===== Design tokens ===== */
:root {
  --charcoal: #191d21;
  --charcoal-2: #23282d;
  --steel: #4b5761;
  --steel-light: #7c8894;
  --bg: #ffffff;
  --bg-alt: #f4f5f6;
  --border: #e3e5e7;
  --text: #23282d;
  --text-muted: #5b6570;
  --accent: #3fc1d6;
  --accent-dark: #2f9db0;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, Segoe UI, sans-serif;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(20, 22, 24, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--charcoal);
  text-transform: uppercase;
}
p { margin: 0 0 1em; color: var(--text-muted); }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 0 0.4em;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--charcoal); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(20, 22, 24, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
}
.brand { margin-left: -220px; }
.brand img { height: 126px; }
.main-nav ul { display: flex; align-items: center; gap: 1.4rem; flex-wrap: nowrap; }
.main-nav a {
  color: var(--charcoal);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: #3fc1d6; }
.main-nav .btn-nav {
  background: #3fc1d6;
  color: var(--charcoal);
  padding: 0.6em 1.3em;
  border-radius: var(--radius);
  white-space: nowrap;
}
.main-nav .btn-nav:hover { background: #34a9bc; color: var(--charcoal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--charcoal); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: #3fc1d6;
  color: var(--charcoal);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 11rem 0 1.5rem; }
.hero .eyebrow { color: var(--charcoal); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3.6rem); color: var(--charcoal); line-height: 1.05; white-space: nowrap; }
.hero-lead { color: #1c3540; font-size: 1.1rem; max-width: none; white-space: nowrap; }

/* ===== USP strip ===== */
.usp { background: var(--charcoal); }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.usp-item {
  padding: 2.2rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.usp-item:last-child { border-right: none; }
.usp-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.usp-label {
  display: block;
  margin-top: 0.4rem;
  color: #cfd3d6;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Sections ===== */
.hero, .section { scroll-margin-top: 170px; }
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
#services { padding-bottom: 1.8rem; }
#processus { padding-top: 1.8rem; }
.section-header { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-lead { font-size: 1.05rem; }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.section-alt .feature-card { background: #fff; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card img { margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.feature-card p { font-size: 0.95rem; margin: 0; }
.feature-card a { color: var(--accent); font-weight: 600; }
.feature-card ul { margin: 0; }
.feature-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.3em 0 0.3em 1.1em;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.feature-card li:last-child { border-bottom: none; }
.feature-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 1em;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.line-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.line-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}
.line-link::after {
  content: "\203A";
  font-weight: 700;
  margin-left: 0.35em;
  opacity: 0.55;
}
.feature-card .card-note {
  margin-top: 0.6em;
  font-size: 0.85rem;
  font-style: italic;
}
.card-cta {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.card-cta:hover { border-color: var(--accent); }
.card-grid-detail { grid-template-columns: repeat(4, 1fr); align-items: start; }

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.process-step h3 { font-size: 0.95rem; margin: 0; }

/* ===== History spiral ===== */
:root { --history-green: #3fc1d6; }
.history-spiral-wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: center;
}
.history-spiral { width: 100%; height: auto; }
.spiral-path { fill: none; stroke-width: 22; stroke-linecap: round; }
.spiral-dark { stroke: var(--charcoal); }
.spiral-green { stroke: var(--history-green); }
.spiral-dot { stroke: #fff; stroke-width: 5; }
.spiral-dot-dark { fill: var(--charcoal); }
.spiral-dot-green { fill: var(--history-green); }
.spiral-year { font-family: var(--font-head); font-weight: 700; font-size: 30px; }
.spiral-year-dark { fill: var(--charcoal); }
.spiral-year-green { fill: var(--history-green); }
.spiral-arrow { fill: var(--history-green); }

.spiral-hit { fill: transparent; cursor: pointer; }
.spiral-tooltip { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.spiral-hit-1970:hover ~ .spiral-tooltip-1970,
.spiral-hit-1970:focus ~ .spiral-tooltip-1970,
.spiral-hit-1997:hover ~ .spiral-tooltip-1997,
.spiral-hit-1997:focus ~ .spiral-tooltip-1997,
.spiral-hit-2005:hover ~ .spiral-tooltip-2005,
.spiral-hit-2005:focus ~ .spiral-tooltip-2005 { opacity: 1; }
.tooltip-bg { fill: #fff; stroke: var(--border); stroke-width: 1.5; filter: drop-shadow(0 8px 20px rgba(20,22,24,0.32)); }
.tooltip-caption { font-family: var(--font-body); font-size: 19px; fill: var(--text-muted); }

/* Les dates du listing declenchent la meme infobulle photo que la spirale */
.legend-year-hover { cursor: pointer; border-bottom: 1px dotted currentColor; }
.history-spiral-wrap:has(.legend-year-1970:hover) .spiral-tooltip-1970,
.history-spiral-wrap:has(.legend-year-1970:focus) .spiral-tooltip-1970,
.history-spiral-wrap:has(.legend-year-1997:hover) .spiral-tooltip-1997,
.history-spiral-wrap:has(.legend-year-1997:focus) .spiral-tooltip-1997,
.history-spiral-wrap:has(.legend-year-2005:hover) .spiral-tooltip-2005,
.history-spiral-wrap:has(.legend-year-2005:focus) .spiral-tooltip-2005 { opacity: 1; }

.history-legend { list-style: none; margin: 0; padding: 0; }
.history-legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7em 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.history-legend li:last-child { border-bottom: none; }
.history-legend strong { color: var(--text); font-family: var(--font-head); letter-spacing: 0.03em; }
.legend-dot {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-top: 0.35em;
}
.legend-dot-dark { background: var(--charcoal); }
.legend-dot-green { background: var(--history-green); }

/* ===== Team (hexagon layout) ===== */
.team-hexagon {
  position: relative;
  width: 620px;
  height: 620px;
  max-width: 100%;
  margin: 3rem auto 0;
}
.team-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  text-align: center;
  transform: translate(-50%, -50%) rotate(calc(60deg * var(--i))) translateY(-260px) rotate(calc(-60deg * var(--i)));
}
.team-node:hover,
.team-node:focus-within {
  z-index: 20;
}
.team-node img,
.team-node-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  box-shadow: var(--shadow);
}
.team-node img {
  position: relative;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-node:hover img,
.team-node:focus-within img {
  transform: scale(3);
  box-shadow: 0 14px 34px rgba(20, 22, 24, 0.35);
}
.team-node-photo-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
}
.team-node h3 { margin: 0.8rem 0 0.1em; font-size: 1.1rem; }
.team-node p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.team-node-placeholder p { font-style: italic; }

@media (max-width: 960px) {
  .team-hexagon {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .team-node { position: static; transform: none; }
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info address { font-style: normal; color: var(--text-muted); margin-bottom: 1rem; }
.contact-info h3 { font-size: 1.3rem; }
.contact-info a { color: var(--accent); font-weight: 600; }
.map-wrapper { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrapper iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact-form { background: var(--bg-alt); padding: 2rem; border-radius: var(--radius); }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.4em;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 0.8rem; font-size: 0.9rem; }
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: #cfd3d6; padding: 1.8rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.footer-inner a:hover { color: var(--accent); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 11, 12, 0.95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 2rem;
  overflow: auto;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  display: block;
  width: auto; height: auto;
  max-width: min(90vw, 1100px);
  max-height: min(78vh, 78vh);
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 1;
}
.lightbox-caption { color: #e7e7e7; margin-top: 1rem; font-size: 0.95rem; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none; border: none;
  color: #fff; cursor: pointer;
  font-size: 2rem; line-height: 1;
  padding: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .card-grid, .card-grid-3, .card-grid-4, .card-grid-detail { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .header-inner { height: 96px; }
  .brand img { height: 76px; }
  .main-nav {
    position: fixed;
    top: 96px; left: 0; right: 0;
    background: var(--charcoal);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 24px 1.5rem; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 0.8em 0; color: #f2f2f2; }
  .main-nav .btn-nav { display: inline-block; margin-top: 0.6em; }

  .card-grid, .card-grid-3, .card-grid-4, .card-grid-detail { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .usp-item:last-child { border-bottom: none; }
  .history-spiral-wrap { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 7rem 0 1.5rem; }
  .hero-lead { white-space: normal; font-size: 1rem; }
  .hero h1 { white-space: normal; font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .brand { margin-left: -20px; }
  .hero, .section { scroll-margin-top: 110px; }
}
