/* ============================================================
   DÉCLIC FORMATIONS — Enhancements v2
   Relief, glassmorphisme, images réelles, phone mockup
   ============================================================ */

/* ── HERO avec photo réelle ── */
.hero {
  background-image: url('../images/hero-road.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 10, 25, 0.88) 0%,
    rgba(26, 26, 46, 0.75) 45%,
    rgba(180, 39, 37, 0.22) 100%
  );
  z-index: 1;
}
.hero-bg-grid { z-index: 2; opacity: 0.25; }
.hero-particles { z-index: 2; }
.hero-content { z-index: 3; }
.hero-stats { z-index: 3; }
.hero-scroll-indicator { z-index: 3; }

/* ── HERO — Phone mockup supprimé ── */
.hero-phone-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-mockup {
  position: relative;
  width: 240px;
  animation: phone-float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}
.phone-frame {
  background: linear-gradient(160deg, #1c1c2e, #0d0d1a);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.phone-screen {
  background: linear-gradient(160deg, #1a1a2e, #2d1a1a);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9/18;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6);
}
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(180,39,37,0.2), transparent 60%);
}
.phone-logo-badge {
  background: var(--color-red);
  border-radius: 14px;
  padding: var(--space-3) var(--space-5);
  display: flex; align-items: center; gap: var(--space-2);
  position: relative; z-index: 1;
}
.phone-logo-badge span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: white;
}
.phone-call-ui {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.phone-caller {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.phone-timer {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: white;
  letter-spacing: 2px;
}
.phone-status {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}
.phone-actions {
  display: flex; gap: var(--space-5); z-index: 1;
}
.phone-btn-answer {
  width: 44px; height: 44px;
  background: #22c55e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(34,197,94,0.5);
}
.phone-btn-decline {
  width: 44px; height: 44px;
  background: var(--color-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(180,39,37,0.5);
}
.phone-btn-answer svg, .phone-btn-decline svg { stroke: white; }

/* Floating badges autour du phone */
.phone-badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: var(--space-2) var(--space-4);
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.phone-badge-1 {
  top: 15%; right: -30px;
  background: rgba(180,39,37,0.25);
  border-color: rgba(180,39,37,0.4);
  animation: badge-float-1 5s ease-in-out infinite;
}
.phone-badge-2 {
  top: 45%; left: -40px;
  animation: badge-float-2 6s ease-in-out infinite;
}
.phone-badge-3 {
  bottom: 20%; right: -20px;
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.4);
  animation: badge-float-3 7s ease-in-out infinite;
}
@keyframes badge-float-1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-8px) translateX(4px); }
}
@keyframes badge-float-2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(10px) translateX(-4px); }
}
@keyframes badge-float-3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-6px) translateX(6px); }
  66% { transform: translateY(6px) translateX(-2px); }
}
.badge-dot-green {
  width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}
.badge-dot-orange {
  width: 8px; height: 8px; background: var(--color-orange); border-radius: 50%;
  box-shadow: 0 0 8px var(--color-orange);
}
.badge-dot-red {
  width: 8px; height: 8px; background: var(--color-red); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── TRUST BADGES ── */
.hero-trust {
  display: flex; gap: var(--space-5); flex-wrap: wrap;
  margin-top: var(--space-6);
}
.trust-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.trust-icon { color: #22c55e; font-size: 1rem; }

/* ── CARDS — Relief général amélioré ── */
.benefit-card {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 8px 32px rgba(0,0,0,0.08),
    0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.benefit-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 24px 64px rgba(0,0,0,0.14),
    0 8px 24px rgba(180,39,37,0.08);
}
.benefit-card.featured {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2) inset,
    0 16px 48px rgba(180,39,37,0.4),
    0 4px 12px rgba(180,39,37,0.3);
}
.benefit-card.featured:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.25) inset,
    0 28px 72px rgba(180,39,37,0.5),
    0 8px 24px rgba(180,39,37,0.35);
}

/* ── STAGE CARDS — Relief et image backdrop ── */
.stage-card {
  background: var(--color-white);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 20px rgba(0,0,0,0.07),
    0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.stage-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 24px 56px rgba(0,0,0,0.12),
    0 8px 20px rgba(180,39,37,0.1);
}

/* ── SECTION STAGES — Image background ── */
.stages-section {
  position: relative;
  background: var(--color-white);
}
.stages-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: url('../images/open-road.jpg') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

/* ── PROCESS STEPS — Glassmorphisme ── */
.process-step {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1),
              background 0.35s;
}
.process-step:hover {
  background: rgba(180,39,37,0.1);
  border-color: rgba(180,39,37,0.35);
  box-shadow:
    0 0 0 1px rgba(180,39,37,0.15) inset,
    0 16px 48px rgba(0,0,0,0.4);
  transform: translateY(-6px);
}
.process-step.featured-step {
  background: var(--color-red);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15) inset,
    0 16px 48px rgba(180,39,37,0.45),
    0 4px 16px rgba(180,39,37,0.3);
}
.process-step.featured-step:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2) inset,
    0 24px 64px rgba(180,39,37,0.55),
    0 8px 24px rgba(180,39,37,0.4);
}

/* ── PROCESS SECTION — Image background blurée ── */
.process-section {
  position: relative;
  overflow: hidden;
}
.process-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/car-interior.jpg') center/cover no-repeat;
  opacity: 0.06;
  filter: blur(4px);
  z-index: 0;
}
.process-section .container { position: relative; z-index: 1; }
.process-section .section-header { position: relative; z-index: 1; }

