/* ══════════════════════════════════════════════════════════════════
   PARCOURS DETAIL — Pages de détail du parcours
   Palette : Bleu #1B3A6B · Orange #F97316 · Blanc #FFFFFF
   Police : Montserrat + Arial
   ══════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────────────── */
:root {
  --bleu:        #1B3A6B;
  --bleu-900:    #0D1F3C;
  --bleu-500:    #2A5298;
  --bleu-50:     #EBF0FA;
  --orange:      #F97316;
  --orange-600:  #EA580C;
  --orange-50:   #FFF7ED;
  --blanc:       #FFFFFF;
  --gris-50:     #F8FAFC;
  --gris-100:    #F1F5F9;
  --gris-200:    #E2E8F0;
  --gris-500:    #64748B;
  --gris-600:    #475569;
  --gris-800:    #1E293B;
  --font-h:      'Montserrat', Arial, sans-serif;
  --font-b:      Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --r:           10px;
  --r-lg:        16px;
  --r-xl:        24px;
  --ease:        cubic-bezier(.25,.46,.45,.94);
  --nav-h:       64px;
  --shadow:      0 4px 20px rgba(27,58,107,.12);
  --shadow-md:   0 8px 32px rgba(27,58,107,.16);
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-b);
  color: var(--gris-800);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }

/* ─── BARRE DE NAVIGATION ────────────────────────────────────────── */
.detail-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13,31,60,.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 3rem);
  box-shadow: 0 2px 20px rgba(13,31,60,.3);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.8);
  font-family: var(--font-h);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
  padding: .4rem .8rem;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.15);
}
.back-btn:hover { color: #fff; border-color: rgba(249,115,22,.5); }
.back-btn i { font-size: .8rem; }

.detail-nav-title {
  font-family: var(--font-h);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.detail-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding-top: var(--nav-h);
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,31,60,.55) 0%,
    rgba(13,31,60,.85) 60%,
    rgba(13,31,60,.97) 100%
  );
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 5vw, 3rem);
  max-width: 900px;
}

.detail-num {
  font-family: var(--font-h);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(249,115,22,.15);
  letter-spacing: -.04em;
  margin-bottom: .5rem;
  user-select: none;
}

.detail-icon {
  width: 52px;
  height: 52px;
  background: var(--orange);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 20px rgba(249,115,22,.4);
}

.detail-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}

.detail-subtitle {
  font-family: var(--font-b);
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.7);
  max-width: 50ch;
  line-height: 1.6;
}

/* ─── MAIN CONTENT ───────────────────────────────────────────────── */
.detail-main {
  background: var(--blanc);
}

.detail-container {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem);
}

/* ─── INTRO ──────────────────────────────────────────────────────── */
.detail-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--gris-200);
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--orange-50);
  color: var(--orange-600);
  border: 1px solid rgba(249,115,22,.25);
  padding: .4rem 1rem;
  border-radius: var(--r);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.detail-badge--blue {
  background: var(--bleu-50);
  color: var(--bleu-500);
  border-color: rgba(27,58,107,.2);
}

.detail-intro h2 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--bleu);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.detail-lead {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--gris-600);
  line-height: 1.8;
  max-width: 70ch;
}

/* ─── SECTIONS ───────────────────────────────────────────────────── */
.detail-section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--gris-100);
}
.detail-section:last-of-type { border-bottom: none; }

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-h);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--bleu);
  margin-bottom: 1.5rem;
}

.detail-section-line {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.detail-text p {
  font-size: var(--text-base, .95rem);
  color: var(--gris-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.detail-text p:last-child { margin-bottom: 0; }

/* ─── HIGHLIGHT / CITATION ───────────────────────────────────────── */
.detail-highlight {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--bleu-50);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.detail-highlight i {
  color: var(--orange);
  font-size: 1.5rem;
  margin-top: .1rem;
  flex-shrink: 0;
}

.detail-highlight blockquote {
  font-style: italic;
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  color: var(--bleu);
  line-height: 1.7;
  margin-bottom: .5rem;
}

.detail-highlight cite {
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gris-500);
  letter-spacing: .05em;
}

/* ─── CARDS GRILLE ───────────────────────────────────────────────── */
.detail-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.detail-card {
  background: var(--gris-50);
  border: 1px solid var(--gris-200);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.2rem;
  transition: box-shadow .25s, transform .25s;
  position: relative;
}
.detail-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.detail-card-icon {
  width: 44px;
  height: 44px;
  background: var(--bleu);
  color: #fff;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.detail-card h3 {
  font-family: var(--font-h);
  font-size: .92rem;
  font-weight: 800;
  color: var(--bleu);
  margin-bottom: .4rem;
}

.detail-card p {
  font-size: .8rem;
  color: var(--gris-600);
  line-height: 1.5;
}

.detail-card-year {
  display: inline-block;
  margin-top: .8rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-50);
  padding: .2rem .6rem;
  border-radius: var(--r);
}

/* ─── VALUES GRID ────────────────────────────────────────────────── */
.detail-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.detail-value {
  text-align: center;
  padding: 1.8rem 1.2rem;
  background: var(--bleu);
  border-radius: var(--r-lg);
  color: #fff;
  transition: transform .25s, box-shadow .25s;
}
.detail-value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.detail-value i {
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.detail-value h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: .04em;
}

.detail-value p {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
}

/* ─── ADRESSES ───────────────────────────────────────────────────── */
.detail-addresses {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: 1.2rem;
}

.detail-address-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: var(--gris-50);
  border: 1px solid var(--gris-200);
  border-radius: var(--r-lg);
}

