/* ==========================================================================
   Ebenya — site public et espace membre (charte des maquettes, docs/maquettes)
   Mobile-first : une colonne sous 640 px, puis grilles. Cibles tactiles ≥ 44 px,
   champs en 16 px (pas de zoom iOS). Aucune dépendance (ni Bootstrap ni jQuery).
   ========================================================================== */
:root {
    --eb-ebene: #1c1411; --eb-ebene-2: #3a2c25; --eb-cuivre: #9a5b26; --eb-cuivre-fonce: #6e3e14;
    --eb-or: #d4a762; --eb-rose: #f6e2dc; --eb-rose-texte: #8a3a45; --eb-ivoire: #fbf6f0; --eb-sable: #f2e8dd;
    --eb-trait: #e4d6c8; --eb-trait-doux: #eadfd3; --eb-texte: #1c1411; --eb-texte-2: #5e4f46; --eb-muet: #6b5b52;
    --eb-vert: #2f7a47; --eb-en-ligne: #3f9b5a; --eb-erreur: #a1343e;
    /* Contour d'un champ / d'une puce : 3,4:1 sur blanc (WCAG 1.4.11, 3:1 exigé ; l'ancien #d9c8b8 faisait 1,6:1). */
    --eb-trait-champ: #9c8676;
    --eb-rayon: 18px; --eb-titre: 'Fraunces', Georgia, serif; --eb-texte-police: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--eb-ivoire); color: var(--eb-texte); font: 400 16px/1.55 var(--eb-texte-police); }
img { max-width: 100%; display: block; }
a { color: var(--eb-cuivre); }
a:hover { color: var(--eb-cuivre-fonce); }
h1, h2, h3 { font-family: var(--eb-titre); font-weight: 400; line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.8rem); }
:focus-visible { outline: 3px solid var(--eb-cuivre-fonce); outline-offset: 2px; }
/* L'or ne se voit que sur fond sombre (2,1:1 sur ivoire) : réservé à l'en-tête, au héros, au pied, au verrou. */
.eb-entete :focus-visible, .eb-hero :focus-visible, .eb-pied :focus-visible, .eb-verrou :focus-visible { outline-color: var(--eb-or); }
main:focus { outline: none; }   /* cible du lien d'évitement, pas un élément actif */
/* Pied de page en bas de l'écran même quand la page est courte (connexion, code) : le contenu prend la hauteur libre.
   Les autres enfants directs du corps sont fixes ou absolus (annonces, barre du bas, invitation à installer). */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#contenu { flex: 1 0 auto; }
.eb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Lien « Aller au contenu » : invisible jusqu'à ce que le clavier l'atteigne. */
.eb-saut:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; overflow: visible;
    padding: 10px 16px; border-radius: 12px; background: var(--eb-ivoire); color: var(--eb-ebene); font-weight: 700; }
