/* fleursdebach.css — styles propres à la page Guide des fleurs de Bach */

  /* ── Fleurs de Bach — s'appuie sur les variables d'articles.css ── */
  .fdb-hero { text-align: center; padding: 4.5rem 1.5rem 2.5rem; max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
  .fdb-hero .surtitre {
    font-family: var(--sans); font-weight: 600; font-size: .82rem;
    letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
  }
  .fdb-hero h1 {
    font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 6vw, 4rem);
    line-height: 1.12; color: var(--violet); margin: 0 0 1.4rem;
  }
  .fdb-hero h1 em { font-style: italic; color: var(--gold); }
  .fdb-hero .chapeau {
    font-family: var(--sans); font-weight: 400; font-size: 1.18rem; line-height: 1.75;
    color: var(--ink); max-width: 600px; margin: 0 auto 1.2rem;
  }
  .fdb-hero .mention {
    font-family: var(--serif); font-style: italic; font-size: 1.1rem;
    color: var(--ink-soft); max-width: 560px; margin: 0 auto;
  }
  .fdb-back {
    display: inline-block; margin-top: 1.6rem; font-family: var(--sans);
    font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    color: var(--violet); text-decoration: none; transition: color .2s;
  }
  .fdb-back:hover { color: var(--gold); }

  /* ── Recherche ── */
  .fdb-search-wrap { max-width: 620px; margin: 0 auto 3rem; padding: 0 1.5rem; position: relative; z-index: 1; }
  .fdb-search-inner { position: relative; }
  #fdbSearch {
    width: 100%; font-family: var(--sans); font-weight: 400; font-size: 1.1rem;
    color: var(--ink); background: #fffdfa;
    border: 1.5px solid rgba(80,0,201,.25); border-radius: 5px;
    padding: 1rem 2.8rem 1rem 1.2rem; outline: none; transition: border-color .2s;
  }
  #fdbSearch::placeholder { color: #9a8f7c; font-style: italic; }
  #fdbSearch:focus { border-color: var(--gold); }
  #fdbClear {
    position: absolute; right: .8rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--stone-mid); font-size: 1.5rem;
    cursor: pointer; display: none; line-height: 1;
  }
  #fdbClear:hover { color: var(--violet); }
  .fdb-count {
    text-align: center; font-family: var(--sans); font-size: .85rem; font-weight: 500;
    letter-spacing: .06em; color: var(--violet); margin-top: .9rem;
  }

  /* ── Grille de cartes ── */
  .fdb-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 14px; max-width: 1180px; margin: 0 auto 5rem; padding: 0 1.5rem;
    position: relative; z-index: 1;
  }
  .fdb-card {
    display: flex; flex-direction: column; text-align: left;
    padding: 1.6rem 1.8rem 1.4rem 1.8rem;
    border: 1px solid rgba(80,0,201,.18); border-left: 5px solid var(--gold);
    background: #fffdfa; cursor: pointer; color: var(--ink);
    font-family: var(--sans); transition: box-shadow .2s, border-color .2s, transform .2s;
    position: relative; overflow: hidden;
    box-shadow: 0 2px 10px rgba(80,0,201,.05);
  }
  /* gros numéro filigrane dans le coin */
  .fdb-card-bignum {
    position: absolute; top: -18px; right: 10px;
    font-family: var(--serif); font-weight: 600;
    font-size: 6rem; line-height: 1; color: var(--violet);
    opacity: .15; pointer-events: none; user-select: none;
  }
  .fdb-card:hover {
    border-color: var(--gold); border-left-color: var(--violet);
    transform: translateY(-4px); box-shadow: 0 10px 26px rgba(80,0,201,.16);
  }
  .fdb-card:hover .fdb-card-bignum { opacity: .22; color: var(--gold); }

  .fdb-card-label {
    font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--gold); margin-bottom: .7rem;
  }
  .fdb-card-title {
    font-family: var(--serif); font-weight: 600; font-size: 2.1rem; line-height: 1.05;
    color: var(--violet); margin: 0;
  }
  .fdb-card-title em {
    display: block; font-size: 1.15rem; font-weight: 500; font-style: italic;
    margin-top: .1rem; color: var(--ink); letter-spacing: .01em;
  }
  .fdb-card-excerpt {
    font-weight: 400; font-size: 1.08rem; line-height: 1.45; color: var(--ink);
    margin: .9rem 0 .8rem; flex: 1;
  }
  .fdb-card-quote {
    font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.4;
    color: var(--violet); margin-bottom: 1.1rem;
  }
  .fdb-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(80,0,201,.14); padding-top: .8rem; margin-top: auto;
  }
  .fdb-card-more {
    font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--violet);
  }
  .fdb-card-arrow { font-size: 1.2rem; font-weight: 600; color: var(--gold); transition: transform .2s; }
  .fdb-card:hover .fdb-card-arrow { transform: translateX(6px); }

  .fdb-noresult {
    display: none; text-align: center; font-family: var(--serif); font-style: italic;
    font-size: 1.1rem; color: var(--ink-soft); padding: 2rem; grid-column: 1 / -1;
  }

  /* ════════════ POPUP PLEIN ÉCRAN ════════════ */
  #fdbModal {
    display: none; position: fixed; inset: 0; z-index: 900;
    background: rgba(14, 6, 38, .88); backdrop-filter: blur(6px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  #fdbModal.open { display: block; }
  .fdb-modal-sheet {
    max-width: 860px; margin: 0 auto; min-height: 100vh;
    background: rgba(253, 251, 248, .98); position: relative;
    box-shadow: 0 0 80px rgba(0,0,0,.4);
  }
  .fdb-modal-close {
    position: absolute; top: 1.1rem; right: 1.2rem; z-index: 5;
    background: rgba(253,251,248,.9); border: 1px solid rgba(80,0,201,.25); border-radius: 3px;
    color: var(--violet); width: 40px; height: 40px; font-size: 1.3rem; line-height: 1;
    cursor: pointer; transition: border-color .2s, color .2s, background .2s;
  }
  .fdb-modal-close:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,255,255,.5); }

  .fdb-modal-head { position: relative; text-align: center; padding: 2.6rem 2rem 1.4rem; }
  .fdb-modal-visual {
    position: relative;
    width: 190px; height: 190px;
    margin: 1.2rem auto 1.4rem;
  }
  .fdb-modal-bignum {
    position: absolute; bottom: 7rem; right: -6rem; z-index: 0;
    font-family: var(--serif); font-weight: 300; font-size: 6rem; line-height: 1;
    color: var(--violet); opacity: .16;
    pointer-events: none; user-select: none;
  }
  .fdb-modal-img {
    position: relative; z-index: 1;
    width: 190px; height: 190px; object-fit: cover; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(184,151,90,.45);
    box-shadow: 0 12px 40px rgba(80,0,201,.18);
    background: var(--stone);
  }
  .fdb-modal-num {
    position: relative; z-index: 1;
    font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .18em;
    color: var(--gold); text-transform: uppercase; display: block; margin-bottom: .7rem;
  }
  .fdb-modal-title {
    position: relative; z-index: 1;
    font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1; color: var(--ink); margin: 0 0 .2rem;
  }
  .fdb-modal-en {
    position: relative; z-index: 1;
    font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.15rem;
    color: var(--gold-dark, var(--gold)); margin-bottom: 1rem;
  }
  .fdb-modal-cat {
    position: relative; z-index: 1;
    display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--violet);
    border: 1px solid var(--violet); border-radius: 20px; padding: .35em 1.1em;
  }
  .fdb-modal-quote {
    position: relative; z-index: 1;
    max-width: 620px; margin: 0 auto 2rem; padding: 1.2rem 1.8rem;
    border-left: 3px solid var(--gold);
    background: linear-gradient(135deg, var(--stone) 0%, #f0edf8 100%);
    font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.25rem; line-height: 1.6;
    color: var(--violet); text-align: center;
  }
  .fdb-modal-body {
    max-width: 660px; margin: 0 auto; padding: 0 2rem 1rem;
    font-family: var(--sans); font-weight: 400; font-size: 1.2rem; line-height: 1.6;
    color: var(--ink);
  }
  .fdb-modal-prop {
    max-width: 660px; margin: 2rem auto 0; padding: 0 2rem;
    font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink);
  }
  .fdb-modal-prop span {
    font-family: var(--sans); font-style: normal; font-size: .9rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
    display: block; margin-bottom: .5rem;
  }
  .fdb-modal-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    max-width: 660px; margin: 2.5rem auto 0; padding: 2rem 2rem 3.5rem;
    border-top: 1px solid rgba(184,151,90,.2);
  }
  .fdb-modal-nav button {
    background: transparent; border: 1px solid var(--gold); border-radius: 3px;
    color: var(--violet); font-family: var(--sans); font-size: .72rem; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; padding: .6rem 1.2rem; cursor: pointer;
    transition: background .2s, color .2s;
  }
  .fdb-modal-nav button:hover:not(:disabled) { background: var(--gold); color: var(--violet-deep); }
  .fdb-modal-nav button:disabled { opacity: .3; cursor: default; }

  @media (max-width: 736px) {
    .fdb-hero { padding: 3rem 1.25rem 2rem; }
    .fdb-grid { padding: 0 1rem; }
    .fdb-card { padding: 1.7rem 1.3rem 1.4rem; }
    .fdb-modal-quote { font-size: 1.1rem; padding: 1rem 1.3rem; }
    .fdb-modal-body { font-size: 1rem; }
    .fdb-modal-img { width: 140px; height: 140px; }
    .fdb-modal-visual { width: 140px; height: 140px; }
    .fdb-modal-bignum { font-size: 4.5rem; bottom: -.8rem; right: -5rem; }
    .fdb-modal-nav {
      flex-wrap: wrap;
      padding: 1.5rem 1.25rem 3rem;
      gap: .7rem .8rem;
    }
    .fdb-modal-nav button { font-size: .68rem; padding: .55rem 1rem; }
    .fdb-modal-nav .share { order: 3; flex-basis: 100%; text-align: center; margin-top: .2rem; }
  }
