/* LE VERRE LIQUIDE, sur tout le site (9 novembre 2026).
   Le verre n'existe que s'il a quelque chose derrière lui : une lumière d'ambiance très douce (anis, lilas,
   eau, abricot) dérive lentement sous la page, le menu et les cartes la floutent et la saturent.
   Chaque verre a son reflet en diagonale, un liseré clair en haut, un plus discret en bas et une ombre
   légère. Sur la nuit, le même verre en sombre. Sans backdrop-filter, ou si l'utilisateur demande moins de
   transparence, les cartes redeviennent pleines : le texte reste toujours lisible. */

:root {
  --lg-fond: rgba(255, 255, 255, .38);
  --lg-reflet: linear-gradient(135deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .16) 34%,
                               rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, .18) 100%);
  --lg-flou: blur(20px) saturate(190%) brightness(1.04);
  --lg-ombre:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .45),
    inset 1px 0 0 rgba(255, 255, 255, .35),
    inset -1px 0 0 rgba(255, 255, 255, .35),
    inset 0 0 24px rgba(255, 255, 255, .30),
    0 1px 2px rgba(10, 33, 31, .05),
    0 16px 36px -16px rgba(10, 33, 31, .30);
  /* Le même, en sombre, pour la nuit et les photos. */
  --lg-nuit-fond: rgba(255, 255, 255, .06);
  --lg-nuit-reflet: linear-gradient(135deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .04) 36%,
                                    rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .07) 100%);
  --lg-nuit-ombre:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -1px 0 rgba(255, 255, 255, .10),
    inset 0 0 20px rgba(255, 255, 255, .05),
    0 18px 40px -18px rgba(0, 0, 0, .55);
}

/* ── La lumière d'ambiance, sous toute la page ── */
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: -12vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36vmax 28vmax at 10% 26%, rgba(216, 255, 133, .34), transparent 70%),
    radial-gradient(32vmax 26vmax at 90% 16%, rgba(167, 139, 250, .18), transparent 70%),
    radial-gradient(40vmax 30vmax at 80% 84%, rgba(94, 200, 190, .22), transparent 70%),
    radial-gradient(30vmax 24vmax at 18% 92%, rgba(255, 190, 140, .16), transparent 70%);
  animation: lumiere 48s ease-in-out infinite alternate;
}
@keyframes lumiere {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(-3vmax, 2vmax, 0) rotate(8deg); }
}

/* ── Le verre clair, sur le crème ── */
header:not(.sur-nuit),
.card:not(.accent):not(.warn), .guide-card, .mot, .plan, .article, .scroll,
.faq details, .lien-doux {
  background: var(--lg-reflet), var(--lg-fond) !important;
  -webkit-backdrop-filter: var(--lg-flou) !important; backdrop-filter: var(--lg-flou) !important;
  border: 1px solid rgba(255, 255, 255, .6) !important;
  box-shadow: var(--lg-ombre) !important;
}
header:not(.sur-nuit) { --lg-fond: rgba(247, 249, 242, .52); }
.card:not(.accent):not(.warn), .guide-card, .mot, .plan, .faq details { --lg-fond: rgba(255, 255, 255, .52); }
/* Les blocs de lecture des guides : un verre plus dense, le texte d'abord. */
.article, .scroll { --lg-fond: rgba(255, 255, 255, .62); }
.article.important { border-color: rgba(31, 92, 87, .45) !important; }
.guide-card, .faq details, .lien-doux, .plan {
  transition: transform .5s var(--courbe, cubic-bezier(.2, .7, .2, 1)), box-shadow .4s ease, background .4s ease;
}
.guide-card:hover, .faq details:hover, .lien-doux:hover {
  --lg-fond: rgba(255, 255, 255, .7);
  transform: translateY(-2px);
}
.guide-card:hover { border-color: rgba(255, 255, 255, .85) !important; }

/* ── Le verre sombre, sur la nuit ── */
.verre, header.sur-nuit, body.accueil header.sur-nuit, .guide-souffle {
  background: var(--lg-nuit-reflet), var(--lg-nuit-fond) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important; backdrop-filter: blur(16px) saturate(180%) !important;
  box-shadow: var(--lg-nuit-ombre) !important;
}
body.accueil .soir .bouton.verre:hover { --lg-nuit-fond: rgba(255, 255, 255, .12); }

/* Les légendes des tuiles photo : une pastille de verre sombre posée sur l'image. */
.tuile-texte {
  left: 20px; right: 20px; bottom: 20px; padding: 16px 20px; border-radius: 20px;
  background: var(--lg-nuit-reflet), rgba(10, 33, 31, .22);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(255, 255, 255, .10),
              0 12px 30px -14px rgba(0, 0, 0, .5);
}
.tuile::after { background: rgba(10, 33, 31, .12); }

/* ── Les boutons : du verre teinté, avec son reflet ── */
.bouton-anis, header .nav-cta, .cta {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 1px rgba(0, 0, 0, .10),
              0 10px 26px -10px rgba(10, 33, 31, .35) !important;
}
header:not(.sur-nuit) .nav-cta { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 1px rgba(0, 0, 0, .3),
              0 10px 24px -12px rgba(10, 33, 31, .5) !important; }