.detail-address-icon {
  width: 38px;
  height: 38px;
  background: var(--orange-50);
  color: var(--orange);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.detail-address-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.detail-address-info strong {
  font-family: var(--font-h);
  font-size: .9rem;
  font-weight: 800;
  color: var(--bleu);
}

.detail-address-info span {
  font-size: .82rem;
  color: var(--gris-600);
}

.detail-map-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: .2rem;
  transition: color .2s;
}
.detail-map-link:hover { color: var(--orange-600); }

/* ─── SERVICES ───────────────────────────────────────────────────── */
.detail-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.detail-service-item {
  padding: 1.4rem 1.1rem;
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: var(--r-lg);
  transition: border-color .2s, box-shadow .2s;
}
.detail-service-item:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(249,115,22,.12);
}

.detail-service-item > i {
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: .8rem;
}

.detail-service-item h3 {
  font-family: var(--font-h);
  font-size: .88rem;
  font-weight: 800;
  color: var(--bleu);
  margin-bottom: .4rem;
}

.detail-service-item p {
  font-size: .78rem;
  color: var(--gris-600);
  line-height: 1.5;
}

/* ─── CTA BLOCK ──────────────────────────────────────────────────── */
.detail-cta-block {
  background: linear-gradient(135deg, var(--bleu) 0%, #2A5298 100%);
  border-radius: var(--r-xl);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.detail-cta-block h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
}

.detail-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-h);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--r);
  box-shadow: 0 6px 20px rgba(249,115,22,.4);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.detail-cta-btn:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249,115,22,.45);
}

/* ─── VISION SECTION ─────────────────────────────────────────────── */
.detail-vision {
  background: var(--gris-50);
  border-radius: var(--r-xl);
  padding: 2rem;
  border: 1px solid var(--gris-200);
}

/* ─── PAGINATION ─────────────────────────────────────────────────── */
.detail-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gris-200);
}

.detail-pagination-prev,
.detail-pagination-next {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-h);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bleu);
  padding: .75rem 1.2rem;
  border: 1px solid var(--gris-200);
  border-radius: var(--r);
  transition: all .2s;
}
.detail-pagination-prev:hover,
.detail-pagination-next:hover {
  background: var(--bleu);
  color: #fff;
  border-color: var(--bleu);
}
.detail-pagination-prev.disabled {
  opacity: .35;
  pointer-events: none;
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.detail-footer {
  background: var(--bleu-900);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 2rem;
  font-size: .82rem;
}

.detail-footer a {
  color: var(--orange);
  transition: color .2s;
}
.detail-footer a:hover { color: var(--orange-600); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .detail-hero { min-height: 50vh; }
  .detail-cards-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .detail-values-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-services { grid-template-columns: repeat(2, 1fr); }
  .detail-nav-title { display: none; }
  .detail-pagination { flex-direction: column; align-items: stretch; }
  .detail-pagination-prev,
  .detail-pagination-next { justify-content: center; }
}

@media (max-width: 480px) {
  .detail-values-grid { grid-template-columns: 1fr 1fr; }
  .detail-services { grid-template-columns: 1fr 1fr; }
  .detail-cards-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── GALERIE PHOTOS ─────────────────────────────────────────────── */
.detail-gallery-section { border-bottom: none; }

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1.5rem;
}

.detail-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--gris-100);
  aspect-ratio: 4/3;
}

.detail-gallery-item--wide {
  grid-column: span 3;
  aspect-ratio: 16/7;
}

.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}

.detail-gallery-item:hover img {
  transform: scale(1.04);
}

/* Fallback si l'image est introuvable */
.detail-img-error {
  background: var(--gris-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-img-error img { display: none; }
.detail-img-error::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background: var(--gris-200);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .detail-gallery-item--wide { grid-column: span 2; aspect-ratio: 16/9; }
}

@media (max-width: 380px) {
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery-item--wide { grid-column: span 1; }
}
