/* styles.css – Version corrigée 2026 – TOUT FR en bleu, TOUT EN en mauve */

* { box-sizing: border-box; }

:root {
  --bleu-fr:     #1e40af;      /* Bleu profond pour TOUT le français */
  --mauve-en:    #8b5cf6;      /* Mauve/violet pour TOUT l'anglais */
  --accent:      #2563eb;
  --light:       #f3f4f6;
  --gray:        #4b5563;
  --darkgray:    #374151;
  --white:       #ffffff;
  --cantique-border: #6b7280;
  --card-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(to bottom, #eff6ff, #ffffff);
  color: var(--darkgray);
  line-height: 1.7;
}

/* ────────────── En-tête ────────────── */
header {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin: 1.8rem auto;
  max-width: 960px;
  padding: 2.4rem 1.8rem;
  text-align: center;
  border-left: 8px solid var(--accent);
}

.header-main,
.header-dates,
.header-theme-fr {
  color: var(--bleu-fr);       /* Bleu pour tout le français */
}

.header-theme-en {
  color: var(--mauve-en);      /* Mauve pour le thème anglais */
}

/* ────────────── Onglets ────────────── */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 1rem;
  max-width: 960px;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.tab {
  padding: 1rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  min-width: 90px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Couleurs spécifiques par jour (inchangées) */
.tab[data-key="lundi"]    { background: #e0f2fe; color: #1e40af; }
.tab[data-key="mardi"]    { background: #ecfdf5; color: #065f46; }
.tab[data-key="mercredi"] { background: #fef3f2; color: #991b1b; }
.tab[data-key="jeudi"]    { background: #f3e8ff; color: #6b21a8; }
.tab[data-key="vendredi"] { background: #fefce8; color: #854d0e; }
.tab[data-key="samedi"]   { background: #f3f4f6; color: #374151; }

.tab:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
}

.tab.active {
  background: var(--bleu-fr) !important;
  color: white !important;
  border-color: var(--bleu-fr);
  box-shadow: 0 8px 18px rgba(30,64,175,0.3);
  transform: translateY(-2px);
}

/* ────────────── Contenu principal ────────────── */
main {
  padding: 0 1.8rem;
  max-width: 960px;
  margin: 0 auto 5rem;
}

.day-title {
  font-size: 2rem;
  color: var(--bleu-fr);       /* Bleu pour titres de jours */
  margin: 1.8rem 0 2rem;
  text-align: center;
  font-weight: 200;
}

/* Blocs horaires (jaune) */
.service-block {
  margin-bottom: 2.5rem;
}

.service-summary {
  background: #fffbeb;
  border-radius: 12px;
  padding: 1.4rem;
  font-weight: 500;
  font-size: 1.35rem;
  text-align: center;
  border: 2px solid #fbbf24;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.service-summary:hover {
  background: #fff000;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
  border-color: #f59e0b;
}

.service-summary::after {
  content: "▼";
  font-size: 1.4rem;
  color: var(--accent);
  float: right;
  transition: transform 0.35s ease;
}

details[open] > .service-summary::after {
  transform: rotate(180deg);
}

/* Blocs de lecture (déroulants) */
.reading {
  margin: 0.6rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.reading summary {
  padding: 1.2rem 1.5rem;
  background: #f9fafb;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.reading summary:hover {
  background: #f0f7ff;
}

.reading summary.ref-fr {
  color: var(--bleu-fr);       /* Bleu pour références FR */
}

.reading summary.ref-en {
  color: var(--mauve-en);      /* Mauve pour références EN */
}

.reading summary::after {
  content: "▼";
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.35s ease;
}

.reading[open] summary::after {
  transform: rotate(180deg);
}

.reading .content {
  padding: 1.4rem 1.6rem;
  background: white;
}

/* Texte biblique + exposants */
.texte {
  color: var(--bleu-fr);       /* Bleu pour TOUT le texte français */
  font-size: 1.12rem;
  line-height: 1.85;
  white-space: pre-wrap;
}

.texte-en {
  color: var(--mauve-en);      /* Mauve pour TOUT le texte anglais */
  font-size: 1.12rem;
  line-height: 1.85;
  white-space: pre-wrap;
}

sup {
  color: black !important;
  font-size: 0.78rem;
  vertical-align: super;
  line-height: 0;
  margin: 0 1px;
}

/* Séparateur entre FR et EN */
.texte-en {
  border-top: 1px dashed #d1d5db;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
}

/* Bloc cantiques */
.cantiques-block {
  background: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 1.4rem;
  margin-top: 2rem;
  text-align: center;
  border-left: 8px solid var(--cantique-border);
}

.cantiques-list {
  font-size: 1.2rem;
  margin: 0.8rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: #222;
}

.flag-container { display: inline-flex; align-items: center; }

.flag-icon {
  width: 1.6em;
  height: 1.1em;
  background-size: cover;
  background-repeat: no-repeat;
  margin-right: 0.7rem;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.flag-bj { background-image: linear-gradient(to right, #009e60 33.33%, #fcd116 33.33%, #fcd116 66.66%, #ce1126 66.66%); }
.flag-ng { background-image: linear-gradient(to right, #00853e 40%, #ffffff 40%, #ffffff 60%, #00853e 60%); }

.cantique-title { font-weight: bold; text-transform: uppercase; letter-spacing: 0.6px; }
.numero-cantique { font-weight: 700; }