/* ─────────────────────────────────────────────────────────────────────────
   ChouDay : feuille de style
   Identité visuelle : rose #A61E45 · orange #E8791A · encre #5C1428
                       blush #FBEAE3 · badge orange clair #F6C9B0
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rose: #A61E45;
  --rose-hover: #8C1839;
  --blush: #FBEAE3;
  --ink: #5C1428;
  --ink-soft: #7E4F46;      /* texte secondaire (assez contrasté pour être lisible) */
  --orange: #E8791A;
  --orange-soft: #F6C9B0;
  --orange-text: #8A3D0F;
  /* Style d'octobre 2026 (comme l'affiche) : les mêmes couleurs, avec du relief. */
  --rose-vif: #C22A57;
  --creme: #FFF8F3;
  --degrade-rose: linear-gradient(135deg, #C22A57 0%, #A61E45 52%, #8C1839 100%);
  --degrade-rose-survol: linear-gradient(135deg, #AE2350 0%, #8C1839 100%);
  --ombre-douce: 0 6px 22px rgba(92, 20, 40, 0.08);
  --ombre-bouton: 0 6px 16px rgba(232, 121, 26, 0.32);
  /* Boutons d'action : orange, texte couleur encre comme les initiales (contraste 4,95 à 7,6).
     Le texte blanc ne se lirait pas sur l'orange (2,9), ni l'encre sur le rose (1,8). */
  --degrade-bouton: linear-gradient(145deg, #FBB76E 0%, #F39A3F 55%, #EC8327 100%);
  --degrade-bouton-survol: linear-gradient(145deg, #FFC27F 0%, #F6A24A 55%, #EF8A30 100%);
  /* Contours des boutons : orange, du clair au vif. Le texte (encre) suffit à les repérer. */
  --degrade-contour: linear-gradient(135deg, #F39A3F 0%, #E8791A 50%, #D2691A 100%);
  /* Plus d'orange (21 octobre 2026), avec des contrastes vérifiés :
     encre sur le dégradé orange ≥ 4,5 ; orange profond sur blanc 4,7 (texte) ; bulle 3,9 (icône). */
  --degrade-orange: linear-gradient(145deg, #FBB76E 0%, #F39A3F 55%, #E8791A 100%);
  --orange-profond: #B55A10;
  --orange-pale: #FFF3E8;
  --orange-bulle: #FFE6D1;
  --white: #FFFFFF;
  --page-bg: #EDE0DC;
  --danger: #B42318;
  --focus: 0 0 0 3px rgba(166, 30, 69, 0.35);
  --font-title: 'Fraunces', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

[hidden] { display: none !important; }

a { color: var(--rose); }

/* ── Coque de l'app : une colonne façon téléphone, centrée sur ordinateur ── */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(130% 55% at 50% 0%, var(--creme) 0%, rgba(255, 248, 243, 0) 70%),
    var(--blush);
  display: flex;
  flex-direction: column;
  overflow-x: clip; /* les décors ne débordent jamais sur le côté */
}
/* Vagues dans les coins (fichiers du site) : discrètes partout, marquées sur l'accueil. */
.app::before, .app::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.45;
}
.app::before { top: 0; right: 0; width: 210px; height: 210px; background-image: url(../img/deco-haut.svg); background-position: top right; }
.app::after { bottom: 0; left: 0; width: 230px; height: 230px; background-image: url(../img/deco-bas.svg); background-position: bottom left; }
.app:has(#ecran-bienvenue.active)::before, .app:has(#ecran-bienvenue.active)::after { opacity: 1; }
@media (min-width: 520px) {
  body { background: var(--page-bg); }
  .app { box-shadow: 0 0 60px rgba(92, 20, 40, 0.12); }
}

/* ── Barre du haut ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 12px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: var(--degrade-rose);
  box-shadow: 0 2px 14px rgba(92, 20, 40, 0.18);
  color: var(--white);
}
.brand-group {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
}
.rosette { width: 24px; height: 24px; flex-shrink: 0; }
.rosette-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--creme);
  box-shadow: 0 1px 4px rgba(60, 10, 25, 0.25);
}
.brand { font-family: var(--font-title); font-size: 19px; font-weight: 600; letter-spacing: 0.2px; }
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.15); }
#btn-menu { grid-column: 1; }
.topbar-right { grid-column: 3; display: flex; justify-content: flex-end; gap: 4px; }

.local-banner {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 6px 16px;
  background: var(--orange-soft);
  color: var(--orange-text);
  font-size: 12px;
  text-align: center;
}

/* ── Écrans ────────────────────────────────────────────────────────────── */
.content { position: relative; z-index: 1; flex: 1; padding: 18px 18px 40px; }
.screen { display: none; }
.screen.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.screen-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 2px 0 12px;
}
.screen-title.inline { margin: 0; font-size: 20px; }
.screen-title:focus { outline: none; }
.lead { margin: 0 0 18px; color: var(--ink); font-size: 14.5px; }
.step { margin: 0 0 6px; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.back-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.back-row .step { margin: 0; }
.back-btn { display: flex; padding: 6px; margin-left: -6px; border-radius: 8px; color: var(--rose); }
.center { text-align: center; }
.free-banner { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 10px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn-primary { background: var(--degrade-bouton); color: var(--ink); box-shadow: var(--ombre-bouton); }
.btn-primary:hover { background: var(--degrade-bouton-survol); }
/* Contour en dégradé rose → orange (le fond blanc ne couvre que l'intérieur). */
.btn-secondary {
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--degrade-contour) border-box;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(92, 20, 40, 0.06);
}
.btn-secondary:hover { background: linear-gradient(var(--orange-pale), var(--orange-pale)) padding-box, var(--degrade-contour) border-box; }
.btn-ghost { background: transparent; color: var(--rose); }
.btn-ghost:hover { background: rgba(166, 30, 69, 0.07); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #971c12; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: default; }
.btn[aria-busy="true"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn, .text-link {
  padding: 8px 4px;
  border: none;
  background: none;
  color: var(--rose);
  font: inherit;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:disabled { color: var(--ink-soft); text-decoration: none; cursor: default; }
.text-link.danger { color: var(--danger); }

:is(a, button, input, select, [tabindex]:not([tabindex="-1"])):focus-visible { outline: none; box-shadow: var(--focus); }
.topbar :is(a, button):focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }

/* ── Formulaires ───────────────────────────────────────────────────────── */
.field { margin: 0 0 18px; padding: 0; border: none; min-width: 0; }
.field label, .field legend { display: block; margin: 0 0 6px; padding: 0; font-weight: 600; font-size: 14px; }
.field-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-soft); }
fieldset.field .field-hint { margin: -2px 0 10px; }
input[type="text"], input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--orange-soft);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px minimum : évite le zoom automatique sur iPhone */
}
input::placeholder { color: #b89088; }
input:focus { outline: none; border-color: var(--rose); box-shadow: var(--focus); }
input[aria-invalid="true"] { border-color: var(--danger); }
.code-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }

.form-error { min-height: 0; margin: 0 0 12px; color: var(--danger); font-size: 13.5px; }
.form-error:empty { display: none; }
.form-error.block { padding: 14px; border-radius: 12px; background: var(--white); text-align: center; }
.form-error.block p { margin: 0 0 12px; }
.fine-print { margin: 16px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); }
.fine-print a { color: inherit; }

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--white);
  font-size: 14.5px;
  cursor: pointer;
}
.checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--rose); flex-shrink: 0; }
/* Case suivie d'un texte de plusieurs lignes (accès immédiat, avant de payer). */
.checkbox-texte { align-items: flex-start; margin: 0 0 14px; background: var(--blush); font-size: 14px; line-height: 1.45; }
.checkbox-texte input { margin-top: 1px; }
.checkbox-texte input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }

