
:root{ --brand-blue:#0B508A; --ink:#1b2a3a; }
.trait-blue{
  width:72px;height:2px;border-radius:2px;
  background:linear-gradient(90deg, rgba(0,0,0,.18) 0%,
                                   rgba(11,80,138,1) 12%,
                                   rgba(11,80,138,1) 88%,
                                   rgba(0,0,0,.18) 100%);
  box-shadow:0 1px 0 rgba(0,0,0,.12),0 0 1px rgba(11,80,138,.45);
}
.cta-with-lines{ display:flex;align-items:center;justify-content:center;gap:16px;margin:20px 0 0; }
.btn-return{
  appearance:none;border:0;border-radius:999px;padding:14px 22px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size:16px;font-weight:700;color:#fff;text-decoration:none;
  background: linear-gradient(180deg, #0b5aa0 0%, #0B508A 40%, #0a4a7f 100%);
  box-shadow: 0 10px 18px rgba(11,80,138,.25), inset 0 1px 0 rgba(255,255,255,.24);
  transform: translateZ(0);
  transition: transform .08s ease, box-shadow .12s ease, filter .12s ease; outline:none;
}
.btn-return:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn-return:active{ transform: translateY(1px); box-shadow: 0 6px 12px rgba(11,80,138,.28) inset; }
.merci-note{ margin-top:8px;font-size:12px;color:rgba(27,42,58,.75);text-align:center; }

.cta-bottom-wrap{display:block;width:100%;clear:both;}


/* Force the bottom CTA to sit below and span full width, regardless of grid/flex context */
.cta-bottom-wrap{
  display:block;
  width:100%;
  clear:both;
  grid-column: 1 / -1;
  margin: 18px 0 10px;
}
/* Ensure the lines + button are centered as a single row */
.cta-bottom-wrap .cta-with-lines{
  justify-content:center;
}


/* Stable bottom CTA unique classes to avoid collisions */
.merci-cta-bottom-wrap{display:block;width:100%;clear:both;grid-column:1/-1;margin:18px 0 10px;position:relative}
.merci-cta-with-lines{display:flex;align-items:center;justify-content:center;gap:16px}
.merci-trait-blue{width:72px;height:2px;border-radius:2px;
  background:linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(11,80,138,1) 12%, rgba(11,80,138,1) 88%, rgba(0,0,0,.18) 100%);
  box-shadow:0 1px 0 rgba(0,0,0,.12),0 0 1px rgba(11,80,138,.45);
}
.merci-btn-return{
  appearance:none;border:0;border-radius:999px;padding:14px 22px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size:16px;font-weight:700;color:#fff;text-decoration:none;
  background: linear-gradient(180deg, #0b5aa0 0%, #0B508A 40%, #0a4a7f 100%);
  box-shadow: 0 10px 18px rgba(11,80,138,.25), inset 0 1px 0 rgba(255,255,255,.24);
  transform: translateZ(0);
  transition: transform .08s ease, box-shadow .12s ease, filter .12s ease; outline:none;
}
.merci-btn-return:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.merci-btn-return:active{ transform: translateY(1px); box-shadow: 0 6px 12px rgba(11,80,138,.28) inset; }


/* Bottom CTA rails: same aesthetic as the cb-bar above */
.merci-cta-with-lines{ display:flex; align-items:center; justify-content:center; gap:16px; }
.merci-rail{
  position: relative;
  height: 3px;
  width: 36%;
  min-width: 120px;
  max-width: 360px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(11, 80, 138, 0) 0%,
    rgba(11, 80, 138, .10) 35%,
    rgba(11, 80, 138, .28) 55%,
    var(--brand-300, rgba(11, 80, 138, .45)) 65%,
    rgba(11, 80, 138, .45) 75%,
    var(--brand, #0B508A) 100%);
  filter: drop-shadow(0 8px 12px rgba(11, 80, 138, .12));
}
/* Subtle tapered tips to match visual language */
.merci-rail::before, .merci-rail::after{
  content:"";
  position:absolute;
  top:0; height:100%; width:22px;
  background: linear-gradient(90deg, rgba(11,80,138,.28), rgba(11,80,138,0));
  border-radius:999px;
  opacity:.85;
}
.merci-rail::before{ left:-18px; }
.merci-rail::after{ right:-18px; transform: scaleX(-1); }


/* === CTA bas : largeur alignée à la carte (627px desktop), centré === */
#cta-bottom-home.merci-cta-with-lines{
  width: 100%;
  max-width: 627px;
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
  justify-content: center;
}
/* Rails s'adaptent pour remplir l'espace restant autour du bouton */
#cta-bottom-home .merci-rail{
  flex: 1 1 0;
  width: auto;
  min-width: 60px;
  max-width: none;
}
@media (max-width: 659px){
  #cta-bottom-home.merci-cta-with-lines{ max-width: 100%; }
}



/* === Force wrapper width to exact 627px on the Merci page === */
body[data-page="merci"] .merci-cta-bottom-wrap{
  width: 627px !important;
  max-width: 627px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  box-sizing: border-box;
}



/* == Merci CTA 627 final == */
.merci-card .merci-cta-bottom-wrap{
  width: 627px !important;
  max-width: 627px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#cta-bottom-home.merci-cta-with-lines{
  width: 100%;
  max-width: 627px;
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
  justify-content: center;
}
#cta-bottom-home .merci-rail{
  flex: 1 1 0;
  width: auto;
  max-width: 190px; /* 2*190 + 208 + 2*16 = 630 (approx); glossy button ~208px */
  min-width: 40px;
}



