/* ─── French text: hover a word or a sentence for audio + English ───────────
   Same idea as the Sherlock reading course, but French → English and driven by
   the browser speech engine (no audio files, no cloud TTS call). */

.fl-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  margin: 1rem 0 0.2rem;
}
.fl-toggle {
  border: 1.5px solid var(--gold, #c9a227); background: transparent;
  color: #9a5b00; font-family: inherit; font-weight: 700; font-size: 0.82rem;
  padding: 0.4rem 0.9rem; border-radius: 100px; cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.fl-toggle:hover { background: rgba(201,162,39,0.16); }
.fl-toggle[aria-pressed="true"] { background: var(--gold, #c9a227); color: #fff; }
.fl-tip { font-size: 0.84rem; color: var(--muted, #6b7386); line-height: 1.5; }

/* ─── Banner photo above a text ─────────────────────────────────────────── */
.fr-banner { margin: 1.2rem 0 0.4rem; }
.fr-banner img { width: 100%; max-height: 340px; object-fit: cover; object-position: center 35%;
                 border-radius: 14px; display: block; }
.fr-banner figcaption { font-size: 0.86rem; color: var(--muted, #6b7386); margin-top: 0.45rem;
                        font-style: italic; }

/* ─── Photo strip: a day in six pictures ────────────────────────────────── */
.day-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
             gap: 0.9rem; margin: 1.2rem 0; }
.day-card { background: #fff; border: 1px solid var(--line, #e6dfc9); border-radius: 14px;
            overflow: hidden; display: flex; flex-direction: column; }
.day-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.day-card .cap { padding: 0.6rem 0.7rem 0.7rem; font-size: 0.93rem; line-height: 1.45;
                 color: var(--navy, #1a2744); flex: 1; position: relative; }
.day-card .cap .moment { display: block; font-size: 0.74rem; letter-spacing: 0.09em;
                         text-transform: uppercase; color: #9a5b00; font-weight: 700;
                         margin-bottom: 0.2rem; }

/* Hide / show the sentences under the photos */
.strip-toggle { border: 1.5px solid var(--gold, #c9a227); background: transparent;
                color: #9a5b00; font-weight: 700; font-size: 0.85rem; font-family: inherit;
                padding: 0.45rem 1rem; border-radius: 100px; cursor: pointer;
                transition: all 0.15s; }
.strip-toggle:hover { background: rgba(201,162,39,0.16); }
.strip-toggle[aria-pressed="true"] { background: var(--gold, #c9a227); color: #fff; }
.day-strip.caps-off .day-card:not(.shown) { cursor: pointer; }
.day-strip.caps-off .day-card:not(.shown) .sent { visibility: hidden; }
.day-strip.caps-off .day-card:not(.shown) .cap::after {
  content: 'cliquez pour voir'; position: absolute; left: 0.7rem; right: 0.7rem; top: 1.55rem;
  font-size: 0.82rem; font-style: italic; color: var(--muted, #6b7386); pointer-events: none; }

/* ─── Photo + questions (Regardez et répondez / Non ! Corrigez) ─────────── */
.pq-item { display: grid; grid-template-columns: 200px 1fr; gap: 1.1rem;
           align-items: start; margin: 0 0 1.3rem; }
.pq-item + .pq-item { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.3rem; }
.pq-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
                border-radius: 12px; display: block; }
.pq-photo .pq-tag { display: block; margin-top: 0.4rem; font-size: 0.74rem;
                    letter-spacing: 0.09em; text-transform: uppercase;
                    color: var(--gold-2, #e6bf3e); font-weight: 700; }
.pq-questions .quiz-item { margin-bottom: 0.7rem; }
.pq-questions .quiz-item:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .pq-item { grid-template-columns: 1fr; gap: 0.7rem; }
  .pq-photo img { max-height: 210px; }
}

/* ─── Photo description cards ───────────────────────────────────────────── */
#ex-look-say-desc .ls-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
#ex-look-say-desc .ls-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
#ex-look-say-desc .q-front .qs { display: block; padding: 0.7rem 0.8rem; color: #fff;
                                 font-size: 0.9rem; line-height: 1.5; }
#ex-look-say-desc .ls-reveal { font-size: 0.86rem; padding: 0.6rem 0.8rem;
                               line-height: 1.5; text-align: left; font-family: inherit; }

/* Words and sentences inside the French texts */
.fr-text .fr-w { cursor: pointer; border-radius: 3px; }
.fr-text .fr-w:hover, .fr-text .fr-w.active { background: rgba(201,162,39,0.22); }
.fr-text .fr-s { border-radius: 4px; transition: background 0.12s; }
.fr-text .fr-s:hover { background: rgba(201,162,39,0.08); }

/* Floating speaker for the hovered sentence. It is position: fixed, so it
   never takes part in the layout of the text and cannot push words apart. */
.fl-chip {
  position: fixed; z-index: 118;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; padding: 0;
  border: 1.5px solid var(--gold, #c9a227); border-radius: 50%;
  background: #fff; color: var(--gold, #c9a227); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.13s, background 0.13s, color 0.13s;
}
.fl-chip.show { opacity: 1; pointer-events: auto; }
.fl-chip:hover { background: var(--gold, #c9a227); color: #fff; }

/* Lookup card */
.fl-card {
  position: fixed; z-index: 120; max-width: 300px;
  background: #fff; border: 1.5px solid var(--line, #e6dfc9); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(26,39,68,0.18);
  padding: 0.75rem 0.9rem 0.8rem;
  opacity: 0; transform: scale(0.97); pointer-events: none;
  transition: opacity 0.13s, transform 0.13s;
}
.fl-card.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.fl-head { display: flex; align-items: flex-start; gap: 0.5rem; }
.fl-fr {
  font-family: 'Playfair Display', serif; font-weight: 700;
  color: var(--navy, #1a2744); font-size: 1rem; line-height: 1.35; flex: 1;
}
.fl-say {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0; padding: 0;
  border: 1.5px solid var(--gold, #c9a227); border-radius: 50%;
  background: transparent; color: var(--gold, #c9a227); cursor: pointer;
  transition: all 0.15s;
}
.fl-say:hover { background: var(--gold, #c9a227); color: #fff; }
.fl-en {
  color: var(--ink, #23262f); font-size: 0.94rem; line-height: 1.45;
  margin-top: 0.45rem; border-top: 1px solid var(--line, #e6dfc9); padding-top: 0.45rem;
}
.fl-en.loading { color: var(--muted, #6b7386); font-style: italic; }
.fl-save {
  margin-top: 0.55rem; width: 100%;
  border: none; border-radius: 8px; background: var(--gold, #c9a227);
  color: #1a2744; font-family: inherit; font-weight: 800; font-size: 0.8rem;
  padding: 0.4rem 0.6rem; cursor: pointer; transition: all 0.15s;
}
.fl-save:hover:not(:disabled) { background: var(--gold-2, #e6bf3e); }
.fl-save:disabled { cursor: default; opacity: 0.55; }
.fl-save.saved { background: rgba(47,133,90,0.16); color: #2f855a; opacity: 1; }
.fl-sent {
  margin-top: 0.55rem; width: 100%;
  border: 1.5px solid var(--line, #e6dfc9); border-radius: 8px; background: transparent;
  color: var(--navy, #1a2744); font-family: inherit; font-weight: 700; font-size: 0.8rem;
  padding: 0.35rem 0.6rem; cursor: pointer; transition: all 0.15s;
}
.fl-sent:hover { border-color: var(--gold, #c9a227); background: rgba(201,162,39,0.12); }

@media (max-width: 620px) {
  /* On a phone the card sits at the bottom of the screen, like a sheet. */
  .fl-card {
    left: 0.6rem !important; right: 0.6rem; top: auto !important; bottom: 0.6rem;
    max-width: none; transform: translateY(8px);
  }
  .fl-card.show { transform: translateY(0); }
}
