﻿/* ============================================================
   Reconnexion Divine — V0.7 UX/UI Enhancements
   Non destructif : couche visuelle additionnelle
============================================================ */

:root {
  --rd-bg: #f7f9ff;
  --rd-bg-soft: #ffffff;
  --rd-text: #172033;
  --rd-muted: #5f6b82;
  --rd-primary: #3157d5;
  --rd-primary-soft: #e9efff;
  --rd-border: rgba(49, 87, 213, 0.16);
  --rd-shadow: 0 18px 45px rgba(20, 34, 70, 0.10);
  --rd-radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(49, 87, 213, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fd 48%, #ffffff 100%);
  color: var(--rd-text);
  line-height: 1.7;
}

main,
article,
section {
  max-width: 1060px;
}

h1, h2, h3 {
  letter-spacing: -0.03em;
}

h1 {
  line-height: 1.08;
}

p {
  color: var(--rd-muted);
}

a {
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}

a:hover {
  opacity: .88;
}

button,
.button,
.btn,
a[href*="meditation"],
a[href*="urgence"],
a[href*="bibliotheque"],
a[href*="comment-utiliser"] {
  border-radius: 999px;
}

.card,
article,
section,
[class*="card"],
[class*="panel"],
[class*="bloc"],
[class*="box"] {
  border-radius: var(--rd-radius);
}

article,
.card,
[class*="card"] {
  box-shadow: var(--rd-shadow);
}

nav,
header {
  backdrop-filter: blur(14px);
}

img {
  max-width: 100%;
  height: auto;
}

.rd-v04-peace-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: var(--rd-primary-soft);
  color: var(--rd-primary);
  font-size: .92rem;
  font-weight: 650;
  border: 1px solid var(--rd-border);
}

.rd-v04-floating-help {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--rd-primary);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(20, 34, 70, .18);
  border: 1px solid var(--rd-border);
}

.rd-v04-floating-help:hover {
  transform: translateY(-2px);
}

.rd-v04-version-note {
  display: inline-block;
  margin-top: 1rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--rd-muted);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(120,130,160,.18);
}

.rd-v04-breath-box {
  margin: 1.2rem 0;
  padding: 1rem;
  border-radius: var(--rd-radius);
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  border: 1px solid var(--rd-border);
  box-shadow: var(--rd-shadow);
}

.rd-v04-breath-button {
  cursor: pointer;
  border: 0;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--rd-primary);
  color: white;
  font-weight: 700;
}

.rd-v04-breath-message {
  margin-top: .8rem;
  font-weight: 650;
  color: var(--rd-text);
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  main,
  article,
  section {
    width: min(100% - 24px, 1060px);
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .rd-v04-floating-help {
    right: 12px;
    bottom: 12px;
    padding: .65rem .85rem;
    font-size: .92rem;
  }
}

/* ============================================================
   V0.7 — Correction chevauchement bouton aide
   Déplace "Besoin de paix ?" en bas à gauche pour éviter
   le chevauchement avec le bouton ? d'aide en bas à droite.
============================================================ */

.rd-v04-floating-help {
  left: 18px !important;
  right: auto !important;
  bottom: 18px !important;
  max-width: calc(100vw - 36px);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .rd-v04-floating-help {
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px);
    font-size: .9rem;
  }
}

/* ============================================================
   V0.7 — Lien preuve projet / portfolio
============================================================ */

.rd-v06-proof-banner {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  border: 1px solid rgba(49, 87, 213, 0.16);
  box-shadow: 0 18px 45px rgba(20, 34, 70, 0.10);
}

.rd-v06-proof-banner strong {
  display: block;
  color: #172033;
  margin-bottom: .35rem;
}

.rd-v06-proof-banner p {
  margin: 0 0 .7rem 0;
  color: #63708a;
}

.rd-v06-proof-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem 1rem;
  border-radius: 999px;
  background: #3157d5;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
}

.rd-v06-proof-link:hover {
  transform: translateY(-1px);
}