/* ═══════════════════════════════════════════════════
   PAGE ENTRETIEN MENSUEL — style carrosserie
═══════════════════════════════════════════════════ */

/* ── Hero ── */
.em-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: #f0f5f6;
  overflow: hidden;
  padding: calc(var(--nav-h) + 80px) 0 100px;
}
.em-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 0% 50%, rgba(226,0,26,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 100% 80%, rgba(32,80,95,.10) 0%, transparent 60%);
}
.em-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 58,17 58,53 30,68 2,53 2,17' fill='none' stroke='rgba(32,80,95,0.07)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px;
}
.em-hero-content { position: relative; z-index: 1; max-width: 860px; text-align: center; margin: 0 auto; }

.em-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(226,0,26,.1);
  border: 1px solid rgba(226,0,26,.25);
  color: var(--red);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 28px;
}
.em-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 5.5vw, 76px);
  letter-spacing: 2px; line-height: 1.05;
  color: #0a0a0a; margin-bottom: 22px;
}
.em-title-accent { color: var(--red); }
.em-sub {
  font-size: 17px; font-weight: 300;
  color: #4a5a60;
  line-height: 1.75; max-width: 580px;
  margin: 0 auto 48px;
}

/* ── 3 cartes hero ── */
.em-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.em-hero-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(32,80,95,.15);
  border-radius: 20px;
  padding: 36px 28px 32px;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(32,80,95,.08);
  transition: border-color .2s, box-shadow .2s, transform .25s;
}
.em-hero-card:hover {
  border-color: rgba(32,80,95,.35);
  box-shadow: 0 10px 32px rgba(32,80,95,.14);
  transform: translateY(-5px);
}
.em-hero-card--pro {
  background: #fff;
  border-color: rgba(226,0,26,.25);
  box-shadow: 0 2px 16px rgba(226,0,26,.07);
}
.em-hero-card--pro:hover {
  border-color: rgba(226,0,26,.55);
  box-shadow: 0 10px 32px rgba(226,0,26,.13);
}
.em-hc-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f0f5f6;
  border: 1px solid rgba(32,80,95,.12);
  border-radius: 16px;
  color: #20505F;
}
.em-hero-card--pro .em-hc-icon { background: rgba(226,0,26,.07); border-color: rgba(226,0,26,.18); color: var(--red); }
.em-hc-body { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.em-hc-body strong { font-size: 16px; font-weight: 800; color: #0a0a0a; letter-spacing: .3px; }
.em-hc-body span   { font-size: 13px; color: #7a8f95; line-height: 1.5; }
.em-hc-body em     { font-size: 15px; color: #20505F; font-style: normal; font-weight: 800; margin-top: 6px; }
.em-hero-card--pro .em-hc-body em { color: var(--red); }
.em-hc-arrow {
  font-size: 20px; color: #ccc;
  transition: color .2s, transform .2s;
  margin-top: 4px;
}
.em-hero-card:hover .em-hc-arrow { color: #20505F; transform: translateX(4px); }
.em-hero-card--pro:hover .em-hc-arrow { color: var(--red); }

/* ── Sections ── */
.em-section { position: relative; }
.em-section--light { background: #ffffff; }
.em-section--teal  { background: #f0f5f6; }
.em-section--dark  { background: #ffffff; overflow: hidden; }

.em-section-bg {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 58,17 58,53 30,68 2,53 2,17' fill='none' stroke='rgba(32,80,95,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px;
}
.em-section-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 100% 50%, rgba(226,0,26,.05) 0%, transparent 60%);
}

/* ── Split layout ── */
.em-split {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

/* ── Features ── */
.em-features { list-style: none; display: flex; flex-direction: column; gap: 18px; margin: 28px 0 0; }
.em-features li { display: flex; align-items: flex-start; gap: 14px; }
.em-feat-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(226,0,26,.08); border-radius: 50%;
  color: #e2001a; margin-top: 2px;
}
.em-feat-icon--teal { background: rgba(32,80,95,.1); color: #20505F; }
.em-feat-icon--red  { background: rgba(226,0,26,.1); color: var(--red); }
.em-features li div { display: flex; flex-direction: column; gap: 3px; }
.em-features li strong { font-size: 14px; font-weight: 800; color: #111; letter-spacing: .3px; }
.em-features li span  { font-size: 13px; color: #777; line-height: 1.5; }
.em-features--dark li strong { color: #111; }
.em-features--dark li span   { color: #777; }

.stitle--white  { color: #0a0a0a; }
.sdesc--white   { color: #4a5a60; }

/* ── Bloc prix (tableau véhicules) ── */
.em-price-block {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 28px rgba(0,0,0,.07);
}
.em-price-block--teal { background: #ffffff; border-color: #d0e4e8; }
.em-price-block--dark {
  background: #ffffff;
  border-color: #d8e8ec;
  box-shadow: 0 4px 20px rgba(32,80,95,.08);
}
.em-price-block-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 1.5px;
  color: #111; margin-bottom: 20px;
}
.em-price-block-title--white { color: #0a0a0a; }

.em-price-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.em-price-row {
  display: flex; align-items: center; gap: 10px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.em-price-row:hover { border-color: #e2001a; box-shadow: 0 3px 12px rgba(226,0,26,.08); }
.em-price-rows--dark .em-price-row { background: #f8f8f8; border-color: #e8e8e8; }
.em-price-rows--dark .em-price-row:hover { border-color: rgba(226,0,26,.45); }
.em-price-row--dark {}

.em-price-row-cat {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: #333;
  flex: 1;          /* prend tout l'espace dispo → pousse le prix à droite */
  order: 1;
}
.em-price-row-cat svg { color: #999; flex-shrink: 0; }
.em-price-rows--dark .em-price-row-cat { color: #333; }
.em-price-rows--dark .em-price-row-cat svg { color: #999; }

.em-price-row-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 1px; color: var(--red);
  display: flex; align-items: baseline; gap: 1px;
  flex-shrink: 0;   /* ne rétrécit jamais */
  order: 3;         /* toujours en dernier = droite */
  text-align: right;
}
.em-price-row-val span { font-size: 20px; }
.em-price-row-val small {
  font-family: 'Barlow', sans-serif;
  font-size: 11px; font-weight: 600; color: #aaa;
  margin-left: 3px; letter-spacing: 0;
}
.em-price-row-val--white { color: var(--red); }
.em-price-row-val--white small { color: #aaa; }

/* ── CTA buttons ── */
.em-cta-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--red); color: #ffffff;
  border: none; border-radius: 100px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.em-cta-btn:hover { background: #c00016; transform: translateY(-1px); }
.em-cta-btn--teal  { background: #20505F; }
.em-cta-btn--teal:hover { background: #1a4049; }
.em-cta-btn--white { background: #20505F; color: #ffffff; }
.em-cta-btn--white:hover { background: #1a4049; }

.em-price-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #bbb; margin-top: 12px; line-height: 1.5;
}
.em-price-note svg { flex-shrink: 0; }
.em-price-note--dark { color: #aaa; }

/* ── Alerte km ── */
.em-km-alert {
  display: none;
  margin-top: 10px; padding: 14px 16px;
  background: rgba(226,0,26,.06);
  border: 1px solid rgba(226,0,26,.25);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  font-size: 13px; color: #c00016; line-height: 1.6;
}
.em-km-alert a { color: var(--red); font-weight: 700; }
.em-km-alert.visible { display: block; }

/* ══════════════════════════
   SERVICES COMMUNS
══════════════════════════ */
.em-services { background: #f5f5f5; }
.em-services-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px; align-items: center;
}
.em-services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px;
}
.em-service-item { display: flex; align-items: flex-start; gap: 12px; }
.em-service-dot {
  display: inline-block; width: 10px; height: 10px;
  background: var(--red); border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.em-service-item div { display: flex; flex-direction: column; gap: 3px; }
.em-service-item strong { font-size: 12px; font-weight: 800; letter-spacing: .8px; color: #111; }
.em-service-item span  { font-size: 12px; color: #777; line-height: 1.5; }

/* ══════════════════════════
   FORMULAIRE
══════════════════════════ */
.em-form-section { background: #ffffff; position: relative; overflow: hidden; }
.em-form-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 58,17 58,53 30,68 2,53 2,17' fill='none' stroke='rgba(0,0,0,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px; pointer-events: none;
}
.em-form-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start;
  position: relative; z-index: 1;
}
.em-form-reassurance {
  list-style: none; margin-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.em-form-reassurance li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #555; font-weight: 500;
}
.em-form-reassurance svg { color: var(--red); flex-shrink: 0; }
.em-stripe-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: #aaa; margin-top: 14px; line-height: 1.5;
}
.em-stripe-note svg { flex-shrink: 0; color: #aaa; }

/* tag variations */
.tag--teal { background: rgba(32,80,95,.1); color: #20505F; border: 1px solid rgba(32,80,95,.2); }
.tag--red  { background: rgba(226,0,26,.1); color: var(--red); border: 1px solid rgba(226,0,26,.2); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .em-split { grid-template-columns: 1fr; gap: 48px; }
  .em-split .em-split-right { max-width: 440px; }
  .em-services-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 960px) {
  .em-hero-cards { grid-template-columns: 1fr; gap: 14px; max-width: 400px; }
  .em-form-inner  { grid-template-columns: 1fr; gap: 48px; }
  .em-services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .em-hero { padding: calc(var(--nav-h) + 48px) 0 72px; }
  .em-hero-card { padding: 16px; }
  .em-price-row-val { font-size: 24px; }
}

/* ══════════════════════════════════════════════
   PRÉ-REMPLISSAGE FORMULAIRE
══════════════════════════════════════════════ */

/* Lignes de prix cliquables */
.em-price-row {
  cursor: default;
  border-radius: 10px;
  transition: background .18s ease, transform .15s ease;
}
.em-price-row.em-row-selectable {
  cursor: pointer;
}
.em-price-row.em-row-selectable:hover {
  background: rgba(226,0,26,.07);
  transform: translateX(5px);
}
.em-section--teal .em-price-row.em-row-selectable:hover {
  background: rgba(255,255,255,.18);
}
.em-section--dark .em-price-row.em-row-selectable:hover {
  background: rgba(255,255,255,.07);
}
/* Petite flèche indicatrice au hover — entre catégorie et prix */
.em-price-row.em-row-selectable::after {
  content: '→ Choisir';
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--red);
  opacity: 0;
  transition: opacity .18s ease;
  white-space: nowrap;
  order: 2;         /* entre .em-price-row-cat (1) et .em-price-row-val (3) */
  flex-shrink: 0;
}
.em-section--dark .em-price-row.em-row-selectable::after { color: #e2001a; }
.em-price-row.em-row-selectable:hover::after { opacity: 1; }

/* Flash sur champs pré-remplis */
@keyframes emFieldPulse {
  0%   { box-shadow: 0 0 0 3px rgba(226,0,26,.40); background: rgba(226,0,26,.07); border-color: var(--red); }
  65%  { box-shadow: 0 0 0 3px rgba(226,0,26,.15); }
  100% { box-shadow: none; background: transparent; }
}
.em-prefilled {
  animation: emFieldPulse 1.4s ease forwards !important;
  border-color: var(--red) !important;
}

/* Bandeau "formule pré-sélectionnée" */
@keyframes emBannerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.em-selected-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(226,0,26,.07);
  border: 1.5px solid rgba(226,0,26,.28);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--red);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  animation: emBannerIn .3s ease;
}
.em-selected-plan svg { flex-shrink: 0; }
