/* ==========================================================
   Lawen – améliorations (mobile, installation, parcours)
   ========================================================== */

:root {
  --lawen-gold: #cca876;
  --lawen-gold-dark: #b49465;
  --lawen-navy: #2b2f40;
  --lawen-ink: #1d1f27;
  --lawen-soft: #f2f3f8;
}

/* ---------- Logo : proportions correctes (le logo est carré) ---------- */
.rd-navbar-brand img,
.page-foot .brand img {
  width: auto !important;
  height: 64px !important;
  max-width: none;
}
.rd-navbar-fixed .rd-navbar-brand { top: 4px; }
.rd-navbar-fixed .rd-navbar-brand img { height: 48px !important; }
.page-foot .brand img {
  height: 90px !important;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}

/* ---------- Images visibles sur smartphone ---------- */

/* Bandeau du haut (auparavant masqué sous 1200 px) */
.section-banner-top img {
  display: block;
  width: 100%;
  min-height: 24px;
  object-fit: cover;
}

/* iPhone/Android n'affichent pas les fonds "fixed" : on passe en défilement normal */
@media (max-width: 1199px), (hover: none) {
  .page-title-wrap,
  .bg-fixed {
    background-attachment: scroll !important;
  }
}

@media (max-width: 991px) {
  /* Illustration Lawen dans "Pourquoi ce site ?" */
  .box-cart .box-cart-image {
    display: block;
    text-align: center;
    margin-bottom: 28px;
  }
  .box-cart .box-cart-image img {
    width: 220px;
    max-width: 70%;
    height: auto;
    border-radius: 12px;
  }
  /* Image de la page À propos */
  .image-wrap-1 { text-align: center; padding-bottom: 40px; }
  .image-wrap-1 img { max-width: 100% !important; height: auto; }
}

/* Illustration de la section consultation (accueil) */
.lawen-avatar-col img { max-width: 100%; height: auto; }
@media (max-width: 1199px) {
  .lawen-avatar-col { text-align: center; padding-bottom: 40px; }
  .lawen-avatar-col > div { margin-top: 0 !important; }
  .lawen-avatar-col img { width: 240px; border-radius: 12px; }
}