/* Hide any accidental stray text nodes in the bottom CTA area (e.g., a lone '>') */
.merci-cta-bottom-wrap{ font-size: 0; line-height: 0; }
.merci-cta-bottom-wrap .merci-cta-with-lines{ font-size: 0; line-height: 0; }
.merci-cta-bottom-wrap .merci-btn-return{ font-size: 16px; line-height: 1.1; }



/* === Rails du CTA bas : même style que .actions-under-slider::before === */
#cta-bottom-home.merci-cta-with-lines .merci-rail{
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg,
    rgba(11, 80, 138, 0),
    var(--brand-300, rgba(11,80,138,.45)),
    var(--brand, #0B508A)
  ) !important;
  filter: drop-shadow(0 8px 12px rgba(11, 80, 138, .12)) !important;
}
/* Le rail de droite est miroir pour que la couleur forte soit côté bouton */
#cta-bottom-home.merci-cta-with-lines .merci-rail:last-child{
  transform: scaleX(-1);
}



/* === CTA bas — rails : supprimer le "double trait" === */
#cta-bottom-home.merci-cta-with-lines .merci-rail{
  height: 2px !important;        /* plus fin, comme les traits du site */
  filter: none !important;        /* pas de drop-shadow qui crée une 2e ligne floue */
  background: linear-gradient(90deg,
    rgba(11, 80, 138, 0),
    var(--brand-300, rgba(11,80,138,.45)),
    var(--brand, #0B508A)
  ) !important;
}
#cta-bottom-home.merci-cta-with-lines .merci-rail::before,
#cta-bottom-home.merci-cta-with-lines .merci-rail::after{
  content: none !important;       /* désactive les pointes ajoutées précédemment */
  display: none !important;
}


/* Hide any leftover dynamically injected bar */
.actions-under-slider.outer{display:none !important;height:0 !important}


/* === Subheading enhanced === */
.merci-sublead{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .1px;
  color: rgba(27,42,58,.92);
  margin: 6px auto 6px;
}
.merci-sublead .sublead-text{ display:inline-block; transform: translateY(0.5px); }
.merci-sublead .sublead-ico{
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #0B508A, #08406d);
  box-shadow: 0 6px 14px rgba(11,80,138,.25), inset 0 1px 0 rgba(255,255,255,.24);
}
.merci-sublead .sublead-ico svg{ display:block; }
@media (max-width: 480px){
  .merci-sublead{ font-size: 17px; gap: 8px; }
  .merci-sublead .sublead-ico{ width: 26px; height: 26px; }
}



/* Note sous le titre du bloc WhatsApp */
.cb-note{
  display:block;
  margin: 4px 4px 8px;
  font-size: 13px;
  color: rgba(27,42,58,.68);
}



