/* ══════════════════════════════
   API Pièces — Thème custom
   Bootstrap 5.3 overrides
   ══════════════════════════════ */

:root {
  --api-orange: #E8610A;
  --api-orange-hover: #d45600;
  --api-navy: #1B3A6B;
  --api-navy-deep: #132a4f;
}

/* ── Bootstrap overrides ── */
.btn-primary {
  background-color: var(--api-orange);
  border-color: var(--api-orange);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--api-orange-hover);
  border-color: var(--api-orange-hover);
}
.btn-outline-light:hover {
  color: var(--api-orange) !important;
}
a { color: var(--api-orange); }
a:hover { color: var(--api-orange-hover); }

/* ── Utility classes ── */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
h1, h2, h3, h4, h5, h6,
.hero-title,
.hero-stat-num,
.hero-card-num,
.hero-card-header,
.section-heading h2,
.navbar-brand {
  font-family: 'Barlow', system-ui, sans-serif;
}

.text-orange { color: var(--api-orange) !important; }
.text-navy { color: var(--api-navy) !important; }
.bg-navy { background-color: var(--api-navy); }
.text-white-65 { color: rgba(255,255,255,.65); }
.text-white-50 { color: rgba(255,255,255,.5) !important; }
.ls-wide { letter-spacing: 1.5px; }
.py-section { padding-top: 5rem; padding-bottom: 5rem; }

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--api-navy);
  padding-bottom: 60px; /* place pour la barre overlap */
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(232,97,10,.07) 0%, transparent 40%),
    linear-gradient(180deg, var(--api-navy-deep) 0%, var(--api-navy) 100%);
  pointer-events: none;
}
/* Trait vertical orange à gauche du contenu */
.hero-content {
  position: relative;
  padding: 4.5rem 0 2rem 2rem;
}
.hero-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4.5rem;
  bottom: 2rem;
  width: 3px;
  background: linear-gradient(to bottom, var(--api-orange), transparent);
  border-radius: 2px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: var(--api-orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: .25rem;
  margin-bottom: 1.25rem;
}
.hero-title {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-title span {
  color: var(--api-orange);
}
.hero-desc {
  color: rgba(255,255,255,.55);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* ── Carte activités (colonne droite hero) ── */
.hero-card {
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.hero-card-header {
  background: var(--api-orange);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
}
.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-card-list li {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.hero-card-list li:last-child {
  border-bottom: none;
}
.hero-card-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--api-navy);
  white-space: nowrap;
}
.hero-card-text {
  font-size: .85rem;
  color: #6c757d;
  font-weight: 500;
}
.spin-icon {
  display: inline-block;
}
.spin-icon.animate {
  animation: spin360 2s ease-out forwards;
}
@keyframes spin360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── TITRES DE SECTION ── */
.section-heading h2 {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--api-navy);
  margin-bottom: .5rem;
}
.section-heading h2 strong {
  font-weight: 800;
  color: var(--api-orange);
}
.section-heading p {
  color: #6c757d;
  font-size: .9rem;
  margin-bottom: 0;
}

/* Variante claire (fond sombre) */
.section-heading-light h2 {
  color: #fff;
}
.section-heading-light p {
  color: rgba(255,255,255,.55);
}

/* ── Barre chiffres overlap ── */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  transform: translateY(50%);
  z-index: 10;
  padding: 0 1rem;
}
.hero-stats-inner {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  justify-content: center;
}
.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--api-navy);
  line-height: 1;
}
.hero-stat-num small {
  font-size: .55em;
  color: var(--api-orange);
}
.hero-stat-label {
  font-size: .72rem;
  color: #6c757d;
  line-height: 1.35;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: #e9ecef;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .hero-content {
    padding: 3rem 0 1.5rem .75rem;
  }
  .hero-content::before {
    top: 3rem;
    bottom: 1.5rem;
  }
  .hero-stats-inner {
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    gap: .75rem;
  }
  .hero-stat {
    flex: 1 1 40%;
    justify-content: flex-start;
  }
  .hero-stat-sep {
    display: none;
  }
  .hero-stat-num {
    font-size: 1.6rem;
  }
}

/* Section qui suit le hero : compenser l'overlap de la barre stats */
.section-after-hero {
  padding-top: calc(5rem + 60px);
}

