:root {
  --blue: #0089D1;
  --blue-dark: #006BA3;
  --blue-deeper: #004F7A;
  --blue-light: rgba(0, 137, 209, 0.08);
  --blue-mid: rgba(0, 137, 209, 0.12);
  --blue-glow: rgba(0, 137, 209, 0.15);
  --navy: #091B2A;
  --navy-light: #0F2940;
  --navy-mid: #153754;
  --slate: #1C3549;
  --silver: #E8ECF0;
  --silver-dark: #C8CED6;
  --warm-white: #F8F9FB;
  --white: #F8F9FB;
  --gray-50: #F4F5F7;
  --gray-100: #ECEEF1;
  --gray-200: #DDE1E6;
  --gray-300: #C1C7CF;
  --gray-400: #858D98;
  --gray-600: #4A5264;
  --gray-800: #1D2433;
  --accent: #E8963A;
  --accent-light: rgba(232, 150, 58, 0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --teal: var(--blue);
  --teal-dark: var(--blue-dark);
  --teal-light: var(--blue-light);
  --gold: var(--accent);
  --gold-light: var(--accent-light);
  --brand-accent: var(--blue);
  --btn-cta-color: #fff;
  --btn-cta-shadow: 0 4px 24px rgba(0, 137, 209, .35);
}

/* ─── HISTOIRE INTRO ─── */

.histoire-intro {
  padding: 5rem 0;
  background: var(--white);
}

.histoire-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.histoire-intro-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  margin: .75rem 0 1.25rem;
}

.histoire-intro-text h2 em {
  font-style: italic;
  color: var(--teal-dark);
}

.histoire-intro-text p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.histoire-visual {
  height: 360px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  overflow: hidden;
}

.histoire-visual--has-image {
  height: auto;
  background: transparent;
  border: 0;
}

.histoire-visual svg {
  width: 48px;
  height: 48px;
  stroke: var(--gray-300);
  fill: none;
  stroke-width: 1.2;
}

.histoire-visual span {
  font-size: .82rem;
  color: var(--gray-400);
}

/* ─── TIMELINE ─── */

.timeline-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--white);
  z-index: 1;
  transition: background .3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--teal);
}

.timeline-year {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--teal-dark);
  margin-bottom: .35rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}

.timeline-desc {
  font-size: .84rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* ─── CHIFFRES ─── */

.chiffres {
  padding: 5rem 0;
  background: var(--white);
}

.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}

.chiffre-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.chiffre-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .4rem;
}

.chiffre-number .suffix {
  font-size: 1.4rem;
  color: var(--teal);
  margin-left: 2px;
}

.chiffre-label {
  font-size: .78rem;
  color: var(--gray-400);
  letter-spacing: .3px;
  line-height: 1.4;
}

/* ─── EQUIPE ─── */

.equipe {
  padding: 5rem 0;
  background: var(--gray-50);
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.equipe-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.equipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}

.equipe-monogram-zone {
  height: 180px;
  background:
    radial-gradient(ellipse at top right, rgba(0, 137, 209, .14) 0%, transparent 60%),
    linear-gradient(135deg, rgba(0, 137, 209, .08) 0%, rgba(9, 27, 42, .03) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
}

.equipe-monogram-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 137, 209, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 137, 209, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.equipe-monogram {
  position: relative;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  color: var(--blue-dark);
  letter-spacing: .04em;
  line-height: 1;
}

.equipe-monogram::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -.7rem;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--blue);
  opacity: .55;
  border-radius: 2px;
}

.equipe-role-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: .65rem;
  font-weight: 600;
  padding: .3rem .65rem;
  background: var(--navy);
  color: #fff;
  border-radius: 3px;
  letter-spacing: .35px;
  z-index: 1;
}

.equipe-info {
  padding: 1.25rem 1.5rem;
}

.equipe-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .2rem;
}

.equipe-title {
  font-size: .78rem;
  color: var(--gray-400);
  line-height: 1.4;
}

/* ─── VALEURS ─── */

.valeurs {
  padding: 5rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.valeurs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(0, 137, 209, .04) 0%, transparent 60%);
}

.valeurs .section-label {
  color: var(--accent);
}

.valeurs-header {
  max-width: 600px;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.valeurs-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin: .75rem 0 0;
}

.valeurs-header h2 em {
  font-style: italic;
  color: var(--blue);
}

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.valeur-card {
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  transition: background .3s, border-color .3s;
}

.valeur-card:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(0, 137, 209, .15);
}

.valeur-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 137, 209, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.valeur-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

.valeur-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}

