/* ==========================================================================
   Touche Pas Mes Points — style principal
   Charte issue du logo : bleu #1f78d1 — rouge #e02b2b — vert #3da01e — charcoal
   (les noms de variables --navy-*/--gold-* sont historiques : navy = bleu,
    gold = rouge accent)
   ========================================================================== */

:root {
  --navy-900: #0e2f55;
  --navy-800: #14487e;
  --navy-700: #1a63ad;
  --navy-600: #1f78d1;
  --navy-100: #d9e7f7;
  --gold-500: #d42525;
  --gold-400: #e93a30;
  --gold-100: #fdecea;
  --ivory:    #f3f7fc;
  --white:    #ffffff;
  --text:     #262e38;
  --text-soft:#5c6975;
  --green:    #3da01e;
  --red:      #b3352c;
  --radius:   14px;
  --shadow:   0 10px 40px rgba(14, 47, 85, .12);
  --shadow-sm:0 4px 16px rgba(14, 47, 85, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, .serif {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--navy-800);
  line-height: 1.2;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin-bottom: 1em; }

a { color: var(--navy-600); }

img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Topbar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: var(--navy-100);
  font-size: 13px;
  padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-offer strong { color: var(--gold-400); }
.topbar-offer s { opacity: .6; }

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(14, 47, 85, .12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy-800);
  white-space: nowrap;
}
.brand em { color: var(--gold-400); font-style: normal; }
.brand-logo { height: 48px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: #33404d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-600); }
.nav-toggle { display: none; background: none; border: none; color: var(--navy-800); font-size: 1.7rem; cursor: pointer; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .15s;
  font-family: 'Inter', sans-serif;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--white) !important;
  box-shadow: 0 6px 22px rgba(212, 37, 37, .35);
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(212, 37, 37, .5); }

.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400) !important; }

.btn-navy { background: var(--navy-800); color: var(--white) !important; }

.btn-lg { padding: 18px 42px; font-size: 18px; }

.nav-cta { padding: 10px 22px !important; font-size: 14px !important; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(115deg, rgba(9,30,56,.94) 0%, rgba(14,47,85,.86) 45%, rgba(14,47,85,.55) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  padding: 90px 24px 100px;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .gold { color: #ff574c; }
.hero-sub { font-size: 1.15rem; color: var(--navy-100); max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--navy-100); }
.hero-trust span::before { content: '✔ '; color: #58c93a; font-weight: 700; }

.hero-visual { position: relative; }
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.price-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 22px;
  color: var(--navy-800);
  text-align: center;
}
.price-badge .old { text-decoration: line-through; color: var(--text-soft); font-size: 15px; margin-right: 8px; }
.price-badge .new { font-size: 2rem; font-weight: 800; font-family: 'Montserrat', sans-serif; color: var(--navy-800); }
.price-badge .label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-500); font-weight: 700; }

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--ivory); }
.section-navy { background: var(--navy-800); color: var(--navy-100); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}
.section-head p { color: var(--text-soft); font-size: 1.06rem; }
.section-navy .section-head p { color: var(--navy-100); }

/* --------------------------------------------------------------------------
   Cartes étapes
   -------------------------------------------------------------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-card img { height: 210px; object-fit: cover; width: 100%; }
.step-card-body { padding: 26px 26px 30px; flex: 1; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-soft); font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   Garantie
   -------------------------------------------------------------------------- */
.guarantee {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius);
  padding: 40px 46px;
  color: var(--white);
  box-shadow: var(--shadow);
}
.guarantee-icon { font-size: 3.2rem; }
.guarantee h3 { color: var(--gold-400); font-size: 1.45rem; margin-bottom: 6px; }
.guarantee p { margin: 0; color: var(--navy-100); }

/* --------------------------------------------------------------------------
   Infractions
   -------------------------------------------------------------------------- */
.infractions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.infraction-card {
  background: var(--white);
  border: 1px solid #e6e2d8;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color .15s, box-shadow .15s;
}
.infraction-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.infraction-icon { font-size: 2rem; line-height: 1; }
.infraction-card h3 { font-size: 1.05rem; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 6px; }
.infraction-card p { font-size: 14px; color: var(--text-soft); margin: 0; }