/* Annonces (ebenya-espace.js, annoncer) : zones toujours présentes, vides = invisibles. */
.eb-annonce { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 50; max-width: 92vw;
    border-radius: 14px; font-weight: 600; background: var(--eb-ebene); color: #fff; }
.eb-annonce:not(:empty) { padding: 12px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.eb-annonce-erreur { background: var(--eb-erreur); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---- En-tête -------------------------------------------------------------- */
.eb-entete { position: sticky; top: 0; z-index: 20; background: var(--eb-ebene); color: #f3e3cf; }
.eb-entete-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 12px; }
.eb-marque { font-family: var(--eb-titre); font-size: 1.6rem; font-weight: 600; color: #f3e3cf; text-decoration: none; }
.eb-marque:hover { color: #fff; }
/* Symbole du kit de marque (variante claire : profil ébène passé en ivoire, lisible sur l'en-tête). */
.eb-entete .eb-marque { display: inline-flex; align-items: center; gap: 8px; }
.eb-marque-symbole { width: 40px; height: 40px; display: block; }
.eb-entete .eb-espace { flex: 1; }
.eb-nav { display: none; gap: 4px; }
.eb-nav a { display: inline-flex; align-items: center; gap: 8px; color: #eadccd; text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.eb-nav a svg { width: 18px; height: 18px; }
.eb-nav a.actif, .eb-nav a:hover { background: var(--eb-ebene-2); color: #f3e3cf; }
.eb-avatar-entete { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--eb-or); overflow: hidden; display: inline-flex;
    align-items: center; justify-content: center; background: var(--eb-ebene-2); color: #f3e3cf; font-weight: 700; text-decoration: none; }
.eb-avatar-entete img { width: 100%; height: 100%; object-fit: cover; }
.eb-avatar-entete.actif { box-shadow: 0 0 0 3px rgba(212, 167, 98, .35); }
.eb-nav-bas-icone { position: relative; display: inline-flex; }
.eb-nav-bas-icone .eb-pastille { position: absolute; top: -6px; right: -12px; }
.eb-lien-clair { color: #eadccd; text-decoration: none; font-weight: 600; }
/* Petit téléphone : « Connexion » se chevauchait avec le nom ; « Inscription » ouvre le même formulaire (qui reconnecte aussi). */
@media (max-width: 400px) { .eb-lien-connexion { display: none; } }
.eb-pastille { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #e9b8ae; color: var(--eb-ebene); font-size: .75rem; font-weight: 700; text-align: center; }

/* Barre de navigation du bas (téléphone) */
.eb-nav-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--eb-trait-doux);
              display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.eb-nav-bas a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; justify-content: center;
                color: var(--eb-muet); text-decoration: none; font-size: .72rem; font-weight: 600; }
.eb-nav-bas a.actif { color: var(--eb-cuivre); }
.eb-nav-bas svg { width: 24px; height: 24px; }
body.eb-avec-nav-bas { padding-bottom: 104px; }   /* 76 px de barre + le bouton central « Rencontres » qui dépasse */

.eb-cloche { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; color: #eadccd; }
.eb-cloche svg { width: 22px; height: 22px; }
.eb-cloche.actif { background: var(--eb-ebene-2); color: #f3e3cf; }
@media (min-width: 900px) and (max-width: 1099px) { .eb-nav a { padding: 8px 10px; gap: 6px; font-size: .9rem; } }
/* Avec « Rencontres », l'en-tête ne tient plus sous 1200 px : Notifications et Abonnement en icônes (libellé lu, infobulle). */
@media (min-width: 900px) and (max-width: 1199px) {
    .eb-nav .eb-nav-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .eb-nav { gap: 2px; }
}
@media (min-width: 900px) {
    .eb-cloche { display: none; }
    .eb-nav { display: flex; }
    .eb-nav-bas { display: none; }
    body.eb-avec-nav-bas { padding-bottom: 0; }
}

/* ---- Contenu -------------------------------------------------------------- */
.eb-page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
.eb-page-etroite { max-width: 640px; }
.eb-carte { background: #fff; border: 1px solid var(--eb-trait-doux); border-radius: var(--eb-rayon); padding: 18px; }
.eb-pile > * + * { margin-top: 14px; }
.eb-muet { color: var(--eb-muet); }
.eb-petit { font-size: .85rem; }

.eb-bandeau { display: flex; align-items: center; gap: 12px; background: var(--eb-ebene); color: #eadccd; border-radius: 16px;
              padding: 12px 16px; text-decoration: none; margin-bottom: 14px; }
.eb-bandeau strong { color: var(--eb-or); }
.eb-bandeau .eb-espace { flex: 1; }
.eb-bandeau:hover { color: #fff; }

.eb-alerte { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; }
.eb-alerte-erreur { background: #f7dcdc; color: var(--eb-erreur); }
.eb-alerte-info { background: #e3f1e7; color: var(--eb-vert); }

/* ---- Boutons, champs ------------------------------------------------------ */
.eb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
          border: 1px solid transparent; font: 700 1rem var(--eb-texte-police); cursor: pointer; text-decoration: none; }
.eb-btn-plein { background: var(--eb-cuivre); color: #fff; }
.eb-btn-plein:hover { background: var(--eb-cuivre-fonce); color: #fff; }
.eb-btn-or { background: var(--eb-or); color: var(--eb-ebene); }
.eb-btn-contour { background: #fff; border-color: var(--eb-trait); color: var(--eb-texte); }
.eb-btn-contour:hover { border-color: var(--eb-cuivre); color: var(--eb-cuivre); }
.eb-btn-bloc { width: 100%; }
.eb-btn-rond { width: 52px; min-height: 52px; padding: 0; }
.eb-btn[disabled] { opacity: .55; cursor: default; }

.eb-champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.eb-champ[hidden] { display: none; } /* le display ci-dessus l'emportait : l'email s'affichait avec le téléphone */
.eb-champ input, .eb-champ select, .eb-champ textarea, .eb-saisie {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--eb-trait-champ); border-radius: 14px; background: #fff;
    font: 400 16px var(--eb-texte-police); color: var(--eb-texte); }
.eb-champ textarea { min-height: 110px; resize: vertical; }
.eb-champ input:focus, .eb-champ select:focus, .eb-champ textarea:focus, .eb-saisie:focus { outline: 2px solid var(--eb-cuivre-fonce); outline-offset: 1px; border-color: var(--eb-cuivre); }
.eb-ligne { display: flex; gap: 8px; }
/* 132 px : « CA / US +1 » (74 px en 16 px) + marges + flèche du menu ; à 110 px le texte était coupé. */
.eb-ligne > .eb-indicatif { flex: 0 0 132px; padding-left: 12px; padding-right: 28px; }
.eb-ligne > .eb-flex { flex: 1; min-width: 0; }
.eb-grille-2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .eb-grille-2 { grid-template-columns: 1fr 1fr; } }
/* Intertitre d'une carte (sections de « Mon profil », détail de la fiche membre). */
.eb-sous-titre { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--eb-trait-doux); font: 700 .95rem var(--eb-texte-police); color: var(--eb-cuivre); }
/* Détail de la fiche : libellé / valeur. */
.eb-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
.eb-details dt { color: var(--eb-muet); }
.eb-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Filtres de Découvrir : panneau repliable pleine largeur. */
.eb-filtres { padding: 12px 16px; }
/* Découvrir (maquette WebSearch) : colonne de filtres à gauche au-delà de 1100 px, résultats sur 3 colonnes. */
@media (min-width: 1100px) {
    .eb-decouvrir { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
    .eb-decouvrir-filtres { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
    .eb-decouvrir-filtres .eb-grille-2 { grid-template-columns: 1fr; }
    .eb-decouvrir-resultats .eb-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.eb-filtres-titre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; font-weight: 700; list-style: none; min-height: 40px; }
.eb-filtres-titre::-webkit-details-marker { display: none; }
.eb-filtres-titre::before { content: "▸"; color: var(--eb-cuivre); transition: transform .15s; }
.eb-filtres[open] .eb-filtres-titre::before { transform: rotate(90deg); }
.eb-filtres-titre .eb-muet { font-weight: 400; }
/* Dans la page (fond clair) : cuivre ; dans l'en-tête sombre, la pastille rose de la maquette (plus haut). */
.eb-page .eb-pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--eb-cuivre); color: #fff; font-size: .75rem; }
/* Choix multiples (loisirs, musique…) : puces à cocher, la case reste accessible au clavier. */
.eb-choix-multiples { border: 0; padding: 0; margin: 0; min-width: 0; }
.eb-choix-multiples legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 8px; }
.eb-puces-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-puce-choix { position: relative; cursor: pointer; }
.eb-puce-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eb-puce-choix span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--eb-trait-champ); background: #fff; font-size: .88rem; font-weight: 600; color: var(--eb-texte); }
.eb-puce-choix input:checked + span { background: var(--eb-cuivre); border-color: var(--eb-cuivre); color: #fff; }
.eb-puce-choix input:checked + span::before { content: "✓ "; white-space: pre; }
.eb-puce-choix input:focus-visible + span { outline: 3px solid var(--eb-cuivre-fonce); outline-offset: 2px; }
.eb-puce-choix input:disabled + span { opacity: .45; cursor: default; }
.eb-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eb-choix label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1px solid var(--eb-trait); border-radius: 14px; background: #fff; font-weight: 600; cursor: pointer; }
.eb-choix input { accent-color: var(--eb-cuivre); }
.eb-choix label:has(input:checked) { border: 2px solid var(--eb-cuivre); background: var(--eb-rose); font-weight: 700; }
.eb-case { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.eb-case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--eb-cuivre); }
.eb-code { text-align: center; font-size: 1.9rem !important; font-weight: 700 !important; letter-spacing: .5em; }

/* ---- Onglets (puces) ------------------------------------------------------ */
.eb-puces { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.eb-puces a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--eb-trait-champ);
              background: #fff; color: var(--eb-texte); text-decoration: none; font-weight: 600; font-size: .9rem; }
.eb-puces a.actif { background: var(--eb-ebene); border-color: var(--eb-ebene); color: var(--eb-ivoire); }
/* Rangée plus large que l'écran : fondu du côté où des onglets restent cachés. Les largeurs
   (--eb-fondu-g / --eb-fondu-d) sont posées par ebenya-espace.js selon le défilement ; à 0,
   le masque est plein et rien ne change. */
.eb-puces {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--eb-fondu-g, 0px), #000 calc(100% - var(--eb-fondu-d, 0px)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--eb-fondu-g, 0px), #000 calc(100% - var(--eb-fondu-d, 0px)), transparent 100%);
}

/* ---- Grille de membres ---------------------------------------------------- */
.eb-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eb-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin-top: 20px; }
@media (min-width: 640px) { .eb-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .eb-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.eb-vignette { position: relative; display: flex; flex-direction: column; border-radius: var(--eb-rayon); overflow: hidden; background: #fff;
    border: 1px solid var(--eb-trait-doux); color: var(--eb-texte); text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.eb-vignette:hover { color: var(--eb-texte); box-shadow: 0 8px 22px rgba(28, 20, 17, .12); transform: translateY(-2px); }
.eb-vignette-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: #b98b6a; }
.eb-vignette-photo img { width: 100%; height: 100%; object-fit: cover; }
.eb-vignette .eb-silhouette { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.eb-vignette .eb-silhouette svg { width: 34%; opacity: .75; }
.eb-vignette-texte { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 12px; min-width: 0; }
.eb-vignette-nom { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1rem; }
.eb-vignette-nom svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--eb-cuivre); }
.eb-vignette-lieu, .eb-vignette-intention { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-vignette-lieu { color: var(--eb-muet); }
.eb-vignette-intention { color: var(--eb-rose-texte); font-weight: 600; }
.eb-point-ligne { position: absolute; top: 12px; left: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--eb-en-ligne); border: 2px solid #fff; }
.eb-point-ligne.hors-ligne { background: #b8a99c; }
.eb-vignette-cadre { position: relative; min-width: 0; }
.eb-vignette-cadre > .eb-vignette { height: 100%; }
.eb-vignette-favori { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 8px;
    background: rgba(251, 246, 240, .92); color: var(--eb-rose-texte); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.eb-vignette-favori svg { width: 20px; height: 20px; }
.eb-premier-message { background: var(--eb-sable); border-radius: var(--eb-rayon); padding: 18px; }
.eb-btn-sombre { background: var(--eb-ebene); color: var(--eb-ivoire); border: 0; }
.eb-btn-sombre:hover { background: var(--eb-ebene-2); color: var(--eb-ivoire); }
.eb-badge-verifie { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(251, 246, 240, .92); display: flex; align-items: center; justify-content: center; color: var(--eb-cuivre); }
.eb-badge-verifie svg { width: 18px; height: 18px; }
.eb-teinte-0 { background: #b98b6a; } .eb-teinte-1 { background: #8c6048; } .eb-teinte-2 { background: #c9a184; }
.eb-teinte-3 { background: #6f4a37; } .eb-teinte-4 { background: #a5775a; } .eb-teinte-5 { background: #7e5540; }

/* ---- Fiche membre --------------------------------------------------------- */
.eb-fiche { display: grid; gap: 20px; }
@media (min-width: 900px) { .eb-fiche { grid-template-columns: 440px 1fr; align-items: start; } }
.eb-fiche-photo { aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; position: relative; }
.eb-fiche-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Profil sans photo (réglage du back-office) : silhouette centrée sur la teinte, fiche et Rencontres. */
.eb-fiche-photo .eb-silhouette, .eb-rencontre-photo .eb-silhouette { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.eb-fiche-photo .eb-silhouette svg, .eb-rencontre-photo .eb-silhouette svg { width: 34%; opacity: .75; }
.eb-miniatures { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.eb-miniatures button, .eb-miniatures a { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; }
.eb-miniatures img { width: 100%; height: 100%; object-fit: cover; }
.eb-miniatures [aria-current="true"] { border-color: var(--eb-cuivre); }
.eb-miniature-album { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #2b201b !important;
    color: var(--eb-or); font-size: .7rem; font-weight: 700; text-decoration: none; text-align: center; }
.eb-miniature-album svg { width: 20px; height: 20px; }
.eb-fiche-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(251, 246, 240, .9); color: var(--eb-ebene); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.eb-fiche-fleche[data-eb-sens="-1"] { left: 12px; } .eb-fiche-fleche[data-eb-sens="1"] { right: 12px; }
.eb-fiche-verifie { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    border-radius: 999px; background: rgba(28, 20, 17, .75); color: #fff; font-size: .8rem; font-weight: 600; }
.eb-fiche-verifie svg { width: 16px; height: 16px; color: var(--eb-or); }
.eb-point { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--eb-en-ligne); margin-right: 6px; vertical-align: middle; }
.eb-actions-fiche { display: flex; flex-wrap: wrap; gap: 10px; }
/* Maquette WebProfile : « Écrire » en grand ET les pilules sur la même ligne ; sous 600 px, « Écrire » passe seul au-dessus. */
.eb-actions-fiche .eb-btn-plein { flex: 1 1 320px; }
.eb-actions-fiche .eb-pilule-action { min-height: 52px; }
.eb-pilule-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--eb-trait);
    background: #fff; font: 600 .95rem var(--eb-texte-police); cursor: pointer; }
.eb-pilule-action svg { width: 20px; height: 20px; }
.eb-pilule-favori { color: var(--eb-rose-texte); } .eb-pilule-flash { color: var(--eb-cuivre); }
.eb-icone { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.eb-etiquettes { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-etiquette { padding: 5px 12px; border-radius: 999px; background: var(--eb-sable); color: #4e4038; font-size: .85rem; font-weight: 700; }
.eb-etiquette-rose { background: var(--eb-rose); color: var(--eb-rose-texte); }
.eb-actions { display: flex; gap: 10px; align-items: center; }
.eb-actions .eb-btn-plein { flex: 1; }
.eb-actions-collantes { position: sticky; bottom: 76px; background: rgba(251, 246, 240, .96); padding: 12px 0; }
@media (min-width: 900px) { .eb-actions-collantes { position: static; background: none; } }
.eb-en-ligne { color: var(--eb-vert); font-weight: 600; font-size: .9rem; }

/* ---- Messagerie ----------------------------------------------------------- */
.eb-liste { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--eb-trait-doux); border-radius: var(--eb-rayon); overflow: hidden; }
.eb-liste li + li { border-top: 1px solid var(--eb-trait-doux); }
.eb-liste a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--eb-texte); text-decoration: none; min-height: 72px; }
.eb-liste a:hover { background: #fdfaf6; }
.eb-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #a5775a; }
.eb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.eb-liste .eb-milieu { flex: 1; min-width: 0; }
.eb-liste .eb-apercu { color: var(--eb-muet); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-chat-tete .eb-avatar-chat { width: 40px; height: 40px; flex: 0 0 40px; }
.eb-chat-qui { display: flex; flex-direction: column; line-height: 1.2; }
.eb-chat-nom { font-weight: 700; color: var(--eb-texte); text-decoration: none; }
.eb-chat-vide { text-align: center; padding: 32px 16px; }
.eb-chat { display: flex; flex-direction: column; height: calc(100dvh - 64px - 76px); max-width: 760px; margin: 0 auto; }
@media (min-width: 900px) { .eb-chat { height: calc(100dvh - 64px); } }
.eb-chat-tete { padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--eb-trait-doux); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.eb-fil { flex: 1; overflow-y: auto; padding: 16px; background: var(--eb-sable); display: flex; flex-direction: column; gap: 10px; }
.eb-bulle { max-width: 78%; padding: 10px 14px 6px; border-radius: 18px 18px 18px 6px; background: #fff; align-self: flex-start; }
.eb-bulle.moi { align-self: flex-end; background: var(--eb-cuivre); color: #fff; border-radius: 18px 18px 6px 18px; }
.eb-bulle time { display: block; font-size: .72rem; margin-top: 4px; color: var(--eb-muet); }
.eb-bulle.moi time { color: #fff; }   /* pas d'opacité : 3,8:1 sur cuivre, sous le seuil */
.eb-masque { font-size: .72rem; color: var(--eb-muet); display: block; margin-top: 4px; }
.eb-saisie-chat { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--eb-trait-doux); }
.eb-verrou { padding: 18px; background: var(--eb-ebene); color: #eadccd; border-radius: 22px 22px 0 0; }
.eb-verrou strong { color: #f3e3cf; display: block; margin-bottom: 4px; }

/* ---- Profil / albums ------------------------------------------------------ */
.eb-album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .eb-album { grid-template-columns: repeat(6, 1fr); } }
.eb-album figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #c9a184; }
.eb-album figure img { width: 100%; height: 100%; object-fit: cover; }
.eb-album figcaption { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 999px; font-size: .68rem; font-weight: 700; text-align: center; color: #fff; background: rgba(28, 20, 17, .82); }
.eb-album figcaption.refusee { background: rgba(161, 52, 62, .9); }
.eb-album .eb-etoile { position: absolute; top: 6px; right: 6px; color: var(--eb-or); }
.eb-album form { position: absolute; inset: 0; }
.eb-album details { position: absolute; top: 4px; left: 4px; }
.eb-album details summary { list-style: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(251, 246, 240, .92); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.eb-album details[open] .eb-menu { position: absolute; top: 34px; left: 0; z-index: 5; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 6px; min-width: 190px; }
.eb-menu button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font: 600 .9rem var(--eb-texte-police); cursor: pointer; }
.eb-menu button:hover { background: var(--eb-sable); }
.eb-ajout { aspect-ratio: 1; border: 2px dashed #c9b3a0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--eb-cuivre); font-weight: 700; font-size: .8rem; cursor: pointer; background: #fff; }
.eb-ajout input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.eb-jauge { height: 8px; border-radius: 8px; background: var(--eb-sable); overflow: hidden; }
.eb-jauge span { display: block; height: 100%; background: var(--eb-cuivre); }

/* ---- Formules ------------------------------------------------------------- */
/* Abonnement (maquette WebPricing) : cartes de formules, la conseillée en ébène avec sa pastille or. */
.eb-page-abonnement { max-width: 1100px; }
.eb-centre { text-align: center; }
.eb-formules { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 22px 0; }
@media (min-width: 640px) { .eb-formules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .eb-formules { grid-template-columns: repeat(4, 1fr); } }
.eb-formule { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 22px 20px; border: 1px solid var(--eb-trait);
    border-radius: 22px; background: #fff; cursor: pointer; }
.eb-formule:has(input:checked) { border: 2px solid var(--eb-cuivre); }
.eb-formule:has(input:focus-visible) { outline: 3px solid var(--eb-or); outline-offset: 2px; }
.eb-formule-conseillee { background: var(--eb-ebene); border-color: var(--eb-ebene); color: #f3e3cf; }
.eb-formule-conseillee:has(input:checked) { border-color: var(--eb-or); }
.eb-formule-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 12px; border-radius: 999px;
    background: var(--eb-or); color: var(--eb-ebene); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eb-formule-nom { font-size: 1rem; }
.eb-formule-prix { font-family: var(--eb-titre); font-size: 2.2rem; line-height: 1.1; }
.eb-formule-detail { font-size: .85rem; color: var(--eb-muet); }
.eb-formule-conseillee .eb-formule-detail, .eb-formule-conseillee .eb-formule-barre { color: #cdbbae; }
.eb-formule-offre { font-size: .8rem; font-weight: 700; color: var(--eb-vert); }
.eb-formule-conseillee .eb-formule-offre { color: #9fd3ae; }
.eb-formule-choisir { margin-top: 12px; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px;
    border: 1px solid var(--eb-trait); font-weight: 700; font-size: .95rem; }
.eb-formule-conseillee .eb-formule-choisir { background: var(--eb-or); border-color: var(--eb-or); color: var(--eb-ebene); }
.eb-formule .choisie { display: none; }
.eb-formule:has(input:checked) .choisie { display: inline; }
.eb-formule:has(input:checked) .choisir { display: none; }
.eb-paiement-grille { display: grid; gap: 20px; }
@media (min-width: 900px) { .eb-paiement-grille { grid-template-columns: 1fr 380px; align-items: start; } }
.eb-moyens { display: grid; gap: 10px; }
@media (min-width: 640px) { .eb-moyens { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.eb-moyens label { display: flex; align-items: flex-start; gap: 10px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--eb-trait);
    border-radius: 14px; background: #fff; cursor: pointer; }
.eb-moyens label:has(input:checked) { border: 2px solid var(--eb-cuivre); background: #fbf1e6; }
.eb-moyens input { margin-top: 3px; accent-color: var(--eb-cuivre); width: 18px; height: 18px; }
.eb-moyens span { display: flex; flex-direction: column; }
.eb-moyens small { color: var(--eb-muet); font-size: .8rem; }
.eb-recap { background: var(--eb-sable); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.eb-recap h2 { font-size: 1.3rem; margin: 0; }
.eb-recap hr { border: 0; border-top: 1px solid var(--eb-trait); margin: 0; width: 100%; }
.eb-recap-total strong { font-family: var(--eb-titre); font-size: 1.5rem; font-weight: 400; }
.eb-attente { text-align: center; padding: 32px 18px; }
.eb-rotation { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--eb-sable); border-top-color: var(--eb-cuivre); animation: eb-tourne 1s linear infinite; margin: 0 auto 16px; }
@keyframes eb-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .eb-rotation { animation: none; } }

/* ---- Accueil public ------------------------------------------------------- */
.eb-hero { background: var(--eb-ebene); color: #fbf6f0; }
.eb-hero-in { max-width: 1200px; margin: 0 auto; padding: 36px 16px 44px; display: grid; gap: 28px; }
@media (min-width: 960px) { .eb-hero-in { grid-template-columns: 1fr 420px; align-items: center; padding: 72px 16px; } }
.eb-hero h1 { color: #fbf6f0; font-weight: 400; font-size: clamp(2.2rem, 6vw, 4rem); }
.eb-hero h1 em { color: #e9b8ae; }
.eb-hero p { color: #d8c8ba; font-size: 1.1rem; }
.eb-surtitre { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid #5a4336; color: var(--eb-or); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.eb-atouts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: #eadccd; }
.eb-atouts li::before { content: '✓'; color: var(--eb-or); font-weight: 700; margin-right: 10px; }
.eb-hero .eb-carte { background: var(--eb-ivoire); color: var(--eb-texte); }
/* Formulaire d'inscription dans le hero (maquette WebPhoneHome) : les textes de la carte gardent les couleurs de la page claire. */
.eb-hero .eb-carte p { color: var(--eb-muet); font-size: .85rem; }
.eb-hero-inscription h2 { color: #fbf6f0; }
.eb-hero-inscription > p { font-size: .95rem; }
.eb-section { max-width: 1200px; margin: 0 auto; padding: 48px 16px; }
.eb-etapes { display: grid; gap: 16px; }
@media (min-width: 760px) { .eb-etapes { grid-template-columns: repeat(3, 1fr); } }
.eb-etape .eb-num { font-family: var(--eb-titre); font-size: 2.4rem; color: var(--eb-cuivre); }
/* « Comment ça marche » (maquettes) : bande sable, cartes ivoire ; sur téléphone, le numéro à gauche du texte. */
.eb-bande-sable { background: var(--eb-sable); }
.eb-bande-sable .eb-etape { background: var(--eb-ivoire); border: 0; }
.eb-etape h3 { font-family: var(--eb-texte-police); font-size: 1.05rem; font-weight: 700; margin: 6px 0 4px; }
@media (max-width: 759px) {
    .eb-etape { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: start; }
    .eb-etape .eb-num { font-size: 1.9rem; line-height: 1; grid-row: span 2; }
    .eb-etape h3 { margin-top: 0; }
}
.eb-pied { background: var(--eb-ebene); color: #cdbbae; padding: 28px 16px; font-size: .9rem; }
.eb-pied a { color: #eadccd; }

/* Avertissement anti-arnaque sous un message reçu (MessageDto.Alerte). */
.eb-alerte-bulle { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fbe9d7; color: #6e3e14; font-size: .8rem; line-height: 1.35; border-left: 3px solid var(--eb-cuivre); }

/* Bandeau « profil pas encore visible » : rose poudré, au-dessus du bandeau d'essai. */
.eb-bandeau.eb-bandeau-rose { background: var(--eb-rose, #f6e2dc); color: #8a3a45; margin-bottom: 10px; }
.eb-bandeau.eb-bandeau-rose b { color: #8a3a45; }

/* Pages juridiques (CGU, confidentialité) : lecture confortable sur téléphone. */
.eb-legal h1 { margin-bottom: 4px; }
.eb-legal h2 { font-family: var(--eb-texte-police); font-size: 1.1rem; font-weight: 700; margin: 26px 0 8px; scroll-margin-top: 80px; }
.eb-legal p, .eb-legal li { line-height: 1.6; }
/* Aide / FAQ : une question par <details> (clavier et lecteurs d'écran natifs), ancre = AideQuestion.Id. */
.eb-faq { border-bottom: 1px solid var(--eb-trait); padding: 4px 0; scroll-margin-top: 80px; }
.eb-faq summary { cursor: pointer; font-weight: 700; padding: 10px 32px 10px 0; min-height: 44px; list-style: none; position: relative; }
.eb-faq summary::-webkit-details-marker { display: none; }
/* Repère à droite (la flèche native débordait à gauche sur téléphone) : « + » fermé, « − » ouvert. */
.eb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.3rem; font-weight: 400; color: var(--eb-cuivre-fonce); }
.eb-faq[open] summary::after { content: "\2212"; }
.eb-faq[open] summary { color: var(--eb-cuivre-fonce); }
.eb-faq p { margin: 0 0 12px; }
.eb-legal ul { padding-left: 20px; }
.eb-legal li + li { margin-top: 6px; }
.eb-legal-sommaire ol { margin: 0; padding-left: 20px; columns: 2 220px; }
.eb-legal-sommaire li { margin: 4px 0; }

/* Photos dans la messagerie : reçue = floutée jusqu'au clic (aucune image imposée). */
.eb-photo-chat { position: relative; margin: 2px 0 6px; border-radius: 12px; overflow: hidden; max-width: 260px; }
.eb-photo-chat img { display: block; width: 100%; max-height: 320px; object-fit: cover; filter: blur(18px); transform: scale(1.08); transition: filter .2s; }
.eb-photo-chat.revelee img { filter: none; transform: none; }
.eb-photo-voile { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; cursor: pointer; padding: 12px; }
.eb-photo-chat.revelee .eb-photo-voile { display: none; }
.eb-lien-signaler { position: absolute; right: 6px; bottom: 6px; border: 0; border-radius: 999px; padding: 3px 10px; background: rgba(255,255,255,.9); color: var(--eb-erreur); cursor: pointer; }

/* Précédent / suivant sur la fiche (ebenya-espace.js, data-eb-fiche). */
.eb-suite { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.eb-suite-fleches { display: flex; align-items: center; gap: 8px; }
.eb-suite-fleches .eb-btn { padding: 6px 14px; }
/* Bascule de langue de la fiche (FR / EN) et mention des textes traduits automatiquement. */
.eb-langue-fiche { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--eb-trait-champ); border-radius: 999px; color: var(--eb-texte-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.eb-langue-fiche svg { width: 16px; height: 16px; }
.eb-langue-fiche:hover { color: var(--eb-texte); border-color: currentColor; }
.eb-original { margin-top: 8px; font-size: .85rem; color: var(--eb-texte-2); }
.eb-original summary { cursor: pointer; }
.eb-original-lien { text-decoration: underline; }
.eb-original[open] .eb-original-lien { text-decoration: none; }
.eb-original p { color: var(--eb-texte); font-size: 1rem; }

/* Accessibilité : un fichier caché derrière un <label> stylé en bouton reste atteignable au clavier
   (hidden le retirait de l'ordre de tabulation) ; le label montre le focus. */
.eb-fichier-cache { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
label:has(.eb-fichier-cache:focus-visible) { outline: 3px solid var(--eb-cuivre-fonce); outline-offset: 2px; }
/* Liens cuivre sur fond sable : 4,45:1, juste sous le seuil → cuivre foncé. */
.eb-recap a, .eb-bande-sable a, .eb-fil a { color: var(--eb-cuivre-fonce); }

/* ---- Ebènes et badges (1er octobre 2026) -------------------------------------
   Badges du mauve clair au noir ébène (ENUM_EBENE_BADGE) ; mêmes teintes dans l'application (ebene_badge.dart). */
.eb-badge-ebene { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.eb-badge-ebene svg { width: 14px; height: 14px; flex: 0 0 auto; }
.eb-badge-ebene-lavande { background: #e6dcf4; color: #4b3870; }
.eb-badge-ebene-mauve { background: #c3a8e0; color: #2f1f4d; }
.eb-badge-ebene-prune { background: #7e4d9e; color: #fff; }
.eb-badge-ebene-aubergine { background: #4b2448; color: #f3e3cf; }
.eb-badge-ebene-ebene { background: var(--eb-ebene); color: var(--eb-or); }
/* Carte : la pierre seule (le libellé reste lu par les lecteurs d'écran). */
.eb-badge-compact .eb-badge-ebene { font-size: 0; padding: 3px; gap: 0; }
.eb-fiche-badge { position: absolute; top: 14px; right: 14px; }
.eb-ebenes-recues { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; color: var(--eb-texte-2); font-weight: 600; font-size: .92rem; }

/* Fiche : « Écrire » sur toute la ligne, puis Passer · Ebène · Favori · Flash centrés. */
.eb-actions-ebene { justify-content: center; align-items: center; }
.eb-actions-ebene .eb-btn-plein { flex: 1 1 100%; }
/* Téléphone : Passer / Favori / Flash en icônes rondes (libellés lus mais cachés), tout sur une ligne. */
@media (max-width: 479px) {
    .eb-actions-ebene { gap: 14px; }
    .eb-actions-ebene .eb-pilule-action { width: 52px; padding: 0; justify-content: center; }
    .eb-actions-ebene .eb-libelle-action { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Bouton Ebène : plus grand que les autres, en ébène et or, entre « Écrire » et « Favori ». */
.eb-ebene { position: relative; }
.eb-ebene > summary { list-style: none; }
.eb-ebene > summary::-webkit-details-marker { display: none; }
.eb-ebene-bouton { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 68px; height: 68px;
    border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 30% 25%, #7e4d9e 0%, #4b2448 45%, var(--eb-ebene) 100%); color: var(--eb-or);
    font: 700 .7rem var(--eb-texte-police); letter-spacing: .02em; box-shadow: 0 6px 16px rgba(75, 36, 72, .35); transition: transform .15s; }
.eb-ebene-bouton svg { width: 26px; height: 26px; }
.eb-ebene-bouton:hover, .eb-ebene[open] .eb-ebene-bouton { transform: scale(1.06); }
.eb-ebene-bouton.envoyee { box-shadow: 0 0 0 3px var(--eb-or), 0 6px 16px rgba(75, 36, 72, .35); }
.eb-ebene-choix { position: absolute; z-index: 30; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(320px, 90vw);
    padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--eb-trait); box-shadow: 0 12px 32px rgba(28, 20, 17, .18); }
.eb-ebene-niveau { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-bottom: 8px; padding: 8px 12px;
    border-radius: 14px; border: 1px solid var(--eb-trait); background: var(--eb-ivoire); font: 500 .95rem var(--eb-texte-police); color: var(--eb-texte); cursor: pointer; text-align: left; }
.eb-ebene-niveau:hover:not(:disabled) { border-color: #7e4d9e; background: #f4eefa; }
.eb-ebene-niveau:disabled { opacity: .45; cursor: not-allowed; }
.eb-ebene-pierres { display: inline-flex; gap: 1px; color: #7e4d9e; }
.eb-ebene-pierres svg { width: 16px; height: 16px; }
.eb-ebene-niveau-3 .eb-ebene-pierres { color: var(--eb-ebene); }
.eb-pilule-passer { color: var(--eb-texte-2); }

/* Balayage de la photo : la photo suit le doigt, le mot « Passer » / « Favori » apparaît. */
[data-eb-balayage] { touch-action: pan-y; user-select: none; }
[data-eb-balayage].eb-glisse img { transition: none; }
[data-eb-balayage] img { transition: transform .2s; }
.eb-balayage-signe { position: absolute; top: 50%; padding: 8px 16px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; letter-spacing: .05em;
    text-transform: uppercase; opacity: 0; pointer-events: none; transform: translateY(-50%); }
.eb-balayage-passer { right: 18px; color: #fff; background: rgba(28, 20, 17, .8); }
.eb-balayage-favori { left: 18px; color: #fff; background: rgba(138, 58, 69, .9); }

/* Mon profil : Mes Ebènes. */
.eb-progression { height: 8px; border-radius: 999px; background: var(--eb-sable); overflow: hidden; }
.eb-progression span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c3a8e0, #7e4d9e, #4b2448); }
.eb-bareme { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.eb-bareme li { display: inline-flex; align-items: center; gap: 6px; opacity: .55; }
.eb-bareme li.atteint { opacity: 1; }

/* ---- Rencontres : bouton central et profils un par un (1er octobre 2026) ---- */
.eb-nav a.eb-nav-rencontres svg { color: var(--eb-or); }
.eb-nav-bas a.eb-nav-bas-rencontres { justify-content: flex-end; color: var(--eb-texte-2); }
.eb-nav-bas-gemme { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-top: -26px;
    border-radius: 50%; border: 3px solid #fff; color: var(--eb-or); box-shadow: 0 4px 12px rgba(75, 36, 72, .35);
    background: radial-gradient(circle at 30% 25%, #7e4d9e 0%, #4b2448 45%, var(--eb-ebene) 100%); }
.eb-nav-bas .eb-nav-bas-gemme svg { width: 26px; height: 26px; }
.eb-rencontres { max-width: 480px; margin: 0 auto; }
.eb-rencontre[hidden] { display: none; }
.eb-rencontre-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; }
.eb-rencontre-photo img { width: 100%; height: 100%; object-fit: cover; }
.eb-rencontre-texte { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; color: #fff;
    background: linear-gradient(transparent, rgba(28, 20, 17, .85)); }
.eb-rencontre-texte h2 { margin: 0; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eb-rencontre-texte p { margin: 2px 0 6px; color: #eadccd; }
.eb-rencontre-texte a { color: var(--eb-or); font-weight: 700; text-decoration: none; }
.eb-rencontre .eb-actions-ebene { margin-top: 14px; }
.eb-rencontre .eb-actions-ebene .eb-pilule-action { width: 54px; padding: 0; justify-content: center; }
.eb-rencontre .eb-libelle-action { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Photo plus large que son cadre (ebenya-espace.js, adapterPhoto) : entière, sur un fond flou d'elle-même. */
.eb-photo-entiere::before { content: ""; position: absolute; inset: -20px; background: var(--eb-fond-photo) center / cover no-repeat;
    filter: blur(22px) brightness(.7); }
.eb-photo-entiere img[data-eb-grande] { position: relative; object-fit: contain; }

/* Fonction fermée aux non-abonnés (data-eb-ferme) : visible mais atténuée ; le clic affiche le message. */
[data-eb-ferme]:not(form):not([data-eb-ferme=""]) { opacity: .5; cursor: not-allowed; }

/* Bouton « œil » des champs secrets (js/ebenya-oeil.js) : posé dans le champ, à droite. */
.eb-oeil-enveloppe { position: relative; display: block; width: 100%; }
.eb-oeil-champ { padding-right: 52px !important; }
.eb-oeil { position: absolute; top: 0; right: 0; bottom: 0; width: 48px; display: flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--eb-texte); cursor: pointer; border-radius: 0 14px 14px 0; padding: 0; }
.eb-oeil:hover { color: var(--eb-cuivre-fonce); }
.eb-oeil:focus-visible { outline: 2px solid var(--eb-cuivre-fonce); outline-offset: -2px; }

/* ---- Certification (pièce d'identité) : ruban « CERTIFIÉ » en coin, prune → ébène, lettres or ---- */
.eb-ruban-certifie { position: absolute; top: 0; right: 0; width: 96px; height: 96px; overflow: hidden; pointer-events: none; z-index: 2; }
.eb-ruban-certifie > span { position: absolute; top: 20px; right: -34px; width: 150px; padding: 5px 0; transform: rotate(45deg);
    background: linear-gradient(90deg, #6b2d57, var(--eb-ebene)); color: var(--eb-or); text-align: center;
    font: 800 .68rem/1.1 var(--eb-texte-police); letter-spacing: .14em; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
/* Vignette : le cœur favori occupe le coin haut droit, le ruban passe en bas à droite. */
.eb-ruban-certifie.eb-ruban-bas { top: auto; bottom: 0; }
.eb-ruban-certifie.eb-ruban-bas > span { top: auto; bottom: 20px; transform: rotate(-45deg); }
.eb-fiche-verifie.eb-fiche-certifie { background: linear-gradient(90deg, #6b2d57, var(--eb-ebene)); }
.eb-certif-exemple { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.eb-certif-carte { position: relative; flex: 0 0 120px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #b98b6a; }
.eb-certif-carte .eb-silhouette { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.eb-certif-carte .eb-silhouette svg { width: 64px; height: 64px; }
.eb-certif-liste, .eb-certif-etapes { flex: 1 1 220px; margin: 0; padding-left: 1.2rem; }
.eb-certif-liste li + li, .eb-certif-etapes li + li { margin-top: 6px; }
.eb-certif-figure { margin: 0; text-align: center; }
.eb-certif-specimen { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .15)); }

/* Page Abonnement : ligne « paiement sécurisé » du récapitulatif et bloc « Nos garanties » (_GarantiesAbonnement). */
.eb-recap-securise { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.eb-recap-securise svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: var(--eb-cuivre); }
.eb-garanties { margin-top: 32px; padding: 24px 20px; border-radius: 18px; background: var(--eb-sable); }
.eb-garanties h2 { margin: 0 0 18px; text-align: center; font-size: 1.5rem; }
.eb-garanties ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .eb-garanties ul { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; } }
@media (min-width: 1100px) { .eb-garanties ul { grid-template-columns: repeat(3, 1fr); } }
.eb-garanties li { display: flex; gap: 12px; align-items: flex-start; }
.eb-garantie-icone { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; color: var(--eb-cuivre); }
.eb-garantie-icone svg { width: 22px; height: 22px; }
.eb-garanties h3 { margin: 0 0 4px; font-size: 1rem; font-family: var(--eb-texte-police, inherit); font-weight: 700; }
.eb-garanties li p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--eb-muet); }
.eb-garanties-aide { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; text-align: center; }
