/* ==========================================================================
   Plateforme « Entendre la voix de Dieu » — 12 modules
   Charte du tableau périodique : jaune #FFBE0B · orange #FB5607 · gris #737373
   rose #FF006E · rose clair #FF66C4 · lavande #A484E1 · violet #8338EC · bleu #3A86FF
   Fond blanc cassé, bandeau crème #FCF6DB, Archivo Black + Homebreaks + Poppins
   ========================================================================== */

/* ————— Polices embarquées (site 100% hors-ligne) ————— */
@font-face {
  font-family: 'Homebreaks';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Homebreaks.otf') format('opentype');
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivoblack-400-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: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivoblack-400-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;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400i-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: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400i-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;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500i-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: 'Poppins';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500i-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;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-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: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-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;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-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;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-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;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-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 {
  --jaune: #FFBE0B;
  --orange: #FB5607;
  --gris: #737373;
  --rose: #FF006E;
  --rose-clair: #FF66C4;
  --lavande: #A484E1;
  --violet: #8338EC;
  --bleu: #3A86FF;
  --creme: #FCF6DB;
  --fond: #FDFCF8;
  --encre: #111111;
  --vert-ok: #2FA36B;
  --font-titre: "Archivo Black", "Arial Black", sans-serif;
  --font-manuscrit: "Homebreaks", cursive;
  --font-texte: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-texte);
  background: var(--fond);
  color: var(--encre);
  line-height: 1.65;
  background-image: radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 22px 22px;
}

a { color: inherit; }
button { font-family: var(--font-texte); }

/* ————— En-tête ————— */
.site-header {
  text-align: center;
  padding: 44px 16px 10px;
}
.titre-pill {
  display: inline-block;
  background: var(--creme);
  border-radius: 60px;
  padding: 12px 40px;
}
.titre-pill h1 {
  font-family: var(--font-titre);
  font-size: clamp(1.3rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1.12;
}
.sous-titre {
  font-family: var(--font-manuscrit);
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  margin-top: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.trait-marqueur {
  width: min(380px, 55%);
  height: 6px;
  margin: 14px auto 0;
  background: var(--encre);
  border-radius: 50% 50% 50% 50% / 100% 100% 0 0;
  transform: rotate(-0.6deg);
}
.intro {
  max-width: 740px;
  margin: 24px auto 0;
  padding: 0 20px;
  color: #333;
}

/* ————— Progression globale ————— */
.progres-global {
  max-width: 740px;
  margin: 26px auto 8px;
  padding: 0 20px;
}
.progres-global .etiquette {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.barre {
  height: 14px;
  background: #eee9d8;
  border-radius: 20px;
  overflow: hidden;
}
.barre > span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--jaune), var(--orange), var(--rose), var(--violet), var(--bleu));
  transition: width 0.5s ease;
}