/* ── OFFRES CERCLES ── */
.offre-circle-item {
  text-align: center;
  max-width: 220px;
}
.offre-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.offre-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offre-circle-item:hover .offre-circle {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(27,58,107,.25);
}
.offre-circle-item h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--api-navy);
  margin-bottom: .4rem;
}
.offre-circle-item p {
  font-size: .82rem;
  color: #6c757d;
  line-height: 1.5;
}
a.offre-circle-item {
  text-decoration: none;
  color: inherit;
}
.offre-more {
  display: inline-block;
  margin-top: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--api-orange);
  opacity: 0;
  transition: opacity .2s;
}
.offre-circle-item:hover .offre-more {
  opacity: 1;
}
.offre-modal-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ── AGENCES ── */
.agence-card {
  border-radius: .75rem;
  transition: transform .2s, box-shadow .2s;
}
.agence-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1) !important;
}

/* Image bandeau */
.agence-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.agence-img-wrap a {
  display: block;
  height: 100%;
}
.agence-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.agence-card:hover .agence-cover {
  transform: scale(1.05);
}
.agence-name {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  margin: 0;
  padding: .5rem .875rem;
  font-family: 'Barlow', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}
.agence-img-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: .2rem .5rem;
  border-radius: .25rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* Infos */
.agence-address {
  display: block;
  font-size: .78rem;
  color: #6c757d;
  text-decoration: none;
  margin-bottom: .75rem;
  line-height: 1.45;
  min-height: 2.9em;
  transition: color .15s;
}
.agence-address:hover {
  color: var(--api-orange);
}
.agence-contacts {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.agence-contacts a {
  font-size: .75rem;
  color: var(--api-navy);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.agence-contacts a:hover {
  color: var(--api-orange);
}
.agence-contacts i {
  width: 1rem;
  text-align: center;
  color: var(--api-orange);
  font-size: .7rem;
}

/* ── ZONES ── */
.dept-badge {
  padding: .5rem .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.07);
  border-radius: .375rem;
}
.dept-num {
  color: var(--api-orange);
  font-size: .85rem;
  font-weight: 800;
  min-width: 1.5rem;
}

/* ── EQUIPEMENTIERS CAROUSEL ── */
.eq-track-wrap {
  position: relative;
  overflow: hidden;
}
.eq-track-wrap::before,
.eq-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.eq-track-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.eq-track-wrap::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }

.eq-track {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  animation: eq-scroll 60s linear infinite;
}
.eq-track:hover { animation-play-state: paused; }

@keyframes eq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.eq-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 2rem;
  padding: .4rem 1rem .4rem .5rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .2s, box-shadow .2s;
}
.eq-chip:hover {
  border-color: var(--api-orange);
  box-shadow: 0 2px 8px rgba(232,97,10,.1);
}
.eq-chip img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  border-radius: 50%;
}
.eq-chip span {
  font-family: 'Barlow', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: #495057;
}

/* ── MODAL ÉQUIPEMENTIERS ── */
.eq-modal-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border: 1px solid #eee;
  border-radius: .5rem;
  height: 100%;
  transition: border-color .15s;
}
.eq-modal-item:hover {
  border-color: var(--api-orange);
}
.eq-modal-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.eq-modal-item span {
  font-family: 'Barlow', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: #333;
}

/* ── FEATURES / POURQUOI ── */
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(232,97,10,.1);
  color: var(--api-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-top: 2px;
}

/* ── FOOTER ── */
.footer-link:hover { color: var(--api-orange) !important; }

/* ── MENTIONS LÉGALES (inchangé si page existante) ── */
.ml-hero { background: var(--api-navy); padding: 48px 5%; }
.ml-hero-inner { max-width: 860px; margin: 0 auto; }
.ml-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.ml-hero p { color: rgba(255,255,255,.55); font-size: 0.85rem; }
.ml-content { max-width: 860px; margin: 0 auto; padding: 52px 5%; }
.part { margin-bottom: 48px; }
.part-title { font-size: 1.1rem; font-weight: 800; color: var(--api-navy); border-left: 4px solid var(--api-orange); padding-left: 14px; margin-bottom: 24px; }
.article { margin-bottom: 28px; }
.article h3 { font-size: 0.92rem; font-weight: 700; color: var(--api-navy); margin-bottom: 10px; }
.article p, .article li { font-size: 0.88rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 20px; margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.article a { color: var(--api-orange); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.info-block { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 20px 24px; margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.info-row { display: flex; gap: 10px; font-size: 0.86rem; }
.info-row .lbl { color: #6c757d; min-width: 220px; flex-shrink: 0; }
.info-row .val { font-weight: 500; }
.info-row a { color: var(--api-orange); text-decoration: none; }
.info-row a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
  .py-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
@media (max-width: 575.98px) {
  .info-row { flex-direction: column; gap: 2px; }
  .info-row .lbl { min-width: unset; }
}