/* Centres d'intérêt : pastilles à cocher */
.counter { font-weight: 400; font-size: 12.5px; color: var(--ink-soft); margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--orange-soft);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--rose); }
.chip[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--white); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chip:disabled { opacity: .45; cursor: default; }
.chip:disabled:hover { border-color: var(--orange-soft); }

/* Ville : liste de suggestions */
.combo { position: relative; }
.suggestions {
  position: absolute;
  z-index: 2;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--orange-soft);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(92, 20, 40, 0.14);
}
.suggestions li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--blush); }
.suggestions .dep { color: var(--ink-soft); font-size: 13px; }
.suggestions .info { color: var(--ink-soft); font-size: 13px; cursor: default; }
.suggestions .info:hover { background: none; }

/* ── Écran de code ─────────────────────────────────────────────────────── */
.code-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.local-code {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-text);
  font-size: 13.5px;
  text-align: center;
}
.local-code strong { font-size: 18px; letter-spacing: 3px; }

/* ── Bienvenue ─────────────────────────────────────────────────────────── */
/* Accueil, comme l'affiche : petite ligne en capitales, grand titre, image. */
.accueil { position: relative; }
.accueil-fleurs { position: absolute; top: -6px; width: 92px; height: auto; pointer-events: none; }
.accueil-fleurs.gauche { left: -16px; transform: scaleX(-1) rotate(-6deg); }
.accueil-fleurs.droite { right: -16px; transform: rotate(-6deg); }
.hero { position: relative; z-index: 1; text-align: center; margin: 0 0 22px; }
.hero-surtitre { margin: 10px 0 6px; color: var(--rose); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
/* L'image a un fond transparent et des marges : on la recadre (sans la
   déformer) et on pose les deux femmes sur un halo crème. */
.hero-illu {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1122 / 1160;
  object-fit: cover;
  object-position: 50% 32%;
  margin: 0 auto 14px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 56%, var(--white) 0%, var(--creme) 42%, rgba(255, 248, 243, 0) 72%);
}
.hero-title { font-family: var(--font-title); font-size: clamp(40px, 12.5vw, 52px); font-weight: 600; line-height: 1.04; letter-spacing: -0.5px; margin: 0 auto 16px; max-width: 5em; color: var(--rose); } /* 5em : « Un jour » / « avec toi » */
.hero-title:focus { outline: none; }
.hero-sub { margin: 0 auto; max-width: 340px; font-size: 16px; }
.promises { list-style: none; margin: 8px 0 18px; padding: 16px; border-radius: 20px; background: var(--white); box-shadow: var(--ombre-douce); font-size: 14px; }
.promises li { position: relative; padding: 5px 0 5px 24px; }
.promises li::before { content: "✓"; position: absolute; left: 2px; color: var(--rose); font-weight: 700; }