/* ---------- Bannière "Installer l'application" ---------- */
.lawen-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 100000;
  max-width: 440px;
  margin: 0 auto;
  padding: 18px 18px 16px;
  background: #fff;
  color: var(--lawen-ink);
  border-radius: 16px;
  border-top: 4px solid var(--lawen-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  font-family: "Lato", Helvetica, Arial, sans-serif;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.lawen-install.is-visible { transform: translateY(0); opacity: 1; }
.lawen-install__head { display: flex; align-items: center; gap: 12px; padding-right: 26px; }
.lawen-install__head img { border-radius: 12px; border: 1px solid #e5e7e9; flex-shrink: 0; }
.lawen-install__title { margin: 0; font: 700 17px/1.3 "PT Serif", Georgia, serif; color: var(--lawen-ink); }
.lawen-install__sub { margin: 2px 0 0 !important; font-size: 13px; color: #777; }
.lawen-install__text { margin: 12px 0 0 !important; font-size: 15px; line-height: 1.5; color: #333; }
.lawen-install__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.lawen-install__actions button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid var(--lawen-gold);
}
.lawen-install__later { background: #fff; color: var(--lawen-gold-dark); }
.lawen-install__ok { background: var(--lawen-gold); color: #fff; }
.lawen-install__close {
  position: absolute; top: 8px; right: 10px;
  width: 36px; height: 36px;
  border: 0; background: transparent;
  font-size: 26px; line-height: 1; color: #999; cursor: pointer;
}

/* ---------- Avertissement juridique (toutes les pages) ---------- */
.lawen-disclaimer {
  background: #fbf6ee;
  border-top: 1px solid #ecdcc3;
  border-bottom: 1px solid #ecdcc3;
  padding: 22px 0;
}
.lawen-disclaimer p {
  margin: 0;
  color: #5a4a33;
  font-size: 14px;
  line-height: 1.6;
}
.lawen-disclaimer strong { color: #3b2f1f; }
.lawen-disclaimer a { color: var(--lawen-gold-dark); text-decoration: underline; }

/* ---------- Page À propos : Mon parcours ---------- */
.lawen-intro { font-size: 16px; line-height: 1.75; color: #333; }
.lawen-intro p + p { margin-top: 18px; }

.lawen-card {
  background: #fff;
  border: 1px solid #e5e7e9;
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 6px 24px rgba(43, 47, 64, .06);
}
.lawen-card h5 { margin: 0 0 14px; font-family: "PT Serif", Georgia, serif; }
.lawen-card + .lawen-card { margin-top: 20px; }
.lawen-checklist li {
  position: relative;
  padding-left: 30px;
  color: #333;
  line-height: 1.55;
}
.lawen-checklist li + li { margin-top: 10px; }
.lawen-checklist li:before {
  position: absolute; left: 0; top: 0;
  font-weight: 700; font-size: 16px;
}
.lawen-checklist.is-yes li:before { content: "✓"; color: #3c8a5a; }
.lawen-checklist.is-no li:before { content: "✕"; color: #b5523b; }

.lawen-parcours-head { text-align: center; max-width: 680px; margin: 0 auto; }
.lawen-parcours-head p { color: #666; font-size: 16px; }

.lawen-timeline {
  position: relative;
  max-width: 820px;
  margin: 45px auto 0;
  padding: 0;
  list-style: none;
}
.lawen-timeline:before {
  content: "";
  position: absolute;
  left: 21px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--lawen-gold), rgba(204, 168, 118, .25));
}
.lawen-timeline > li {
  position: relative;
  padding-left: 66px;
}
.lawen-timeline > li + li { margin-top: 34px; }
.lawen-timeline__dot {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lawen-gold);
  color: var(--lawen-gold-dark);
  font: 700 17px/40px "PT Serif", Georgia, serif;
  text-align: center;
}
.lawen-timeline h5 {
  margin: 8px 0 0;
  font-family: "PT Serif", Georgia, serif;
  color: var(--lawen-ink);
}
.lawen-timeline p { margin-top: 8px; color: #444; font-size: 15px; line-height: 1.7; }

.lawen-note {
  max-width: 820px;
  margin: 45px auto 0;
  padding: 20px 24px;
  border-left: 4px solid var(--lawen-gold);
  background: #fff;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #555;
  line-height: 1.7;
}

/* ---------- Page Conditions générales ---------- */
.lawen-legal { max-width: 860px; margin: 0 auto; color: #333; font-size: 15px; line-height: 1.75; }
.lawen-legal h4 {
  margin-top: 38px;
  font-family: "PT Serif", Georgia, serif;
  font-size: 21px;
  color: var(--lawen-ink);
}
.lawen-legal h4:first-of-type { margin-top: 0; }
.lawen-legal h4 + p { margin-top: 12px; }
.lawen-legal ul { margin-top: 12px; }
.lawen-legal ul li { position: relative; padding-left: 20px; }
.lawen-legal ul li + li { margin-top: 6px; }
.lawen-legal ul li:before { content: "–"; position: absolute; left: 0; color: var(--lawen-gold-dark); }
.lawen-legal .lawen-updated { color: #888; font-size: 13px; margin-top: 40px; }
.lawen-highlight {
  background: #fbf6ee;
  border: 1px solid #ecdcc3;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 16px;
}

/* ---------- Petites corrections de lisibilité sur mobile ---------- */
@media (max-width: 575px) {
  .swiper-variant-1 .slider-header { font-size: 24px; line-height: 1.25; }
  .button-lg { min-width: 0; width: auto; padding-left: 22px; padding-right: 22px; font-size: 16px; }
  .lawen-timeline > li { padding-left: 58px; }
}

/* ---------- Lisibilité du texte sur les images de fond (bloc « Mon message ») ---------- */
.parallax-container.bg-black:before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  background: rgba(20, 22, 30, .68);
  pointer-events: none;
}
.parallax-container.bg-black .parallax-content { z-index: 2; }

/* Titre de page lisible sur l'image de fond */
.page-title-wrap { position: relative; }
.page-title-wrap:before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(20, 22, 30, .55);
}
.page-title-wrap > .container { position: relative; z-index: 1; }
