/* ============================================================
   Sovereign Life Immo — styles communs ajoutés (oct. 2026)
   Bandeau offre, compte à rebours, tchat, avis, pied de page,
   pages légales, FAQ, Qui suis-je.
   Utilise les couleurs déjà définies dans chaque page (:root).
   ============================================================ */

/* ---------- Bandeau offre spéciale ---------- */
.promo-bar {
  background: var(--terre-cuite, #c11f34);
  color: #fff;
  font-size: 0.95rem;
  position: relative;
  z-index: 41;
}
.promo-bar-inner {
  max-width: var(--max-w, 1180px);
  margin: 0 auto;
  padding: 0.6rem 3rem 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
  text-align: center;
}
.promo-bar strong { font-weight: 700; }
.promo-bar s { opacity: 0.75; }
.promo-bar .promo-count { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.promo-bar a.promo-cta {
  color: var(--majorelle-deep, #14213f);
  background: var(--or, #c9a227);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.promo-bar a.promo-cta:hover { background: #e2bb3c; }
.promo-close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  opacity: 0.85;
}
.promo-close:hover { opacity: 1; }

/* Les blocs liés à l'offre n'apparaissent que pendant l'offre */
.offer-only { display: none !important; }
html.offer-on .offer-only { display: revert !important; }
html.offer-on section.offer-only,
html.offer-on div.offer-only { display: block !important; }
html.offer-on .regular-only { display: none !important; }

/* ---------- Compte à rebours ---------- */
.countdown {
  display: inline-flex;
  gap: 0.6rem;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-box {
  min-width: 4.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.6);
  border-radius: 12px;
  padding: 0.55rem 0.4rem 0.45rem;
  text-align: center;
}
.countdown .cd-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--or, #c9a227);
  line-height: 1;
}
.countdown .cd-lbl {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sable, #f1e4c8);
  margin-top: 0.3rem;
}
.countdown.light .cd-box { background: var(--blanc, #fffdf8); border-color: rgba(20,33,63,0.15); }
.countdown.light .cd-num { color: var(--terre-cuite, #c11f34); }
.countdown.light .cd-lbl { color: var(--encre-soft, #524a3c); }

/* Prix barré dans les cartes tarif */
.price-old { font-family: var(--serif); font-size: 1.8rem; color: var(--sable); opacity: 0.75; text-decoration: line-through; text-decoration-color: var(--terre-cuite); text-decoration-thickness: 3px; }
.price-tag-offer {
  display: inline-block;
  background: var(--terre-cuite, #c11f34);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.6rem;
}
.offer-section {
  background: radial-gradient(ellipse at 50% 30%, #223868 0%, #14213f 70%);
  color: var(--sable-light);
  text-align: center;
}
.offer-section h2 { color: var(--blanc); }
.offer-section .big-price { font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 5.5rem); color: var(--or); line-height: 1; margin: 0.4rem 0 0.2rem; }
.offer-section .countdown { margin: 1.4rem 0 1.6rem; }

/* ---------- Vidéo d'accueil ---------- */
.hero-video video { max-width: 100%; }
.hero-video { line-height: 0; padding: 0 !important; margin: 0; background: var(--majorelle-deep); }
.hero-video video { display: block; width: 100%; max-height: 82vh; aspect-ratio: 16 / 9; object-fit: contain; background: inherit; }
.hero-video.guide-video { background: #dcebfa; }

/* ---------- Pied de page commun ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer-grid strong { display: block; color: var(--blanc); margin-bottom: 0.6rem; font-family: var(--serif); font-size: 1.05rem; }
.footer-grid a { display: inline-block; margin: 0.15rem 0; }
.footer-grid p { margin: 0 0 0.6rem; }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: var(--blanc); }
.footer-brand span { color: var(--or); }
.social-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.social-links a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.6);
  margin: 0;
}
.social-links a:hover { background: rgba(201,162,39,0.15); }
.social-links svg { width: 20px; height: 20px; fill: var(--or); }
.lang-link { font-weight: 600; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Lien de langue dans le menu */
.main-nav a.nav-lang { border: 1px solid rgba(201,162,39,0.6); border-radius: 6px; padding: 0.2rem 0.5rem; font-size: 0.8rem; font-weight: 600; }

/* Le bouton WhatsApp flottant passe à gauche pour laisser la place au tchat */
.wa-float { right: auto !important; left: 1.4rem; }

/* ---------- Avis clients ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.review {
  background: var(--blanc);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(20,33,63,0.08);
  box-shadow: 0 10px 26px rgba(20,33,63,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.review .stars { color: var(--or); letter-spacing: 0.15em; font-size: 1.05rem; }
.review blockquote { margin: 0; font-style: italic; color: var(--encre); }
.review .who { font-weight: 600; color: var(--majorelle-deep); font-size: 0.95rem; }
.review .who span { display: block; font-weight: 400; color: var(--encre-soft); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: var(--blanc);
  border: 1px solid rgba(20,33,63,0.1);
  border-left: 4px solid var(--or);
  border-radius: 12px;
  margin-bottom: 0.9rem;
  padding: 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--majorelle-deep);
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  color: var(--or);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-a { padding: 0 1.3rem 1.2rem; color: var(--encre-soft); }
.faq-list .faq-a p { margin: 0 0 0.7rem; }
.faq-list .faq-a ul { margin: 0 0 0.7rem; padding-left: 1.2rem; }
.faq-group-title { max-width: 820px; margin: 2.4rem auto 1rem; }

/* ---------- Pages texte (légal, qui suis-je) ---------- */
.page-title-band { background: var(--majorelle-deep); color: var(--sable-light); padding: 3.6rem 0 3rem; }
.page-title-band h1 { color: var(--blanc); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.4rem; }
.page-title-band p { margin: 0; max-width: 680px; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; color: var(--sable); }
.breadcrumb a { color: var(--or); text-decoration: none; }
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.prose p, .prose li { color: var(--encre-soft); }
.prose ul { padding-left: 1.2rem; }
.prose .updated { font-size: 0.85rem; color: var(--encre-soft); opacity: 0.8; }

.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: start; }
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--majorelle) 0%, var(--majorelle-deep) 100%);
  border: 3px solid var(--or);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(20,33,63,0.25);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .monogram { font-family: var(--serif); font-size: 5rem; color: var(--or); letter-spacing: 0.05em; }
.about-facts { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.6rem; }
.about-facts li { background: var(--blanc); border-radius: 10px; padding: 0.7rem 1rem; border-left: 3px solid var(--or); font-size: 0.95rem; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 320px; margin: 0 auto; } }

/* ---------- Newsletter ---------- */
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(20,33,63,0.25);
  font: inherit;
  background: #fff;
}
.newsletter-form button { border: 0; cursor: pointer; font: inherit; }
.newsletter-ok { margin-top: 0.8rem; color: var(--vert-atlas); font-weight: 600; }
.consent-note { font-size: 0.78rem; color: var(--encre-soft); margin-top: 0.5rem; }

/* ---------- Bannière cookies (seulement si Google Analytics est activé) ---------- */
.cookie-bar {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px;
  margin: 0 auto;
  background: var(--majorelle-deep);
  color: var(--sable-light);
  border: 1px solid var(--or);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  z-index: 70;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  font-size: 0.9rem;
}
.cookie-bar p { margin: 0 0 0.8rem; }
.cookie-bar a { color: var(--or); }
.cookie-bar .row { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-bar button { border-radius: 999px; padding: 0.5rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--or); }
.cookie-bar .ok { background: var(--or); color: var(--majorelle-deep); }
.cookie-bar .no { background: transparent; color: var(--sable-light); }

/* ---------- Tchat ---------- */
.chat-launcher {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--majorelle-deep);
  color: var(--blanc);
  border: 2px solid var(--or);
  border-radius: 999px;
  padding: 0.7rem 1.15rem 0.7rem 0.85rem;
  font: 600 0.98rem var(--sans);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(20,33,63,0.35);
}
.chat-launcher svg { width: 26px; height: 26px; flex: none; }
.chat-launcher .dot { width: 9px; height: 9px; border-radius: 50%; background: #3fbf6a; box-shadow: 0 0 0 3px rgba(63,191,106,0.25); }
.chat-launcher:hover { transform: translateY(-1px); }
body.chat-open .chat-launcher { display: none; }

.chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 61;
  width: min(390px, calc(100vw - 1.6rem));
  height: min(600px, calc(100vh - 2.4rem));
  background: var(--sable-light, #faf2e0);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10,18,40,0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.5);
}
body.chat-open .chat-panel { display: flex; }
section.chat-panel { padding: 0 !important; margin: 0; }
.chat-head {
  background: var(--majorelle-deep);
  color: var(--blanc);
  padding: 0.9rem 0.9rem 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 3px solid var(--or);
}
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--or); color: var(--majorelle-deep); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; flex: none; }
.chat-title { flex: 1; min-width: 0; line-height: 1.25; }
.chat-title b { display: block; font-size: 0.98rem; }
.chat-title span { font-size: 0.76rem; color: var(--sable); }
.chat-icon-btn { background: none; border: 1px solid rgba(255,255,255,0.25); color: var(--blanc); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-icon-btn[aria-pressed="true"] { background: var(--or); color: var(--majorelle-deep); border-color: var(--or); }
.chat-icon-btn svg { width: 18px; height: 18px; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem 0.9rem 0.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.msg { max-width: 88%; padding: 0.7rem 0.9rem; border-radius: 14px; font-size: 0.93rem; line-height: 1.45; }
.msg p { margin: 0 0 0.45rem; }
.msg p:last-child { margin: 0; }
.msg ul { margin: 0.2rem 0 0.4rem; padding-left: 1.1rem; }
.msg a { color: var(--terre-cuite); font-weight: 600; }
.msg.bot { background: var(--blanc); color: var(--encre); border: 1px solid rgba(20,33,63,0.08); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--majorelle-deep); color: var(--blanc); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--encre-soft); font-style: italic; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.1rem; }
.chat-chip {
  background: transparent;
  border: 1px solid var(--majorelle);
  color: var(--majorelle-deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: 500 0.82rem var(--sans);
  cursor: pointer;
  text-decoration: none;
}
.chat-chip:hover { background: var(--majorelle-deep); color: var(--blanc); }
.chat-chip.wa { border-color: var(--vert-atlas); color: var(--vert-atlas); font-weight: 600; }
.chat-chip.wa:hover { background: var(--vert-atlas); color: #fff; }
.chat-foot { border-top: 1px solid rgba(20,33,63,0.1); padding: 0.6rem; background: var(--blanc); }
.chat-form { display: flex; gap: 0.4rem; }
.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(20,33,63,0.2);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
}
.chat-form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; }
.chat-send { background: var(--terre-cuite); color: #fff; }
.chat-mic { background: var(--sable); color: var(--majorelle-deep); }
.chat-mic.listening { background: var(--terre-cuite); color: #fff; }
.chat-form button svg { width: 19px; height: 19px; }
.chat-note { font-size: 0.7rem; color: var(--encre-soft); text-align: center; margin-top: 0.4rem; }
@media (max-width: 520px) {
  .chat-panel { right: 0.5rem; left: 0.5rem; width: auto; bottom: 0.5rem; height: calc(100vh - 1rem); height: calc(100dvh - 1rem); }
  .chat-launcher .label { display: none; }
  .chat-launcher { padding: 0.75rem; }
}
@media print { .promo-bar, .chat-launcher, .chat-panel, .cookie-bar { display: none !important; } }

/* Petits titres en italique (comme « Votre accompagnement ») utilisables partout */
.kicker { color: var(--terre-cuite); font-family: var(--serif); font-style: italic; font-size: 1.1rem; display: block; margin-bottom: 0.4rem; }
.section-dark .kicker, .offer-section .kicker { color: var(--or); }
.offer-section p { margin-left: auto; margin-right: auto; max-width: 640px; }

/* Titres des cartes blanches dans les sections sombres (étaient blancs sur blanc) */
.section-dark .tile:not([style*="background"]) h3 { color: var(--majorelle-deep); }
.center > p { margin-left: auto; margin-right: auto; }