/* ── Chargement ────────────────────────────────────────────────────────── */
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 55vh; gap: 16px; text-align: center; }
.splash-rosette { width: 72px; height: 72px; animation: breathe 1.6s ease-in-out infinite; }
.splash-text { margin: 0; color: var(--ink-soft); }
.splash .btn { max-width: 240px; }
@keyframes breathe { 50% { transform: scale(0.9) rotate(30deg); opacity: .75; } }

/* ── Cartes de profils ─────────────────────────────────────────────────── */
.profile-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.profile-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--ombre-douce);
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--degrade-orange);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  box-shadow: inset 0 -2px 4px rgba(196, 94, 16, 0.22), 0 2px 8px rgba(232, 121, 26, 0.22);
}
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.profile-name { margin: 0 0 2px; font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.profile-city { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); }
.profile-city svg { flex-shrink: 0; color: var(--orange-profond); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 10px; background: var(--blush); color: var(--rose); font-size: 12px; }
.tag.more { background: none; color: var(--ink-soft); padding-left: 2px; }

.skeleton { height: 92px; border-radius: 16px; background: linear-gradient(90deg, #fff 0%, #fdf4f0 50%, #fff 100%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.empty { padding: 22px 18px; border-radius: 20px; background: var(--white); box-shadow: var(--ombre-douce); text-align: center; font-size: 14px; }
.empty p { margin: 0; }
.empty-title { font-family: var(--font-title); font-size: 18px; font-weight: 600; color: var(--rose); margin-bottom: 6px !important; }

/* ── Sécurité & confiance ──────────────────────────────────────────────── */
.safety-item { display: flex; gap: 12px; margin-bottom: 10px; padding: 14px; border-radius: 12px; background: var(--white); }
/* Les pictogrammes dans des bulles orange, comme les ronds des initiales (pictogramme couleur encre : contraste ≥ 4,5). */
.safety-item svg { flex-shrink: 0; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--degrade-orange); color: var(--ink); box-shadow: inset 0 -2px 4px rgba(196, 94, 16, 0.22), 0 2px 8px rgba(232, 121, 26, 0.22); }
.safety-item-title { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; }
.safety-item-desc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

/* ── Mon compte ────────────────────────────────────────────────────────── */
.card { margin: 0 0 12px; padding: 16px; border-radius: 20px; background: var(--white); box-shadow: var(--ombre-douce); }
.card.warning { border: 1px solid var(--rose); font-size: 14.5px; }
.card.warning p { margin: 0; }
.account-profile { display: flex; gap: 14px; align-items: center; }
.info-label { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--orange-profond); text-transform: uppercase; letter-spacing: .3px; }
.info-value { margin: 4px 0 2px; font-size: 16px; font-variant-numeric: tabular-nums; }
.info-hint { margin: 0; font-size: 12.5px; color: var(--ink-soft); }

/* ── Menu latéral ──────────────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: rgba(92, 20, 40, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50vw - 240px));
  z-index: 10;
  width: min(76vw, 340px);
  padding: 20px 18px;
  padding-top: max(20px, env(safe-area-inset-top));
  background: var(--white);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(-110%);
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .28s ease; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.drawer-head .brand { color: var(--ink); }
.drawer-head .icon-btn { color: var(--rose); }
.drawer-head .icon-btn:hover { background: var(--blush); }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.nav-item:hover, .nav-item[aria-current="page"] { background: var(--blush); }
.nav-item svg { flex-shrink: 0; color: var(--rose); }

/* ── Messages éphémères ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .25s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Le badge reCAPTCHA est remplacé par la mention écrite sous le formulaire
   (solution autorisée par Google). */
.grecaptcha-badge { visibility: hidden; }

.noscript { max-width: 480px; margin: 40px auto; padding: 0 18px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Carte de profil affichée dans « Mon compte » (déjà dans une carte blanche) */
.card .profile-card { padding: 0; border-radius: 0; box-shadow: none; }
.field .form-error { margin: 6px 0 0; }
#majeure-erreur { margin-top: -10px; }
.suggestions .dep { margin-left: 6px; }

/* « Une autre activité ? » sous les pastilles */
.other-interest { margin-top: 16px; }
.other-interest .optional { font-weight: 400; color: var(--ink-soft); }
.other-interest input:disabled { background: #f7efec; color: var(--ink-soft); }

/* ── Phase 3 : présentation, fiche profil, signaler, bloquer ─────────── */
textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--orange-soft);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--rose); box-shadow: var(--focus); }
textarea[aria-invalid="true"] { border-color: var(--danger); }

