/* =========================================================
   style-images.css — Extension Hero + Services avec images
   Complète style.css, même variables, mobile-first
   ========================================================= */

/* ── HERO avec image de fond + overlay ──────────────────────── */
.hero {
  position: relative;
  background-color: var(--primary-900);
  background-image:
    linear-gradient(135deg,
      rgba(15,32,53,0.92) 0%,
      rgba(30,58,95,0.80) 50%,
      rgba(23,46,74,0.88) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
@media (min-width: 1024px) {
  .hero { background-attachment: fixed; }
}

/* Particules déco (cercles flottants) */
.hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,81,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(200,169,81,.18);
  border: 1px solid rgba(200,169,81,.35);
  color: var(--accent-gold);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}
.hero-eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  justify-content: center;
  margin-bottom: 4.5rem;
}

/* Stats bar redesignée */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  backdrop-filter: blur(6px);
}
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.hero-stat {
  padding: 1.25rem 1rem;
  background: rgba(255,255,255,.04);
  text-align: center;
  transition: background var(--transition);
}
.hero-stat:hover { background: rgba(255,255,255,.08); }
.hero-stat-num {
  font-size: 1.875rem; font-weight: 800;
  color: var(--accent-gold);
  display: block; line-height: 1.1; margin-bottom: .25rem;
}
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ── SERVICE CARDS avec image (version enrichie) ─────────────── */
.service-card-img {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.service-card-img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.service-card-img:hover .service-card-img-overlay {
  opacity: 1;
}

.service-card-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .service-card-thumbnail { height: 220px; }
}
.service-card-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card-img:hover .service-card-thumbnail img {
  transform: scale(1.05);
}
.service-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,58,95,.55), rgba(200,169,81,.25));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--accent-gold);
  color: #fff;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
}

.service-card-body {
  padding: 1.75rem;
  display: flex; flex-direction: column; flex: 1;
}
.service-card-body h3 { margin-bottom: .75rem; font-size: 1.25rem; }
.service-card-body p  { color: var(--text-secondary); font-size: .9375rem; margin-bottom: 1.25rem; flex: 1; }

/* ── PAGE SERVICES DÉTAIL — Hero image + split layout ────────── */
.service-detail-hero-img {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
@media (min-width: 1024px) {
  .service-detail-hero-img { min-height: 600px; }
}

.service-detail-hero-img::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 8s ease;
}
.service-detail-hero-img:hover::before { transform: scale(1.03); }

/* Overlay gradient */
.service-detail-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(15,32,53,.95) 0%,
    rgba(30,58,95,.85) 55%,
    rgba(30,58,95,.4) 100%);
  z-index: 1;
}

.service-hero-auto::before {
  background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600&q=80&auto=format&fit=crop');
}
.service-hero-education::before {
  background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1600&q=80&auto=format&fit=crop');
}
.service-hero-medical::before {
  background-image: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?w=1600&q=80&auto=format&fit=crop');
}
.service-hero-debt::before {
  background-image: url('https://images.unsplash.com/photo-1554224154-26032ffc0d07?w=1600&q=80&auto=format&fit=crop');
}
.service-hero-personal::before {
  background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1600&q=80&auto=format&fit=crop');
}
.service-hero-realestate::before {
  background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=80&auto=format&fit=crop');
}
.service-hero-business::before {
  background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1600&q=80&auto=format&fit=crop');
}

.service-detail-hero-img .container {
  position: relative; z-index: 2;
}

.service-detail-hero-content {
  max-width: 680px;
}
.service-detail-hero-content .badge-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(200,169,81,.2);
  border: 1px solid rgba(200,169,81,.4);
  color: var(--accent-gold);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.service-detail-hero-content h1 {
  color: #fff; margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -.02em;
}
.service-detail-hero-content p {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8; margin-bottom: 2rem;
}
.service-detail-hero-content .breadcrumb {
  font-size: .8125rem; color: rgba(255,255,255,.5);
  display: flex; gap: .5rem; align-items: center;
  margin-bottom: 1.5rem;
}
.service-detail-hero-content .breadcrumb a { color: rgba(255,255,255,.65); }
.service-detail-hero-content .breadcrumb a:hover { color: #fff; }

/* Stat pills dans le hero service */
.hero-mini-stats {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: .5rem;
}
.hero-mini-stat {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: .5rem 1rem;
  font-size: .875rem; color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
}
.hero-mini-stat svg { width: 14px; height: 14px; color: var(--accent-gold); flex-shrink: 0; }

/* ── SECTION IMAGE + TEXTE côte à côte ──────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .split-section { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
  .split-section.reverse .split-image { order: 2; }
  .split-section.reverse .split-text  { order: 1; }
}

.split-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 320px;
  display: block;
}
@media (min-width: 768px) {
  .split-image img { min-height: 420px; }
}

/* Badge flottant sur l'image */
.split-image-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius-lg);
  padding: .875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .75rem;
  backdrop-filter: blur(8px);
}
.split-image-badge-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.split-image-badge-icon svg { width: 20px; height: 20px; color: #fff; }
.split-image-badge-num {
  font-size: 1.25rem; font-weight: 800; color: var(--text-primary);
  line-height: 1;
}
.split-image-badge-label {
  font-size: .75rem; color: var(--text-muted); font-weight: 500;
}

.split-text {}
.split-text .overline {
  font-size: .8125rem; font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.split-text h2 { margin-bottom: 1rem; }
.split-text p  { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }

.check-list { display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.75rem; }
.check-item {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9375rem; color: var(--text-secondary);
}
.check-dot {
  width: 22px; height: 22px;
  background: rgba(200,169,81,.15);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0; margin-top: 1px;
  font-size: .65rem; font-weight: 800;
}

/* ── GALERIE PHOTO section about / trust ─────────────────────── */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 200px 200px;
  gap: .75rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (min-width: 768px) {
  .photo-mosaic {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 280px 200px;
    gap: 1rem;
  }
}
.photo-mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.photo-mosaic img:hover { transform: scale(1.04); }
.photo-mosaic .mosaic-main {
  grid-row: span 2;
}
@media (max-width: 767px) {
  .photo-mosaic .mosaic-main { grid-column: span 2; }
}

/* ── RESPONSIVE ADJUSTMENTS ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 6rem 0 3rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }
  .service-detail-hero-img { padding: 7rem 0 3.5rem; }
  .hero-mini-stats { gap: .5rem; }
  .split-image img { min-height: 240px; }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .service-detail-hero-img { min-height: 480px; }
}

/* === GRILLE 4 COLONNES (services secondaires) === */
.services-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .services-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid-4 { grid-template-columns: repeat(4, 1fr); } }