/* ————— Blocs et cartes modules ————— */
.blocs {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}
.bloc-section { margin-bottom: 40px; }
.bloc-titre-ligne {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.bloc-numero {
  font-family: var(--font-manuscrit);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #fff;
  border-radius: 30px;
  padding: 4px 16px;
}
.bloc-nom {
  font-family: var(--font-titre);
  font-size: 1.15rem;
  text-transform: uppercase;
}
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.carte-module {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.carte-module:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.16); }
.carte-module .cm-head {
  color: #fff;
  padding: 14px 18px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-num {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-titre { font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.carte-module .cm-corps { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.cm-resume { font-size: 0.85rem; color: #444; flex: 1; }
.cm-etat {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.cm-badge {
  border-radius: 30px;
  padding: 3px 12px;
  color: #fff;
  background: #bbb;
}
.cm-badge.encours { background: var(--jaune); color: #3B2E00; }
.cm-badge.valide { background: var(--vert-ok); }
.mini-barre { flex: 1; height: 8px; background: #eee; border-radius: 10px; overflow: hidden; }
.mini-barre > span { display: block; height: 100%; border-radius: 10px; }

/* ————— Page module ————— */
#vue-module, #vue-lecon, #vue-qcm { display: none; }
body.mode-module #vue-accueil, body.mode-lecon #vue-accueil, body.mode-qcm #vue-accueil { display: none; }
body.mode-module #vue-module { display: block; }
body.mode-lecon #vue-lecon { display: block; }
body.mode-qcm #vue-qcm { display: block; }

.hero {
  color: #fff;
  padding: 34px 20px 30px;
}
.hero-inner { max-width: 920px; margin: 0 auto; }
.fil-ariane { font-size: 0.85rem; margin-bottom: 16px; }
.fil-ariane a { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.92; }
.fil-ariane a:hover { text-decoration: underline; }
.hero .module-label {
  font-family: var(--font-manuscrit);
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.95;
}
.hero h1 {
  font-family: var(--font-titre);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 6px 0 10px;
}
.hero .accroche { font-style: italic; opacity: 0.96; max-width: 700px; }

.corps { max-width: 920px; margin: 0 auto; padding: 30px 20px 40px; }
.bloc-contenu { margin-bottom: 36px; }
.pill-titre {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  text-transform: uppercase;
  display: inline-block;
  background: var(--creme);
  border-radius: 40px;
  padding: 7px 20px;
  margin-bottom: 16px;
}

.texte-intro { font-size: 1.02rem; }
.texte-intro p { margin-bottom: 12px; }

.objectifs {
  background: var(--creme);
  border-radius: 14px;
  padding: 20px 24px;
  border-left: 8px solid;
}
.objectifs ul { padding-left: 20px; }
.objectifs li { margin-bottom: 8px; }

.liste-lecons { display: grid; gap: 12px; }
.lecon-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  border: none;
  text-align: left;
  width: 100%;
  font-size: 0.95rem;
}
.lecon-item:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.lecon-num {
  font-family: var(--font-titre);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.lecon-infos { flex: 1; }
.lecon-titre { font-weight: 700; }
.lecon-duree { font-size: 0.78rem; color: #777; }
.lecon-coche { font-size: 1.2rem; color: #ccc; }
.lecon-coche.lu { color: var(--vert-ok); }

.exercices-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.exercice-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.09);
}
.exercice-card .ex-head { color: #fff; padding: 12px 18px; }
.ex-titre { font-weight: 700; }
.ex-duree { font-size: 0.78rem; opacity: 0.92; }
.ex-objectif { font-size: 0.85rem; font-style: italic; padding: 12px 18px 0; color: #555; }
.exercice-card ol { padding: 10px 18px 18px 36px; font-size: 0.88rem; }
.exercice-card ol li { margin-bottom: 7px; }

.outils-liens { display: flex; flex-wrap: wrap; gap: 10px; }
.outil-lien {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 30px;
  padding: 8px 18px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.outil-lien:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.2); }

.bouton-principal {
  display: inline-block;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 40px;
  padding: 14px 34px;
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none;
}
.bouton-principal:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.25); }
.bouton-secondaire {
  display: inline-block;
  border: 2px solid var(--encre);
  background: transparent;
  cursor: pointer;
  color: var(--encre);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 40px;
  padding: 10px 24px;
  text-decoration: none;
}
.qcm-etat-module { margin-top: 12px; font-size: 0.9rem; font-weight: 600; }

/* ————— Page leçon ————— */
.section-lecon { margin-bottom: 26px; }
.section-lecon h3 {
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 5px solid;
}
.section-lecon p { margin-bottom: 12px; color: #222; }

.versets-grille { display: grid; gap: 12px; margin-bottom: 26px; }
.verset {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  font-style: italic;
}
.verset .ref { display: block; font-style: normal; font-weight: 700; margin-top: 6px; font-size: 0.85rem; }

.points-cles {
  background: var(--creme);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 30px;
}
.points-cles .pc-titre {
  font-family: var(--font-manuscrit);
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.points-cles ul { padding-left: 20px; }
.points-cles li { margin-bottom: 6px; font-weight: 500; }

.nav-lecon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ————— QCM ————— */
.qcm-progression { font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.qcm-question {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.09);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.qcm-question h3 { font-size: 1.08rem; margin-bottom: 16px; }
.qcm-options { display: grid; gap: 10px; }
.qcm-option {
  text-align: left;
  border: 2px solid #e5e0cf;
  background: #fdfcf6;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.qcm-option:hover:not(:disabled) { border-color: var(--encre); }
.qcm-option.choisie { border-color: var(--encre); background: var(--creme); }
.qcm-option.bonne { border-color: var(--vert-ok); background: #E9F7F0; }
.qcm-option.mauvaise { border-color: #D64545; background: #FBEBEB; }
.qcm-option:disabled { cursor: default; }
.qcm-explication {
  margin-top: 16px;
  background: var(--creme);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  display: none;
}
.qcm-explication.visible { display: block; }
.qcm-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }

.qcm-resultat {
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.1);
  padding: 40px 26px;
}
.qcm-score {
  font-family: var(--font-titre);
  font-size: 3rem;
  line-height: 1;
}
.qcm-verdict { font-family: var(--font-manuscrit); font-size: 1.3rem; letter-spacing: 1px; margin: 12px 0 8px; }
.qcm-message { max-width: 500px; margin: 0 auto 22px; color: #444; }

/* ————— Pied de page ————— */
.site-footer {
  text-align: center;
  padding: 30px 18px 40px;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid #eee;
}
.site-footer .manuscrit { font-family: var(--font-manuscrit); font-size: 1rem; letter-spacing: 1px; }

.retour-flottant {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--encre);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  display: none;
  z-index: 50;
}
body.mode-module .retour-flottant, body.mode-lecon .retour-flottant, body.mode-qcm .retour-flottant { display: block; }

@media (max-width: 640px) {
  .nav-lecon a, .nav-lecon button { flex: 1 1 100%; text-align: center; }
}