/* Cartes de l'annuaire cliquables */
.profile-card.link { color: inherit; text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
.profile-card.link:hover { border-color: var(--orange-soft); }
.profile-card.link > div:not(.avatar) { flex: 1; min-width: 0; } /* le texte s'étire, la pastille garde sa taille */
.profile-card .chevron { align-self: center; flex-shrink: 0; color: var(--orange-profond); }

/* Fiche détaillée */
.profile-hero { text-align: center; margin: 0 0 18px; }
.profile-hero .avatar { margin: 0 auto 12px; }
.avatar.xl { width: 84px; height: 84px; font-size: 30px; }
.profile-hero .screen-title { margin: 0 0 4px; }
.profile-city.centered, .tag-row.centered { justify-content: center; }
.verified { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 12px; font-size: 12.5px; color: var(--ink-soft); }
.verified svg { color: var(--rose); flex-shrink: 0; }
.bio-text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.fiche-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fiche-actions .btn { margin: 0; font-size: 14px; }
.fiche-note { margin: 4px 0 16px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.skeleton.tall { height: 260px; }

/* Signaler : liste de raisons */
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-list .radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0;
  font-weight: 400;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--white);
  font-size: 14.5px;
  cursor: pointer;
}
.radio-list .radio:has(input:checked) { border-color: var(--rose); }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--rose); flex-shrink: 0; }