/* WhatsApp icon inside CTA button */
.cb-cta-btn .cb-ico{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:999px;
  background: radial-gradient(ellipse at 30% 30%, #2ad742 0%, #1ebe3b 45%, #16a834 65%, #0f992e 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 4px rgba(0,0,0,.18);
  margin-right: 10px;
}
.cb-cta-btn .cb-ico-whatsapp{ display:block; width:14px; height:14px; }



/* Secondary line under the acknowledgement subheading */
.merci-subhead-secondary{
  margin: 4px auto 6px;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(27,42,58,.72);
  text-align: center;
  font-weight: 700;
}
@media (max-width: 520px){
  .merci-subhead-secondary{ font-size: 17px; }
}



/* === Acknowledgement banner (top two lines) === */
.ack-banner{
  display:flex; align-items:center; justify-content:center; gap:14px;
  max-width: 780px; margin: 8px auto 4px; padding: 2px 6px;
}
.ack-badge{ width:34px; height:34px; border-radius:999px; display:grid; place-items:center;
  background: linear-gradient(180deg, #2ad742 0%, #16a834 60%);
  box-shadow: 0 6px 12px rgba(25,160,60,.22), inset 0 1px 0 rgba(255,255,255,.35);
}
.ack-badge svg{ width:18px; height:18px; fill:#fff; display:block; }
.ack-copy{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.ack-primary{ margin:0; font-weight:800; font-size:22px; line-height:1.25; color:#1b2a3a; letter-spacing:.1px; }
.ack-secondary{ margin:2px 0 0; font-weight:700; font-size:18px; line-height:1.25; color: rgba(27,42,58,.72); }
@media (max-width:560px){
  .ack-badge{ width:30px; height:30px; }
  .ack-badge svg{ width:16px; height:16px; }
  .ack-primary{ font-size:20px; }
  .ack-secondary{ font-size:16.5px; }
}



/* === Tighter spacing between title and ack banner on Merci page === */
body[data-page="merci"] .merci-hero h1{ margin-bottom: 8px !important; }
body[data-page="merci"] .ack-banner{ margin-top: 2px !important; margin-bottom: 0 !important; }



/* Force ack-banner directly under the title on the Merci page */
body[data-page="merci"] .merci-hero h1{ margin-bottom: 6px !important; }
body[data-page="merci"] .merci-hero > .ack-banner{ margin-top: 0 !important; }




/* Merci hero simple subheads (restored) */
.merci-hero .merci-subhead-primary{
  margin: 4px auto 2px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
  color: #1b2a3a;
}
.merci-hero .merci-subhead-secondary{
  margin: 0 auto 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  color: rgba(27,42,58,.72);
}


/* === Merci: underline the title + white card for subheads === */
body[data-page="merci"] .merci-hero h1{
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 6px;
}

/* Subhead white card */
.merci-subhead-card{width: 627px; max-width: 627px; margin-left:auto; margin-right:auto;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px 14px;
  margin: 6px auto 10px;
  max-width: 760px;
  box-shadow: 0 10px 24px rgba(11,80,138,.08), 0 2px 6px rgba(11,80,138,.06);
}
.merci-subhead-card .merci-subhead-primary{
  margin: 2px auto 2px !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  color: #1b2a3a !important;
  text-align: center !important;
}
.merci-subhead-card .merci-subhead-secondary{
  margin: 0 auto 2px !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: rgba(27,42,58,.72) !important;
  text-align: center !important;
}
@media (max-width: 560px){
  
  .merci-subhead-card{ padding: 10px 12px 12px; margin: 6px auto 8px; }
  .merci-subhead-card .merci-subhead-primary{ font-size: 20px !important; }
  .merci-subhead-card .merci-subhead-secondary{ font-size: 17px !important; }
}


/* Ensure only the H1 has an underline; the card stays plain */
.merci-subhead-card, .merci-subhead-card::before, .merci-subhead-card::after{
  border: none !important;
  background-image: none !important;
}


/* Use brand blue for the subhead texts in the white card */
.merci-subhead-card .merci-subhead-primary{
  color: var(--brand, #0B508A) !important;
}
.merci-subhead-card .merci-subhead-secondary{
  color: var(--brand-700, #0A4A7F) !important;
}



/* Title color and underline placement */
body[data-page="merci"] .merci-hero h1{ color: var(--brand, #0B508A) !important; }


/* Standalone underline element right under the H1 */
body[data-page="merci"] .merci-hero .hero-underline{
  width: 240px;
  height: 3px;
  margin: 8px auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11,80,138,0), var(--brand-300, #286ea3), var(--brand, #0B508A));
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
@media (max-width: 560px){
  body[data-page="merci"] .merci-hero .hero-underline{ width: 180px; margin: 6px auto 8px; }
}

/* Slight spacing tweaks for the white card */
.merci-subhead-card{ margin-top: 6px; }


/* Enforce: H1 brand blue and underline spacing */
body[data-page="merci"] .merci-hero h1{ color: var(--brand, #0B508A) !important; margin-bottom: 2px; }
body[data-page="merci"] .merci-hero .hero-underline{ width: 240px; height: 3px; margin: 6px auto 8px; border-radius:999px;
  background: linear-gradient(90deg, rgba(11,80,138,0), var(--brand-300, #286ea3), var(--brand, #0B508A));
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}


/* === Merci: underline via h1::after, disable container ::before === */
body[data-page="merci"] .merci-hero::before{ content: none !important; }
body[data-page="merci"] .merci-hero h1{
  color: var(--brand, #0B508A) !important;
  position: relative;
  margin-bottom: 6px;
}
body[data-page="merci"] .merci-hero h1::after{
  content: "";
  display: block;
  width: 240px;
  height: 3px;
  margin: 8px auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11,80,138,0), var(--brand-300, #286ea3), var(--brand, #0B508A));
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
@media (max-width: 560px){
  body[data-page="merci"] .merci-hero h1::after{ width: 180px; margin: 6px auto 8px; }
}


/* Strong enforcement: Merci title in brand blue + underline */
body[data-page="merci"] .merci-hero::before{ content: none !important; }
body[data-page="merci"] .merci-hero h1,
body[data-page="merci"] .merci-hero h1.brand-blue{
  color: var(--brand, #0B508A) !important;
}
body[data-page="merci"] .merci-hero h1::after{
  content: "";
  display: block;
  width: 240px;
  height: 3px;
  margin: 8px auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11,80,138,0), var(--brand-300, #286ea3), var(--brand, #0B508A));
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
@media (max-width: 560px){
  body[data-page="merci"] .merci-hero h1::after{ width: 180px; margin: 6px auto 8px; }
}



  body[data-page="merci"] .hero-title-rails::before,
  body[data-page="merci"] .hero-title-rails::after{ width: clamp(70px, 24vw, 160px); }
}

/* Neutralize any leftover side-rails wrapper */
.hero-title-rails, .hero-title-rails::before, .hero-title-rails::after { all: unset; }

/* Final: Merci title in brand blue with underline via h1::after */
body[data-page="merci"] .merci-hero::before{ content: none !important; }

body[data-page="merci"] .merci-hero h1{
  color: var(--brand, #0B508A) !important;
  position: relative;
  margin-bottom: 6px;
}

body[data-page="merci"] .merci-hero h1::after{
  content: "";
  display: block;
  width: 240px;
  height: 3px;
  margin: 8px auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11,80,138,0), var(--brand-300, #286ea3), var(--brand, #0B508A));
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

@media (max-width: 560px){
  body[data-page="merci"] .merci-hero h1::after{ width: 180px; margin: 6px auto 8px; }
}



}


/* FINAL FIX (rail aesthetic): underline under Merci title matches CTA rails */
div.global-hero.merci-hero h1{
  color: var(--brand, #0B508A) !important;
  position: relative;
}
div.global-hero.merci-hero h1::after{
  content: "";
  display: block;
  width: 280px;                 /* slightly wider to echo the card rail */
  height: 2px;                  /* rail thickness */
  margin: 10px auto 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-300), var(--brand), var(--brand-300));
  box-shadow: 0 4px 10px rgba(13,93,145,.08);
}
@media (max-width:560px){
  div.global-hero.merci-hero h1::after{ width: 200px; margin: 8px auto 10px; }
}


/* Ensure Merci title uses the same font as the rest of the site */
div.global-hero.merci-hero h1{
  font-family: inherit !important;
  font-weight: 800; /* keep strong but not extra-black */
}


/* Center the feedback message below the WhatsApp CTA */
#cb-feedback{
  text-align: center;
  margin: 18px 0 10px;
}


/* Spacing tweaks: tighten gap above the callback card */
body[data-page="merci"] .thanks-container{ margin-top: 8px !important; }
body[data-page="merci"] .next-step{ margin: 8px 0 8px !important; }

/* Make the bottom "Revenir à l’accueil" button use the same visual style as the WhatsApp CTA */

#cta-bottom-home .merci-btn-return.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* --- auto patch: hide fullscreen overlays when running as installed PWA/TWA --- */
@media (display-mode: standalone), (display-mode: fullscreen) {
  #overlay, .overlay,
  #fullscreen-overlay, .fullscreen-overlay,
  [data-overlay], [data-fullscreen-overlay],
  .fs-overlay, #fs-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html.no-fullscreen-overlay, body.no-fullscreen-overlay { overflow: auto !important; }
}