header:not(.sur-nuit) nav a[aria-current="page"] {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Les tuiles de couleur (Pourquoi Replere, Sophrologues) gardent leur couleur et leur texte blanc :
   seulement le reflet et les liserés du verre. */
.tile { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .12),
                    0 16px 36px -18px rgba(10, 33, 31, .45) !important; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%); }

/* ── Le menu mobile ouvert : un grand verre clair, presque plein ── */
.panneau { background: var(--lg-reflet), rgba(247, 249, 242, .9) !important;
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  padding-top: 168px !important; }
.panneau nav a[aria-current="page"] { background: var(--nuit) !important; color: var(--anis) !important; }
/* Menu ouvert sur le haut de page sombre : la pastille passe en clair, comme le panneau. */
body.panneau-ouvert header.sur-nuit { background: var(--lg-reflet), rgba(247, 249, 242, .7) !important;
  box-shadow: var(--lg-ombre) !important; }
body.panneau-ouvert header.sur-nuit::before { display: none; }
body.panneau-ouvert header.sur-nuit .logo { color: var(--texte, #0A211F) !important; }
body.panneau-ouvert header.sur-nuit .menu span { background: var(--texte, #0A211F) !important; }

/* ── Corrections (9 novembre 2026) ── */

/* Le pied de page : ses liens héritaient des règles du menu du haut (fondu à droite, défilement,
   largeur limitée, pastilles), d'où des liens coupés sur téléphone et décalés sur ordinateur. */
footer nav.pied-liens { margin: 0 !important; padding: 0; max-width: none !important; overflow: visible !important;
  flex-wrap: wrap !important; gap: 8px 22px !important; background: none !important; box-shadow: none !important;
  -webkit-mask-image: none !important; mask-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
footer nav.pied-liens a { min-height: 32px; padding: 0 !important; border-radius: 0; background: none !important;
  white-space: nowrap; display: inline-flex; align-items: center; }

/* Le menu : la page courante en verre discret, pour ne plus ressembler au bouton « Rejoindre la bêta ». */
header:not(.sur-nuit) nav a[aria-current="page"] { background-color: rgba(10, 33, 31, .08) !important;
  color: var(--texte, #0A211F) !important; font-weight: 600; }
header.sur-nuit nav a[aria-current="page"] { background: rgba(255, 255, 255, .12) !important; color: #F7F9F2 !important; font-weight: 600; }

/* Le guide du souffle n'est pas un bouton : un mot posé, un point qui respire, pas de cadre. */
.guide-souffle { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important; min-width: 0; height: auto; padding: 0; gap: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, serif; font-style: italic; font-size: 1.35rem; letter-spacing: 0;
  color: rgba(247, 249, 242, .78); }
.guide-souffle::before { display: none !important; }

/* Les chiffres sur téléphone : « 112 → 97 » tient sur une ligne. */
@media (max-width: 520px) {
  body.accueil .chiffre .valeur { font-size: 1.7rem; line-height: 2rem; white-space: nowrap; }
  .chiffre { padding: 22px 14px 20px; }
}

/* Les légendes des photos : plus petites, pour ne pas flouter les visages. */
.tuile-texte { left: 50% !important; right: auto !important; transform: translateX(-50%); width: max-content;
  max-width: calc(100% - 32px); padding: 10px 18px 12px !important; bottom: 16px !important; border-radius: 18px !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important; backdrop-filter: blur(12px) saturate(160%) !important; }
.tuile-texte strong { font-size: 1.25rem; line-height: 1.6rem; }
.tuile-texte em { margin-top: 2px; }

/* Les deux boutons de fin : même hauteur, même taille de texte. */
.fin .actions .bouton, .fin .actions .lien-doux { min-height: 52px; padding: 0 26px !important; font-size: 1rem; font-weight: 600; }

/* ── Quand le verre n'est pas possible ou pas souhaité : des cartes pleines ── */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --lg-fond: rgba(255, 255, 255, .9); --lg-nuit-fond: rgba(20, 50, 46, .9); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --lg-fond: #FFFFFF; --lg-nuit-fond: #12302C; }
  .tuile-texte { background: rgba(10, 33, 31, .85); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
@media print { body::before { display: none; } }

/* Les boutons « Proposer ma séance », « Essayer Replere »… : le rond noir était vide, il porte la flèche. */
.cta .dot { flex: none; display: inline-block;
  background: var(--ink, #0A211F) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8FF85' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat !important;
  transition: transform .5s var(--courbe, cubic-bezier(.2, .7, .2, 1)); }
.cta:hover .dot { transform: translateX(3px); }

/* Le pied : un peu d'air entre les liens et les ronds. */
.pied-actions { margin-top: 8px; }

/* Sur la bande de nuit des guides, le surligneur jaune devenait une tache verdâtre : la phrase passe en anis. */
.tete-soir .annote[data-trait="surligne"] { background-image: none !important; color: var(--anis, #D8FF85); }

/* La page 404 : les deux liens dans le bandeau, en vrais boutons. */
.actions-404 { display: flex; align-items: center; gap: 20px; margin: 32px 0 0; }
.actions-404 .cta { background-color: var(--anis, #D8FF85); color: var(--nuit, #0A211F) !important; text-decoration: none; display: inline-flex; align-items: center; }
.tete-soir .actions-404 .lien-404 { color: rgba(247, 249, 242, .8); }