/* Fenêtre de confirmation (bloquer) */
.dialog {
  width: min(360px, calc(100vw - 32px));
  padding: 22px 20px 12px;
  border: none;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(92, 20, 40, 0.25);
}
.dialog::backdrop { background: rgba(92, 20, 40, 0.45); }
.dialog-title { margin: 0 0 8px; font-family: var(--font-title); font-size: 20px; font-weight: 600; }
.dialog p { margin: 0 0 10px; font-size: 14.5px; }
.dialog .dialog-hint { font-size: 12.5px; color: var(--ink-soft); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dialog-actions .btn { margin: 0; }

/* Mon compte : profils bloqués */
.blocked-list { list-style: none; margin: 6px 0 0; padding: 0; }
.blocked-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.blocked-list li + li { border-top: 1px solid var(--blush); }
.profile-hero .tag { background: var(--white); }

/* ── Phase 4 : abonnement (repris du prototype) ─────────────────────────── */
.status-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--rose);
  border-radius: 12px;
  background: var(--white);
  color: var(--rose);
  font-size: 14px;
  text-align: center;
}
.billing-toggle { display: flex; margin-bottom: 18px; padding: 4px; border-radius: 12px; background: var(--white); }
.billing-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.billing-btn.active { background: var(--degrade-bouton); color: var(--ink); }
.plan-card { margin-bottom: 14px; padding: 20px; border: 1px solid var(--rose); border-radius: 20px; background: var(--white); box-shadow: var(--ombre-douce); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan-name { font-family: var(--font-title); font-size: 20px; font-weight: 600; color: var(--rose); }
.plan-price { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.plan-note { margin: 2px 0 12px; font-size: 13px; color: var(--ink-soft); text-align: right; }
.plan-feats { margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.plan-feats li { position: relative; padding: 4px 0 4px 22px; }
.plan-feats li::before { content: "✓"; position: absolute; left: 2px; color: var(--rose); font-weight: 700; }
.plan-hint { margin: -4px 0 14px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.test-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-text);
  font-size: 12.5px;
  text-align: center;
}

/* Carte « Mon abonnement » dans Mon compte */
.sub-status { margin: 4px 0 2px; font-size: 16px; font-weight: 600; }
.sub-status.ok { color: var(--rose); }
.sub-status.warn { color: var(--danger); }
.sub-detail { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.sub-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.sub-actions .btn { margin: 0; }
.sub-actions .text-link, .sub-actions .link-btn { align-self: flex-start; padding-left: 0; }

/* Résiliation */
.resiliation-points { margin: 0 0 18px; padding: 0; list-style: none; font-size: 14.5px; }
.resiliation-points li { position: relative; padding: 5px 0 5px 22px; }
.resiliation-points li::before { content: "•"; position: absolute; left: 6px; color: var(--rose); font-weight: 700; }

/* Espace équipe ChouDay (abonnements offerts) */
.admin-card { border: 1px dashed var(--orange); }
.admin-card .info-label { color: var(--orange-text); }
.admin-card .btn { margin: 10px 0 0; }

/* ── Phase 5 : messagerie (repris du prototype) ──────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon-btn { position: relative; }
.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--rose);
  border-radius: 50%;
  background: var(--orange);
}
.nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 11px;
  background: var(--rose);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* Liste des conversations */
.conversation-list { display: flex; flex-direction: column; gap: 10px; }
.conversation-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
}
.conversation-item:hover { border-color: var(--orange-soft); }
.conversation-main { flex: 1; min-width: 0; }
.conversation-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conversation-name { font-weight: 600; overflow-wrap: anywhere; }
.conversation-time { flex-shrink: 0; font-size: 12px; color: var(--ink-soft); }
.conversation-preview { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item.unread .conversation-preview { color: var(--ink); font-weight: 600; }
.unread-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--orange); }

/* Conversation */
.chat-head { flex-wrap: wrap; margin-bottom: 8px; }
.chat-person { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.chat-tools { display: flex; gap: 6px; margin-left: auto; }
.chat-tools .link-btn { font-size: 12.5px; color: var(--ink-soft); }
.safety-banner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}
.safety-banner svg { flex-shrink: 0; margin-top: 1px; color: var(--rose); }
.chat-thread { display: flex; flex-direction: column; gap: 8px; min-height: 240px; margin-bottom: 14px; }
/* Comme dans les applications de SMS : la zone d'écriture reste en bas de
   l'écran, et les derniers messages juste au-dessus, même quand la
   conversation vient de commencer. */
.content:has(> #ecran-conversation.active) { display: flex; flex-direction: column; padding-bottom: 0; }
#ecran-conversation.active { flex: 1; display: flex; flex-direction: column; }
#ecran-conversation .chat-thread { flex: 1; justify-content: flex-end; }
.chat-day { align-self: center; margin: 8px 0 2px; font-size: 12px; color: var(--ink-soft); }
.chat-empty { align-self: center; margin: 24px 0; font-size: 14px; color: var(--ink-soft); text-align: center; }
.bubble { max-width: 78%; padding: 9px 13px 6px; border-radius: 16px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.them { align-self: flex-start; background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--rose); color: var(--white); border-bottom-right-radius: 4px; }
.bubble-time { display: block; margin-top: 2px; font-size: 11px; text-align: right; opacity: .75; }
.chat-footer {
  position: sticky;
  bottom: 0;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  background: var(--blush);
}
.chat-input-row { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.chat-input {
  flex: 1;
  min-height: 0; /* une seule ligne au départ (pas la hauteur de la présentation) */
  max-height: 140px;
  padding: 10px 16px;
  border: 1px solid var(--orange-soft);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  resize: none;
}
.chat-input:focus { outline: none; border-color: var(--rose); box-shadow: var(--focus); }
.send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--degrade-bouton);
  color: var(--ink);
  cursor: pointer;
}
.send-btn:disabled { opacity: .5; cursor: default; }
.chat-footer .form-error { margin: 6px 0 0; }
.chat-quota { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.chat-info { margin: 0; text-align: center; font-size: 14px; }
.chat-info p { margin: 0 0 10px; }
.chat-info .btn { margin: 0; }

/* ── Notifications sur le téléphone ────────────────────────────────────── */
.notif-banner { margin-bottom: 14px; border: 1px solid #F8D6B8; background: var(--orange-pale); }
.notif-banner p { margin: 0 0 10px; font-size: 14px; }
.notif-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.notif-actions .btn { width: auto; margin: 0; padding: 10px 16px; font-size: 14px; }
#notifications-etat .btn { margin: 12px 0 0; }
#notifications-etat .link-btn { margin-top: 8px; padding-left: 0; }
#notifications-etat .notif-rappel { margin: 14px 0 4px; align-items: flex-start; font-size: 14px; }
#notifications-etat .notif-rappel input { margin-top: 2px; }
.steps { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.steps li { margin: 6px 0; }

/* ── Bienvenue après l'inscription : un mot inspirant ──────────────────── */
.inspiration { text-align: center; padding-top: 12px; }
.inspiration-rosette { width: 56px; height: 56px; margin: 0 auto 6px; display: block; }
.inspiration-intro { margin: 0 0 12px; color: var(--ink-soft); }
.inspiration-carte { margin: 0 0 18px; padding: 22px 20px; text-align: left; }
.inspiration-texte {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-line;
}
.inspiration-texte.long { font-size: 17px; }
.inspiration-autrice { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; color: var(--rose); }
.inspiration-source { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.inspiration-suite { margin: 0 0 18px; }

/* ── « Ta parenthèse ChouDay » en bas de quelques pages (js/inspirations.js) ── */
/* Le mot d'abord, l'animation des copines en dessous, jusqu'au bas du cadre.
   Le cadre a le crème du fond des animations (#FFF4E8) : la vidéo s'y fond sans bord. */
.mot-doux {
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 24px;
  background: #FFF4E8;
  box-shadow: var(--ombre-douce);
  text-align: center;
}
.mot-doux:empty { display: none; }
.mot-doux-film { position: relative; }
.mot-doux-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.1; /* les deux copines en entier, de la tête aux pieds */
  object-fit: cover;
  object-position: 50% 0;
  background: #FFF4E8;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%);
  mask-image: linear-gradient(to bottom, transparent, #000 6%);
}
.mot-doux-pause {
  position: absolute;
  top: 6px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 10px rgba(92, 20, 40, 0.14);
  color: var(--rose);
  cursor: pointer;
}
.mot-doux-pause .icone-pause, .mot-doux-pause.en-lecture .icone-lecture { display: none; }
.mot-doux-pause.en-lecture .icone-pause { display: block; }
.mot-doux-corps { padding: 22px 22px 0; }
.mot-doux-titre { margin: 0 0 6px; color: var(--rose); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.mot-doux-theme { margin: 0 0 10px; color: var(--orange-text); font-size: 14px; }
.mot-doux figure { margin: 6px 0 4px; }
.mot-doux-texte {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-line;
  text-wrap: balance; /* lignes de longueur égale, pas de mot seul en bout de vers */
}
.mot-doux-texte.long { font-size: 17px; }
.mot-doux-autrice { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; color: var(--rose); }
.mot-doux-source { font-size: 12.5px; font-weight: 400; color: var(--ink-soft); }
/* « Chouchoute-toi » : jamais de texte sous 16 px. */
#ecran-bons-plans .mot-doux-titre { font-size: 16px; letter-spacing: 0.12em; }
#ecran-bons-plans :is(.mot-doux-theme, .mot-doux-autrice, .mot-doux-source) { font-size: 16px; }

/* ── Ma santé au féminin ───────────────────────────────────────────────── */
.sante-intro { margin: 0 0 10px; color: var(--ink-soft); }
.sante-avertissement {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--orange-soft);
  border-radius: 12px;
  background: var(--white);
  font-size: 13.5px;
  line-height: 1.45;
}
.sante-avertissement::before { content: "ℹ️ "; }
.sante-admin { margin: 0 0 12px; font-size: 13.5px; }
.sante-confidentiel { display: block; margin-top: 4px; font-size: 13px; opacity: .85; }
.sante-fil, .sante-resultats { display: flex; flex-direction: column; gap: 10px; }
.sante-resultats { margin-top: 10px; }
.sante-formulaire { display: flex; gap: 8px; align-self: flex-end; width: 78%; margin: 0; }
.sante-age {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid var(--orange-soft);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.sante-age:focus { outline: none; border-color: var(--rose); box-shadow: var(--focus); }
.sante-valider { width: auto; min-height: 44px; margin: 0; padding: 8px 18px; border-radius: 20px; }
.sante-fil .form-error { align-self: flex-end; margin: 0; }
.sante-carte { margin: 0; }
.sante-titre { margin: 0 0 6px; font-family: var(--font-title); font-size: 17px; font-weight: 600; color: var(--ink); }
.sante-texte { margin: 0 0 10px; font-size: 14.5px; white-space: pre-line; }
.sante-source { margin: 0 0 10px; padding: 8px 0 0; border-top: 1px solid #f6e3dc; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.sante-source p { margin: 0 0 2px; }
.sante-source a { color: var(--rose); overflow-wrap: anywhere; }
.sante-rappel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sante-bouton { width: auto; min-height: 40px; margin: 0; padding: 8px 14px; font-size: 14px; }
.sante-question { width: 100%; margin: 0; font-size: 14px; font-weight: 600; }
.sante-reserve { margin: 0; font-size: 13px; color: var(--ink-soft); }
.sante-rappel .link-btn { padding-left: 0; font-size: 13px; }
.sante-confirmation { margin: 0; font-size: 14px; font-weight: 600; color: var(--rose); }
.sante-fil .bubble, .sante-resultats .bubble { padding-bottom: 9px; }

/* ── Recommandations santé (équipe) ────────────────────────────────────── */
#sante-admin-contenu > .info-hint { margin: 0 0 12px; }
#sante-admin-contenu > .card.warning { margin: 0 0 12px; }
.reco-corrections { margin: 0 0 12px; border: 1px solid var(--rose); font-size: 14.5px; }
.reco-corrections p { margin: 0 0 8px; }
.reco-corrections .btn { margin: 4px 0 0; }
.reco-aide { margin: 0 0 14px; font-size: 13.5px; }
.reco-aide summary { cursor: pointer; font-weight: 600; color: var(--rose); }
.reco-aide ol { margin: 8px 0; padding-left: 20px; }
.reco-aide li { margin: 0 0 4px; }
.reco-aide p { margin: 0; color: var(--ink-soft); }
.reco-liste { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.reco-admin { margin: 0; font-size: 14px; }
.reco-admin p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.reco-tete { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; color: var(--ink); }
.reco-badge { flex: none; padding: 2px 8px; border-radius: 10px; background: #fff1e6; color: var(--orange-text); font-size: 11.5px; font-weight: 600; }
.reco-actions { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.reco-actions .btn { width: auto; min-height: 38px; margin: 0; padding: 8px 16px; font-size: 14px; }
.link-btn.danger { color: var(--danger); }
.reco-form input[type="number"], .reco-form input[type="url"], .reco-form input[type="date"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--orange-soft);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* évite le zoom automatique sur iPhone */
  text-align: left;
}
.reco-form textarea { min-height: 160px; }
.reco-ages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reco-sous-lien { margin: -12px 0 16px; }
.reco-sous-lien .link-btn { padding-left: 0; font-size: 13px; }
.field .reco-case { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; font-weight: 400; font-size: 15px; }
.reco-case input { width: 18px; height: 18px; accent-color: var(--rose); }

/* ── Signalements (équipe) ─────────────────────────────────────────────── */
.admin-signalements { margin: 12px 0 0; }
.signalements-liste { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.signalement { margin: 0; font-size: 14px; }
.signalement p { margin: 4px 0 0; }
.signalement-tete { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; color: var(--ink); }
.signalement-date { flex-shrink: 0; font-size: 12px; color: var(--ink-soft); }
.signalement-details { font-style: italic; color: var(--ink-soft); }

/* ── Chouchoute-toi : les bons plans des abonnées ──────────────────────── */
/* Pensé d'abord pour le téléphone : texte de 16 px au moins, boutons de
   44 px au moins, contrastes suffisants, rien de chargé depuis un autre site. */
.nav-verrou { display: inline-flex; margin-left: auto; }
.nav-item .nav-verrou svg { color: var(--ink-soft); }
.bp-sous-titre { margin: -6px 0 16px; font-size: 16px; color: var(--ink-soft); }
#ecran-bons-plans .skeleton { margin: 0 0 12px; }
.bp-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 4px solid transparent;
  border-radius: 12px;
  background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(to bottom, var(--rose), var(--orange)) border-box;
  font-size: 16px;
  line-height: 1.5;
}
.bp-filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.bp-filtre { margin: 0 0 14px; }
.field.bp-filtre label { font-size: 16px; }
.bp-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--orange-soft);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.bp-select:focus { outline: none; border-color: var(--rose); box-shadow: var(--focus); }
.bp-liste { display: flex; flex-direction: column; gap: 14px; margin: 0 0 16px; }
.bp-carte { margin: 0; font-size: 16px; line-height: 1.5; }
.bp-tete { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.bp-tete-texte { min-width: 0; }
.bp-site { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.bp-badge { padding: 2px 10px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-text); font-size: 16px; font-weight: 600; }
.bp-titre { margin: 0 0 6px; font-family: var(--font-title); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.bp-description { margin: 0 0 10px; overflow-wrap: anywhere; }
.bp-etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.bp-etiquette { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 12px; background: var(--blush); color: var(--rose); font-size: 16px; }
.bp-etiquette svg { flex-shrink: 0; }
.bp-code { margin: 0 0 12px; }
.bp-code-libelle { margin: 0 0 4px; color: var(--ink-soft); }
.bp-code-ligne { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.bp-code-valeur {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px dashed var(--rose);
  border-radius: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.bp-copier {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--degrade-contour) border-box;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.bp-copier:hover { background: linear-gradient(var(--orange-pale), var(--orange-pale)) padding-box, var(--degrade-contour) border-box; }
.bp-conditions, .bp-dates { margin: 0 0 10px; color: var(--ink-soft); overflow-wrap: anywhere; }
.bp-lien { margin-top: 4px; }
.btn.bp-voir { margin: 0 0 4px; font-size: 16px; }
.bp-domaine { margin: 0; color: var(--ink-soft); text-align: center; overflow-wrap: anywhere; }
.empty.bp-vide { font-size: 16px; }
.empty.bp-vide .btn { margin: 14px 0 0; font-size: 16px; }
.bp-pied { margin: 18px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.bp-pied p { margin: 0 0 10px; }
.bp-pied a { overflow-wrap: anywhere; }
.bp-reserve { font-size: 16px; line-height: 1.5; }
.bp-reserve p { margin: 0 0 12px; }
.bp-reserve-titre { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: 19px; font-weight: 600; color: var(--ink); }
.bp-reserve-titre svg { flex-shrink: 0; color: var(--rose); }
.bp-reserve .btn { margin: 6px 0 0; font-size: 16px; }

/* Chouchoute-toi : l'espace de l'administratrice. */
#ecran-bons-plans-gestion { font-size: 16px; line-height: 1.5; }
#ecran-bons-plans-gestion :is(.field label, .field-hint, .form-error) { font-size: 16px; }
.bpa-liste { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 16px; }
.bpa-carte { margin: 0; }
.bpa-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bpa-site { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bpa-etat { flex: none; padding: 2px 10px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.bpa-etat.active { background: var(--blush); color: var(--rose); }
.bpa-etat.expiree { background: var(--orange-soft); color: var(--orange-text); }
.bpa-etat.desactivee { background: #EEE5E2; color: var(--ink-soft); }
.bpa-titre { margin: 4px 0; font-family: var(--font-title); font-size: 18px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bpa-details { margin: 0 0 4px; color: var(--ink-soft); overflow-wrap: anywhere; }
.bpa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.btn.bpa-bouton { width: auto; min-height: 44px; margin: 0; padding: 8px 14px; font-size: 16px; }
.btn.bpa-supprimer { color: var(--danger); }
.bpa-question { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--danger); }
.card.warning.bpa-rappel { font-size: 16px; line-height: 1.5; }
.bpa-formulaire textarea { font-size: 16px; }
.bpa-formulaire input[type="date"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--orange-soft);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.bpa-formulaire input[type="date"]:focus { outline: none; border-color: var(--rose); box-shadow: var(--focus); }
.btn.bpa-tester { margin: -8px 0 18px; font-size: 16px; }
.checkbox.bpa-active { font-size: 16px; }
.bpa-refus p { margin: 0 0 12px; }
#compte-bons-plans-admin { margin-top: 10px; }
#ecran-bons-plans .btn, #ecran-bons-plans-gestion .btn { font-size: 16px; }

/* ── Mon rituel du jour (rituel.js) : texte de 16 px et boutons de 44 px au moins ── */
#ecran-rituel { font-size: 16px; line-height: 1.5; }
#ecran-rituel .btn { font-size: 16px; }
#ecran-rituel .form-error.block { font-size: 16px; }
#ecran-rituel .skeleton { height: 260px; }
.rituel-reserve p { margin: 0 0 12px; }
.rituel-reserve-titre { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: 19px; font-weight: 600; color: var(--ink); }
.rituel-reserve-titre svg { flex-shrink: 0; color: var(--rose); }
.rituel-reserve .btn { margin: 6px 0 0; }
.rituel-carte { padding: 20px; }
.rituel-jour { margin: 0 0 12px; color: var(--orange-profond); font-weight: 600; }
.rituel-etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.rituel-categorie, .rituel-duree {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 16px;
}
.rituel-categorie { background: var(--orange-soft); color: var(--orange-text); font-weight: 600; }
.rituel-duree { border: 1px solid var(--orange-soft); background: var(--white); color: var(--ink); }
.rituel-categorie svg, .rituel-duree svg { flex-shrink: 0; }
.rituel-duree svg { color: var(--orange-profond); }
.rituel-titre { margin: 0 0 8px; font-family: var(--font-title); font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.rituel-texte { margin: 0 0 18px; font-size: 17px; line-height: 1.55; }
.btn.rituel-bouton { margin: 0; }
.btn.rituel-bouton[aria-pressed="true"] { background: linear-gradient(#FFF4E8, #FFF4E8) padding-box, var(--degrade-contour) border-box; }
.rituel-annuler { margin: 8px 0 0; color: var(--ink-soft); text-align: center; }
.rituel-avertissement { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #F3DDD3; color: var(--ink-soft); }
.btn.rituel-effacer { margin: 18px 0 0; }
#dialog-rituel-effacer p { font-size: 16px; }
#dialog-rituel-effacer .btn { font-size: 16px; }
/* Onglets « Mon rituel » / « Quiz de la semaine » */
.rituel-onglets { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: var(--ombre-douce); }
.rituel-onglet {
  flex: 1 1 auto; /* chaque onglet selon son texte : « Quiz de la semaine » tient sur une ligne à 360 px */
  min-height: 44px;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.rituel-onglet[aria-selected="true"] { background: var(--degrade-bouton); color: var(--ink); }
.rituel-panneau { border-radius: 20px; }
.rituel-panneau:focus-visible, .rituel-question:focus-visible, .rituel-retour-titre:focus-visible, .rituel-resultat:focus-visible { outline: none; box-shadow: var(--focus); }
.rituel-question:focus, .rituel-retour-titre:focus, .rituel-resultat:focus { outline: none; }
/* Quiz */
.rituel-sous-titre { margin: 6px 0 12px; font-family: var(--font-title); font-size: 20px; font-weight: 600; color: var(--ink); }
.rituel-bientot { margin: 0 0 16px; padding: 18px; border-radius: 20px; background: var(--white); box-shadow: var(--ombre-douce); text-align: center; }
.rituel-quiz { padding: 18px 20px; }
.rituel-quiz .btn { margin: 0; }
.rituel-quiz-titre { margin: 0 0 6px; font-family: var(--font-title); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.rituel-quiz-infos { margin: 0 0 12px; color: var(--ink-soft); }
.rituel-quiz-fait { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--orange-text); font-weight: 600; }
.rituel-bandeaux { margin: 0 0 10px; }
.rituel-bandeau { margin: 0 0 6px; padding: 6px 12px; border: 1px dashed var(--orange); border-radius: 10px; background: #FFF4E8; color: var(--orange-text); font-weight: 600; }
.rituel-quiz-nom { margin: 0 0 4px; color: var(--ink-soft); }
.rituel-progression { margin: 0 0 8px; color: var(--rose); font-weight: 700; }
.rituel-question { margin: 0 0 16px; font-family: var(--font-title); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--ink); border-radius: 8px; }
.rituel-reponses { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.rituel-reponse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--orange-soft);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: left;
}
button.rituel-reponse { cursor: pointer; }
button.rituel-reponse:hover { border-color: var(--rose); }
.rituel-lettre { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blush); color: var(--rose); font-weight: 700; }
.rituel-reponse-texte { flex: 1; min-width: 50%; }
.rituel-reponse.est-bonne { border: 2px solid var(--rose); }
.rituel-reponse.est-bonne .rituel-lettre { background: var(--rose); color: var(--white); }
.rituel-reponse.est-choisie { border: 2px dashed var(--orange); }
.rituel-marque { display: inline-flex; align-items: center; gap: 4px; margin-left: 42px; font-weight: 600; color: var(--rose); }
.rituel-reponse.est-choisie .rituel-marque { color: var(--orange-text); }
.rituel-retour { margin: 0 0 16px; padding: 16px; border-radius: 16px; background: #FFF4E8; }
.rituel-retour .btn { margin: 8px 0 0; }
.rituel-retour-titre { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--font-title); font-size: 20px; font-weight: 600; border-radius: 8px; }
.rituel-retour.juste .rituel-retour-titre { color: var(--rose); }
.rituel-retour.a-revoir .rituel-retour-titre { color: var(--orange-text); }
.rituel-bonne { margin: 0 0 8px; font-weight: 600; }
.rituel-explication { margin: 0 0 12px; }
.rituel-sources-titre { margin: 0 0 4px; font-weight: 600; }
.rituel-sources { margin: 0 0 10px; padding-left: 20px; }
.rituel-sources li { margin: 0 0 8px; overflow-wrap: anywhere; }
.rituel-verifie { margin: 0 0 10px; color: var(--ink-soft); }
.rituel-fiche { margin: 0 0 6px; }
.rituel-resultat { margin: 4px 0 8px; font-family: var(--font-title); font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--rose); border-radius: 8px; }
.rituel-encouragement { margin: 0 0 12px; font-size: 17px; }
.rituel-message-fin { margin: 0 0 12px; }
.rituel-avertissement-quiz { display: flex; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--orange-soft); border-radius: 14px; background: var(--white); }
.rituel-avertissement-quiz svg { flex-shrink: 0; margin-top: 2px; color: var(--orange-text); }

/* Les dégradés de la rosette (logo) sont définis dans une petite image cachée. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