.valeur-card p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
  line-height: 1.6;
}

/* ─── SITE INDUSTRIEL ─── */

.site-section {
  padding: 5rem 0;
  background: var(--white);
}

.site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.site-photo {
  height: 280px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  overflow: hidden;
}

.site-photo svg {
  width: 36px;
  height: 36px;
  stroke: var(--gray-300);
  fill: none;
  stroke-width: 1.2;
}

.site-photo span {
  font-size: .78rem;
  color: var(--gray-400);
}

/* ─── Tabs par zone ─── */

.site-tabs {
  margin-top: 2.5rem;
}

.site-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.site-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-500, #6b7280);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}

.site-tab:hover {
  color: var(--blue-dark);
}

.site-tab.is-active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
}

.site-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500, #6b7280);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  transition: background .25s ease, color .25s ease;
}

.site-tab.is-active .site-tab-count {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.site-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-panel {
  animation: site-panel-in .35s ease both;
}

.site-panel[hidden] {
  display: none;
}

@keyframes site-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-panel-grid {
  display: grid;
  gap: 1.25rem;
}

.site-panel-grid--1 { grid-template-columns: 1fr; }
.site-panel-grid--2 { grid-template-columns: repeat(2, 1fr); }
.site-panel-grid--3 { grid-template-columns: repeat(3, 1fr); }

.site-panel-photo {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: block;
  width: 100%;
}

.site-panel-photo--clickable {
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform .35s ease, box-shadow .35s ease;
}

.site-panel-photo--clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(0, 137, 209, .35);
}

.site-panel-photo img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .6s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.site-panel-photo--clickable:hover img {
  transform: scale(1.04);
}

.site-panel-grid--1 .site-panel-photo img {
  height: 420px;
}

.site-panel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 320px;
}

.site-panel-placeholder svg {
  width: 36px;
  height: 36px;
  stroke: var(--gray-300);
  fill: none;
  stroke-width: 1.2;
}

.site-panel-photo figcaption,
.site-panel-caption {
  display: block;
  padding: .85rem 1rem;
  font-size: .82rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-200);
  background: #fff;
}

.site-panel-zoom {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
}

.site-panel-zoom svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-panel-photo--clickable:hover .site-panel-zoom,
.site-panel-photo--clickable:focus-visible .site-panel-zoom {
  opacity: 1;
  transform: translateY(0);
}

.site-panel-photo--clickable:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.site-panel-empty {
  font-size: .88rem;
  color: var(--gray-400);
  font-style: italic;
}

/* ─── Lightbox ─── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(9, 27, 42, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  will-change: opacity;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  display: block;
  background: var(--navy);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.gallery-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-size: .82rem;
  font-family: var(--font-body, system-ui, sans-serif);
  letter-spacing: .02em;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10000;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
}

.lightbox .gallery-toast {
  position: absolute;
  z-index: 10;
}

.gallery-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.lightbox-caption {
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}

.lightbox-caption:empty {
  display: none;
}

.lightbox-counter {
  font-size: .75rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}

.lightbox-counter:empty {
  display: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, .18);
  transform: scale(1.05);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-nav--next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox-nav[hidden] { display: none; }

body.lightbox-open {
  overflow: hidden;
}

/* ─── CTA ─── */

.cta-final {
  padding: 5rem 0;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(0, 137, 209, .05) 0%, transparent 60%);
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: .75rem;
  position: relative;
  z-index: 1;
}

.cta-final h2 em {
  font-style: italic;
  color: var(--accent);
}

.cta-final-sub {
  font-size: .95rem;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.cta-final-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .histoire-intro-grid {
    grid-template-columns: 1fr;
  }

  .chiffres-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valeurs-grid {
    grid-template-columns: 1fr;
  }

  .site-grid {
    grid-template-columns: 1fr;
  }

  .site-tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .site-tabs-nav::-webkit-scrollbar { display: none; }

  .site-tab {
    flex: 0 0 auto;
    padding: .75rem 1rem;
    font-size: .82rem;
  }

  .site-panel-grid--2,
  .site-panel-grid--3 {
    grid-template-columns: 1fr;
  }

  .site-panel-photo img,
  .site-panel-placeholder {
    height: 240px;
  }

  .site-panel-grid--1 .site-panel-photo img {
    height: 280px;
  }

  .lightbox {
    padding: 3.5rem 1rem;
  }

  .lightbox-close {
    top: .75rem;
    right: .75rem;
  }

  .lightbox-nav--prev { left: .5rem; }
  .lightbox-nav--next { right: .5rem; }
}