.eligibility-note {
  margin-top: 34px;
  background: var(--gold-100);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 26px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Avocat / cabinet
   -------------------------------------------------------------------------- */
.lawyer-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.lawyer-split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.lawyer-points { list-style: none; margin: 22px 0 30px; }
.lawyer-points li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.lawyer-points li::before { content: '⚖️'; position: absolute; left: 0; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.pricing-head { background: var(--navy-800); color: var(--white); padding: 30px; }
.pricing-head .ribbon {
  display: inline-block;
  background: var(--gold-400);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 14px;
}
.pricing-price { font-family: 'Montserrat', sans-serif; font-size: 3.6rem; font-weight: 800; color: var(--gold-400); line-height: 1; }
.pricing-price .old { font-size: 1.4rem; color: rgba(255,255,255,.55); text-decoration: line-through; vertical-align: super; margin-left: 10px; }
.pricing-body { padding: 32px; }
.pricing-body ul { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-body li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px dashed #eee7d8; font-size: 15px; }
.pricing-body li:last-child { border-bottom: none; }
.pricing-body li::before { content: '✔'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid #e6e2d8;
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 54px 20px 24px;
  font: 600 16px 'Inter', sans-serif;
  color: var(--navy-800);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-500);
  transition: transform .2s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 24px 22px; color: var(--text-soft); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* --------------------------------------------------------------------------
   Avis clients
   -------------------------------------------------------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--white);
  border: 1px solid #e6e2d8;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; color: var(--navy-800); font-size: 15px; }
.review-stars { color: #f5a623; letter-spacing: 2px; font-size: 14px; }
.review-g {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid #e0dbd0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  color: #4285f4;
  background: var(--white);
}
.review-text { font-size: 14.5px; color: var(--text-soft); margin: 0; font-style: italic; }

.lawyer-badge { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.lawyer-badge img { width: 110px; height: 110px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.lawyer-badge .badge-meta { font-size: 14px; color: var(--text-soft); }
.lawyer-badge .badge-meta strong { color: var(--navy-800); display: block; font-size: 15px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 80% 0%, rgba(233,58,48,.18), transparent);
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--navy-100); margin-bottom: 30px; position: relative; }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 46px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 14px; color: var(--navy-800); }
.form-field label .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px;
  border: 1.5px solid #d9d4c8;
  border-radius: 10px;
  font: 400 15px 'Inter', sans-serif;
  color: var(--text);
  background: #fdfcfa;
  transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
}
.form-hint { font-size: 12.5px; color: var(--text-soft); }

.dropzone {
  border: 2px dashed #c9c2b2;
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  background: #fdfcfa;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--navy-600); background: #eaf3fd; }
.dropzone-icon { font-size: 2.4rem; margin-bottom: 8px; }
.dropzone strong { color: var(--navy-800); }
.dropzone input[type="file"] { display: none; }
.dropzone-filename { margin-top: 10px; font-weight: 600; color: var(--green); font-size: 14px; }

.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-soft); }
.form-consent input { margin-top: 4px; }

.form-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin: 26px 0;
}
.form-total .amount { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy-800); }
.form-total .amount s { font-size: 1.1rem; color: var(--text-soft); margin-right: 10px; }

.alert { border-radius: 10px; padding: 16px 20px; margin-bottom: 22px; font-size: 15px; }
.alert-error { background: #fbe9e7; border: 1px solid #e5b6b0; color: var(--red); }
.alert-success { background: #e8f5ee; border: 1px solid #b3dcc5; color: var(--green); }

/* --------------------------------------------------------------------------
   Pages contenu (légal, etc.)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { color: var(--navy-100); max-width: 640px; margin: 14px auto 0; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin: 40px 0 14px; font-size: 1.5rem; }
.prose h3 { margin: 26px 0 10px; }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; }
.prose li { margin-bottom: 6px; }
.prose .placeholder { background: #fff3cd; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Timeline (comment ça marche) */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--navy-600), var(--navy-100));
}
.timeline-item { position: relative; padding: 0 0 44px 84px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 0 0 5px var(--white), var(--shadow-sm);
}
.step-num { color: var(--white) !important; background: var(--navy-600) !important; }
.timeline-item h3 { margin-bottom: 8px; }
.timeline-item p { color: var(--text-soft); }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.stat .stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold-400);
}
.stat .stat-label { color: var(--navy-100); font-size: 15px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--navy-100); padding: 64px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand { font-size: 1.15rem; margin-bottom: 14px; color: var(--white); }
.footer-col p { font-size: 14px; opacity: .85; }
.footer-guarantee { color: #7ddb5e; font-weight: 600; }
.footer-brand .fb-blue { color: #5aa9f2; }
.footer-brand .fb-red { color: #ff5a50; }
.footer-brand .fb-white { color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--navy-100); text-decoration: none; font-size: 14px; margin-bottom: 10px; opacity: .85; }
.footer-col a:hover { color: var(--gold-400); opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: 13px; opacity: .7; }
.footer-disclaimer { font-size: 12px; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 24px; }
  .hero-visual { max-width: 520px; }
  .steps-grid, .infractions-grid, .stats-band, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .lawyer-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
    box-shadow: 0 14px 30px rgba(14,47,85,.25);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .steps-grid, .infractions-grid, .form-grid, .stats-band, .reviews-grid { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; text-align: center; }
  .form-wrap { padding: 28px 20px; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 56px 0; }
}