/* ── ABOUT — Image réelle ── */
.about-img-wrapper {
  background: none;
  overflow: hidden;
}
.about-img-real {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.about-img-wrapper:hover .about-img-real { transform: scale(1.04); }
.about-img-wrapper {
  box-shadow:
    0 2px 0 rgba(255,255,255,0.08) inset,
    0 32px 80px rgba(0,0,0,0.25),
    0 8px 24px rgba(0,0,0,0.15);
}

/* ── SERVICE CARDS — Photo thumbnail ── */
.service-img-real {
  width: 100%; height: 180px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .service-img-real { transform: scale(1.06); }

/* ── TESTIMONIAL CARDS — Glassmorphisme ── */
.testimonial-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.35s;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(180,39,37,0.2) inset,
    0 20px 56px rgba(0,0,0,0.4);
}
.testimonial-card.featured-testimonial {
  box-shadow:
    0 0 0 1px rgba(180,39,37,0.2) inset,
    0 16px 48px rgba(180,39,37,0.2),
    0 4px 16px rgba(0,0,0,0.3);
}

/* ── ARTICLE CARDS — Effet image zoom ── */
.article-card {
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 4px 20px rgba(0,0,0,0.07);
}
.article-img-real {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), filter 0.5s;
}
.article-card:hover .article-img-real {
  transform: scale(1.06);
  filter: brightness(1.05);
}
.art-img-featured .article-img-real { height: 260px; }

/* ── DIGIFORMA SECTION — Glassmorphisme ── */
.digiforma-section { position: relative; overflow: hidden; }
.digiforma-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/open-road.jpg') center 60%/cover no-repeat;
  opacity: 0.08;
}
.digiforma-card {
  position: relative;
  backdrop-filter: blur(4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 16px 48px rgba(0,0,0,0.10),
    0 4px 12px rgba(0,0,0,0.06);
}

/* ── CONTACT CTA — Relief renforcé ── */
.contact-cta-card {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 40px 100px rgba(0,0,0,0.3),
    0 16px 40px rgba(0,0,0,0.2);
  background-image: url('../images/hero-road.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.contact-cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,10,25,0.92) 0%, rgba(26,26,46,0.88) 60%, rgba(180,39,37,0.3) 100%);
  border-radius: var(--radius-xl);
  z-index: 0;
}
.cta-text, .cta-actions { position: relative; z-index: 1; }

/* ── RED BANNER SECTION ── */
.red-banner-section {
  background: linear-gradient(135deg, var(--color-red) 0%, #8c1c1b 100%);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  position: relative;
  overflow: hidden;
}
.red-banner-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/open-road.jpg') center/cover no-repeat;
  opacity: 0.08;
  mix-blend-mode: overlay;
}
.red-banner-section::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}
.red-banner-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.red-banner-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}
.red-banner-text p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  line-height: 1.65;
}
.red-banner-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.btn-white-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 700;
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
}

/* ── PENALTY BADGE CARDS ── */
.penalty-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 28px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.penalty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.14);
}
.penalty-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.penalty-1 { background: linear-gradient(135deg, #f59e0b, #f06831); }
.penalty-2 { background: linear-gradient(135deg, #f06831, #e05a28); }
.penalty-3 { background: linear-gradient(135deg, #e05a28, #c94020); }
.penalty-4 { background: linear-gradient(135deg, #c94020, #b42725); }
.penalty-6 { background: linear-gradient(135deg, #b42725, #8c1c1b); }
.penalty-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem,0.9rem + 0.3vw, 1.15rem);
  color: var(--color-dark);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}
.penalty-card ul { display: flex; flex-direction: column; gap: var(--space-2); }
.penalty-card li {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.penalty-card li::before { content: '⚠️'; font-size: 0.7rem; flex-shrink: 0; margin-top: 2px; }

/* ── INFRACTIONS SECTION ── */
.infractions-section {
  padding-block: clamp(var(--space-16),8vw,var(--space-24));
  background: var(--color-surface);
}
.penalty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}

/* ── ABOUT SECTION — Image avec overlay ── */
.about-section {
  position: relative;
  overflow: hidden;
}

/* ── ARTICLE CARDS photo ── */
.article-img-wrapper {
  position: relative;
  overflow: hidden;
}

/* ── STAT CARDS flottantes sur fond sombre ── */
.about-stat {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 32px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.07);
  transition: var(--transition);
}
.about-stat:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 16px 48px rgba(0,0,0,0.18),
    0 4px 12px rgba(180,39,37,0.1);
}

/* ── BENEFIT ICON — Rotation au hover ── */
.benefit-card:hover .benefit-icon svg {
  transform: scale(1.15) rotate(-8deg);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.benefit-icon svg { transition: transform 0.3s; }

/* ── SECTION LABEL — Underline accent ── */
.section-title .underline-accent {
  position: relative;
  display: inline-block;
}
.section-title .underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-orange));
  border-radius: 2px;
}

/* ── GRADIENT SEPARATOR ── */
.gradient-sep {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-red), var(--color-orange), transparent);
  border: none;
  margin: 0;
}

/* ── HERO INNER LAYOUT override — phone supprimé, colonne unique ── */
.hero-content { padding-block: 0 !important; }
.hero-inner {
  display: block;
  padding-block: clamp(4rem, 10vw, 6rem);
}
.hero-phone-col {
  display: none !important;
}

/* ── SERVICE IMAGES FIX ── */
.service-img { overflow: hidden; }

/* ── ARTICLE IMGS FIX ── */
.art-img-1 .article-img-wrapper,
.art-img-2 .article-img-wrapper,
.art-img-3 .article-img-wrapper {
  overflow: hidden;
}
.art-img-1 .article-img-real { height: 260px; }
.art-img-2 .article-img-real,
.art-img-3 .article-img-real { height: 180px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone-col { display: none; }
}
@media (max-width: 768px) {
  .red-banner-inner { flex-direction: column; text-align: center; }
  .red-banner-actions { justify-content: center; }
}
