/* ══ Polices embarquées (hors ligne, sans Google) — licence SIL Open Font License 1.1, voir fonts/LICENSE-*.txt ══ */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(fonts/roboto-greek-ext-300-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(fonts/roboto-greek-300-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(fonts/roboto-latin-ext-300-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(fonts/roboto-latin-300-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/roboto-greek-ext-400-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/roboto-greek-400-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/roboto-latin-ext-400-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/roboto-latin-400-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/roboto-greek-ext-500-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/roboto-greek-500-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/roboto-latin-ext-500-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/roboto-latin-500-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/roboto-greek-ext-600-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/roboto-greek-600-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/roboto-latin-ext-600-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/roboto-latin-600-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/roboto-greek-ext-700-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/roboto-greek-700-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/roboto-latin-ext-700-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/roboto-latin-700-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(fonts/roboto-greek-ext-800-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(fonts/roboto-greek-800-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(fonts/roboto-latin-ext-800-normal.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: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(fonts/roboto-latin-800-normal.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: 'Roboto';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/roboto-greek-ext-400-italic.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/roboto-greek-400-italic.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/roboto-latin-ext-400-italic.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: 'Roboto';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/roboto-latin-400-italic.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: 'Roboto';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/roboto-greek-ext-700-italic.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/roboto-greek-700-italic.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/roboto-latin-ext-700-italic.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: 'Roboto';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/roboto-latin-700-italic.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: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/space-grotesk-latin-ext-500-normal.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: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/space-grotesk-latin-500-normal.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: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/space-grotesk-latin-ext-700-normal.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: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/space-grotesk-latin-700-normal.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: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-greek-ext-400-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-greek-400-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-latin-ext-400-normal.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: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-latin-400-normal.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: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/literata-greek-ext-600-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/literata-greek-600-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/literata-latin-ext-600-normal.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: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/literata-latin-600-normal.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: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/literata-greek-ext-700-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/literata-greek-700-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/literata-latin-ext-700-normal.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: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/literata-latin-700-normal.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: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-greek-ext-400-italic.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-greek-400-italic.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-latin-ext-400-italic.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: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/literata-latin-400-italic.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: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/literata-greek-ext-600-italic.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/literata-greek-600-italic.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/literata-latin-ext-600-italic.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: 'Literata';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/literata-latin-600-italic.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;
}

/* Aucune surbrillance native au toucher, dans TOUTE l'application (la propriété se transmet
   à tous les éléments). Chaque bouton garde son propre effet au toucher. */
html { -webkit-tap-highlight-color: transparent; }

/* Interface non sélectionnable : un appui long ou un double-toucher ne surligne plus
   (en marron) les titres, boutons et libellés de l'accueil, des titres de chapitre,
   des menus. Le texte des versets, des notes et des articles reste sélectionnable. */
.welcome-screen, .welcome-screen *,
.chapter-title, .chapter-title *,
.quick-nav-panel, .quick-nav-panel *,
.submenu-modal-panel, .submenu-modal-panel *,
.position-indicator, .position-indicator *,
button, button *, [role="button"], [role="button"] *, label, label * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* styles.css - Design avec valeurs CSS natives (sans variables :root) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100vh;   /* fallback anciens WebView */
  height: 100dvh;  /* hauteur écran réelle, s'ajuste à la barre Samsung */
  overflow: hidden;
  font-family: Roboto, system-ui, sans-serif;
  background: #000000;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;   /* fallback anciens WebView */
  height: 100dvh;  /* au lieu de 100% : s'accroche au plein écran réel */
  overflow: hidden;
  background: #000000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform, opacity;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

.slide.prev {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

.slide.next {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}

.slide.entering {
  animation: slideIn 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.slide.exiting {
  animation: slideOut 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

.slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 4rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.slide-content::-webkit-scrollbar {
  width: 8px;
}

.slide-content::-webkit-scrollbar-track {
  background: rgba(212, 206, 193, 0.3);
  border-radius: 10px;
}

.slide-content::-webkit-scrollbar-thumb {
  background: #8b6f47;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.slide-content::-webkit-scrollbar-thumb:hover {
  background: #a58963;
}

.welcome-screen {
  text-align: center;
  width: 100%;
  max-width: 480px;
  height: 100%;          /* occupe exactement la hauteur dispo */
  overflow: hidden;      /* zéro scroll sur la page d'accueil */
  animation: fadeInUp 1s cubic-bezier(0.4, 0.0, 0.2, 1);
  background: #000000;
  padding: clamp(10px,2.5vh,20px) 1.1rem clamp(8px,1.5vh,14px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
}

/* Scrollbar welcome-screen */
.welcome-screen::-webkit-scrollbar { width: 6px; }
.welcome-screen::-webkit-scrollbar-track { background: rgba(0,255,255,0.05); border-radius: 6px; }
.welcome-screen::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.25); border-radius: 6px; }
.welcome-screen::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.45); }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-title {
  font-family: Roboto, system-ui, sans-serif;
  font-size: clamp(1.6rem, 7vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #00ffff;
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.navigation-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #00ffff;
  animation: pulse 2s ease-in-out infinite;
}

.navigation-hint p {
  color: #ffffff;
}

.book-info {
  font-size: 1.2rem;
  color: #00ffff;
  margin-top: 1rem;
  font-weight: 400;
}

/* Modale custom */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.custom-modal-content {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #00ffff;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 255, 255, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.custom-modal-content p {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.custom-modal-content button {
  background: #00ffff;
  color: #000000;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.3s ease;
}

.custom-modal-content button:hover {
  background: #00cccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.5);
}

.custom-modal-content button:active {
  transform: translateY(0);
}

.navigation-hint svg {
  animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes slideRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.chapter {
  width: 100%;
  height: 100%;
  background: #000000;
  color: #ffffff;
  animation: fadeInScale 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: absolute;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.chapter::-webkit-scrollbar {
  width: 8px;
}

.chapter::-webkit-scrollbar-track {
  background: rgba(212, 206, 193, 0.3);
  border-radius: 10px;
  margin: 1rem 0;
}

.chapter::-webkit-scrollbar-thumb {
  background: #8b6f47;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.chapter::-webkit-scrollbar-thumb:hover {
  background: #a58963;
}

.chapter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b6f47 0%, #a58963 50%, #8b6f47 100%);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chapter-title {
  font-family: Roboto, system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
  position: sticky;
  top: 0px;
  background-color: #1a1a1a;
  color: #ffffff;
  z-index: 100;
}

/* Barre de progression de lecture — reflète le défilement de .chapter,
   à la place de l'ancien border-bottom statique (#d4cec1, gardé en piste
   discrète pour que le bas du titre ne soit jamais complètement nu). */
.chapter-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(212, 206, 193, 0.18);
  overflow: hidden;
}
.chapter-progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #00ffff 0%, #e7bb3f 100%);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.45), 0 0 8px rgba(231, 187, 63, 0.35);
  transition: transform 0.1s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .chapter-progress-fill { transition: none; }
}

.verses {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  padding: 0 1.5rem 2rem 1.5rem;
}

.verse {
  display: block;
  padding: 0.3rem 0;
  margin-bottom: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  animation: fadeInVerse 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  /* Pas de surbrillance native au toucher : sur Android (Chrome / TWA) elle est
     peinte dans un calque à part, AU-DESSUS de tout, y compris de la carte
     de sélection multiple (#cmvPanel) — d'où le grand rectangle turquoise
     qui recouvrait la carte. */
  -webkit-tap-highlight-color: transparent;
}
.verses, .verses * { -webkit-tap-highlight-color: transparent; }

.verse:hover {
  transform: translateX(4px);
}

/* NOUVEAU — surbrillance d'un verset inclus dans la sélection multiple
   en cours (fenêtre draggable de copie multi-versets) */
/* NOUVEAU — surbrillance d'un verset inclus dans la sélection multiple
   en cours (fenêtre draggable de copie multi-versets).
   Remplace l'ancien crochet en image SVG (background-image encodée en
   data-URI) par une simple bordure colorée : un SVG en fond, même léger,
   demande un décodage/rendu à part que le navigateur peut différer —
   ce qui donnait un crochet affiché "en retard" par rapport au tap. Une
   bordure est une primitive de dessin directe, peinte immédiatement,
   sans ce délai. */
/* Sélection multiple : chaque verset reçoit une case à cocher (.ms-box) ;
   un verset coché prend un fond turquoise sombre arrondi. */
.ms-box, .ms-tag { display: none; }
body.ms-on .verse {
  padding: .45rem .7rem .45rem 2.7rem;
  border-radius: 10px;
  margin-bottom: .55rem;
  cursor: pointer;
}
body.ms-on .verse:hover { transform: none; }
body.ms-on .verse::before, body.ms-on .verse::after { display: none; }
body.ms-on .ms-box {
  display: block;
  position: absolute; left: .6rem; top: .72rem;
  width: 22px; height: 22px;
  border: 2px solid #4a5a70; border-radius: 6px;
  transition: background .2s ease, border-color .2s ease;
}
.verse.is-selected-multi { background: rgba(0, 255, 255, 0.08); }
.verse.is-selected-multi .verse-number { color: #7dffff; }
body.ms-on .verse.is-selected-multi .ms-box { background: #00ffff; border-color: #00ffff; }
body.ms-on .verse.is-selected-multi .ms-box::after {
  content: ""; position: absolute; left: 6px; top: 1px;
  width: 6px; height: 12px;
  border: solid #001a1f; border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
/* Bornes d'une plage « De… à… » : contour doré + étiquette DÉBUT / FIN */
body.ms-on .verse.is-range-start, body.ms-on .verse.is-range-end { box-shadow: inset 0 0 0 2px #F4C455; }
body.ms-on .verse.is-range-start .ms-tag, body.ms-on .verse.is-range-end .ms-tag {
  display: block; position: absolute; right: 8px; top: 6px;
  font: 700 .62rem/1.5 Roboto, system-ui, sans-serif; letter-spacing: .06em;
  color: #1a1206; background: #F4C455; border-radius: 6px; padding: 0 6px;
}
body.ms-on .verse.is-range-start .ms-tag::before { content: "DÉBUT"; }
body.ms-on .verse.is-range-end .ms-tag::before { content: "FIN"; }

/* ============================================================
   BORDURES NÉON "OUVERTURE CENTRALE" — cœur cyan, pointes or
   Marqueur de pause de lecture : sur mobile, le tap active le
   :hover qui reste "collant" et encadre le verset en cours.
   Pseudo-éléments absolus → aucun impact sur la mise en page.
   ============================================================ */
.verse::before,
.verse::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 215, 0, 0.75) 12%,
    rgba(0, 255, 255, 0.9) 45%,
    rgba(0, 255, 255, 0.9) 55%,
    rgba(255, 215, 0, 0.75) 88%,
    transparent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.3, 1),
              opacity 0.55s ease;
  filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.4));
  pointer-events: none;
}
.verse::before { top: 0; }
.verse::after  { bottom: 0; }

.verse:hover::before,
.verse:hover::after {
  opacity: 0.8;
  transform: scaleX(1);
}

@keyframes fadeInVerse {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verse:nth-child(1) { animation-delay: 0.1s; }
.verse:nth-child(2) { animation-delay: 0.15s; }
.verse:nth-child(3) { animation-delay: 0.2s; }
.verse:nth-child(4) { animation-delay: 0.25s; }
.verse:nth-child(5) { animation-delay: 0.3s; }
.verse:nth-child(n+6) { animation-delay: 0.35s; }

.verse-number {
  display: inline;
  color: #00ffff;
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  line-height: 1.6;
}

.verse-text {
  display: inline;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 400;
}

.quick-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  padding: 6px;                 /* espace cadre ↔ icône (ajuste ici) */
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #0c1021;                          /* fond sombre */
  border: 1px solid rgba(0, 255, 255, 0.6);     /* UN seul liseré, fin */
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.25);  /* halo diffus (pas un 2e anneau) */
  outline: none;
}

.btn:focus {
  outline: none;            /* plus de gros cadre carré au tap (Android) */
}

.btn:focus-visible {
  outline: 2px solid #00ffff;   /* gardé uniquement pour le clavier */
  outline-offset: 2px;
}

.btn svg {
  display: block;
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
}

.line {
  fill: none;
  stroke: #00ffff;
  stroke-width: 10px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line.top, .line.bottom {
  stroke-dasharray: 50px 600px;
  stroke-dashoffset: 0px;
}

.line.cross {
  stroke-dasharray: 50px 60px;
  stroke-dashoffset: 0px;
}

/* Animation quand actif */
.ligneberger .line.top, 
.ligneberger .line.bottom {
  stroke-dasharray: 70.71px 600px;
  stroke-dashoffset: -392px;
}

.ligneberger .line.cross {
  stroke-dasharray: 50px 60px;
  stroke-dashoffset: 51px;
}

/* Transitions */
.line.cross {
  transition: 0.35s stroke-dasharray ease 0.35s, 
              0.35s stroke-dashoffset ease 0.35s, 
              0.35s stroke ease 0s;
}

.line.top {
  transition: 0.525s stroke-dasharray ease 0s, 
              0.525s stroke-dashoffset ease 0s, 
              0.35s stroke ease 0s;
}

.line.bottom {
  transition: 0.525s stroke-dasharray ease 0.35s, 
              0.525s stroke-dashoffset ease 0.35s, 
              0.35s stroke ease 0s;
}

.ligneberger .line.cross {
  transition: 0.35s stroke-dasharray ease 0s, 
              0.35s stroke-dashoffset ease 0s, 
              0.35s stroke ease 0s;
}

.quick-nav-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
  border: 1px solid #00ffff;
  width: 90%;
  max-width: 400px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              padding-bottom 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
  max-height: 85vh;
  overflow: visible;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Conteneur interne scrollable (hors dropdowns) */
.quick-nav-panel-inner {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(85vh - 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quick-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
  color: #ff0000;
}

.quick-nav-close:hover {
  transform: scale(1.1);
  background: transparent;
  border-color: transparent;
}

.quick-nav-close svg {
  display: block;
  flex-shrink: 0;
}

/* Ligne search + fermeture côte à côte */
.search-close-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}
.search-close-row #bsearchBar {
  flex-shrink: 0;
}
.search-close-row #navPanelSwitch {
  flex-shrink: 0;
}
/* ── Groupe toggle "Modale Options" ── */
#verseModalSwitchGroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
#verseModalSwitch {
  /* identique au navPanelSwitch – pas de style supplémentaire */
}
.search-close-row .quick-nav-close {
  flex-shrink: 0;
}

.quick-nav-panel-inner::-webkit-scrollbar {
  width: 8px;
}

.quick-nav-panel-inner::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.1);
  border-radius: 10px;
}

.quick-nav-panel-inner::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 10px;
}

.quick-nav-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.quick-nav-panel h3 {
  font-family: Roboto, system-ui, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
}

.book-selector {
  margin-bottom: 0;
  margin-top: 10px;
}

.book-selector label {
  display: block;
  color: #00ffff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.book-select {
  width: 100%;
  padding: 0.8rem;
  background: #000000;
  color: #ffffff;
  border: 2px solid #00ffff;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Roboto, system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  appearance: none;        /* standard */
  -webkit-appearance: none; /* Chrome / Safari */
  -moz-appearance: none;    /* Firefox */
  background: none;         /* enlève certains styles */
}

.book-select:hover {
  background: #0a0a0a;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.book-select:focus {
  outline: none;
  border-color: #00ffff;
  background: #0a0a0a;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.book-select option {
  background: #000000;
  color: #ffffff;
  padding: 0.5rem;
}

.book-select option[value=""] {
  text-align: center;
}

.book-select optgroup {
  background: #1a1a1a;
  color: #00ffff;
  font-weight: bold;
  font-style: normal;
}

.quick-nav-panel .chapter-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #000000;
  border-radius: 8px;
  border: 1px solid #00ffff;
}

.quick-nav-panel #currentChapter {
  color: #00ffff;
  font-size: 1.5rem;
}

.quick-nav-panel .separator {
  color: #888888;
}

.quick-nav-panel #totalChapters {
  color: #888888;
  font-size: 1rem;
}

.quick-nav-panel input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #00ffff;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Roboto, system-ui, sans-serif;
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  background: #000000;
  color: #ffffff;
}

.quick-nav-panel input:focus {
  outline: none;
  border-color: #00ffff;
  background: #0a0a0a;
}

.quick-nav-panel > button,
#gotoBookBtnHome {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #2b2821;
  color: #d4bf7f;	
  border: none;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: Roboto, system-ui, sans-serif;
  margin-bottom: 0;
}

.quick-nav-panel > button:hover,
#gotoBookBtnHome:hover {
  background: #00cccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.5);
}

.quick-nav-panel > button:active {
  transform: translateY(0);
}

/* Bouton "Aller au chapitre" */
#gotoBookBtn,
#gotoBookBtnHome {
  background: #075f47 !important;
  color: #d2c248 !important;
  border: none !important;
}
#gotoBookBtn:hover,
#gotoBookBtnHome:hover {
  background: #054f3b !important;
  box-shadow: 0 4px 12px rgba(7, 95, 71, 0.5) !important;
}

/* Indicateur de position */
.position-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.95);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 2px solid #00ffff;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.position-indicator.show {
  opacity: 1;
  visibility: visible;
}

.position-indicator span {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  display: block;
  white-space: nowrap;
}

.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.loading-indicator.active {
  opacity: 1;
  visibility: visible;
}

/* Roue de chargement : trois points cyan qui rebondissent (planche n° 5) */
.spinner {
  display: flex;
  gap: 9px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(12, 16, 33, 0.75);
}
.spinner i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
  animation: spinnerBounce 1.1s ease-in-out infinite;
}
.spinner i:nth-child(2) { animation-delay: .15s; }
.spinner i:nth-child(3) { animation-delay: .3s; }
@keyframes spinnerBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .5; }
  40% { transform: translateY(-14px); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .slide-content {
    padding: 2rem 1.5rem;
  }

  .chapter-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .verse {
    padding: 0.3rem 0;
    margin-bottom: 0.6rem;
  }

  .verse-number {
    font-size: 1.3rem;
  }

  .verse-text {
    font-size: 1.3rem;
  }

  .quick-nav {
    top: 1rem;
    right: 1rem;
  }

  .btn svg {
    width: 45px;
    height: 45px;
  }

  .quick-nav-panel {
    width: 92%;
    max-width: none;
    padding: 1.5rem;
    max-height: 90vh;
  }
  .quick-nav-panel-inner {
    max-height: calc(90vh - 3rem);
  }

  .quick-nav-panel h3 {
    font-size: 1.2rem;
  }

  .quick-nav-panel .chapter-indicator {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .quick-nav-panel #currentChapter {
    font-size: 1.3rem;
  }

  .book-selector label {
    font-size: 0.85rem;
  }

  .book-select {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .position-indicator {
    bottom: 1.5rem;
    padding: 0.7rem 1.2rem;
  }

  .position-indicator span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .quick-nav {
    top: 0.75rem;
    right: 0.75rem;
  }

  .btn svg {
    width: 40px;
    height: 40px;
  }

  .quick-nav-panel {
    width: 95%;
    padding: 1.2rem;
    max-height: 92vh;
  }
  .quick-nav-panel-inner {
    max-height: calc(92vh - 2.4rem);
  }

  .quick-nav-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .quick-nav-panel .chapter-indicator {
    font-size: 0.9rem;
    padding: 0.7rem;
    margin-bottom: 1rem;
  }

  .quick-nav-panel #currentChapter {
    font-size: 1.1rem;
  }

  .quick-nav-panel #totalChapters {
    font-size: 0.85rem;
  }

  .book-selector {
    margin-bottom: 1rem;
  }

  .book-selector label {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .book-select {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .quick-nav-panel input {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .quick-nav-panel > button {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .position-indicator {
    bottom: 1rem;
    padding: 0.6rem 1rem;
  }

  .position-indicator span {
    font-size: 0.85rem;
  }
}

.slider-container.swiping .slide.active {
  transition: none;
}

::selection {
  background: #8b6f47;
  color: #ffffff;
}

::-moz-selection {
  background: #8b6f47;
  color: #ffffff;
}

/* ============================================
   VERSETS ANNOTÉS
   ============================================ */

.verse--has-note {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  position: relative;
}

.verse--has-note:hover {
  background: rgba(252, 154, 70, 0.08);
  border-radius: 6px;
  padding-left: 6px;
  margin-left: -6px;
}

/* Numéro de verset en orange pour signaler une annotation */
.verse--has-note .verse-number {
  color: #fc9a46;
}

/* Modale Options désactivée (switch sur OFF) : tous les numéros de versets
   repassent en cyan pour indiquer que le mode annotation n'est plus accessible. */
body.verse-modal-disabled .verse--has-note .verse-number {
  color: #00ffff;
}

/* Bouton "Note de chapitre" dans le titre */
.chapter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-texte-chapitre {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, rgba(0,229,200,0.10) 0%, rgba(0,180,160,0.05) 100%);
  border: 1px solid rgba(0,229,200,0.35);
  border-radius: 12px;
  padding: 0;
  font-family: Roboto, system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,229,200,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}

/* Icône à gauche — fond accentué */
.btn-texte-chapitre__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(0,229,200,0.15);
  border-right: 1px solid rgba(0,229,200,0.20);
  color: #00e5c8;
  flex-shrink: 0;
  transition: background 0.22s ease, color 0.22s ease;
}

/* Texte central */
.btn-texte-chapitre__label {
  padding: 0 10px 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  transition: color 0.22s ease;
}

/* Chevron à droite */
.btn-texte-chapitre__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 9px;
  color: rgba(0,229,200,0.55);
  transition: color 0.22s ease, transform 0.22s ease;
}

.btn-texte-chapitre:hover {
  background: linear-gradient(135deg, rgba(0,229,200,0.18) 0%, rgba(0,180,160,0.10) 100%);
  border-color: rgba(0,229,200,0.65);
  box-shadow: 0 3px 16px rgba(0,229,200,0.20), inset 0 1px 0 rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.btn-texte-chapitre:hover .btn-texte-chapitre__icon {
  background: rgba(0,229,200,0.25);
  color: #00ffee;
}
.btn-texte-chapitre:hover .btn-texte-chapitre__label {
  color: #ffffff;
}
.btn-texte-chapitre:hover .btn-texte-chapitre__chevron {
  color: #00e5c8;
  transform: translateX(2px);
}
.btn-texte-chapitre:active {
  transform: translateY(0px) scale(0.97);
}

/* ============================================
   VERSE MODAL — centré comme quick-nav-panel
   ============================================ */

.verse-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.verse-modal-overlay.verse-modal-visible {
  opacity: 1;
}

.verse-modal-overlay.verse-modal-visible .verse-modal {
  transform: translateY(0) scale(1);
}

.verse-modal {
  background: #0c1021;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 18px;
  border: 2px solid #00ffff;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   MODALES CENTRÉES GÉNÉRIQUES (OPTIONS / BLOC-NOTES)
   ============================================ */

.centered-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  /* Empêche la sélection de texte + le menu natif Android (Copier/Partager/
     Tout sélectionner) et le pop-up Google déclenchés par l'appui long qui
     « retombe » sur la modale ouverte sous le doigt en lecture seule. */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* La protection cascade sur tout le contenu de la modale (titre, aperçu…) */
.centered-modal-overlay * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.centered-modal-overlay.cmo-visible {
  opacity: 1;
}

.centered-modal-overlay.cmo-visible .centered-modal-panel {
  transform: translateY(0) scale(1);
}

.centered-modal-panel {
  background: #1f1e1e;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  border: 1.5px solid #00ffff;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
}

/* Header commun */
.cmp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px 16px;
  background: #111;
  border-bottom: 1px solid rgba(0, 255, 255, 0.25);
  border-top: 1px solid rgba(0, 255, 255, 0.25);
  flex-shrink: 0;
}

.cmp-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #00ffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Titre agrandi uniquement pour la modale Options */
.options-panel .cmp-title {
  font-size: 1.25rem;
}

/* ── Bloc-Notes : compteur doré juste à droite du titre ── */
.bn-title-count {
  display: inline-grid;
  overflow: hidden;
  color: #edaa28;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  border: 1px solid #00ffff;
  border-radius: 6px;
  padding: 2px 10px;
}

.bn-title-count .bn-count-roll {
  grid-area: 1 / 1;          /* tous les chiffres se superposent dans la même cellule */
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.4, 1),
              opacity 0.35s ease;
}

.cmp-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  line-height: 0;
}

/* Bouton de fermeture de la fenêtre Synthèse vocale agrandi (était 30×30).
   Le CSS prime sur les attributs width/height="30" du SVG. */
.tts-panel .cmp-close svg {
  width: 44px;
  height: 44px;
}

/* Bouton de fermeture de la fenêtre de sélection de versets agrandi (était 30×30). */
.verse-picker-panel .cmp-close svg {
  width: 44px;
  height: 44px;
}

/* ── OPTIONS PANEL ── */
.options-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 0;
  overflow: hidden;
}
.options-panel::-webkit-scrollbar { width: 6px; }
.options-panel::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.3); border-radius: 6px; }

/* Wrapper "Copier" toujours visible */
.options-actions-always.options-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  flex-shrink: 0;
}

/* Éléments d'action — tailles fixes, glow débordant */
.opt-act {
  flex: 0 0 auto;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.opt-act > svg, .opt-act-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Quatre éléments d'action (case à cocher · doc bleu · flèche · carnet vert).
   Les trois premiers (case à cocher, doc bleu, carnet vert) partagent
   désormais la même largeur pour une lecture cohérente d'une case à
   l'autre ; la flèche — purement indicative, non interactive — est
   réduite pour laisser plus d'air entre les blocs (trop serrés sur le
   Galaxy A15 avec l'ancien gabarit). */
.opt-act-checklist,
.opt-doc-blue,
.opt-doc-green { width: 58px; }
.opt-arrow     { width: 40px; cursor: default; pointer-events: none; }

/* Animations coche / croix (déplacées hors du SVG) */
@keyframes cpDrawCircle { to { stroke-dashoffset: 25; } }
@keyframes cpDrawCheck  { to { stroke-dashoffset: 0; } }
@keyframes cpDrawX      { to { stroke-dashoffset: 0; } }
@keyframes cpShake { 0%{transform:translateX(0)} 20%{transform:translateX(-4px)} 40%{transform:translateX(4px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} 100%{transform:translateX(0)} }
.opt-arrow .cp-circle { fill:none; stroke:#00ff88; stroke-width:8; stroke-linecap:round; stroke-dasharray:239; stroke-dashoffset:239; animation: cpDrawCircle 1.4s ease forwards; }
.opt-arrow .cp-check  { fill:none; stroke:#00ff88; stroke-width:10; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:155; stroke-dashoffset:155; animation: cpDrawCheck 1s ease forwards 1.2s; }
.opt-arrow .cp-x1 { stroke-dasharray:72; stroke-dashoffset:72; animation: cpDrawX 0.5s ease forwards; }
.opt-arrow .cp-x2 { stroke-dasharray:72; stroke-dashoffset:72; animation: cpDrawX 0.5s ease forwards 0.3s; }
.bn-cross-anim { animation: cpShake 0.4s; }

/* ════════════════════════════════════════════════════════════
   FENÊTRE DRAGGABLE « COPIE MULTI-VERSETS »
   Ouverte depuis .opt-act-checklist. Flotte en haut à droite de
   la vue de lecture pendant qu'on tape les versets à ajouter ;
   « OK » colle la sélection dans le Bloc-Notes (fiche .bn-verses-
   scroll ci-dessus) puis referme la fenêtre.
   ════════════════════════════════════════════════════════════ */
:root { --cmv-z: 3000; --cmv-navy: #0c1021; --cmv-cyan: #00ffff; --cmv-gold: #e7bb3f; }

#cmvPanel {
  position: fixed;
  top: 64px;
  right: 12px;
  z-index: var(--cmv-z);
  width: min(78vw, 244px);
  background: var(--cmv-navy);
  border: 1.5px solid rgba(0, 255, 255, 0.55);
  border-radius: 18px;
  padding: 10px 12px 16px;
  box-shadow:
    0 0 0 1px rgba(0,255,255,0.12),
    0 14px 44px rgba(0,0,0,0.65),
    0 0 44px rgba(0,255,255,0.20);
  touch-action: none;
  cursor: grab;
  user-select: none;
  display: none; /* affichée via JS au démarrage de la sélection multiple */
}
#cmvPanel.is-dragging { cursor: grabbing; transition: none; }

/* Entrée : une seule apparition (pas de boucle), ancrée en haut à droite */
#cmvPanel.cmv-enter { animation: cmvBounceInRight 0.85s cubic-bezier(0.22, 0.9, 0.32, 1.24) both; }
@keyframes cmvBounceInRight {
  0%   { opacity: 0; transform: translateX(360px); }
  55%  { opacity: 1; transform: translateX(-16px); }
  75%  { transform: translateX(6px); }
  100% { opacity: 1; transform: translateX(0); }
}

.cmv-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; min-height: 34px; }
.cmv-title  { font-size: 1.05rem; font-weight: 500; color: var(--cmv-cyan); padding: 4px 0 6px; text-shadow: 0 0 12px rgba(0,255,255,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bouton de fermeture (sphère rouge, croix blanche) — ferme cmvPanel
   sans rien coller au Bloc-Notes (voir _cancelMultiSelect dans script.js). */
.cmv-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
  transition: transform .15s ease;
}
.cmv-close svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cmv-close:active { transform: scale(.88); }

/* Rangée : documents bleus (copier) à gauche → carnet vert + compteur
   (valider) à droite, les deux blocs à poids égal et centrés dans la
   fenêtre (pas de flèche : supprimée pour laisser la fenêtre plus étroite
   et mieux voir les versets à sélectionner en dessous). */
.cmv-row { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 6px 4px 2px; }

/* Même gabarit (largeur ET hauteur) pour les deux blocs : chaque SVG a un
   viewBox de proportions différentes (carré pour cmvDocs, portrait pour
   cmvNote), donc seul un cadre carré fixe et identique aux deux garantit
   un rendu réellement identique — le SVG se recentre à l'intérieur via
   preserveAspectRatio (comportement par défaut "xMidYMid meet"). */
.cmv-docs svg,
.cmv-note svg { width: 96px; height: 96px; display: block; overflow: visible; }

/* Le carnet vert est désormais lui-même le bouton de validation :
   tap → colle la sélection dans le Bloc-Notes (voir _commitMultiSelectToBlocNotes). */
.cmv-note {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, filter .15s ease;
}
.cmv-note:active { transform: scale(.92); }
.cmv-note:hover  { filter: drop-shadow(0 0 8px rgba(127,231,168,.45)); }

/* Pastille « De… à… » : sélection d'une suite de versets (premier → dernier, inclus) */
.cmv-range-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0,255,255,.14); }
.cmv-range { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 5px; border: 1px solid rgba(244,196,85,.45); border-radius: 999px; background: rgba(244,196,85,.08); color: #F4C455; font: 600 .9rem Roboto, system-ui, sans-serif; letter-spacing: .02em; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background .2s ease; }
.cmv-range svg { width: 38px; height: 38px; display: block; filter: drop-shadow(0 0 5px rgba(244,196,85,.35)); }
.cmv-range:active { transform: scale(.93); }
.cmv-range.is-on { background: rgba(244,196,85,.18); }
.cmv-range.is-on svg { animation: cmvRangePulse 1.4s ease-in-out infinite; }
@keyframes cmvRangePulse { 0%,100% { filter: drop-shadow(0 0 4px rgba(244,196,85,.4)); } 50% { filter: drop-shadow(0 0 13px rgba(244,196,85,.95)); } }
.cmv-hint { min-height: 1.3em; margin-top: 6px; font-size: .85rem; color: #F4C455; text-align: center; line-height: 1.3; }
.cmv-hint:empty { min-height: 0; margin-top: 0; }
.cmv-hint.is-done { color: #9ff0c0; }
/* Éclair doré à la sélection d'une plage : simple couleur de fond (transition), SANS toucher à
   la propriété animation du verset — sinon son animation d'apparition (fadeInVerse, opacité 0 → 1)
   se rejouait et les versets disparaissaient un instant. */
.verse.is-range-flash { background: rgba(244,196,85,.35) !important; transition: background 0s; }
@media (prefers-reduced-motion: reduce) { .cmv-range.is-on svg { animation: none; } }

/* ── Animation « copie » compilée : éventail → scan → presse → éjection ── */
.cmv-docs .anim-unit { transform-box: fill-box; transform-origin: center; }
.cmvGhost   { opacity: 0; pointer-events: none; }
.cmvScanBar { opacity: 0; }

.cmv-docs.is-copying .docBack  { animation: cmvFanBack  0.55s ease; }
.cmv-docs.is-copying .docMid   { animation: cmvFanMid   0.55s ease; }
.cmv-docs.is-copying .docFront { animation: cmvFanFront 0.55s ease; }
.cmv-docs.is-copying .docBack, .cmv-docs.is-copying .docMid, .cmv-docs.is-copying .docFront { transform-origin: center bottom; }
@keyframes cmvFanBack  { 40% { transform: rotate(-9deg) translateX(-3px); } }
@keyframes cmvFanMid   { 40% { transform: rotate(-2deg); } }
@keyframes cmvFanFront { 40% { transform: rotate(8deg) translateX(3px); } }

.cmv-docs.is-copying .cmvScanBar { animation: cmvScan 0.6s cubic-bezier(0.4,0,0.4,1) 0.4s; }
@keyframes cmvScan { 0%{opacity:0;transform:translateY(0);} 15%{opacity:.95;} 85%{opacity:.95;} 100%{opacity:0;transform:translateY(56px);} }

.cmv-docs.is-copying .cmvStack { animation: cmvPress 0.5s cubic-bezier(0.3,1.4,0.4,1) 0.95s, cmvRecoil 0.4s ease 1.55s; transform-origin: center bottom; }
@keyframes cmvPress  { 0%{transform:scale(1,1);} 30%{transform:scale(1.05,.88);} 60%{transform:scale(.975,1.06);} 100%{transform:scale(1,1);} }
@keyframes cmvRecoil { 0%{transform:none;} 30%{transform:translateY(2.5px) scale(.985);} 100%{transform:none;} }

.cmv-docs.is-copying .cmvBadgeG { animation: cmvBadgeFlash 0.5s ease 1.1s; }
@keyframes cmvBadgeFlash { 0%,100%{filter:none;transform:scale(1);} 45%{filter:drop-shadow(0 0 9px rgba(244,196,85,.95));transform:scale(1.12);} }

.cmv-docs.is-copying .cmvGhost { animation: cmvGhostFly 0.75s cubic-bezier(0.3,0.7,0.3,1) 1.5s forwards; }
@keyframes cmvGhostFly { 0%{opacity:0;transform:translate(0,0) scale(1);} 12%{opacity:.92;} 100%{opacity:0;transform:translate(52px,-30px) scale(.5) rotate(10deg);} }

@media (prefers-reduced-motion: reduce) {
  #cmvPanel.cmv-enter,
  .cmv-docs.is-copying .cmvGhost, .cmv-docs.is-copying .cmvStack, .cmv-docs.is-copying .cmvBadgeG,
  .cmv-docs.is-copying .docBack, .cmv-docs.is-copying .docMid, .cmv-docs.is-copying .docFront,
  .cmv-docs.is-copying .cmvScanBar { animation: none !important; }
}

.options-verse-preview {
  background: rgba(0,255,255,0.05);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 10px;
  flex-shrink: 0;
  max-height: 90px;
  overflow-y: auto;
  scroll-behavior: smooth;
  box-sizing: border-box;
  margin: 0 16px;
}
.options-verse-inner {
  padding: 10px 14px;
}
/* NOTE : anciennes règles de repli supprimées.
   Le sélecteur [style*="height: 0"] matchait aussi "min-height: 0px"
   (posé par le grid-trick d'animation) et effaçait la bordure du bloc
   pourtant visible. Le repli est désormais géré par le wrapper grid
   (grid-template-rows:0fr + overflow:hidden), qui masque tout proprement,
   et la marge de l'aperçu est neutralisée dans wrapForAnim (script.js). */
.options-verse-preview::-webkit-scrollbar { width: 5px; }
.options-verse-preview::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.25); border-radius: 4px; }

/* Exclure l'aperçu du zoom global */
#optionsPreviewText {
  font-size: 1.2rem !important;
}
.options-verse-preview .verse-number {
  font-size: 1.2rem !important;
}

.options-actions {
  display: flex;
  justify-content: space-evenly;
  gap: 8px;
  padding: 0 16px;
  flex-shrink: 0;
}

.opt-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-appearance: none;
  transition: all 0.2s ease;
  font-family: Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.opt-btn-copy {
  background: transparent;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  /* boîte = boîte du SVG : sert d'ancrage aux 2 zones de clic + au compteur */
  position: relative;
  display: block;
  flex: 0 1 200px;
  max-width: 200px;
  margin: 0;
}
.opt-btn-copy svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}
.copy-svg-holder { display: block; width: 100%; line-height: 0; }

/* ── 2 zones de clic transparentes superposées ──
   gauche (document bleu) = enregistrer · droite (carnet vert + compteur) = ouvrir le bloc-notes */
.copy-hit {
  position: absolute;
  top: 0; bottom: 0;
  background: transparent;
  border: 0; padding: 0; margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.copy-hit:active { opacity: 0.6; }
.copy-hit-left  { left: 0;  width: 58%; }
.copy-hit-right { right: 0; width: 42%; }

/* ── Compteur (badge) posé en bas-droite du carnet vert ──
   pointer-events:none → le clic traverse vers la zone droite (ouvrir le bloc-notes).
   👉 Pour ajuster finement la position du badge, modifie `right` et `bottom`. */
/* ── Compteur d'incrémentation INTÉGRÉ au SVG du bouton copier ──
   (élément <svg> imbriqué dans le carnet vert ; n'est plus un overlay HTML) */
svg.bn-counter-svg { display: initial; margin: 0; overflow: visible; }
/* Anneau sombre autour du badge intégré : "fossé" pour que le cadre vert ne touche
   jamais le cercle en fin de course. Fond noir à l'intérieur du cercle. */
svg.bn-counter-svg .bn-c-ring { fill: #1f1e1e; stroke: none; }
svg.bn-counter-svg .bn-c-bg   { fill: #000; }
svg.bn-counter-svg .bn-c-number {
  fill: #00ffff;
  font-size: 19px;
  font-weight: 600;
  transform: none;
}
svg.bn-counter-svg.bn-counter-error-anim { transform-box: fill-box; }

.opt-btn-note {
  background: linear-gradient(175deg, #0d1e26 0%, #060e14 60%, #030a10 100%);
  color: #00eeff;
  border: none;
  padding: 0;
  min-height: 52px;
  position: relative;
  overflow: visible;
  border-radius: 18px;
  transform: rotateX(10deg) rotateY(-2deg);
  transform-style: preserve-3d;
  box-shadow:
    inset 0 1px 0 rgba(0,255,255,.18),
    inset 0 -4px 12px rgba(0,0,0,.9),
    0 0 0 1px rgba(0,230,255,.32),
    0 0 16px rgba(0,200,255,.10),
    0 10px 24px rgba(0,0,0,.7);
}

/* Contour premium dégradé */
.opt-btn-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(130deg,
    rgba(0,255,255,.9) 0%,
    rgba(120,220,255,.4) 30%,
    rgba(0,80,120,.1) 55%,
    rgba(0,200,255,.6) 80%,
    rgba(0,255,255,.85) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Reflet glass supérieur */
.opt-btn-note::after {
  content: "";
  position: absolute;
  top: 0; left: 8%;
  width: 84%; height: 44%;
  background: linear-gradient(180deg,
    rgba(255,255,255,.12) 0%,
    rgba(200,240,255,.04) 60%,
    transparent 100%
  );
  border-radius: 18px 18px 50% 50%;
  pointer-events: none;
}

.opt-btn-note:active {
  transform: rotateX(10deg) rotateY(-2deg) scale(0.97);
  box-shadow:
    inset 0 1px 0 rgba(0,255,255,.18),
    inset 0 -4px 12px rgba(0,0,0,.9),
    0 0 0 1px rgba(0,230,255,.5),
    0 0 20px rgba(0,200,255,.18),
    0 6px 16px rgba(0,0,0,.8);
}

.opt-btn-note:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

/* Structure interne */
.opt-btn-note__inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px 14px;
}

.opt-btn-note__icon svg {
  filter: drop-shadow(0 0 4px rgba(0,220,255,.7));
}

.opt-btn-note__label {
  position: relative;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #00eeff;
  transform: translateY(-3px);
}

.opt-btn-note__label::after {
  content: "";
  position: absolute;
  left: 5%; bottom: -4px;
  width: 90%; height: 1.5px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,230,255,.8) 40%,
    rgba(150,240,255,.9) 50%,
    rgba(0,230,255,.8) 60%,
    transparent
  );
}

.opt-btn-reset {
  width: 100%;
  flex: none;
  background: rgba(255,48,40,0.1);
  color: #ff8080;
  border: 1px solid rgba(255,48,40,0.3);
  margin-top: 8px;
}
.opt-btn-reset:hover { background: rgba(255,48,40,0.2); }

/* ── Style section ── */
.options-style-section {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options-style-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: Roboto, system-ui, sans-serif;
  margin-bottom: 2px;
}

/* 4 pastilles + G/I sur une seule ligne */
.style-color-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  padding: 2px 0;
  margin-bottom: 12px;
}

.style-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1.5px solid rgba(0, 255, 255, 0.25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  outline: none;
}
.style-swatch-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
}
.style-swatch-btn.active {
  border-color: #00ffff;
  box-shadow: 0 0 0 3px rgba(0,255,255,0.3);
  transform: scale(1.1);
}

/* Séparateur vertical */
.style-row-sep {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.18);
  margin: 0 2px;
  flex-shrink: 0;
}

/* Toggles Gras / Italique (inline avec pastilles) */
.style-toggle-btn {
  width: 34px;
  height: 32px;
  border-radius: 7px;
  border: 1.5px solid rgba(0, 255, 255, 0.25);
  background: rgba(255,255,255,0.05);
  color: #dce3ee;
  font-size: 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  font-family: Roboto, system-ui, sans-serif;
  flex-shrink: 0;
}
.style-toggle-btn:hover {
  background: rgba(0,255,255,0.1);
  border-color: rgba(0,255,255,0.4);
}
.style-toggle-btn.active {
  background: rgba(0,255,255,0.18);
  border-color: #00ffff;
  color: #00ffff;
}

/* Bouton reset compact (icône seule) */

.style-reset-all-btn {
    border: 1.5px solid #00ffff;
}

.style-reset-all-btn svg {
    stroke: #00ffff;
}
.style-reset-all-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid rgba(0, 255, 255, 0.25);
  background: transparent;
  color: #888;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}
.style-reset-all-btn:hover {
  color: #ff8080;
  border-color: rgba(255,128,128,0.4);
}

/* ── APERÇU DES VERSETS MIS EN FORME (appui long sur Réinitialiser) ── */
.styled-verses-panel { max-width: 480px; max-height: 80vh; min-height: 160px; }
.styled-verses-panel .cmp-header { gap: 10px; }
.styled-verses-panel .cmp-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.sv-count {
  display: inline-grid; overflow: hidden;
  color: #edaa28; font-weight: 700; font-size: 0.95rem;
  border: 1px solid #00ffff; border-radius: 6px; padding: 1px 8px;
}
.sv-count .bn-count-roll {
  grid-area: 1 / 1;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.4, 1), opacity 0.35s ease;
}
.sv-list { overflow-y: auto; flex: 1; padding: 8px 0; }
.sv-list::-webkit-scrollbar { width: 6px; }
.sv-list::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.3); border-radius: 6px; }
.sv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sv-item:hover { background: rgba(0,255,255,0.04); }
.sv-swatch {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.sv-body { flex: 1; min-width: 0; }
.sv-ref {
  font-size: 1rem; color: #00ffff; font-weight: 700; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 6px;
}
.sv-tag {
  font-size: 0.68rem; font-weight: 700; color: #0c1021;
  background: #00ffff; border-radius: 4px; padding: 0 4px; line-height: 1.4;
}
.sv-text {
  font-size: 0.88rem; color: rgba(220,227,238,0.7); font-style: italic;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px;
}
.sv-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── BLOC-NOTES PANEL ── */
.bloc-notes-panel {
  max-width: 480px;
  max-height: 80vh;
  min-height: 180px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Hauteur plafond d'une fiche multi-versets ≈ 2 versets courts
     (cf. .options-verse-preview : 90px pour 1 verset) */
  --bn-verse-group-max-height: 190px;
}

.bn-list {
  overflow-y: auto;
  flex: 1;
  padding: 10px 0;
  min-height: 80px;
  transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bn-list::-webkit-scrollbar { width: 6px; }
.bn-list::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.3); border-radius: 6px; }

.bn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 3rem 2rem;
  color: rgba(255,255,255,0.35);
  font-family: Roboto, system-ui, sans-serif;
  font-size: 0.9rem;
  animation: bn-empty-in 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes bn-empty-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.bn-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, transform 0.12s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.bn-item:hover { background: rgba(0,255,255,0.04); }
.bn-item--pressing {
  transform: scale(0.985);
  background: rgba(0,255,255,0.06);
}
.bn-item--armed {
  background: rgba(0,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(0,255,255,0.4);
}

#bnShareToast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  max-width: 78vw;
  padding: 26px 30px;
  background: rgba(12,16,33,0.97);
  color: #eaf6ff;
  border: 1.5px solid rgba(0,255,255,0.55);
  border-radius: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: Roboto, system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0,255,255,0.15),
              0 14px 44px rgba(0,0,0,0.6),
              0 0 38px rgba(0,255,255,0.25);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease,
              transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#bnShareToast.bn-toast--show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#bnShareToast .bn-toast-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #00ffff;
  background: rgba(0,255,255,0.10);
  border: 2px solid rgba(0,255,255,0.5);
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
}
#bnShareToast .bn-toast-check svg { width: 32px; height: 32px; }

/* Tracé animé du ✓ (style cohérent avec tes autres checkmarks) */
#bnShareToast .bn-toast-check svg polyline {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
#bnShareToast.bn-toast--show .bn-toast-check svg polyline {
  animation: bnCheckDraw 0.4s ease 0.1s forwards;
}
@keyframes bnCheckDraw { to { stroke-dashoffset: 0; } }

#bnShareToast .bn-toast-msg { line-height: 1.35; }

.bn-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -12px -16px 10px -16px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(60,190,140,0.18), rgba(60,190,140,0.04));
  border-bottom: 1px solid rgba(60,190,140,0.30);
  border-radius: 10px 10px 0 0;
}

.bn-item-ref {
  font-size:1.1rem;
  color: #00ffff;
  font-family: Roboto, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex: 1;
}

.bn-item-text {
  font-size: 1.2rem;
  color: #dce3ee;
  font-family: Roboto, system-ui, sans-serif;
  line-height: 1.5;
  font-style: italic;
}

/* ── NOUVEAU — FICHE MULTI-VERSETS (copie multiple) ──────────────
   Une fiche group remplace .bn-item-text unique par une zone
   défilante empilant 1 à N versets du même chapitre. Hauteur
   plafonnée à ~2 versets courts ; au-delà, défilement interne.
   Réutilise .bn-item / .bn-item-header / .bn-item-ref / .bn-item-
   actions / .bn-item-footer sans aucune modification. */
.bn-verses-scroll {
  max-height: var(--bn-verse-group-max-height, 190px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scroll-behavior: smooth;
  padding-right: 4px;
}
.bn-verse-entry {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed rgba(0, 255, 255, 0.15);
}
.bn-verse-entry:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.bn-verse-ref {
  display: block;
  font-size: 0.92rem;
  color: #00ffff;
  font-family: Roboto, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.85;
  margin-bottom: 3px;
}
.bn-verse-text {
  font-size: 1.2rem;
  color: #dce3ee;
  font-family: Roboto, system-ui, sans-serif;
  line-height: 1.5;
  font-style: italic;
}
.bn-verses-scroll::-webkit-scrollbar { width: 5px; }
.bn-verses-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 6px; }
.bn-verses-scroll::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.35); border-radius: 6px; }
.bn-verses-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.55); }
.bn-verses-scroll { scrollbar-width: thin; scrollbar-color: rgba(0,255,255,0.35) transparent; }

.bn-item-date {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 6px;
  font-size: 0.80rem;
  font-family: Roboto, system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  color: rgba(0, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

.bn-item-date::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: rgba(0, 255, 255, 0.2);
  margin-right: 2px;
}

/* Pied de fiche bloc-notes : bouton partage à gauche, date à droite */
.bn-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.bn-item-footer .bn-item-date { margin-top: 0; }

/* Bouton partage (déclinaison compacte de .svp-icon, cf. partage.jpg) */
.bn-btn-share {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.10);
  border: 1.5px solid rgba(0, 255, 255, 0.45);
  color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.20);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bn-btn-share:active {
  transform: scale(0.9);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.40);
}
.bn-btn-share svg { width: 16px; height: 16px; }

.bn-item-actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.bn-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.2s;
}

.bn-btn-goto {
  background: rgba(0,255,255,0.1);
  color: #00ffff;
  border: 1px solid rgba(0,255,255,0.3);
}
.bn-btn-goto:hover { background: rgba(0,255,255,0.22); }

.bn-btn-delete {
  background: rgba(255,48,40,0.1);
  color: #ff8080;
  border: 1px solid rgba(255,48,40,0.3);
}
.bn-btn-delete:hover { background: rgba(255,48,40,0.22); }

/* Icône SVG agrandie à l'intérieur des boutons bloc-notes (le bouton reste 40×40).
   Le CSS prime sur les attributs width/height="18" du SVG. */
.bn-btn svg {
  width: 26px;
  height: 26px;
}

/* ── Bouton TTS dans OPTIONS ── */
.opt-btn-tts {
  width: 100%;
  flex: none;
  background: #000000;
  color: #c8a96e;
  border: 1px solid #ffd310;
}
.opt-btn-tts:hover { background: #000000; }

/* ── Bouton Bloc-Notes dans l'options-panel (modale verset) ── */
.opt-blocnotes-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 16px;
}

/* opt-blocnotes-wrapper */

/* ── Plasma Switch ── */
.plasma-switch {
  position: relative;
  width: 32px;
  height: 70px;
  cursor: pointer;
  -webkit-appearance: none;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex-shrink: 0;
  outline: none;
}
.plasma-switch .plasma-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.plasma-switch .ambient-bloom {
  position: absolute;
  inset: -10px;
  border-radius: 50px;
  filter: blur(20px);
  opacity: 0;
  pointer-events: none;
}
.plasma-switch .plasma-fluid {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a24;
  filter: blur(4px);
  transition: all .6s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.plasma-switch .glass-trench {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: #14364d;
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,.8),
    inset 0 -1px 3px rgba(255,255,255,.02),
    0 1px 1px rgba(255,255,255,.05);
  border: 2px solid #0e7e74;
  pointer-events: none;
}
.plasma-switch .titanium-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2b2e38, #15161b);
  box-shadow:
    0 4px 8px rgba(0,0,0,.6),
    inset 0 1px 1px rgba(255,255,255,.15),
    inset 0 -1px 2px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.05);
  transition: transform .6s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plasma-switch .indicator-line {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00F0FF;
  transition: background .5s ease, box-shadow .5s ease;
}

.plasma-switch .plasma-input:checked ~ .plasma-fluid {
  transform: translateY(38px);
  height: 27px;
  border-radius: 15px;
}
.plasma-switch .plasma-input:checked ~ .glass-trench .titanium-thumb {
  transform: translateY(38px);
}
.plasma-switch .plasma-input:checked ~ .glass-trench .indicator-line {
  background: #fb0804;
  box-shadow: 0 0 6px #00F0FF;
}

/* ── Plasma Switch : version HORIZONTALE ──
   Uniquement les 2 switchs du bloc .search-close-row (quickNavPanel).
   Le switch vertical du .options-panel n'a pas ces IDs : il reste vertical. */
#verseModalSwitch.plasma-switch,
#navPanelSwitch.plasma-switch {
  width: 70px;
  height: 32px;
}
/* Repos : pastille à gauche (inchangé : top/left identiques) */
/* Coché : déplacement horizontal au lieu de vertical */
#verseModalSwitch.plasma-switch .plasma-input:checked ~ .plasma-fluid,
#navPanelSwitch.plasma-switch .plasma-input:checked ~ .plasma-fluid {
  transform: translateX(38px);
  width: 27px;
  height: 22px;
  border-radius: 15px;
}
#verseModalSwitch.plasma-switch .plasma-input:checked ~ .glass-trench .titanium-thumb,
#navPanelSwitch.plasma-switch .plasma-input:checked ~ .glass-trench .titanium-thumb {
  transform: translateX(38px);
}

/* Bordure de la piste : cyan au repos (Lecture Seule), orange quand la
   modale Options est active (Lecture + Options) — assorti au "+" de
   .rm-char-plus pour que le switch et le texte animé parlent le même
   langage de couleur. */
#verseModalSwitch .glass-trench {
  border-color: #fc9a46;
  transition: border-color .4s ease;
}
#verseModalSwitch .plasma-input:checked ~ .glass-trench {
  border-color: #00ffff;
}

.opt-btn-blocnotes {
  width: 100%;
  flex: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: rgba(0, 255, 255, 0.08);
  color: #00ffff;
  border: 1.5px solid rgba(0, 255, 255, 0.4);
  border-radius: 14px;
  cursor: pointer;
  -webkit-appearance: none;
  transition: background 0.22s;
  font-family: Roboto, system-ui, sans-serif;
  box-sizing: border-box;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.opt-btn-blocnotes:active { background: rgba(0,255,255,0.18); }
/* 3 elements evenly distributed */
.opt-btn-blocnotes-top {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  gap: 0;
}

/* Animation bounce latéral sur la flèche Bloc-Notes */
@keyframes bn-arrow-bounce {
  0%   { transform: translateX(0);     }
  20%  { transform: translateX(10px);  }
  40%  { transform: translateX(-4px);  }
  60%  { transform: translateX(7px);   }
  80%  { transform: translateX(-2px);  }
  100% { transform: translateX(0);     }
}
.bn-arrow-bounce {
  animation: bn-arrow-bounce 0.55s cubic-bezier(.36,.07,.19,.97) forwards;
}

.opt-btn-blocnotes .bn-counter {
  background: #00ffff;
  color: #000;
  font-size: 0.70rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-left: 2px;
}

/* ── Bouton TTS chapitre dans le panneau nav ── */
/* ── Groupe boutons TTS chapitre + choix versets ── */
.tts-chapter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.tts-chapter-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72rem 1rem;
  background: #000000;
  color: #d4bf7f;
  border: 1px solid #ffd310;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.25s;
  font-family: Roboto, system-ui, sans-serif;
  margin-bottom: 0;
}
.tts-chapter-nav-btn:hover {
  background: #000000;
  border-color: #d4bf7f;
  box-shadow: 0 0 10px rgba(212, 191, 127, 0.3);
}

.tts-verse-picker-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.72rem 1rem;
  background: #000000;
  color: #9e8e6a;
  border: 1px solid #ffd310;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.25s;
  font-family: Roboto, system-ui, sans-serif;
}
.tts-verse-picker-btn:hover {
  background: #000000;
  border-color: #9e8e6a;
  box-shadow: 0 0 10px rgba(158, 142, 106, 0.25);
}

/* Bouton "Livre entier" — pleine largeur sur sa propre ligne */
.tts-book-nav-btn {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72rem 1rem;
  background: #000000;
  color: #c08bd6;
  border: 1px solid #c08bd6;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  box-shadow: 0 0 10px rgba(192, 139, 214, 0.3);
  transition: all 0.25s;
  font-family: Roboto, system-ui, sans-serif;
}
.tts-book-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Ligne de progression dans la synthèse vocale (lecture d'un livre) */
.tts-progress {
  padding: 4px 16px 0 16px;
  font-size: 0.8rem;
  color: #c08bd6;
  font-family: Roboto, system-ui, sans-serif;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ══ MODAL CHOIX VERSET(S) ══ */
.verse-picker-panel {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.vp-ref {
  padding: 8px 16px 6px 16px;
  font-size: 1rem;
  color: #000000;
  font-weight: 700;
  background: #1A8C96; 
  font-family: Roboto, system-ui, sans-serif;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.vp-actions-top {
  display: flex;
  gap: 8px;
  padding: 10px 16px 8px;
  flex-shrink: 0;
}

.vp-action-btn {
  flex: 1;
  padding: 6px 10px;
  background: #000000;
  color: #d4bf7f;
  border: 1.5px solid rgba(212, 191, 127, 0.45);
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: Roboto, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.vp-action-btn:hover {
  background: #000000;
}

.vp-verse-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vp-verse-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.vp-verse-item:hover {
  background: rgba(212,191,127,0.06);
  border-color: rgba(212,191,127,0.12);
}
.vp-verse-item:has(.vp-checkbox:checked) {
  background: rgba(212,191,127,0.1);
  border-color: rgba(212,191,127,0.25);
}

.vp-checkbox {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(212,191,127,0.35);
  border-radius: 4px;
  position: relative;
  transition: background-color 0.15s, border-color 0.15s;
}
.vp-checkbox:checked {
  background-color: #00ff00;
  border-color: #00ff00;
}
.vp-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #14140f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.vp-verse-num {
  flex-shrink: 0;
  min-width: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d4bf7f;
  font-family: Roboto, system-ui, sans-serif;
  line-height: 1.4;
}

.vp-verse-text {
  font-size: calc(0.85rem * var(--ref-z, 1));
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  font-family: Roboto, system-ui, sans-serif;
}

.vp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  gap: 12px;
}

.vp-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-family: Roboto, system-ui, sans-serif;
  transition: color 0.15s;
}
.vp-count.vp-count--active {
  color: #00ff00;
}

.vp-listen-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #3a3220 0%, #2b2217 100%);
  color: #d4bf7f;
  border: 1.5px solid rgba(212,191,127,0.45);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: Roboto, system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.vp-listen-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #4a4028 0%, #3a2f1e 100%);
  border-color: #d4bf7f;
  box-shadow: 0 0 12px rgba(212,191,127,0.3);
}
.vp-listen-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* ── Scrollbar de la liste de versets : pilule dorée assortie au thème
   or/crème (#d4bf7f) de cette modale. Pilule détachée du rail de 2px via
   border transparent + background-clip:padding-box, qui s'éclaircit au survol. */
.vp-verse-list::-webkit-scrollbar {
  width: 10px;
}
.vp-verse-list::-webkit-scrollbar-track {
  background: rgba(212,191,127,0.05);
  border-radius: 10px;
  margin: 6px 2px;
}
.vp-verse-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212,191,127,0.62) 0%, rgba(212,191,127,0.30) 100%);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.vp-verse-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(212,191,127,0.9) 0%, rgba(212,191,127,0.55) 100%);
  background-clip: padding-box;
}

/* ── Textes agrandis dans la fenêtre de sélection de versets ──
   (l'en-tête .cmp-title n'est pas touché). Préfixe .verse-picker-panel
   pour une spécificité suffisante sans !important. */
.verse-picker-panel .vp-ref        { font-size: 1rem; }
.verse-picker-panel .vp-action-btn { font-size: 0.95rem; }
.verse-picker-panel .vp-verse-num  { font-size: 1.05rem; }
.verse-picker-panel .vp-verse-text { font-size: calc(1.05rem * var(--ref-z, 1)); }
.verse-picker-panel .vp-count      { font-size: 0.95rem; }
.verse-picker-panel .vp-listen-btn { font-size: 1.05rem; }



/* ══ MODAL SYNTHÈSE VOCALE ══ */
.tts-panel {
  max-width: 380px;
}

.tts-ref {
  padding: 6px 16px 6px 16px;
  font-size: 1.3rem;
  font-weight:500;
  color: 	#000000;
  background: #1A8C96; 
  font-family: Roboto, system-ui, sans-serif;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.tts-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 10px 16px;
  flex-shrink: 0;
}

.tts-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Pastille « Plus de voix ? » (à gauche, sous la liste Voix) → fenêtre d'explication */
.tts-more-voices {
  align-self: flex-start; margin: -4px 0 2px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 7px; border-radius: 22px; cursor: pointer;
  border: 1px solid rgba(232,196,106,.7);
  background: linear-gradient(180deg, rgba(232,196,106,.18), rgba(232,196,106,.06));
  color: #e8c46a; font: 700 .86rem Roboto, system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 0 10px rgba(232,196,106,.15); -webkit-tap-highlight-color: transparent;
}
.tts-more-voices:active { transform: scale(.97); }
.tts-more-voices .tmv-ico { width: 22px; height: 22px; border-radius: 50%; background: #e8c46a; color: #2a1c00; display: grid; place-items: center; font-size: .82rem; line-height: 1; }

/* Fenêtre « Des voix plus naturelles » */
.tvm-overlay { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3,6,16,.72); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.tvm-overlay.is-open { opacity: 1; pointer-events: auto; }
.tvm-panel { width: min(400px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #0f1428; border: 1px solid rgba(0,255,255,.45); border-radius: 16px; padding: 16px; color: #dce3ee; box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 18px rgba(0,255,255,.12); transform: scale(.96); transition: transform .2s ease; font-family: Roboto, system-ui, sans-serif; }
.tvm-overlay.is-open .tvm-panel { transform: none; }
.tvm-panel h3 { margin: 0 0 6px; color: #00ffff; font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.tvm-panel p { margin: 6px 0; font-size: .95rem; line-height: 1.5; }
.tvm-panel ol { margin: 6px 0 10px; padding-left: 20px; font-size: .95rem; line-height: 1.55; }
.tvm-panel li { margin-bottom: 6px; }
.tvm-panel b { color: #fff; }
.tvm-tip { background: rgba(232,196,106,.1); border-left: 3px solid #e8c46a; padding: 8px 10px; border-radius: 6px; font-size: .9rem; color: #f1dfae; line-height: 1.45; }
.tvm-btns { display: flex; gap: 8px; margin-top: 14px; }
.tvm-btns > * { flex: 1; text-align: center; border-radius: 10px; padding: 10px; font: 700 .92rem Roboto, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.tvm-store { background: rgba(0,255,255,.12); border: 1px solid rgba(0,255,255,.5); color: #00ffff; }
.tvm-close { background: none; border: 1px solid #39415e; color: #9aa3b5; }

.tts-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  font-family: Roboto, system-ui, sans-serif;
  min-width: 90px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.tts-select {
  flex: 1;
  background: rgba(255,255,255,0.05);
  color: #e0e0e0;
  border: 1.5px solid rgba(0,255,255,0.25);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-family: Roboto, system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s;
}
.tts-select:focus { outline: none; border-color: rgba(0,255,255,0.6); }

/* ── Sliders ── */
.tts-range {
  flex: 1;
  height: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  accent-color: #00ffff;
}
/* Thumb – WebKit / Blink */
.tts-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ffff;
  box-shadow: 0 0 6px rgba(0,255,255,0.55);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tts-range::-webkit-slider-thumb:active {
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(0,255,255,0.8);
}
/* Track fill – WebKit */
.tts-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: transparent;
}
/* Thumb – Firefox */
.tts-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #00ffff;
  box-shadow: 0 0 6px rgba(0,255,255,0.55);
  cursor: pointer;
}
.tts-range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.tts-range:focus { outline: none; }

.tts-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px 6px 16px;
  flex-shrink: 0;
}

.tts-btn {
  font-family: -apple-system, BlinkMacSystemFont;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #2a2a2d, #1a1a1c);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.05),
    inset 0 -4px 6px rgba(0,0,0,0.6);
  /* overflow:hidden retiré — il bloquait transform:scale sur Android/WebKit */
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  will-change: transform;
  -webkit-transform: translateZ(0); /* active le GPU sur Android */
  transform: translateZ(0);
}
.tts-btn:focus,
.tts-btn:focus-visible {
  outline: none;
}
.tts-btn:active {
  -webkit-transform: scale(0.92);
  transform: scale(0.92);
  filter: brightness(1.2);
}
.tts-btn .icon {
  width: 34px;
  height: 34px;
  z-index: 2;
}
.tts-btn .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  opacity: 0.25;
}

.tts-btn-play  { color: #30d158; }
.tts-btn-pause { color: #ffd60a; }
.tts-btn-stop  { color: #ff453a; }

.tts-btn-play:hover  { filter: brightness(1.15); }
.tts-btn-pause:hover { filter: brightness(1.15); }
.tts-btn-stop:hover  { filter: brightness(1.15); }

.tts-status {
  text-align: center;
  font-size: 1rem;
  color: greenyellow;
  font-family: Roboto, system-ui, sans-serif;
  padding: 4px 16px 14px 16px;
  flex-shrink: 0;
}

/* ── Bouton Bloc-Notes dans le panneau nav ── */
.bloc-notes-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.45rem 0.8rem;
  background: rgba(0,255,255,0.08);
  color: #00ffff;
  border: 1.5px solid rgba(0,255,255,0.4);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.25s;
  font-family: Roboto, system-ui, sans-serif;
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: 2px;
}

/* Bouton Bloc-Notes du quickNavPanel : éléments répartis comme dans la modale 1 */
.quick-nav-panel .bloc-notes-nav-btn {
  justify-content: space-around;
  font-size: 1.1rem;
}

/* Badge compteur du Bloc-Notes */
.bn-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #00ffff;
  color: #000000;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}


/* Header sticky */
.verse-modal-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #0c1021;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 18px 10px 18px;
  border-bottom: 1px solid #378add;
  box-shadow: 0 4px 12px -4px rgba(55, 138, 221, 0.4);
  flex-shrink: 0;
}

/* Ligne du haut : titre bold + actions */
.verse-modal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* Ligne du bas : référence seule */
.verse-modal-header-bottom {
  display: flex;
  align-items: center;
  padding-top: 3px;
}

/* Le titre prend tout l'espace disponible à gauche */
.verse-modal-title {
  display: contents; /* les enfants (b + span) remontent dans le flux flex parent */
}

/* Actions groupées à droite : bouton note + close */
.verse-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Variante scroll-top : bouton-icône carré, même esprit carte */
.btn-texte-chapitre--scroll-top {
  padding: 5px 7px;
  border-color: rgba(11, 158, 158, 0.40);
  background: linear-gradient(135deg, rgba(11,158,158,0.10) 0%, rgba(11,120,120,0.05) 100%);
  box-shadow: 0 2px 10px rgba(11,158,158,0.10), inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: 10px;
  /* SVG direct : forcer les dimensions et supprimer overflow:hidden hérité */
  overflow: visible;
  width: 70px;
  height: 44px;
  flex-shrink: 0;
}
.btn-texte-chapitre--scroll-top:hover {
  background: linear-gradient(135deg, rgba(11,158,158,0.22) 0%, rgba(11,120,120,0.12) 100%);
  border-color: rgba(11,158,158,0.70);
  box-shadow: 0 3px 16px rgba(11,158,158,0.25), inset 0 1px 0 rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.verse-modal-title b {
  color: #00ffff;
  font-weight: bold;
  font-size: 1.15em;
  font-family: Roboto, system-ui, sans-serif;
}

.verse-modal-ref {
  color: #00ff00;
  font-size: 1rem;
  font-family: Roboto, system-ui, sans-serif;
  letter-spacing: 0.04em;
}

/* Titre « Note de section ou de chapitre » réparti sur 3 lignes :
   garde une largeur étroite pour laisser les 3 boutons sur la même rangée. */
.verse-modal-texte-title {
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
  font-family: Roboto, system-ui, sans-serif;
}

.verse-modal-label {
  display: block;
  color: rgba(0,255,255,0.5);
  font-size: 0.65rem;
  font-family: Roboto, system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.verse-modal-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  flex-shrink: 0;
}

/* Zone scrollable unique (versebox + note) */
.verse-modal-scroll {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}
.verse-modal-scroll::-webkit-scrollbar { width: 6px; }
.verse-modal-scroll::-webkit-scrollbar-track { background: rgba(0,255,255,0.05); border-radius: 6px; }
.verse-modal-scroll::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.3); border-radius: 6px; }
.verse-modal-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.55); }

/* Verset — premier élément dans la zone scrollable */
.verse-modal-versebox {
  position: relative;
  background: rgba(0, 255, 255, 0.06);
  border-left: 3px solid #00ffff;
  padding: 10px 16px;
  margin: 14px 18px 24px 18px;
  border-radius: 0 6px 6px 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
  flex-shrink: 0;
}
/* Séparateur "design" verset / notes : trait gris dégradé, effilé aux extrémités + légère lueur */
.verse-modal-versebox::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -13px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
      rgba(111, 136, 184, 0) 0%,
      rgba(111, 136, 184, 0.9) 50%,
      rgba(111, 136, 184, 0) 100%);
  box-shadow: 0 0 6px rgba(122, 180, 255, 0.45);
}
.verse-modal-num { color: #00ffff; font-weight: 700; font-size: 1.2rem; margin-right: 6px; }
.verse-modal-versetext { color: #ffffff; }

/* Note — second élément dans la zone scrollable */
.verse-modal-body {
  padding: 16px 18px 28px 18px;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 1.20rem;
  line-height: 1.75;
  color: #dce3ee;
}

/* Styles du contenu issu de descriptif.html */
.verse-modal-body dfn {
  font-style: italic;
  font-weight: bold;
  color: #fc9a46;
}

.verse-modal-body cite {
  font-style: italic;
}

.verse-modal-body strong {
  font-weight: bold;
  color: #ffffff;
}

.verse-modal-body em {
  font-style: italic;
}

.verse-modal-body code {
  font-weight: bold;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 0.82em;
  background-color: #FFF168;
  color: #000;
  padding: 1px 5px;
  margin: 0 2px;
  border-radius: 2px;
}

.verse-modal-body b {
  color: #00ffff;
  font-weight: bold;
  font-size: 1.05em;
}

/* ── Note de section (note-section) ── */
.verse-modal-body .note-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #0a1520 100%);
  color: #cdd9e8;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 5px solid rgba(0, 255, 255, 0.18);
  list-style: none;
  max-height: 55vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 255, 255, 0.06);
}
.verse-modal-body .note-section::-webkit-scrollbar { width: 6px; }
.verse-modal-body .note-section::-webkit-scrollbar-track { background: rgba(0, 255, 255, 0.04); border-radius: 6px; }
.verse-modal-body .note-section::-webkit-scrollbar-thumb { background: rgba(0, 255, 255, 0.3); border-radius: 6px; }
.verse-modal-body .note-section::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 255, 0.55); }

.verse-modal-body .note-section-sous-titre {
  background: rgba(139, 111, 71, 0.25);
  color: #c8a96e;
  border: 1px solid rgba(139, 111, 71, 0.4);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  letter-spacing: 0.04em;
}

/* Titres forts dans note-section */

.verse-modal-body .note-section > strong,
.verse-modal-body .note-section strong:first-child {
  display: block;
  color: #00ffff;
  font-size: 1.02em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.15);
  letter-spacing: 0.02em;
}

.verse-modal-body ul {
  list-style: none;
  padding: 0;
}

.verse-modal-body ul ul {
  padding-left: 1.4em;
  margin-top: 6px;
}

.verse-modal-body ul ul li {
  position: relative;
  padding: 3px 0 3px 0.5em;
  color: #b8c8d8;
}

.verse-modal-body ul ul li::before {
  content: "›";
  position: absolute;
  left: -0.8em;
  color: #00ffff;
  font-weight: bold;
  opacity: 0.7;
}

/* Variante texte (note de chapitre) — conteneur scrollable explicite */
.verse-modal-texte {
  padding-top: 12px;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}
.verse-modal-texte::-webkit-scrollbar { width: 6px; }
.verse-modal-texte::-webkit-scrollbar-track { background: rgba(0,255,255,0.04); border-radius: 6px; }
.verse-modal-texte::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.3); border-radius: 6px; }
.verse-modal-texte::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.55); }

/* ══════════════════════════════════════════
   TABLES RESPONSIVES — style harmonisé
   ══════════════════════════════════════════ */

.verse-modal-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 18px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 255, 0.05);
  font-size: 0.84rem;
  color: #cdd9e8;
  display: table;
  table-layout: fixed;
  box-sizing: border-box;
}

/* En-têtes */
.verse-modal-body table th {
  background: linear-gradient(135deg, rgba(0,255,255,0.14) 0%, rgba(0,180,180,0.1) 100%);
  color: #00ffff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 6px;
  text-align: center;
  border-bottom: 2px solid rgba(0, 255, 255, 0.35);
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

/* Première colonne (labels) */
.verse-modal-body table td:first-child {
  color: #cdd9e8;
  font-weight: 600;
  background: rgba(139, 111, 71, 0.08);
  border-right: 1px solid rgba(139, 111, 71, 0.2);
  white-space: normal;
  word-break: break-word;
  padding: 8px 6px;
  line-height: 1.35;
}

/* Cellules normales */
.verse-modal-body table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
  color: #cdd9e8;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

/* Cellule vide (coin supérieur gauche) */
.verse-modal-body table td:empty,
.verse-modal-body table th:empty {
  background: #080e18;
}

/* Lignes alternées */
.verse-modal-body table tr:nth-child(even) td {
  background: rgba(0, 255, 255, 0.03);
}
.verse-modal-body table tr:nth-child(even) td:first-child {
  background: rgba(139, 111, 71, 0.12);
}

/* Hover sur les lignes */
.verse-modal-body table tr:hover td {
  background: rgba(0, 255, 255, 0.07);
}
.verse-modal-body table tr:hover td:first-child {
  background: rgba(139, 111, 71, 0.18);
}

/* Dernière ligne : pas de bordure basse */
.verse-modal-body table tr:last-child td {
  border-bottom: none;
}

/* Valeurs em/strong dans les cellules */
.verse-modal-body table em {
  color: #a0c4d8;
  font-style: italic;
}
.verse-modal-body table strong,
.verse-modal-body table b {
  color: #e8d8b0;
  font-weight: 700;
  font-size: inherit;
}

/* Scrollbar de la table sur mobile */
.verse-modal-body table::-webkit-scrollbar { height: 5px; }
.verse-modal-body table::-webkit-scrollbar-track { background: rgba(0,255,255,0.05); border-radius: 4px; }
.verse-modal-body table::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.3); border-radius: 4px; }

/* ── Ligne de groupe (OR / ARGENT) dans table verticale ── */
.verse-modal-body table .table-group-header td {
  background: linear-gradient(90deg, rgba(0,255,255,0.18) 0%, rgba(0,255,255,0.06) 100%);
  color: #00ffff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-top: 1px solid rgba(0,255,255,0.3);
  border-bottom: 1px solid rgba(0,255,255,0.15);
  text-align: left;
}
/* Pas de style "première colonne" sur les lignes de groupe */
.verse-modal-body table .table-group-header td:first-child {
  background: linear-gradient(90deg, rgba(0,255,255,0.18) 0%, rgba(0,255,255,0.06) 100%);
  color: #00ffff;
  border-right: none;
  font-weight: 700;
}

/* ── Ligne de conversion franc/euro au-dessus de la table ── */
.verse-modal-body .monnaie-equiv {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: rgba(200, 169, 110, 0.85);
  letter-spacing: 0.02em;
}
.verse-modal-body .monnaie-equiv small {
  color: rgba(255,255,255,0.35);
  font-size: 0.78em;
}


/* ============================================
   ZOOM - Contrôle de taille du texte
   ============================================ */

.zoom-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.75rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
}

.zoom-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1.5px solid rgba(0, 255, 255, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.zoom-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #00ffff;
  font-size: 1rem;
  font-weight: 700;
  font-family: Roboto, system-ui, sans-serif;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.02em;
}

.zoom-btn:hover {
  background: rgba(0, 255, 255, 0.15);
}

.zoom-btn:active {
  background: rgba(0, 255, 255, 0.3);
}

.zoom-level {
  flex: 1;
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: Roboto, system-ui, sans-serif;
  font-weight: 600;
  border-left: 1px solid rgba(0, 255, 255, 0.3);
  border-right: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.55rem 0;
  background: rgba(0,0,0,0.2);
  min-width: 52px;
}


/* Surbrillance temporaire du verset ciblé depuis le Bloc-Notes */
.verse--highlight-goto {
  animation: verseGotoFlash 2s ease-out forwards;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.verse--highlight-done {
  animation: none !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes verseGotoFlash {
  0%   { background-color: rgba(0, 255, 255, 0.25); border-radius: 6px; }
  60%  { background-color: rgba(0, 255, 255, 0.15); border-radius: 6px; }
  100% { background-color: transparent; }
}

/* ══════════════════════════════════════════
   TOUTES LES TABLES — Responsive smartphone
   Optimisé Samsung Galaxy A15 (360 × 800 dp)
   ══════════════════════════════════════════ */

/* Wrapper responsive pour TOUTES les tables */
.verse-modal-body table {
  display: table;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  box-sizing: border-box;
}

/* TABLE-MONNAIES — 3 colonnes spécifiques */
.verse-modal-body .table-monnaies {
  font-size: 0.80rem;
}

/* Largeurs des 3 colonnes : Unité | Poids | Valeur */
.verse-modal-body .table-monnaies th:nth-child(1),
.verse-modal-body .table-monnaies td:nth-child(1) { width: 40%; }

.verse-modal-body .table-monnaies th:nth-child(2),
.verse-modal-body .table-monnaies td:nth-child(2) { width: 30%; }

.verse-modal-body .table-monnaies th:nth-child(3),
.verse-modal-body .table-monnaies td:nth-child(3) { width: 30%; }

/* En-têtes table-monnaies */
.verse-modal-body .table-monnaies th {
  padding: 8px 5px;
  font-size: 0.70rem;
  letter-spacing: 0.04em;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

/* Cellules table-monnaies */
.verse-modal-body .table-monnaies td {
  padding: 7px 5px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.35;
  color: #cdd9e8;
}

/* Colonne Unité (1ère) : alignée à gauche */
.verse-modal-body .table-monnaies td:first-child {
  text-align: left;
  padding-left: 7px;
  white-space: normal;
  font-size: 0.79rem;
  color: #cdd9e8;
}

/* "(50 sicles)" sur une ligne séparée */
.verse-modal-body .table-monnaies td:first-child small {
  display: block;
  font-size: 0.67rem;
  opacity: 0.75;
  margin-top: 1px;
  color: #cdd9e8;
}

/* Lignes de groupe OR / ARGENT */
.verse-modal-body .table-monnaies .table-group-header td {
  text-align: left;
  padding: 6px 7px;
  font-size: 0.70rem;
  letter-spacing: 0.10em;
}

/* Ligne equiv franc/euro */
.verse-modal-body .monnaie-equiv {
  font-size: 0.75rem;
  line-height: 1.5;
  word-break: break-word;
}

/* ── Galaxy A15 portrait (≤ 390px) ── */
@media (max-width: 390px) {
  .verse-modal-body table {
    font-size: 0.80rem;
  }
  .verse-modal-body table th {
    font-size: 0.70rem;
    padding: 7px 4px;
    letter-spacing: 0.03em;
  }
  .verse-modal-body table td {
    padding: 7px 4px;
    font-size: 0.80rem;
    color: #cdd9e8;
  }
  .verse-modal-body table td:first-child {
    padding-left: 5px;
    font-size: 0.80rem;
    color: #cdd9e8;
  }
  .verse-modal-body .table-monnaies {
    font-size: 0.76rem;
  }
  .verse-modal-body .table-monnaies th {
    font-size: 0.66rem;
    padding: 7px 3px;
  }
  .verse-modal-body .table-monnaies td {
    padding: 6px 3px;
    font-size: 0.76rem;
    color: #cdd9e8;
  }
  .verse-modal-body .table-monnaies td:first-child {
    padding-left: 5px;
    font-size: 0.75rem;
    color: #cdd9e8;
  }
}


/* ============================================
   WELCOME SCREEN — Menu de navigation
   ============================================ */

.welcome-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin: 0;
    text-align: left;
}

.welcome-menu-btn {
    display: block;
    width: 100%;
    padding: 7px 14px;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 0.88rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.18s, border-color 0.18s;
    font-family: inherit;
}

.welcome-menu-btn:hover {
    background: rgba(0,255,255,0.12);
    border-color: rgba(0,255,255,0.35);
    color: #00ffff;
}

.welcome-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-menu-toggle .toggle-icon {
    transition: transform 0.28s cubic-bezier(0.4, 0.0, 0.2, 1);
    flex-shrink: 0;
}

.welcome-menu-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.welcome-menu-group {
    display: flex;
    flex-direction: column;
}

/* Sous-menu : fermé par défaut */
.welcome-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    padding-left: 12px;
    border-left: 2px solid rgba(0,255,255,0.2);
    /* Animation douce */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.42s cubic-bezier(0.4, 0.0, 0.2, 1),
                opacity 0.30s ease,
                margin-top 0.28s ease;
}

/* Sous-menu ouvert */
.welcome-submenu.is-open {
    max-height: 700px;
    opacity: 1;
    margin-top: 4px;
    overflow-y: auto;
}

/* Scrollbar sous-menu */
.welcome-submenu::-webkit-scrollbar { width: 4px; }
.welcome-submenu::-webkit-scrollbar-track { background: rgba(0,255,255,0.04); border-radius: 4px; }
.welcome-submenu::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.2); border-radius: 4px; }
.welcome-submenu::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.4); }

.welcome-submenu-btn {
    display: block;
    padding: 7px 12px;
    background: rgba(255,255,255,0.04);
    color: #cccccc;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 0.88rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.welcome-submenu-btn:hover {
    background: rgba(0,255,255,0.10);
    color: #00ffff;
    border-color: rgba(0,255,255,0.2);
}

.welcome-submenu-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0,255,255,0.55);
    padding: 8px 12px 3px;
}

.navigation-hint {
    margin-top: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}


/* ============================================
   MODALES SOUS-MENUS — Welcome screen
   ============================================ */

.submenu-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: flex-end;  /* panel remonte depuis le bas */
    justify-content: center;
}

.submenu-modal.is-open {
    display: flex;
}

/* Fond semi-transparent */
.submenu-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    animation: smOverlayIn 0.25s ease forwards;
}

@keyframes smOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Panneau */
.submenu-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    background: #111418;
    border-top: 2px solid rgba(0, 255, 255, 0.35);
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: smPanelIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes smPanelIn {
    from { transform: translateY(100%); opacity: 0.4; }
    to   { transform: translateY(0);    opacity: 1;   }
}

/* En-tête de la modale */
.submenu-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.submenu-modal-title {
    /* ← TAILLE TITRE (ex: "Introduction", "Étude") — modifiable ici ↓ */
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ffff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.submenu-modal-close {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    color: #ffffff;
    transition: background 0.18s;
    flex-shrink: 0;
}

.submenu-modal-close:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

/* Corps scrollable */
.submenu-modal-body {
    overflow-y: auto;
    padding: 10px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.submenu-modal-body::-webkit-scrollbar { width: 5px; }
.submenu-modal-body::-webkit-scrollbar-track { background: rgba(0,255,255,0.04); border-radius: 5px; }
.submenu-modal-body::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.22); border-radius: 5px; }
.submenu-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(0,255,255,0.42); }

/* Label de section */
.submenu-modal-label {
    display: block;
    /* ← TAILLE LABELS DE SECTION (ex: "Généralités", "Livres historiques") — modifiable ici ↓ */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(0, 255, 255, 0.50);
    padding: 10px 4px 3px;
}

/* Boutons de lien */
.submenu-modal-btn {
    display: block;
    padding: 9px 14px;
    background: rgba(255,255,255,0.04);
    color: #d0d8e0;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    /* ← TAILLE BOUTONS LISTE (ex: "La Bible", "Josué"…) — modifiable ici ↓ */
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.submenu-modal-btn:hover {
    background: rgba(0, 255, 255, 0.10);
    color: #00ffff;
    border-color: rgba(0, 255, 255, 0.22);
}

/* ── Animation check SVG Bloc-Notes ── */
@keyframes checkDrawCircle {
    to { stroke-dashoffset: 0; }
}
@keyframes checkDrawMark {
    to { stroke-dashoffset: 0; }
}
@keyframes checkBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.22); }
    55%  { transform: scale(0.93); }
    75%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.check-svg-anim {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    overflow: visible;
}
.check-svg-anim .c-circle {
    fill: none;
    stroke: #22c55e;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 214;
    stroke-dashoffset: 214;
    transform: rotate(-90deg);
    transform-origin: 40px 40px;
    animation: checkDrawCircle 0.35s ease forwards;
}
.check-svg-anim .c-bg {
    fill: none;
    stroke: rgba(34,197,94,0.2);
    stroke-width: 4;
}
.check-svg-anim .c-mark {
    fill: none;
    stroke: #22c55e;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 75;
    stroke-dashoffset: 75;
    animation: checkDrawMark 0.3s ease 0.28s forwards;
}
.check-svg-anim {
    animation: checkBounce 0.45s ease 0.58s both;
}

/* ── Compteur SVG animé Bloc-Notes ── */
.bn-counter-svg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 4px;
}
.bn-counter-svg svg {
  display: block;
  transform: rotate(-90deg);
}
.bn-c-bg {
  fill: rgba(255,182,0,0.12);
  stroke: #e7bb3f;
  stroke-width: 1.5;
}
.bn-c-progress {
  fill: none;
  stroke: #04fb08;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 109.96; /* 2*PI*17.5 */
  stroke-dashoffset: 109.96;
  transition: stroke-dashoffset 0.05s;
}
.bn-c-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  font-size: 1.2rem;
  font-weight: 200;
  color: #00ffff;
  line-height: 1;
  transition: transform 0.16s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  font-family: Roboto, system-ui, sans-serif;
}

/* ── Compteur dans #openBlocNotesBtn : SVG 36×36 plus petit → police réduite ── */
#openBlocNotesBtn .bn-c-number {
  font-size: 0.9rem;
}

/* ── Animation bounce-in shake du compteur pendant la croix erreur ── */
@keyframes bn-counter-bounce-shake {
  0%   { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  30%  { transform: scale(1.35) rotate(8deg);  opacity: 1; }
  50%  { transform: scale(0.9)  rotate(-5deg); }
  65%  { transform: scale(1.12) rotate(3deg);  }
  75%  { transform: scale(0.97) rotate(-2deg); }
  85%  { transform: scale(1.04) rotate(1deg);  }
  100% { transform: scale(1)    rotate(0deg);  }
}
@keyframes bn-counter-shake-loop {
  0%,100% { transform: rotate(0deg)   translateX(0);    }
  20%      { transform: rotate(-8deg)  translateX(-3px); }
  40%      { transform: rotate(8deg)   translateX(3px);  }
  60%      { transform: rotate(-6deg)  translateX(-2px); }
  80%      { transform: rotate(6deg)   translateX(2px);  }
}
.bn-counter-error-anim {
  animation:
    bn-counter-bounce-shake 0.55s cubic-bezier(.34,1.56,.64,1) forwards,
    bn-counter-shake-loop   0.55s ease-in-out 0.55s infinite;
  transform-origin: center center;
}

/* ── Animation FLIP 3D du compteur (jouée 1 fois à chaque sauvegarde) ── */
@keyframes bn-counter-flip {
  0% {
    transform: perspective(400px) rotateY(0deg);
    animation-timing-function: ease-out;
  }
  40% {
    transform: perspective(400px) translateZ(150px) rotateY(170deg);
  }
  50% {
    transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);
  }
  80% {
    transform: perspective(400px) rotateY(360deg) scale(0.95);
  }
  100% {
    transform: perspective(400px) rotateY(360deg) scale(1);
  }
}
/* Compteurs HTML (span du bouton Bloc-Notes) : flip 3D sur l'élément lui-même */
span.bn-counter-svg.bn-counter-flip-anim {
  backface-visibility: visible;
  transform-style: preserve-3d;
  animation: bn-counter-flip 2s ease;
}
/* Flip + grossissement dédié au badge intégré (SVG) : translateZ ignoré en WebView,
   donc on utilise un scale pour le faire ressortir. Termine sur la taille de repos (1.2). */
@keyframes bn-counter-flip-big {
  0% {
    transform: rotateY(0deg) scale(1.2);
    animation-timing-function: ease-out;
  }
  40% {
    transform: rotateY(170deg) scale(1.5);
  }
  50% {
    transform: rotateY(190deg) scale(1.5);
  }
  80% {
    transform: rotateY(360deg) scale(1.28);
  }
  100% {
    transform: rotateY(360deg) scale(1.2);
  }
}

/* Compteur intégré au SVG du bouton copier : badge légèrement agrandi AU REPOS (×1.2),
   centré sur lui-même (sans toucher au positionnement x/y du <svg>). */
svg.bn-counter-svg .bn-c-flip {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.2);
}
/* On n'anime PAS le <svg> (positionné en x/y) mais le groupe interne .bn-c-flip,
   qui possède une vraie bounding-box → le flip pivote autour du centre réel et reste en place. */
svg.bn-counter-svg.bn-counter-flip-anim .bn-c-flip {
  backface-visibility: visible;
  transform-style: preserve-3d;
  transform-box: fill-box;
  transform-origin: center;
  animation: bn-counter-flip-big 2s ease;
}


/* ============================================
   CUSTOM SELECT — Remplacement natif Android
   Compatible Samsung Galaxy A15 / tous mobiles
   ============================================ */

/*
  .custom-select-wrapper  → conteneur principal (remplace <select>)
  .custom-select-trigger  → bouton visible (label + flèche)
  .custom-select-dropdown → liste déroulante
  .custom-select-optgroup → label de groupe
  .custom-select-option   → item cliquable
*/

.custom-select-wrapper {
  position: relative;
  width: 100%;
  font-family: Roboto, system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

/* Bouton déclencheur */
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.8rem 0.75rem;
  background: #000000;
  color: #ffffff;
  border: 2px solid #00ffff;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Roboto, system-ui, sans-serif;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  min-height: 44px; /* touch target Android */
  -webkit-tap-highlight-color: transparent;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus {
  background: #0a0a0a;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  outline: none;
}

/* Flèche SVG */
.custom-select-arrow {
  flex-shrink: 0;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #00ffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.custom-select-wrapper.is-open .custom-select-arrow {
  transform: rotate(180deg);
}

/* Texte sélectionné dans le trigger */
.custom-select-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: #ffffff;
}

.custom-select-label.placeholder {
  color: rgba(255,255,255,0.5);
}

/* Dropdown */

/* ── Overlay fermeture custom-select ── */
#custom-select-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998; /* juste sous le dropdown (99999) */
  background: transparent;
  cursor: default;
}
.custom-select-dropdown {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 440px);
  background: #07090d;
  border: 1.5px solid rgba(0,255,255,0.42);
  border-radius: 18px;
  z-index: 99999;
  overflow-y: auto;
  max-height: 74vh;
  box-shadow:
    0 28px 72px rgba(0,0,0,0.92),
    0 0 0 1px rgba(0,255,255,0.07) inset,
    0 1px 0 rgba(255,255,255,0.05) inset;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Scrollbar dropdown */
.custom-select-dropdown::-webkit-scrollbar { width: 5px; }
.custom-select-dropdown::-webkit-scrollbar-track { background: rgba(0,255,255,0.06); border-radius: 4px; }
.custom-select-dropdown::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.3); border-radius: 4px; }

/* ── Bouton fermeture sticky en haut à droite du dropdown ── */
.custom-select-close-btn {
  position: sticky;
  top: 0;
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 4px 4px 0 0;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  transition: transform 0.15s ease, filter 0.15s ease;
  /* Empêche le float de perturber le flux des options */
  shape-outside: none;
}
.custom-select-close-btn:hover {
  transform: scale(1.12);
  filter: brightness(1.25);
}
.custom-select-close-btn:active {
  transform: scale(0.93);
}
/* Clearfix après le bouton pour que les options commencent sous lui */
.custom-select-close-btn::after {
  content: none;
}

/* ── Croix de fermeture agrandie dans les modales Livre / Chapitre ── */
/* SVG 36 → 48px ; la boîte du bouton suit (48 + 8px de padding = 56px) */
.cs-book-modal .custom-select-close-btn,
.cs-drum-modal .custom-select-close-btn {
  width: 56px;
  height: 56px;
}
.cs-book-modal .custom-select-close-btn svg,
.cs-drum-modal .custom-select-close-btn svg {
  width: 48px;
  height: 48px;
}


.custom-select-wrapper.is-open .custom-select-dropdown,
.custom-select-dropdown.is-open {
  display: block;
  animation: csDropIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes csDropIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Label de groupe */
.custom-select-optgroup {
  padding: 10px 16px 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0,255,255,0.55);
  background: transparent;
  border-top: 1px solid rgba(0,255,255,0.10);
  pointer-events: none;
  text-align: left;
  padding-left: 20px;
}

.custom-select-optgroup:first-child {
  border-top: none;
}

/* ── Options livres : grande typographie, grille 2 colonnes ── */

/* Conteneur interne des options : grille 2 colonnes */
.custom-select-dropdown .cs-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 6px 10px 14px;
}

/* Option */
.custom-select-option {
  position: relative;
  padding: 9px 8px;
  font-size: 1.0rem;
  font-weight: 700;
  color: #c8d8f0;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  transition: background 0.12s ease, color 0.12s ease, transform 0.10s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, #111820 0%, #0c1018 100%);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.65),
    0 1px 0 rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

.custom-select-option:hover,
.custom-select-option:active {
  background: linear-gradient(135deg, #172235 0%, #101825 100%);
  color: #ffffff;
  transform: scale(1.02);
  border-color: rgba(0,200,255,0.28);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.70),
    0 1px 0 rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(0,220,255,0.12);
}

.custom-select-option.is-selected {
  background: linear-gradient(135deg, #0b2035 0%, #071525 100%);
  color: #00ffff;
  font-weight: 800;
  border-color: rgba(0,200,255,0.50);
  box-shadow:
    0 3px 10px rgba(0,150,255,0.20),
    0 1px 0 rgba(0,0,0,0.9),
    inset 0 0 0 1px rgba(0,200,255,0.25),
    inset 0 0 12px rgba(0,160,255,0.10);
  text-shadow: 0 0 12px rgba(0,255,255,0.60);
}

/* Variante responsive — sur petits écrans le dropdown peut remonter */
@media (max-width: 480px) {
  .custom-select-trigger {
    padding: 0.7rem 0.65rem;
    font-size: 0.92rem;
  }
  .custom-select-option {
    padding: 9px 8px 9px 34px;
    /* ══ TAILLE OPTIONS sur petits écrans (< 480px) ══ */
    font-size: 1.05rem;
    min-height: 46px;
  }
}

/* Masquer le <select> natif sous-jacent (gardé pour accessibilité/form) */
.custom-select-wrapper select.book-select-hidden,
.custom-select-wrapper select.tts-select-hidden {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  top: 0;
  left: 0;
}

/* ── Variante TTS : trigger compact dark ── */
.tts-row .custom-select-wrapper {
  flex: 1;
  min-width: 0;
}
.tts-row .custom-select-trigger {
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(0,255,255,0.25);
  border-radius: 8px;
  font-size: 0.82rem;
  min-height: 36px;
  color: #e0e0e0;
  transition: border-color 0.2s;
}
.tts-row .custom-select-trigger:hover,
.tts-row .custom-select-trigger:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0,255,255,0.55);
  box-shadow: none;
}
.tts-row .custom-select-label {
  font-size: 0.82rem;
  color: #e0e0e0;
}
.tts-row .custom-select-label.placeholder {
  color: rgba(255,255,255,0.4);
}

/* ── Dropdown TTS : menu compact et lisible ── */
/* Cible .cs-tts (et non .tts-row) car le dropdown est déplacé sous <body> à l'ouverture */
.custom-select-dropdown.cs-tts {
  width: min(86vw, 320px);
  padding: 46px 10px 10px;   /* place en haut pour le bouton fermer */
  border-radius: 16px;
}
/* Bouton fermer : ancré en haut à droite, sans chevaucher la 1re option */
.cs-tts .custom-select-close-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  float: none;
  margin: 0;
  width: 36px;
  height: 36px;
}
.cs-tts .custom-select-close-btn svg {
  width: 30px;
  height: 30px;
}
.cs-tts .custom-select-option {
  font-size: 0.92rem;
  min-height: 42px;
  padding: 10px 14px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.72);
  justify-content: flex-start;  /* texte ferré à gauche */
  text-align: left;
  border-radius: 10px;
}
.cs-tts .custom-select-option:last-child {
  margin-bottom: 0;
}
.cs-tts .custom-select-option:hover,
.cs-tts .custom-select-option:active {
  background: rgba(0,255,255,0.10);
  color: #e0e0e0;
}
.cs-tts .custom-select-option.is-selected {
  background: rgba(0,255,255,0.08);
  color: #00ffff;
  font-weight: 600;
}
/* Voix françaises mises en avant */
.cs-tts .custom-select-option.is-highlighted {
  color: #00ffff;
}
.cs-tts .custom-select-option.is-highlighted:hover,
.cs-tts .custom-select-option.is-highlighted:active {
  color: #00ffff;
  background: rgba(0,255,255,0.14);
}

/* Séparateur visuel entre voix FR et les autres */
.cs-tts .custom-select-option:not(.is-highlighted):first-of-type {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4px;
  padding-top: 10px;
}

/* État désactivé du custom select */
.custom-select-wrapper.is-disabled .custom-select-trigger {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── quickNavPanel : triggers plus hauts pour une meilleure accessibilité tactile ── */
#quickNavPanel .custom-select-trigger {
  padding: 0.75rem 0.75rem;
  min-height: 56px;
}

/* ── Font-size pour les dropdowns dans le panneau de nav rapide et la page d'accueil ── */
#quickNavPanel .custom-select-dropdown,
.slide-content .custom-select-dropdown {
  font-size: 1.15rem;
}

#quickNavPanel .custom-select-dropdown .custom-select-option,
.slide-content .custom-select-dropdown .custom-select-option {
  font-size: 1.15rem;
}

#quickNavPanel .custom-select-dropdown .custom-select-optgroup,
.slide-content .custom-select-dropdown .custom-select-optgroup {
  font-size: 0.72rem;
}

/* ── welcome-screen : placeholder à 1.1rem ── */
.welcome-screen .custom-select-label.placeholder {
  font-size: 1.1rem !important;
}
/* ── welcome-screen : custom-select trigger label (valeur sélectionnée) ── */
.welcome-screen .custom-select-trigger {
  font-size: 1.1rem;
}

/* NOTE : les règles .welcome-screen .custom-select-dropdown sont inutiles
   car le JS téléporte le dropdown dans <body> via document.body.appendChild().
   Les tailles sont donc définies directement sur .custom-select-option
   et .custom-select-optgroup ci-dessus (lignes avec ══). */

/* ── Texte des sélecteurs Livre (AT/NT) et Chapitre agrandi ──
   Cible le label visible dans le trigger, sur l'accueil ET dans le
   panneau de navigation (les deux utilisent .book-selector-dual / .book-selector).
   !important pour passer devant le placeholder .welcome-screen et la media query. */
.book-selector-dual .custom-select-label,
.book-selector .custom-select-label,
.book-selector-dual .custom-select-label.placeholder,
.book-selector .custom-select-label.placeholder {
  font-size: 1.25rem !important;
}

/* ── Page d'accueil : custom-select plus compact pour tenir sans scroll ── */
.welcome-screen .custom-select-trigger {
  padding: 0.75rem 0.65rem;
  min-height: 56px;
}
.welcome-screen .book-selector-dual {
  margin-top: 0 !important;
}
.welcome-screen .book-selector {
  margin-top: 8px;
}
.welcome-screen .welcome-menu {
  margin-top: 16px !important;
}
.welcome-screen .bloc-notes-nav-btn {
  margin-top: 16px !important;
  font-size: 1.1rem !important;
  justify-content: space-around;
}
.welcome-screen .bloc-notes-nav-btn svg:first-child {
  width: 28px;
  height: 28px;
}

/* ── welcome-screen : bouton Introduction/Étude/Auteur ── */
.iea-col-label {
  font-size: 1.05rem;
  font-weight: 600;
}


/* Désactive transitions pendant l'init (évite flash au chargement) */
.qnp-no-transition .qnp-collapsible-wrap,
.qnp-no-transition .qnp-collapsible-wrap > * {
  transition: none !important;
}

/* ── Mode compact du quickNavPanel ── */
/* Technique grid 1fr→0fr + opacity : zéro reflow, 100% fluide          */
/* Le margin-top negatif annule le gap:0.85rem du panel flex parent      */

.qnp-collapsible-wrap {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0;
  overflow: hidden;
  transition:
    grid-template-rows 0.35s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity            0.28s cubic-bezier(0.4, 0.0, 0.2, 1),
    margin-top         0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* L'enfant direct doit avoir min-height:0 pour que 0fr colle vraiment à 0 */
.qnp-collapsible-wrap > * {
  min-height: 0;
}

/* Etat compact : réduction grid + masquage */
.quick-nav-panel.is-compact .qnp-collapsible-wrap {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: -0.85rem;
}

/* (Le margin:0 compact a été retiré : il supprimait le margin-top:10px de
   .book-selector et réduisait l'écart avec .book-selector-dual. L'espace
   entre ces deux blocs visibles doit rester identique en mode compact.) */

/* En mode compact, les blocs du bas sont repliés : on réduit le padding-bottom
   du panneau pour rééquilibrer l'espace sous le sélecteur de livre. */
.quick-nav-panel.is-compact {
  padding-bottom: 0.25rem;
}

/* En mode compact, .search-close-row (maison + switchs + fermer) et
   .book-selector-dual (Genèse / Nouveau) se retrouvent trop proches :
   le gap standard de 0.85rem du panel ne suffit plus visuellement une
   fois les blocs du bas repliés, et un doigt peut toucher un des
   éléments du haut par erreur. On ajoute donc une marge supplémentaire
   sous .search-close-row, uniquement en mode compact. */
.quick-nav-panel.is-compact .search-close-row {
  margin-bottom: 0.75rem;
}
/* La marge ci-dessus s'anime avec le reste (sinon elle sautait d'un coup de 12 px :
   petit sursaut de la fenêtre au début du repli / du déploiement). */
.quick-nav-panel .search-close-row {
  transition: margin-bottom 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.qnp-no-transition .search-close-row { transition: none !important; }

/* ── Overlay du menu de navigation rapide ── */
.quick-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999; /* juste en dessous du quickNav (z-index 1000) */
  background: rgba(0, 0, 0, 0.80); /* opaque comme centered-modal-overlay */
}

.quick-nav-overlay.active {
  display: block;
}


/* ════════════════════════════════════════════════════════════
   Bouton « Note de section ou de chapitre » (header modale verset)
   Style net et plat, accordé au thème cyan — remplace l'ancien
   bouton 3D doré qui se confondait avec le fond sombre.
   ════════════════════════════════════════════════════════════ */
/* Bouton « Note de chapitre » — verre bleu profond + cerclage chromé (SVG)
   Texte agrandi, cadre affiné. Hauteur 56px (alignée ZOOM / fermer). */
.note-section-btn {
  display: block;
  height: 56px;
  width: auto;
  flex-shrink: 0;
  transform: translateY(-1px) scale(1.04);
  filter:
    drop-shadow(0 1px 1px rgba(0,0,0,0.55))
    brightness(1.07);
  transition: transform 0.14s ease, filter 0.18s ease;
}
.note-section-btn text {
  letter-spacing: 0.3px;
}
.note-section-btn:active {
  transform: translateY(1px) scale(0.96);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.55)) brightness(0.95);
}

/* ════════════════════════════════════════════════════════════
   ZOOM DU TEXTE DES NOTES — bloc vertical −/+ dans le header
   ════════════════════════════════════════════════════════════ */

/* ── Bloc zoom vertical (− en haut, + en bas) ── */
.vm-zoom-stepper {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;                 /* évite l'espace sous le SVG inline */
  -webkit-tap-highlight-color: transparent;
}
.vm-zoom-stepper__svg { display: block; }
/* Léger retour visuel à l'appui sur une zone (pas d'effet au survol) */
.vm-zoom-stepper__svg g[role="button"] { transition: opacity 0.12s ease; }
.vm-zoom-stepper__svg g[role="button"]:active { opacity: 0.6; }

/* ════════════════════════════════════════════════════════════
   NOUVELLE MISE EN PAGE DES HEADERS DE MODALE
   - Titre « Verset / N » centré sur 2 lignes
   - Bouton bleu métallique « ZOOM » (ouvre la barre A− / 100% / A+)
   - Icône note dorée sans cadre
   ════════════════════════════════════════════════════════════ */

/* (1) Titre du verset : « Verset » puis le chiffre dessous, centré */
.verse-modal-verse-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  font-family: Roboto, system-ui, sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Bouton bleu métallique « ZOOM » */
.vm-zoom-btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.12s ease;
}
.vm-zoom-btn:hover { transform: scale(1.05); }
.vm-zoom-btn:active { transform: scale(0.94); }
.vm-zoom-btn__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* (3) Icône note dorée — sans cadre, juste l'image */
.vm-note-icon-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;          /* ratio du livre (≈600/452) à 56px de haut → remplit la rangée */
  height: 56px;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.12s ease;
}
.vm-note-icon-btn:hover { transform: scale(1.06); }
.vm-note-icon-btn:active { transform: scale(0.94); }
.vm-note-icon-btn__svg { display: block; width: 100%; height: 100%; }

/* (2)/(4) Mini-modale de réglage de la taille du texte */
.vm-zoom-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.vm-zoom-popup-overlay.vm-zoom-popup-visible {
  opacity: 1;
}
.vm-zoom-popup {
  background: #0c1021;
  border: 2px solid #00ffff;
  border-radius: 16px;
  box-shadow: 0 0 32px rgba(0, 255, 255, 0.30);
  padding: 18px;
  width: 100%;
  max-width: 320px;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.vm-zoom-popup-overlay.vm-zoom-popup-visible .vm-zoom-popup {
  transform: translateY(0) scale(1);
}
.vm-zoom-popup-title {
  text-align: center;
  color: #00ffff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  font-family: Roboto, system-ui, sans-serif;
  margin-bottom: 12px;
}
/* La barre A− / 100% / A+ reprend le style existant .zoom-control */
.vm-zoom-popup .zoom-control { margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   MODE DE LECTURE — page de garde
   Nouvelle disposition (plus aérée) :
     1) rangée du sélecteur de chapitre, seul et centré
     2) rangée des 2 boutons verre (toggle exclusif), espacés aux extrémités
     3) texte animé « Lecture Seule » / « Lecture + Option »
   Boutons adaptés (réduits) depuis boutons.html ; IDs SVG suffixés -rm.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Rangée du sélecteur de chapitre (seul, centré, largeur contenue) ── */
.rm-chapter-row{
  display:flex;
  justify-content:center;
  width:100%;
  margin-top:clamp(10px,2.2vh,16px);
}
.rm-chapter-row .rm-chapter{
  width:58%;
  min-width:150px;
  max-width:230px;
  margin:0 !important;
}

/* ── Rangée des 2 boutons verre ── */
.reading-mode-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  margin-top:clamp(14px,3vh,22px);
  /* Marge additionnelle (au-delà du padding de .welcome-screen) pour que le
     halo (box-shadow, jusqu'à ~56px de portée) ne soit pas tronché par le
     overflow:hidden du conteneur .welcome-screen. */
  padding:0 clamp(30px,9vw,50px);
  box-sizing:border-box;
}

/* ── Bouton verre bouteille (toggle) ── */
.rm-toggle{
  flex:0 0 auto;
  width:clamp(58px,16.5vw,70px);
  height:clamp(58px,16.5vw,70px);
  border:0; background:none; padding:0; cursor:pointer;
  border-radius:50%; position:relative; outline:none;
  -webkit-tap-highlight-color:transparent;
  transform:translateY(0) scale(1); filter:brightness(1);
  box-shadow:none;
  transition:transform 140ms cubic-bezier(.2,.8,.3,1.1), filter 140ms, box-shadow 220ms ease;
}
.rm-toggle svg{ width:100%; height:100%; display:block; pointer-events:none; }
.rm-toggle:focus-visible{ box-shadow:0 0 0 3px #00ffff; }
.rm-toggle:active{ transform:scale(.99); }

/* couleurs de halo (lumière diffuse à l'état ACTIF) */
.rm-toggle-green{ --g1:rgba(48,210,130,.50); --g2:rgba(48,210,130,.30); --g3:rgba(48,210,130,.15); }
.rm-toggle-blue { --g1:rgba(70,150,250,.55); --g2:rgba(70,150,250,.32); --g3:rgba(70,150,250,.17); }
.rm-toggle.engaged{ box-shadow:0 0 12px 1px var(--g1), 0 0 26px 6px var(--g2), 0 0 44px 12px var(--g3); }

/* enfoncement du verre + verre éclairé à l'état ACTIF */
.rm-toggle .dome-press{ transform-box:view-box; transform-origin:300px 300px; transition:transform 140ms cubic-bezier(.2,.8,.3,1.1); }
.rm-toggle.engaged .dome-press{ transform:scale(.90); }
.rm-toggle .glow-core{ opacity:0; transition:opacity 220ms ease; }
.rm-toggle.engaged .glow-core{ opacity:1; }
.rm-toggle .rim-lit{ opacity:0; transition:opacity 220ms ease; }
.rm-toggle.engaged .rim-lit{ opacity:1; }

/* rebond gélatine (sortie = ample, enfoncement = léger) */
@keyframes rmGelatine{   from,to{transform:scale(1,1)} 25%{transform:scale(.9,1.1)}  50%{transform:scale(1.1,.9)}  75%{transform:scale(.95,1.05)} }
@keyframes rmGelatineIn{ from,to{transform:scale(1,1)} 25%{transform:scale(.93,1.07)} 50%{transform:scale(1.06,.94)} 75%{transform:scale(.97,1.03)} }
.rm-toggle .dome-wobble{ transform-box:view-box; transform-origin:300px 300px; }
.rm-toggle.pop    .dome-wobble{ animation:rmGelatine   .5s ease; }
.rm-toggle.pop-in .dome-wobble{ animation:rmGelatineIn .5s ease; }

/* ── Texte animé Lecture Seule / Lecture + Option ── */
.reading-mode-label{
  width:100%;
  display:flex; align-items:center; justify-content:center;
  min-height:clamp(34px,6vh,50px);
  margin-top:clamp(4px,1.2vh,10px);
}
.rm-anim-text{
  margin:0;
  font-family:'Space Grotesk','Roboto',system-ui,sans-serif;
  font-weight:700;
  font-size:clamp(1.3rem,6.2vw,2rem);
  letter-spacing:.01em;
  line-height:1.05;
  color:#E8EAF0;
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  text-shadow:0 1px 10px rgba(0,0,0,.45);
}
.rm-anim-text .rm-char{ display:inline-block; white-space:pre; }

/* ── Le "+" de "Lecture + Option" : plus grand et d'une couleur qui
   décroche, pour signaler visuellement qu'il s'agit d'une option EN PLUS ── */
.rm-anim-text .rm-char-plus{
  font-size:1.55em;
  font-weight:900;
  color:#fc9a46;
  padding:0 .03em;
}

@media (prefers-reduced-motion: reduce){
  .verse::before, .verse::after{ transition-duration:0.01s; }
  .rm-anim-text .rm-char{ animation:none !important; opacity:1 !important; }
  .rm-toggle .dome-press,
  .rm-toggle .glow-core,
  .rm-toggle .rim-lit{ transition:none; }
}

/* ═══════════════════════════════════════════════════════════
   MODALE "PARTAGER VERSET(S)" — bottom sheet façon appli vidéo
   ═══════════════════════════════════════════════════════════ */
.share-verse-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.share-verse-overlay.svo-visible { opacity: 1; }

.share-verse-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #0c1021;
  border: 1.5px solid rgba(0, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(0,255,255,0.12),
              0 8px 40px rgba(0,0,0,0.55),
              0 0 44px rgba(0,255,255,0.22);
  padding: 10px 18px 20px 18px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34, 1.15, 0.4, 1);
  touch-action: none;
}
.share-verse-overlay.svo-visible .share-verse-panel {
  transform: translateY(0) scale(1);
}
.share-verse-panel.svp-dragging { transition: none; }

.svp-handle {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.28);
  margin: 4px auto 14px auto;
}

.svp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-right: 40px;
}

.svp-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.10);
  border: 1.5px solid rgba(0, 255, 255, 0.45);
  color: #00ffff;
  box-shadow: 0 0 14px rgba(0,255,255,0.25);
}
.svp-icon svg { width: 22px; height: 22px; }

.svp-title {
  flex: 1;
  font-family: 'Literata', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #eaf6ff;
  letter-spacing: 0.01em;
}

.svp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #8fe9f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  transition: transform 0.15s;
}
.svp-close:hover { transform: scale(1.05); }
.svp-close:active { transform: scale(0.9); }
.svp-close svg { width: 44px; height: 44px; overflow: visible; }

.svp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.svp-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  font-family: Roboto, system-ui, sans-serif;
}

.svp-option-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.svp-option:active .svp-option-circle { transform: scale(0.92); }
.svp-option-circle svg { width: 24px; height: 24px; }

.svp-option-whatsapp .svp-option-circle {
  background: radial-gradient(circle at 35% 30%, #3fe07a, #17a24a 70%);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.45);
}
.svp-option-copy .svp-option-circle {
  background: radial-gradient(circle at 35% 30%, #2fe3e3, #0c8f9a 70%);
  box-shadow: 0 0 16px rgba(0, 210, 210, 0.45);
}
.svp-option-sms .svp-option-circle {
  background: radial-gradient(circle at 35% 30%, #4d9bff, #1c5fd6 70%);
  box-shadow: 0 0 16px rgba(45, 110, 255, 0.45);
}
.svp-option-email .svp-option-circle {
  background: radial-gradient(circle at 35% 30%, #ffb347, #e8862a 70%);
  box-shadow: 0 0 16px rgba(255, 150, 40, 0.45);
}

.svp-option-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cdd8e6;
}

.svp-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 255, 255, 0.45);
  background: rgba(0, 255, 255, 0.06);
  color: #00ffff;
  font-family: Roboto, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  transition: background 0.18s;
}
.svp-more:hover { background: rgba(0,255,255,0.12); }
.svp-more:active { transform: scale(0.98); }
.svp-more svg { width: 19px; height: 19px; flex-shrink: 0; }
.svp-more[hidden] { display: none; }

/* ════════════════════════════════════════════════════════════
   MODE PAYSAGE (SMARTPHONE) — lecture confortable en rotation
   ════════════════════════════════════════════════════════════
   Cible : téléphone en paysage (largeur ample, hauteur réduite),
   PAS les tablettes en paysage (qui gardent une hauteur > 500px).
   Sans ce filtre sur la hauteur, un iPad en paysage matcherait
   aussi "orientation: landscape" et hériterait de ces styles.

   Contenu (3 sous-sections) :
     1. Lecteur de versets (.slide-content / .chapter-title / .verses)
     2. Panneau de navigation rapide (#quickNavPanel)
     3. Écran d'accueil (.welcome-screen)
   ════════════════════════════════════════════════════════════ */
@media (orientation: landscape) and (max-height: 500px) {

  /* ── 1. LECTEUR DE VERSETS ──────────────────────────────────
     Colonne unique, resserrée et centrée (marges de chaque côté)
     pour éviter les lignes de lecture trop larges. Barre de titre
     très compacte pour rendre un maximum de hauteur utile. */
  .slide-content {
    padding: 0.5rem 1rem;
  }

  .chapter-title {
    font-size: 1.15rem;
    padding: 0.5rem 0.9rem 0.45rem;
    margin-bottom: 0;
  }

  .verses {
    max-width: 62%;
    margin: 0 auto;
    padding: 0.6rem 0 1rem;
  }

  .verse {
    padding: 0.15rem 0;
    margin-bottom: 0.35rem;
  }

  .verse-number {
    font-size: 1.05rem;
  }

  .verse-text {
    font-size: 1.05rem;
    line-height: 1.48;
  }

  .quick-nav {
    top: 0.6rem;
    right: 0.6rem;
  }

  .btn svg {
    width: 34px;
    height: 34px;
  }

  .position-indicator {
    bottom: 0.6rem;
    padding: 0.4rem 1rem;
  }

  .position-indicator span {
    font-size: 0.78rem;
  }

  /* ── 2. PANNEAU DE NAVIGATION RAPIDE (#quickNavPanel) ───────
     La modale s'élargit pour exploiter la largeur disponible ;
     son contenu passe en "flex-wrap" sur 2 colonnes pour réduire
     la hauteur totale. On reste en display:flex (comme en portrait)
     pour ne pas casser l'astuce grid 1fr/0fr du mode compact
     (.qnp-collapsible-wrap), qui compte sur un parent flex+gap.
     Cibles tactiles remontées à 40px mini. */
  .quick-nav-panel {
    width: 92%;
    max-width: 640px;
    padding: 0.85rem 1.1rem;
    max-height: 94vh;
    gap: 0.55rem;
  }

  .quick-nav-panel-inner {
    max-height: calc(94vh - 1.8rem);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem;
    /* Centre les éléments quand ils n'occupent pas toute la largeur d'une
       ligne — notamment le sélecteur de chapitre, seul sur sa ligne en
       mode compact (is-compact), qui restait sinon collé à gauche. */
    justify-content: center;
  }

  /* Éléments qui restent sur toute la largeur */
  .quick-nav-panel-inner > .search-close-row,
  .quick-nav-panel-inner > .book-selector-dual,
  .quick-nav-panel-inner > .book-selector,
  .quick-nav-panel-inner > .qnp-collapsible-wrap:has(#openBlocNotesBtn) {
    flex: 1 1 100%;
  }

  /* Éléments qui se répartissent 2 par ligne */
  .quick-nav-panel-inner > .qnp-collapsible-wrap:not(:has(#openBlocNotesBtn)) {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 0;
  }

  .quick-nav-panel h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
  }

  .quick-nav-panel .chapter-indicator {
    padding: 0.6rem;
    margin-bottom: 0.6rem;
  }

  /* Cibles tactiles ≥ 40px (sélecteurs, boutons, bouton fermer) */
  .quick-nav-panel .book-select,
  .quick-nav-panel > button,
  .quick-nav-panel input,
  #gotoBookBtnHome,
  .bloc-notes-nav-btn,
  .tts-chapter-nav-btn,
  .tts-verse-picker-btn,
  .tts-book-nav-btn,
  .zoom-btn {
    min-height: 40px;
  }

  .quick-nav-close {
    width: 40px;
    height: 40px;
  }

  /* ── 3. ÉCRAN D'ACCUEIL (.welcome-screen) ───────────────────
     Grille 2 colonnes × 4 lignes :
       L1 : titre (col 1, centré)         | icône recherche (col 2)
       L2 : sélecteur livres (col 1)      | boutons Lecture Seule/Options (col 2)
       L3 : sélecteur chapitre (col 1)    | libellé du mode (col 2, sur SA
                                             propre ligne — c'est ce qui
                                             évite tout chevauchement avec
                                             les boutons ronds)
       L4 : bouton Bloc-Notes (col 1)     | bouton Sommaire (col 2)
     Le premier <div> (titre + icône recherche) passe en display:contents :
     il "disparaît" de la mise en page sans toucher au HTML, et ses deux
     enfants (h1.main-title et #bsearchIconHome) se placent alors
     directement dans la grille, chacun dans sa propre cellule. */
  .welcome-screen {
    display: grid !important; /* !important nécessaire : bat le style inline
      "display:flex" posé sur .welcome-screen dans index.html, qui a une
      spécificité plus forte que n'importe quelle règle de feuille externe */
    grid-template-columns: 1fr 1fr;
    /* 6 lignes : titre/boutons ronds collés en haut (L1-L2), un espace
       flexible (L3), chapitre/libellé centré dans cet espace (L4), un
       second espace flexible (L5) qui repousse Bloc-Notes/Sommaire tout
       en bas (L6). Les deux espaces flexibles égaux (1fr chacun) centrent
       naturellement ce qui se trouve entre les deux. */
    grid-template-rows: auto auto 1fr auto 1fr auto;
    column-gap: clamp(16px, 3vw, 32px);
    row-gap: clamp(6px, 1.5vh, 14px);
    max-width: 680px;
    height: 100%;
    padding: 0.5rem 1.2rem;
    align-items: center;
  }

  .welcome-screen > div:first-child { display: contents; }

  .welcome-screen .main-title {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    align-self: start; /* haut du titre calé sur le haut de la loupe */
    font-size: 2rem;
  }

  .welcome-screen #bsearchIconHome {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start; /* même haut que le titre */
  }

  .welcome-screen .book-selector-dual { grid-column: 1; grid-row: 2; }
  .welcome-screen .rm-chapter-row     { grid-column: 1; grid-row: 4; margin-top: 0; }

  .welcome-screen .reading-mode-row {
    grid-column: 2;
    grid-row: 2;
    padding: 0;
    margin-top: 0;
    /* La colonne de droite est large en paysage : justify-content:
       space-between (hérité, pensé pour une colonne étroite en portrait)
       écarterait les deux boutons jusqu'aux bords. On les garde proches
       l'un de l'autre, centrés, comme sur la maquette. */
    justify-content: center;
    gap: clamp(24px, 8vw, 56px);
  }
  /* Boutons ronds resserrés : la taille de base (clamp jusqu'à 70px) est
     calibrée pour la largeur d'un écran en portrait — en paysage, la
     largeur d'écran est bien plus grande et faisait grimper les boutons
     à leur taille maximale, écrasante ici. */
  .welcome-screen .rm-toggle {
    width: 46px;
    height: 46px;
  }

  .welcome-screen .reading-mode-label {
    grid-column: 2;
    grid-row: 4;
    margin-top: 0;
    font-size: 0.95rem;
  }

  /* CORRECTIF : #openSommaireBtn et #openBlocNotesBtn sont chacun nichés
     dans un <div style="width:100%;"> dans le HTML — ce sont CES <div>,
     pas les boutons eux-mêmes, qui sont les véritables enfants directs de
     la grille. Cibler le bouton n'avait donc aucun effet sur sa position ;
     :has() cible le bon élément englobant. */
  .welcome-screen > div:has(#openBlocNotesBtn) { grid-column: 1; grid-row: 6; }
  .welcome-screen > div:has(#openSommaireBtn)  { grid-column: 2; grid-row: 6; }
  .welcome-screen .navigation-hint    { display: none; } /* pas la place en paysage court ; l'indice de balayage n'est pas essentiel ici */

  /* Cibles tactiles ≥ 40px sur l'accueil */
  .welcome-screen .book-select,
  #openSommaireBtn,
  #openBlocNotesBtn {
    min-height: 40px;
  }

  /* ── 4. MODALES CENTRÉES GÉNÉRIQUES (Options du verset, Bloc-Notes,
     TTS, sélection de versets…) ───────────────────────────────
     .centered-modal-panel a un overflow:hidden fixe en portrait, ce qui
     coupe net le bas du contenu (ex. la rangée d'icônes sous "Annotation")
     dès que la hauteur d'écran devient trop courte. On transforme le
     panneau lui-même en zone de scroll et on fixe son en-tête (cmp-header)
     en haut pendant le défilement, pour rester utilisable sans perdre le
     titre/bouton fermer. Réduction de quelques paddings pour limiter le
     scroll nécessaire. */
  .centered-modal-panel {
    max-height: 94vh !important;
    overflow-y: auto !important;
    /* -webkit-overflow-scrolling: touch retiré : cette propriété crée une
       couche de rendu figée sur certains WebView Android, qui ne se
       redessine pas quand son contenu change (repli/déploiement du bouton
       Annotation) — seule une rotation d'écran forçait le rafraîchissement.
       Le scroll natif Android reste fluide sans cette propriété. */
    overscroll-behavior: contain;
  }

  .centered-modal-panel .cmp-header {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  /* ── Correctif scroll : neutralise le rendu 3D du bouton "Annotation" ──
     .opt-btn-note utilise rotateX/rotateY + transform-style:preserve-3d
     pour son effet d'inclinaison. Sur certains WebView Android d'entrée
     de gamme, un descendant en vrai rendu 3D à l'intérieur d'une zone de
     scroll tactile (.centered-modal-panel) peut casser le compositing de
     cette zone dès que sa visibilité change — précisément ce qui arrive
     à chaque bascule du switch "Mode lecture rapide" (le bouton passe
     caché ↔ visible). On garde l'esthétique 3D en portrait (où la modale
     n'a jamais besoin de scroller) et on la désactive seulement ici. */
  .opt-btn-note {
    transform: none !important;
    transform-style: flat !important;
  }
  .opt-btn-note:active {
    transform: scale(0.97) !important;
  }
}

/* ════════════════════════════════════════════════════════════
   CHOIX DE SAUVEGARDE DEPUIS LE TITRE DE CHAPITRE
   ════════════════════════════════════════════════════════════
   Clic sur le titre de chapitre (h2.chapter-title span) → deux cartes :
   "Titre Seulement" (cyan) et "Titre + Chapitre" (or), en colonne en
   portrait, côte à côte en paysage. Entrée "gelatine" décalée de 0,5 s
   entre les deux cartes (voir _openChapterSaveChoiceModal dans script.js).
   ════════════════════════════════════════════════════════════ */

.ct-choice-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}
@media (orientation: landscape) {
  .ct-choice-wrap {
    flex-direction: row;
    align-items: stretch;
  }
}

/* 4 cartes : grille 2 × 2 en portrait (Bloc-Notes en haut, recherche
   en bas), une seule rangée en paysage. */
.ct-choice-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0.9rem;
  width: min(92vw, 400px);
}
.ct-choice-wrap .ct-choice-card {
  max-width: none;
  padding: 1.15rem 0.6rem;
}
@media (orientation: landscape) {
  .ct-choice-wrap {
    grid-template-columns: repeat(4, 1fr);
    width: min(96vw, 820px);
  }
}

.ct-choice-card {
  background: linear-gradient(160deg, #131a33 0%, #05070f 100%);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: Roboto, system-ui, sans-serif;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transform: scale(0.25);
  transition: box-shadow 0.2s ease;
}

/* Entrée "gelatine" : léger effet de rebond élastique façon gélatine,
   cohérent avec les boutons "glass-bottle" de l'écran d'accueil. */
.ct-choice-card.ct-pop-in {
  animation: ctGelatinePop 0.5s cubic-bezier(0.36, 1.65, 0.4, 1) forwards;
}
.ct-choice-card.ct-pop-out {
  animation: ctPopOut 0.22s ease forwards;
}
@keyframes ctGelatinePop {
  0%   { opacity: 0; transform: scale(0.25, 0.25); }
  45%  { opacity: 1; transform: scale(1.12, 0.88); }
  65%  { opacity: 1; transform: scale(0.94, 1.07); }
  82%  { opacity: 1; transform: scale(1.03, 0.98); }
  100% { opacity: 1; transform: scale(1, 1); }
}
@keyframes ctPopOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-choice-card.ct-pop-in,
  .ct-choice-card.ct-pop-out { animation: none; opacity: 1; transform: scale(1); }
}

.ct-choice-title-only {
  border: 1.5px solid #00ffff;
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.25);
}
.ct-choice-title-only:active {
  box-shadow: 0 0 36px rgba(0, 255, 255, 0.45);
}
.ct-choice-title-chapter {
  border: 1.5px solid #e7bb3f;
  box-shadow: 0 0 26px rgba(231, 187, 63, 0.25);
}
.ct-choice-title-chapter:active {
  box-shadow: 0 0 36px rgba(231, 187, 63, 0.45);
}

.ct-choice-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.ct-choice-title-only .ct-choice-icon    { color: #00ffff; }
.ct-choice-title-chapter .ct-choice-icon { color: #e7bb3f; }

.ct-choice-label {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.ct-choice-title-only .ct-choice-label    { color: #7dffff; }
.ct-choice-title-chapter .ct-choice-label { color: #f5d888; }

/* 3ᵉ carte : recherche limitée au chapitre en cours (corail, couleur du
   manche de la loupe). La loupe a un viewBox avec marge : un peu plus
   grande que les autres icônes pour un rendu visuel équivalent. */
.ct-choice-search {
  border: 1.5px solid #f07055;
  box-shadow: 0 0 26px rgba(240, 112, 85, 0.25);
}
.ct-choice-search:active {
  box-shadow: 0 0 36px rgba(240, 112, 85, 0.45);
}
.ct-choice-search .ct-choice-loupe { width: 58px; height: 58px; margin: -9px 0; }
.ct-choice-search .ct-choice-label { color: #ffb4a0; }

/* Carte « Dans le livre » : violet, pour la distinguer de « Dans le chapitre » */
.ct-choice-search.ct-choice-search-book {
  border-color: #b48cff;
  box-shadow: 0 0 26px rgba(180, 140, 255, 0.25);
}
.ct-choice-search.ct-choice-search-book:active {
  box-shadow: 0 0 36px rgba(180, 140, 255, 0.45);
}
.ct-choice-search-book .ct-choice-label { color: #d9c4ff; }

.ct-choice-ref {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Le titre de chapitre lui-même : repère visuel qu'il est cliquable —
   uniquement en mode "Lecture + Options" (voir body.verse-modal-disabled,
   présent en "Lecture Seule", où l'action est désactivée). */
body:not(.verse-modal-disabled) .chapter-title span {
  cursor: pointer;
}

/* Lecture seule : appui long sur le titre (voir createChapterSlide dans
   script.js). Pas de sélection de texte ni de menu natif ; le titre
   s'atténue légèrement pendant l'appui. */
body.verse-modal-disabled .chapter-title span {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease;
}
.chapter-title span.ct-longpress { opacity: 0.6; }
.chapter-title span.ct-long { font-size: .9em; }   /* « Cantique des Can(s) - 1 », « 2 Thessaloniciens - 3 »… */

/* ============================================
   BLOC-NOTES : icônes « Notes » et « Résumé » de l'en-tête
   + fenêtres « Mes notes » et « Résumé »
   ============================================ */
.bn-head-tool {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 3px 7px 2px;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  line-height: 1;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.bn-head-tool svg { width: 28px; height: 28px; display: block; }
.bn-head-tool:active { transform: scale(0.94); }
.bn-head-tool:focus-visible { outline: 2px solid #00ffff; outline-offset: 2px; }
.bn-head-tool-label {
  font-family: Roboto, system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bn-head-notes   { border-color: rgba(232, 196, 106, 0.45); }
.bn-head-notes   .bn-head-tool-label { color: #e8c46a; }
.bn-head-summary { border-color: rgba(55, 240, 101, 0.45); }
.bn-head-summary .bn-head-tool-label { color: #37f065; }

/* Fenêtre « Mes notes » */
.mn-panel {
  border-color: #e8c46a;
  box-shadow: 0 0 40px rgba(232, 196, 106, 0.22);
  max-width: 480px;
  height: min(600px, 88%);
  max-height: none;
}
.mn-title, .mns-title { gap: 10px; }
.mn-title { color: #e8c46a; }
.mns-title { color: #37f065; }
.mn-title svg, .mns-title svg { width: 26px; height: 26px; flex-shrink: 0; }
.mn-body { flex: 1; min-height: 0; display: flex; padding: 0; }
.mn-textarea {
  flex: 1;
  width: 100%;
  resize: none;
  border: none;
  outline: none;
  background: #111;
  color: #e9eef5;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  padding: 14px 16px;
  /* Écriture et sélection autorisées (la modale les bloque partout ailleurs) */
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}
.mn-textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.mn-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #111;
  border-top: 1px solid rgba(0, 255, 255, 0.25);
  flex-shrink: 0;
}
.mn-status {
  font-family: Roboto, system-ui, sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  flex-shrink: 0;
}
.mn-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.mn-btn:active { transform: scale(0.97); }
.mn-btn-summary { border-color: rgba(55, 240, 101, 0.5); color: #37f065; }
.mn-btn-edit    { border-color: rgba(232, 196, 106, 0.5); color: #e8c46a; }
.mn-btn-share   { border-color: rgba(0, 255, 255, 0.5); color: #00ffff; }

/* Fenêtre « Résumé » */
.mns-panel { max-width: 480px; max-height: 88%; }
.mns-panel { border-color: #37f065; box-shadow: 0 0 40px rgba(55, 240, 101, 0.25); }
.mns-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.mns-sheet {
  background: linear-gradient(180deg, rgba(12, 16, 33, 0.95), rgba(12, 16, 33, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px 16px;
  font-family: Roboto, system-ui, sans-serif;
  color: #e9eef5;
}
.mns-sheet-head {
  border-bottom: 1px solid rgba(232, 196, 106, 0.35);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.mns-sheet-title { font-size: 1.15rem; font-weight: 700; color: #e8c46a; }
.mns-sheet-meta  { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }
.mns-content { font-size: 0.98rem; line-height: 1.6; overflow-wrap: anywhere; }
.mns-content p { margin: 0 0 0.7em; }
.mns-content h3 {
  margin: 1em 0 0.4em;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8c46a;
}
.mns-content h3:first-child { margin-top: 0; }
.mns-content ul, .mns-content ol { margin: 0 0 0.7em; padding-left: 1.3em; }
.mns-content li { margin: 0.2em 0; }
.mns-content ul li::marker { color: #00ffff; }
.mns-content ol li::marker { color: #00ffff; font-weight: 700; }
.mns-ref { color: #00ffff; font-weight: 600; white-space: nowrap; }
.mns-empty p { margin: 0.3em 0; }
.mns-footer { justify-content: flex-end; }

/* Résumé du Bloc-Notes : chiffres clés, vue d'ensemble, détail des fiches */
.mns-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.mns-stats span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2px 9px;
}
.mns-stats b { color: #00ffff; }
.mns-overview { list-style: none; padding: 0 !important; margin: 0 0 0.6em; }
.mns-overview li { margin: 0 0 6px; }
.mns-ov-row, .mns-item-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  text-align: left;
}
.mns-ov-row { cursor: pointer; -webkit-appearance: none; -webkit-tap-highlight-color: transparent; outline: none; }
.mns-ov-row:active { background: rgba(0, 255, 255, 0.14); }
.mns-num {
  flex-shrink: 0;
  min-width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(232, 196, 106, 0.18);
  border: 1px solid rgba(232, 196, 106, 0.6);
  color: #e8c46a;
  font-size: 0.75rem; font-weight: 700;
}
.mns-item-ref { font-weight: 700; color: #00ffff; white-space: nowrap; }
.mns-chip { flex: 1; min-width: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.mns-go { flex-shrink: 0; color: #00ffff; opacity: 0.8; }
.mns-item { margin: 0 0 1em; }
.mns-item-head { margin-bottom: 6px; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.12); }
.mns-verse { margin: 0 0 0.45em; font-size: calc(0.95rem * var(--ref-z, 1)); line-height: 1.55; }
.mns-vnum { color: #00ffff; font-weight: 700; margin-right: 6px; font-size: 0.85em; }
.mns-note { margin: 0; font-size: 0.88rem; font-style: italic; color: rgba(255, 255, 255, 0.55); }
.mns-toggle {
  background: none;
  border: 1px dashed rgba(0, 255, 255, 0.45);
  border-radius: 8px;
  color: #00ffff;
  font: inherit;
  font-size: 0.85rem;
  padding: 5px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ============================================
   EN-TÊTE DU BLOC-NOTES : 5 éléments alignés
   compteur · Notes · Résumé · poubelle · fermer
   ============================================ */
.bloc-notes-panel .cmp-header {
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
/* Le bloc titre s'efface : compteur, Notes et Résumé deviennent des
   éléments directs de l'en-tête, répartis comme la poubelle et la croix */
.bloc-notes-panel .cmp-header > .cmp-title { display: contents; }
.bloc-notes-panel .cmp-header > *,
.bloc-notes-panel .cmp-header > .cmp-title > * {
  flex: 0 0 auto;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
/* Le compteur garde sa taille d'origine, centré dans sa case */
.bloc-notes-panel .cmp-header > .cmp-title > .bn-title-count { height: auto; }
/* Notes et Résumé sans cadre */
.bloc-notes-panel .bn-head-tool {
  flex-direction: column;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 2px;
  gap: 2px;
}
.bloc-notes-panel .bn-head-tool svg { width: 30px; height: 30px; }
/* Poubelle : même hauteur de case que les autres */
.bloc-notes-panel .bn-trash-btn { padding: 0 4px !important; }

/* ============================================
   « MES NOTES » : barre de mise en forme + éditeur riche
   ============================================ */
.mn-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: #151515;
  border-bottom: 1px solid rgba(232, 196, 106, 0.25);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.mn-toolbar::-webkit-scrollbar { display: none; }
.mn-tool {
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #dce3ee;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mn-tool-wide { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; }
.mn-tool.is-on {
  background: rgba(232, 196, 106, 0.2);
  border-color: #e8c46a;
  color: #e8c46a;
}
.mn-tool:active { transform: scale(0.94); }
.mn-tool-sep { flex: 0 0 auto; width: 1px; height: 24px; background: rgba(255, 255, 255, 0.18); margin: 0 2px; }
.mn-color-bar {
  position: absolute;
  left: 7px; right: 7px; bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: #e9eef5;
}
.mn-tool-color svg { margin-top: -4px; }
.mn-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  background: #151515;
  border-bottom: 1px solid rgba(232, 196, 106, 0.25);
  flex-shrink: 0;
}
.mn-palette[hidden] { display: none; }
.mn-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: var(--sw);
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  padding: 0;
}
.mn-swatch:not(.mn-swatch-hl):first-of-type { background: #111; border-color: #e9eef5; position: relative; }
.mn-swatch:not(.mn-swatch-hl):first-of-type::after { content: "A"; color: #e9eef5; font: 700 0.85rem Roboto, system-ui, sans-serif; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mn-swatch:active { transform: scale(0.9); }

.mn-editor {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  outline: none;
  background: #111;
  color: #e9eef5;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}
.mn-editor * { -webkit-user-select: text !important; user-select: text !important; }
.mn-editor { position: relative; }
.mn-editor.is-empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  position: absolute;
  left: 16px; right: 16px; top: 14px;
}
.mn-editor h3 {
  margin: 0.6em 0 0.3em;
  font-size: 1.15em;
  font-weight: 700;
  color: #e8c46a;
}
.mn-editor h3:first-child { margin-top: 0; }
.mn-editor ul, .mn-editor ol { margin: 0.3em 0; padding-left: 1.4em; }
.mn-editor li::marker { color: #00ffff; }

/* « Mes notes » : bouton Partager (grisé tant qu'il n'y a rien à partager) */
.mn-btn:disabled { opacity: 0.35; pointer-events: none; }

/* ============================================
   « MES NOTES » : icône Mise en forme (en-tête) + panneau déroulant
   ============================================ */
.mn-panel .cmp-header { gap: 8px; }
/* Centrée entre « Mes notes » et la croix : l'en-tête répartit ses trois
   éléments en space-between (plus de marge automatique à gauche) */
.mn-panel .cmp-header { justify-content: space-between; }
.mn-format-toggle {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 6px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  border-radius: 10px;
  transition: background 0.2s;
}
.mn-format-toggle:active { transform: scale(0.94); }
.mn-format-toggle:focus-visible { outline: 2px solid #00ffff; outline-offset: 2px; }
.mn-format-toggle.is-open { background: rgba(232, 196, 106, 0.12); }
.mn-format-chevron { transition: transform 0.25s ease; }
.mn-format-toggle.is-open .mn-format-chevron { transform: rotate(180deg); }

.mn-panel-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: #151515;
  border-bottom: 1px solid rgba(232, 196, 106, 0.3);
  flex-shrink: 0;
  max-height: 45%;
  overflow-y: auto;
  animation: mnPanelIn 0.22s ease-out;
}
.mn-panel-tools[hidden] { display: none; }
@keyframes mnPanelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mn-panel-tools { animation: none; } }
.mn-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mn-row-label {
  flex: 0 0 64px;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.mn-row-swatches .mn-swatch { width: 28px; height: 28px; }
/* Pastille « aucun surlignage » : barrée */
.mn-swatch-hl:first-of-type {
  background: #111 linear-gradient(135deg, transparent 45%, #ff6b6b 45%, #ff6b6b 55%, transparent 55%);
  border-color: rgba(255, 255, 255, 0.4);
}
.mn-swatch-hl:first-of-type::after { content: none; }
/* « Vider » : rouge, puis demande de confirmation */
.mn-tool-clear {
  margin-left: auto;
  gap: 5px;
  padding: 0 9px;
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
}
.mn-tool-clear.is-armed {
  background: #c92a1d;
  border-color: #ff3b30;
  color: #fff;
}

/* Bouton « Réinitialiser » centré entre « Tx » et « Vider » :
   deux marges automatiques se partagent l'espace libre à parts égales */
.mn-tool-reset { margin-left: auto; color: #e8c46a; border-color: rgba(232, 196, 106, 0.45); }

/* Messages d'état sur deux lignes si besoin (« … · « Annuler » pour revenir ») */
.mn-panel .mn-status { white-space: normal; line-height: 1.3; overflow: visible; text-overflow: clip; }

/* ════════════════════════════════════════════════════════════════════════
   MES NOTES — bouton ZOOM (taille du texte écrit), au bout de la 1re rangée
   ════════════════════════════════════════════════════════════════════════ */
.mn-panel-tools .mn-zoom-btn {
  width: 38px;
  height: 38px;
  margin-left: auto;          /* calé à droite, comme « Vider » en dessous */
  margin-top: -2px;
  margin-bottom: -2px;
}
/* La mini-modale se place en haut (sur la barre d'outils) : le texte des
   notes reste visible dessous pour voir l'effet en direct */
.mn-zoom-popup-overlay {
  align-items: flex-start;
  padding-top: 104px;
  background: rgba(0, 0, 0, 0.30);
}

/* Rangée des couleurs (sans libellé) : pastilles réparties sur toute la largeur */
.mn-panel-tools .mn-row-swatches { justify-content: space-between; gap: 4px; }
.mn-panel-tools .mn-row-swatches .mn-swatch { width: 32px; height: 32px; }

/* ════════════════════════════════════════════════════════════════════════
   BARRES DE DÉFILEMENT — STYLE COMMUN À TOUTE L'APPLICATION
   Fine barre cyan arrondie, sans flèches, au lieu de la barre blanche/grise
   du système. S'applique automatiquement à TOUTE zone qui défile (fenêtres,
   listes, éditeur, résumé, recherche…), y compris celles créées plus tard.
   Les barres qui ont déjà leur propre style (lecture du chapitre, menu…)
   le gardent : leurs règles sont plus précises et passent devant.
   ════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-button {
  display: none;            /* pas de flèches haut / bas */
  width: 0;
  height: 0;
}
::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.05);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.35);
  border-radius: 6px;
  min-height: 28px;
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: rgba(0, 255, 255, 0.6);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Fenêtres arrondies (Mes notes, Résumé, Bloc-Notes, Options…) : quand la
   fenêtre entière défile, sa barre ne touche pas les coins arrondis */
.centered-modal-panel::-webkit-scrollbar-track,
.verse-modal::-webkit-scrollbar-track { margin: 14px 0; }

/* Firefox (qui ignore ::-webkit-scrollbar). Réservé à Firefox : dans Chrome,
   ces propriétés désactiveraient le style arrondi ci-dessus. */
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.35) transparent;
  }
}

/* Retour à la ligne après un interlocuteur (« Salomon : ») — Cantique */
.verse-text, .verse-modal-versetext { white-space: pre-line; }

/* ── Tableaux dans les notes (Nombres 1, Esdras 2, 1 Chroniques 6…) ──
   Enveloppe ajoutée par le convertisseur : le style du tableau lui-même
   reste celui de .verse-modal-body table ; l'enveloppe permet seulement
   le défilement horizontal si un tableau est trop large pour l'écran. */
.note-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.7em 0;
}
.note-table::-webkit-scrollbar { height: 5px; }

/* ══════════════════════════════════════════
   RÉFÉRENCES CLIQUABLES (<code>) — refModal.js
   ══════════════════════════════════════════ */
.verse-modal-body code {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.verse-modal-body code:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 3px rgba(0,255,255,0.45);
}
.verse-modal-body code.ref-nope { animation: refNope .35s ease; }
@keyframes refNope {
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.ref-modal { max-height: 80vh; }
.ref-modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 10px 16px;
  border-bottom: 1px solid rgba(0,255,255,0.25);
  background: linear-gradient(180deg, rgba(0,255,255,0.06), transparent);
}
.ref-modal-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ref-modal-kicker {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(0,255,255,0.7); font-weight: 600;
}
.ref-modal-code {
  align-self: flex-start; max-width: 100%;
  font-weight: 700; font-size: .95rem; line-height: 1.3;
  background: #FFF168; color: #000; padding: 2px 8px; border-radius: 3px;
  overflow-wrap: anywhere;
}
/* Bouton fermer animé — Double anneau (Turquoise), version adoucie :
   bouton visuellement plus petit (zone tactile gardée à 44px), anneaux
   plus fins et plus transparents, rotation plus lente. */
.xbtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;padding:0;background:none;cursor:pointer;position:relative;border-radius:50%;-webkit-tap-highlight-color:transparent}
.xbtn svg{display:block;width:34px;height:34px;overflow:visible}
.xbtn:active{transform:scale(.9)}
.xa-double .d1 circle,.xa-double .d2 circle{fill:none;stroke:var(--xc);stroke-width:1.2;stroke-linecap:round}
.xa-double .d1 circle{stroke-dasharray:38 37.4;opacity:.5}
.xa-double .d2 circle{stroke-dasharray:20 22.4;opacity:.25}
.xa-double .d1,.xa-double .d2{transform-origin:22px 22px}
.xa-double .d1{animation:xRot 7s linear infinite}
.xa-double .d2{animation:xRot 10s linear infinite reverse}
@keyframes xRot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.xbtn,.xbtn *,.xbtn::before,.xbtn::after{animation:none!important}}
.ref-modal-close { flex-shrink: 0; margin: 2px 4px 2px 0; }
/* ZOOM des fenêtres de référence : SEULE la note (zone orange) grandit ;
   le titre du passage, « Lire › », le verset et « Masquer » gardent leur taille. */
.ref-modal-head .vm-zoom-btn.ref-zoom { width: 44px; height: 44px; }
.ref-modal-scroll .ref-note-body,
.ref-modal-scroll .ref-fallback,
.ref-modal-scroll .dl-pop-body { zoom: var(--ref-z, 1); }

.ref-modal-scroll { padding: 6px 14px 18px; }
.ref-group { padding: 10px 0 6px; }
.ref-group + .ref-group { border-top: 1px dashed rgba(0,255,255,0.18); }
.ref-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 6px;
}
.ref-group-label { color: #ffd700; font-weight: 700; font-size: 1.02rem; }
.ref-go {
  flex-shrink: 0; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.6); background: rgba(255,215,0,0.08);
  color: #ffd700; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.ref-go:active { transform: scale(0.95); }

.ref-verse {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 0; font-size: 1.08rem; line-height: 1.6; color: #fff;
}
.ref-vnum { color: #00ffff; font-weight: 700; min-width: 1.4em; text-align: right; }
.ref-vtext { flex: 1; white-space: pre-line; }
/* ZOOM : le numéro et le texte du verset grandissent avec la note ;
   le titre du passage, « Lire › » et le bouton « Note / Masquer » gardent leur taille. */
.ref-modal-scroll .ref-vnum,
.ref-modal-scroll .ref-vtext { font-size: calc(1.08rem * var(--ref-z, 1)); }
.ref-note-btn {
  flex-shrink: 0; margin-top: 2px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(252,154,70,0.7); background: rgba(252,154,70,0.1);
  color: #fc9a46; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.ref-note-btn.open { background: #fc9a46; color: #0c1021; }
.ref-note-body {
  margin: 2px 0 10px 0; padding: 10px 12px !important;   /* plus de marge à gauche : la place sert au texte (zoom) — la barre orange reste */
  border-left: 3px solid #fc9a46; border-radius: 0 8px 8px 0;
  background: rgba(252,154,70,0.06);
}
.ref-missing { color: rgba(255,255,255,0.55); font-style: italic; margin: 4px 0; }

#refToast {
  position: fixed; left: 50%; bottom: 12vh; z-index: 9000;
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  background: #0c1021; color: #fff; border: 1px solid rgba(0,255,255,0.5);
  padding: 8px 16px; border-radius: 999px; font-size: .9rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.5); transition: opacity .2s, transform .2s;
  max-width: 86vw; text-align: center;
}
#refToast.show { opacity: 1; transform: translate(-50%, 0); }

/* ══════════════════════════════════════════
   EXHORTATION — « Le miel découlant du rocher qui est Christ »
   Lecteur plein écran (mielReader.js)
   ══════════════════════════════════════════ */
.miel-reader {
  position: fixed; inset: 0; z-index: 5100;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(224,178,101,0.07), transparent 60%),
    #0c1021;
  color: #ece7da;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .28s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s;
}
.miel-reader.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html.miel-open, html.miel-open body { overflow: hidden; }

/* Barre du haut */
.mr-bar {
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 9px;
  background: rgba(12,16,33,0.92);
  border-bottom: 1px solid rgba(0,255,255,0.16);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.mr-btn {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,255,255,0.06); border: 1px solid rgba(0,255,255,0.28);
  color: #00ffff; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .2s;
}
.mr-btn:active { transform: scale(.92); background: rgba(0,255,255,0.16); }
.mr-aa { font-family: 'Literata', Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.15rem; line-height: 1; }
.mr-aa small { font-size: .75em; }
.mr-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mr-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: #E0B265; font-weight: 700;
}
.mr-title {
  font-family: 'Literata', Georgia, "Times New Roman", serif; font-size: 1.08rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.mr-title small { color: rgba(255,255,255,0.45); font-size: .8em; }
.mr-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.mr-progress i {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #E0B265, #00ffff);
}

/* Zone de lecture */
.mr-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mr-page {
  --mr-fs: 1.15rem;
  max-width: 680px; margin: 0 auto;
  padding: 22px 20px 40px;
}
.mr-page.mr-in-right { animation: mrInR .32s cubic-bezier(.2,.8,.2,1); }
.mr-page.mr-in-left  { animation: mrInL .32s cubic-bezier(.2,.8,.2,1); }
@keyframes mrInR { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes mrInL { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.mr-hero { text-align: center; margin: 4px 0 22px; }
.mr-book {
  font-family: 'Literata', Georgia, "Times New Roman", serif; font-variant: small-caps;
  letter-spacing: .06em; color: rgba(0,255,255,0.72); font-size: .92rem; line-height: 1.35;
}
.mr-num {
  font-family: 'Literata', Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: 3.6rem; line-height: 1.05; margin-top: 6px;
  background: linear-gradient(180deg, #fff1c2 0%, #E0B265 45%, #9c7330 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 18px rgba(224,178,101,0.18);
}
.mr-author { font-family: 'Literata', Georgia, serif; font-style: italic; color: #E0B265; font-size: 1.15rem; margin-top: 8px; }
.mr-hero-pref .mr-book { font-size: 1.25rem; color: #fff; letter-spacing: .03em; }
.mr-orn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #E0B265; font-size: .8rem; margin-top: 10px;
}
.mr-orn span { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, rgba(224,178,101,0.7), transparent); }

.mr-text {
  font-family: 'Literata', Georgia, "Times New Roman", serif;
  font-size: var(--mr-fs); line-height: 1.78; color: #ece7da;
  text-align: left; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
.mr-text::first-letter {
  float: left; font-size: 3.4em; line-height: .9; padding: 4px 8px 0 0;
  color: #E0B265; font-weight: 700;
}
.mr-text-pref::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; font-weight: inherit; }
.mr-text p { margin: 0 0 1em; }
.mr-text em { color: #fff; }
.mr-text strong { color: #fff; }
.mr-text .miel-sub {
  font-family: 'Literata', Georgia, serif; font-size: 1.05em; color: #E0B265;
  margin: 0 0 .8em; border-bottom: 1px solid rgba(224,178,101,0.35); padding-bottom: .3em;
}
.mr-text .miel-ast { color: #E0B265; font-weight: 700; }

/* Références bibliques : pastille « miel » (or doux + petit livre ouvert),
   en italique, assortie à la typographie du livre */
.mr-text code.miel-ref {
  position: relative; display: inline-block;
  max-width: 100%; box-sizing: border-box;
  font-family: 'Literata', Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600;
  font-size: .8em; line-height: 1.4; letter-spacing: .01em;
  color: #f6dca4;
  padding: 1px 10px; margin: 0 3px; vertical-align: 1px;
  border-radius: 1em;
  background: linear-gradient(180deg, rgba(224,178,101,0.20), rgba(224,178,101,0.07));
  border: 1px solid rgba(224,178,101,0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 2px 6px rgba(0,0,0,0.25);
  white-space: normal; overflow-wrap: break-word;   /* une longue référence passe à la ligne dans sa pastille */
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .2s, box-shadow .2s;
}
.mr-text code.miel-ref:active {
  transform: scale(.95);
  background: rgba(224,178,101,0.32);
  box-shadow: 0 0 0 3px rgba(224,178,101,0.35);
}

.mr-foot, .mr-edition {
  margin-top: 26px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(0,255,255,0.18); background: rgba(0,255,255,0.04);
  font-size: .88rem; line-height: 1.55; color: rgba(236,231,218,0.82);
}
.mr-edition { text-align: center; font-family: 'Literata', Georgia, serif; }
.mr-end { text-align: center; color: #E0B265; font-family: 'Literata', Georgia, serif; letter-spacing: .2em; margin: 28px 0 6px; }

/* Barre du bas */
.mr-nav {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(12,16,33,0.95); border-top: 1px solid rgba(0,255,255,0.16);
}
.mr-nav button {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 112px; justify-content: center; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(224,178,101,0.55);
  background: rgba(224,178,101,0.08); color: #E0B265;
  font-size: .9rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mr-nav button:active { transform: scale(.95); }
.mr-nav button:disabled { opacity: .3; pointer-events: none; }
.mr-count { color: rgba(255,255,255,0.55); font-size: .82rem; font-variant-numeric: tabular-nums; }

.mr-zoom-tip {
  position: absolute; top: 76px; right: 58px; z-index: 2;
  background: #0c1021; border: 1px solid rgba(0,255,255,0.5); color: #00ffff;
  padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mr-zoom-tip.show { animation: mrTip 1.1s ease forwards; }
@keyframes mrTip { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* Pavé « Exhortation » : la touche « Préface » en plus petit */
.miel-drum .cs-drum-item[data-value="0"] { font-size: .78rem !important; letter-spacing: .02em !important; color: #E0B265; }
.mr-nav button:disabled { visibility: hidden; }

/* Fenêtre de référence sans correspondance dans la Bible : texte du livre */
.ref-fallback .mr-h { color: #ffd700; font-size: 1rem; margin: .4em 0 .3em; }
.ref-fallback p { margin: 0 0 .5em; }
.ref-fallback strong { color: #00ffff; }

@media (prefers-reduced-motion: reduce) {
  .miel-reader, .mr-page.mr-in-right, .mr-page.mr-in-left { animation: none !important; transition: none !important; }
}

/* Lecteur « miel » : bouton Écouter + bouton ZOOM doré dans la barre */
.mr-tts { color: #E0B265; border-color: rgba(224,178,101,0.5); background: rgba(224,178,101,0.08); }
.mr-tts:active { background: rgba(224,178,101,0.2); }
.mr-bar .vm-zoom-btn.mr-zoom { width: 44px; height: 44px; }
.mr-titles { align-items: flex-start; padding-left: 4px; }
.mr-title { font-size: 1.12rem; }
.miel-zoom-popup .vm-zoom-popup { border-color: #E0B265; box-shadow: 0 0 32px rgba(224,178,101,0.28); }
.miel-zoom-popup .vm-zoom-popup-title { color: #E0B265; }

/* Fenêtre de référence ouverte depuis « Le miel… » : le titre reprend la
   pastille miel du livre (or doux, petit livre ouvert, italique) */
.ref-modal--miel .ref-modal-code {
  position: relative; display: inline-block;
  font-family: 'Literata', Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600;
  font-size: .95rem; line-height: 1.35; letter-spacing: .01em;
  color: #f6dca4;
  padding: 2px 12px;
  border-radius: 1em; max-width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: break-word;
  background: linear-gradient(180deg, rgba(224,178,101,0.20), rgba(224,178,101,0.07));
  border: 1px solid rgba(224,178,101,0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 2px 6px rgba(0,0,0,0.25);
}
.ref-modal--miel .ref-modal-kicker { color: rgba(224,178,101,0.85); }

/* ══════════════════════════════════════════
   INTRODUCTIONS · ÉTUDES · AUTEUR (docReader.js)
   Reprend la mise en page du lecteur « miel », accents cyan
   ══════════════════════════════════════════ */
.doc-reader {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(0,255,255,0.06), transparent 60%),
    #0c1021;
}
.doc-reader .mr-titles { align-items: flex-start; padding-left: 4px; gap: 0; }
.doc-reader .dr-group {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(0,255,255,0.7); font-weight: 700;
}
.doc-reader .mr-title { font-family: 'Literata', Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.dr-loupe { flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dr-loupe svg { width: 44px; height: 44px; }
.dr-loupe:active { transform: scale(.92); }
.doc-reader .vm-zoom-btn.dr-zoom { width: 44px; height: 44px; }
.doc-reader .mr-progress i { background: linear-gradient(90deg, #00ffff, #E0B265); }

.dr-hero { margin-bottom: 18px; }
.dr-title {
  font-family: 'Literata', Georgia, "Times New Roman", serif; font-weight: 700; color: #fff;
  font-size: 1.6rem; line-height: 1.25; margin: 8px 0 0;
}

/* Texte */
.doc-text {
  font-family: 'Literata', Georgia, "Times New Roman", serif;
  font-size: var(--mr-fs, 1.08rem); line-height: 1.75; color: #e4e8ef;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
}
.doc-text p { margin: 0 0 1em; }
.doc-text h2, .doc-text h3, .doc-text h4, .doc-text h5 {
  font-family: 'Literata', Georgia, "Times New Roman", serif; line-height: 1.3; scroll-margin-top: 12px;
}
.doc-text h2 {
  color: #E0B265; font-size: 1.3em; margin: 1.6em 0 .7em; padding-bottom: .3em;
  border-bottom: 1px solid rgba(224,178,101,0.35);
}
.doc-text h3 { color: #7fe9f2; font-size: 1.12em; margin: 1.4em 0 .6em; }
.doc-text h4, .doc-text h5 { color: #ffffff; font-size: 1em; margin: 1.2em 0 .5em; font-style: italic; }
.doc-text em, .doc-text i { color: #fff; }
.doc-text b, .doc-text strong { color: #fff; }
.doc-text ul, .doc-text ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc-text li { margin: .25em 0; }
.doc-text li::marker { color: #00ffff; }
.doc-text hr { border: 0; height: 1px; margin: 1.6em auto; width: 40%; background: linear-gradient(90deg, transparent, rgba(0,255,255,0.5), transparent); }
.doc-text a[href^="http"] { color: #7fe9f2; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,255,255,0.4); }
.doc-text sup { font-size: .7em; }

/* Sommaire interne (ancien « liens d'ancrage ») : pastilles */
.doc-text a.doc-jump {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; margin: 2px 0; border-radius: 999px;
  background: rgba(0,255,255,0.07); border: 1px solid rgba(0,255,255,0.35);
  color: #bff7fb; text-decoration: none; font-size: .92em;
}
.doc-text a.doc-jump::before { content: "§"; color: #00ffff; font-weight: 700; }
.doc-text a.doc-jump:active { background: rgba(0,255,255,0.18); }

/* Appels de note : petite pastille cyan en exposant */
.fn-ref {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.45em; height: 1.45em; padding: 0 .3em; margin: 0 1px 0 2px;
  vertical-align: .55em; border-radius: 999px;
  font: 700 .62em/1 Roboto, system-ui, sans-serif;
  color: #0c1021; background: #00ffff; border: 0; cursor: pointer;
  box-shadow: 0 0 0 2px rgba(0,255,255,0.18);
  -webkit-tap-highlight-color: transparent;
}
.fn-ref:active { transform: scale(.9); }
.fn-ref.dr-flash, .dr-notes li.dr-flash { animation: drFlash 1.4s ease; }
@keyframes drFlash { 0%,100% { box-shadow: 0 0 0 2px rgba(0,255,255,0.18); } 30% { box-shadow: 0 0 0 7px rgba(0,255,255,0.45); } }

/* Liste des notes en fin de texte */
.dr-notes {
  margin-top: 30px; padding: 16px 14px 6px; border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.2); background: rgba(0,255,255,0.035);
  font-family: 'Literata', Georgia, serif; font-size: calc(var(--mr-fs, 1.08rem) * .88); line-height: 1.6; color: #d6dce6;
}
.dr-notes h3 { margin: 0 0 10px; color: #00ffff; font-size: 1em; letter-spacing: .12em; text-transform: uppercase; font-family: Roboto, system-ui, sans-serif; }
.dr-notes ol { list-style: none; margin: 0; padding: 0; }
.dr-notes li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px dashed rgba(0,255,255,0.15); border-radius: 8px; scroll-margin-top: 12px; }
.dr-notes li:first-child { border-top: 0; }
.dr-fn-back {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(0,255,255,0.5); background: rgba(0,255,255,0.08);
  color: #00ffff; font: 700 .8rem/1 Roboto, system-ui, sans-serif; cursor: pointer;
}
.dr-fn-body { flex: 1; min-width: 0; }
.dr-fn-body p { margin: 0 0 .6em; }

/* Tableaux */
.doc-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0 1.4em; border-radius: 10px; border: 1px solid rgba(0,255,255,0.22); }
.doc-table table { border-collapse: collapse; width: 100%; font-family: Roboto, system-ui, sans-serif; font-size: .78em; line-height: 1.35; color: #cdd9e8; }
.doc-table th { background: rgba(0,255,255,0.1); color: #00ffff; font-weight: 700; padding: 8px 7px; text-align: center; border-bottom: 2px solid rgba(0,255,255,0.3); }
.doc-table td { padding: 7px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.doc-table td:first-child { text-align: left; color: #fff; font-weight: 600; background: rgba(224,178,101,0.06); }
.doc-table tr:nth-child(even) td { background: rgba(255,255,255,0.025); }
.doc-table tr:last-child td { border-bottom: 0; }

/* « L'auteur » : la prière finale, mise en évidence avec discrétion */
.doc-prayer {
  display: block; margin: .6em 0 .8em; padding: 10px 14px;
  font-style: italic; color: #f1dcae;
  border-left: 2px solid rgba(224,178,101,0.7); border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(224,178,101,0.10), rgba(224,178,101,0.02));
}

/* Barre de recherche dans le texte */
.dr-findbar {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: rgba(0,40,52,0.95); border-bottom: 1px solid rgba(0,255,255,0.25);
}
.dr-findbar[hidden] { display: none; }
.dr-find-q { flex: 1; min-width: 0; color: #FFF168; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-find-count { color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: center; }
.dr-findbar button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(0,255,255,0.35);
  background: rgba(0,255,255,0.08); color: #00ffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
mark.dr-mark { background: rgba(255,241,104,0.35); color: inherit; border-radius: 3px; padding: 0 1px; }
mark.dr-mark.cur { background: #FFF168; color: #000; box-shadow: 0 0 0 2px rgba(255,241,104,0.45); }

/* Bouton « haut de page » */
.dr-top {
  position: absolute; right: 14px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(0,255,255,0.5); background: rgba(12,16,33,0.92); color: #00ffff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.dr-top[hidden] { display: none; }
.doc-reader .mr-nav button { min-width: 0; max-width: 42%; }
.doc-reader .mr-nav button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Feuilles du bas : note, navigation, recherche */
.dr-sheet {
  position: absolute; inset: 0; z-index: 10; background: rgba(0,0,0,0); display: flex; align-items: flex-end;
  transition: background .22s ease;
}
.dr-sheet.open { background: rgba(0,0,0,0.55); }
.dr-sheet-panel {
  width: 100%; max-height: 82%; display: flex; flex-direction: column;
  background: #0f1428; border-top: 2px solid #00ffff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.dr-sheet.open .dr-sheet-panel { transform: none; }
.dr-sheet-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 18px; border-bottom: 1px solid rgba(0,255,255,0.15); }
.dr-sheet-title { flex: 1; color: #00ffff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.dr-sheet-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,255,255,0.4); background: rgba(0,255,255,0.08); color: #00ffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dr-sheet-body { overflow-y: auto; padding: 12px 16px 18px; -webkit-overflow-scrolling: touch; }
.dr-note-text { font-family: 'Literata', Georgia, serif; font-size: 1.02rem; line-height: 1.65; color: #e4e8ef; }
.dr-note-text p { margin: 0 0 .7em; }
.dr-note-all { margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(0,255,255,0.45); background: rgba(0,255,255,0.08); color: #00ffff; font-weight: 600; cursor: pointer; }

.dr-nav-sec { color: #E0B265; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 8px 0 6px; }
.dr-nav-toc { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.dr-nav-item { text-align: left; background: none; border: 0; color: #e4e8ef; padding: 8px 10px; border-radius: 8px; font-family: 'Literata', Georgia, serif; font-size: .98rem; cursor: pointer; }
.dr-nav-item:active { background: rgba(0,255,255,0.1); }
.dr-nav-item.dr-lvl2 { color: #E0B265; font-weight: 700; }
.dr-nav-item.dr-lvl3 { padding-left: 18px; }
.dr-nav-item.dr-lvl4 { padding-left: 30px; font-size: .9rem; color: #b8c2d2; }
.dr-toc-top, .dr-toc-notes { color: #00ffff !important; font-family: Roboto, system-ui, sans-serif; font-size: .9rem; }
.dr-nav-group { border: 1px solid rgba(0,255,255,0.15); border-radius: 12px; margin-bottom: 8px; background: rgba(0,255,255,0.03); }
.dr-nav-group summary { list-style: none; cursor: pointer; padding: 10px 12px; color: #fff; font-weight: 600; display: flex; justify-content: space-between; }
.dr-nav-group summary::-webkit-details-marker { display: none; }
.dr-nav-group summary small { color: rgba(0,255,255,0.7); }
.dr-nav-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 12px; }
.dr-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(0,255,255,0.3); background: transparent; color: #dce6f0; font-size: .86rem; cursor: pointer; }
.dr-chip.on { background: #00ffff; color: #0c1021; border-color: #00ffff; font-weight: 700; }

.dr-search-box { display: flex; flex-direction: column; gap: 8px; }
.dr-search-input {
  width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid rgba(0,255,255,0.45); background: #0a0e1d; color: #fff; font-size: 1rem; outline: none;
}
.dr-search-input:focus { border-color: #00ffff; box-shadow: 0 0 0 3px rgba(0,255,255,0.15); }
.dr-search-scope { color: #b8c2d2; font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.dr-search-info { color: rgba(0,255,255,0.8); font-size: .82rem; margin: 10px 0 6px; }
.dr-res { border-top: 1px solid rgba(0,255,255,0.12); padding: 8px 0; }
.dr-res-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.dr-res-head span { color: #E0B265; font-weight: 700; font-family: 'Literata', Georgia, serif; }
.dr-res-head small { flex: 1; color: rgba(255,255,255,0.45); font-size: .75rem; }
.dr-res-head b { color: #0c1021; background: #00ffff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.dr-res-snip, .dr-res-more { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 4px; border-radius: 8px; color: #cdd5e0; font-family: 'Literata', Georgia, serif; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.dr-res-snip:active, .dr-res-more:active { background: rgba(0,255,255,0.08); }
.dr-res-snip mark { background: #FFF168; color: #000; border-radius: 2px; padding: 0 1px; }
.dr-res-more { color: #00ffff; font-family: Roboto, system-ui, sans-serif; font-size: .85rem; }

/* ══════════════════════════════════════════
   DICTIONNAIRE & LEXIQUE BIBLIQUES (dicoReader.js)
   ══════════════════════════════════════════ */
.dl-tools {
  flex-shrink: 0; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(12,16,33,0.96); border-bottom: 1px solid rgba(0,255,255,0.14);
}
.dl-in-article .dl-tools { display: none; }
.dl-tabs { display: flex; padding: 3px; border-radius: 12px; background: #080b17; border: 1px solid rgba(0,255,255,0.18); }
.dl-tab {
  flex: 1; height: 34px; border: 0; border-radius: 9px; background: transparent;
  color: #9fb0c6; font-weight: 700; letter-spacing: .04em; cursor: pointer; font-size: .9rem;
}
.dl-tab.on { background: linear-gradient(180deg, rgba(0,255,255,0.22), rgba(0,255,255,0.10)); color: #00ffff; box-shadow: 0 0 0 1px rgba(0,255,255,0.4) inset; }
.dl-search { position: relative; }
.dl-q {
  width: 100%; box-sizing: border-box; padding: 10px 40px 10px 14px; border-radius: 12px;
  border: 1.5px solid rgba(0,255,255,0.35); background: #0a0e1d; color: #fff; font-size: 1rem; outline: none;
}
.dl-q:focus { border-color: #00ffff; box-shadow: 0 0 0 3px rgba(0,255,255,0.14); }
.dl-q::-webkit-search-cancel-button { display: none; }
.dl-q-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,255,255,0.12); color: #00ffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dl-q-clear[hidden] { display: none; }
.dl-full { color: #9fb0c6; font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.dl-full[hidden] { display: none; }
/* Lettres A–Z : passent à la ligne quand la fenêtre se réduit */
.dl-letters {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 5px;
}
.dl-letter {
  width: 100%; height: 32px; min-width: 0; border-radius: 9px; cursor: pointer; padding: 0;
  border: 1px solid rgba(0,255,255,0.25); background: rgba(0,255,255,0.04);
  color: #dce6f0; font: 700 .95rem 'Literata', Georgia, serif;
}
.dl-letter.on { background: #00ffff; color: #0c1021; border-color: #00ffff; }

.dl-page { padding-top: 10px; }
.dl-count { color: rgba(0,255,255,0.75); font-size: .8rem; margin: 2px 2px 8px; }
.dl-list { display: flex; flex-direction: column; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 11px 6px; border: 0; background: none; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'Literata', Georgia, "Times New Roman", serif; font-size: calc(var(--mr-fs, 1.06rem) * .98); color: #e8ecf2;
}
.dl-item::after { content: "›"; color: rgba(0,255,255,0.6); font-size: 1.2em; margin-left: auto; }
.dl-item:active { background: rgba(0,255,255,0.07); }
.dl-item small { font: 700 .65rem Roboto, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.dl-src-d { color: #00ffff; border: 1px solid rgba(0,255,255,0.4); }
.dl-src-l { color: #E8A27A; border: 1px solid rgba(232,162,122,0.5); }
.dl-fulltext { margin-top: 16px; }
.dl-hit { display: block; width: 100%; text-align: left; padding: 9px 4px; border: 0; border-top: 1px solid rgba(0,255,255,0.1); background: none; cursor: pointer; color: #cdd5e0; font-family: 'Literata', Georgia, serif; font-size: .92rem; line-height: 1.45; }
.dl-hit b { color: #E0B265; margin-right: 6px; }
.dl-hit small { color: rgba(255,255,255,0.4); font-size: .72rem; }
.dl-hit span { display: block; }
.dl-hit mark { background: #FFF168; color: #000; border-radius: 2px; }

.dl-article code[data-r] {
  font: 700 .78em Roboto, system-ui, sans-serif; background: #FFF168; color: #000;
  padding: 1px 5px; margin: 0 1px; border-radius: 3px; cursor: pointer; white-space: nowrap;
}
.dl-article .dl-num { color: #E0B265; }
.dl-article a.dl-see, .dl-pop-body a.dl-see { color: #7fe9f2; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.dl-credit { margin-top: 24px; text-align: center; color: rgba(255,255,255,0.35); font-size: .75rem; font-style: italic; }

/* Interrupteur On / Off — animation d'origine, mise à l'échelle du menu */
.dl-setting { display: flex; align-items: center; gap: 14px; padding: 6px 2px 12px; }
.dl-setting-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.dl-setting-txt b { color: #fff; font-size: 1rem; }
.dl-setting-txt span { color: #9fb0c6; font-size: .82rem; line-height: 1.35; }
.dl-switch { flex-shrink: 0; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dl-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.dl-sw-outer {
  display: block; width: 72px; height: 36px; box-sizing: border-box; padding: 4px;
  border-radius: 36px; background: #080b17; border: 1px solid #252a44;
  box-shadow: inset 0 2px 5px 0 #03050c, 0 1px 3px -1px #3a4166;
}
.dl-sw-btn { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; }
.dl-sw-knob {
  position: relative; left: 0; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(#3b4160, #232842);
  box-shadow: inset 0 2px 2px 0 #4a5276, 0 2px 6px 0 #02040a;
  transition: left .3s ease-in;
}
.dl-sw-ind {
  position: relative; right: 6px; width: 14px; height: 14px; box-sizing: border-box;
  border-radius: 50%; border: 2px solid #ef565f;
}
.dl-switch input:checked + .dl-sw-outer .dl-sw-knob { left: calc(100% - 26px); }
.dl-switch input:checked + .dl-sw-outer .dl-sw-ind { animation: dlIndOn .6s forwards; }
.dl-switch input:not(:checked) + .dl-sw-outer .dl-sw-ind { animation: dlIndOff .6s forwards; }
@keyframes dlIndOn  { 0% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 1; border-color: #60d480; right: calc(100% - 20px); } }
@keyframes dlIndOff { 0% { opacity: 1; border-color: #60d480; right: calc(100% - 20px); } 30% { opacity: 0; } 100% { opacity: 1; border-color: #ef565f; right: 6px; } }
.dl-switch input:focus-visible + .dl-sw-outer { box-shadow: 0 0 0 3px rgba(0,255,255,0.35); }
.dl-legend { color: #9fb0c6; font-size: .82rem; padding: 0 2px 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dl-menu-src { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dl-about { color: #9fb0c6; font-size: .85rem; line-height: 1.5; margin: 0; }

/* Mots reliés dans la Bible : teinte légère + trait fin (style H), ouverture par appui long */
.dl-word {
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;   /* l'appui long ne sélectionne pas le texte */
  text-decoration-line: underline; text-decoration-style: solid;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  border-radius: 3px; transition: background .15s;
}
.dl-word-d { color: #c6fbff; text-decoration-color: rgba(0,255,255,0.8); }
.dl-word-l { color: #ffe0cc; text-decoration-color: rgba(232,162,122,0.85); }
.dl-word:active { background: rgba(0,255,255,0.12); }
/* cercle qui se remplit sous le doigt pendant l'appui long */
.dl-press-ring { position: fixed; z-index: 20000; pointer-events: none; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid #00ffff; box-shadow: 0 0 10px rgba(0,255,255,.5); opacity: 0; transform: translate(-50%,-50%) scale(.4); }
.dl-press-ring.go { animation: dlPressRing .45s linear forwards; }
@keyframes dlPressRing { 0% { opacity: .9; transform: translate(-50%,-50%) scale(.4); } 100% { opacity: .9; transform: translate(-50%,-50%) scale(1); } }

/* Fenêtre momentanée ouverte depuis la Bible */
.dl-pop .dl-pop-title {
  align-self: flex-start; font-family: 'Literata', Georgia, serif; font-weight: 700; font-size: 1.15rem; color: #fff;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;   /* titre très long : « … » */
}
.dl-pop .ref-modal-title { min-width: 0; flex: 1 1 auto; }
.dl-pop-tabs { display: flex; gap: 6px; padding: 8px 14px 0; flex-wrap: wrap; }
.dl-pop-tab { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(0,255,255,0.3); background: transparent; color: #dce6f0; font-size: .82rem; cursor: pointer; }
.dl-pop-tab small { opacity: .6; }
.dl-pop-tab.on { background: #00ffff; color: #0c1021; border-color: #00ffff; }
.dl-pop-body { font-family: 'Literata', Georgia, "Times New Roman", serif; }
.dl-pop-body p { margin: 0 0 .8em; }
.dl-pop-body .dl-num { color: #E0B265; }
.dl-pop-foot { flex-shrink: 0; padding: 8px 14px 12px; border-top: 1px solid rgba(0,255,255,0.15); text-align: right; }
.dl-pop-open { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(224,178,101,0.6); background: rgba(224,178,101,0.1); color: #E0B265; font-weight: 700; cursor: pointer; }
.dl-loading { color: rgba(255,255,255,0.5); font-style: italic; }
.dl-nav[hidden] { display: none !important; }
.dl-hint { color: #9fb0c6; font-size: .85rem; margin: 6px 2px; }

/* Bouton « maison » (retour à la page d'accueil) du dictionnaire / lexique */
.dl-reader .dl-home { color: #E0B265; border-color: rgba(224,178,101,0.5); background: rgba(224,178,101,0.08); }
.dl-reader .dl-home:active { background: rgba(224,178,101,0.2); }
.dl-reader .mr-bar { gap: 5px; }

/* ══════════════════════════════════════════
   GUIDE D'UTILISATION (détaillé)
   ══════════════════════════════════════════ */
.guide2-intro { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.5; margin: 4px 4px 12px; }
.guide2-toc { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 6px 2px 16px; }
.guide2-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent);
  background: color-mix(in srgb, var(--gc) 10%, transparent); color: #e8ecf2;
  font-size: .95rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
  padding: 8px 14px 8px 11px;
}
.guide2-chip svg { width: 18px; height: 18px; flex-shrink: 0; }
.guide2-chip:active { transform: scale(.95); }
.guide2-sec { flex-shrink: 0;
  margin: 0 0 10px; border-radius: 14px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gc) 28%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 7%, transparent), rgba(255,255,255,0.01));
  scroll-margin-top: 8px;
}
.guide2-sec summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; -webkit-tap-highlight-color: transparent;
}
.guide2-sec summary::-webkit-details-marker { display: none; }
.guide2-badge {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--gc) 16%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 30%, transparent) inset;
}
.guide2-title { flex: 1; color: #fff; font-size: 1.05rem; font-weight: 700; }
.guide2-n { font-size: .72rem; font-weight: 700; color: var(--gc); border: 1px solid color-mix(in srgb, var(--gc) 50%, transparent); border-radius: 999px; padding: 1px 8px; }
.guide2-chev { color: rgba(255,255,255,0.5); transition: transform .2s ease; }
.guide2-sec[open] .guide2-chev { transform: rotate(180deg); }
.guide2-items { padding: 2px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.guide2-item { display: flex; gap: 12px; padding: 10px 4px; border-top: 1px solid rgba(255,255,255,0.06); }
.guide2-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); }
.guide2-ico svg { width: 16px; height: 16px; }
.guide2-item-title { display: block; color: #fff; font-weight: 700; font-size: calc(.98rem * var(--ref-z, 1)); margin-bottom: 3px; }
.guide2-item-desc { display: block; color: rgba(255,255,255,0.72); font-size: calc(.92rem * var(--ref-z, 1)); line-height: 1.55; }
.guide2-item-desc b { color: #fff; }
.guide-code { font: 700 .82em Roboto, system-ui, sans-serif; background: #FFF168; color: #000; padding: 0 5px; border-radius: 3px; white-space: nowrap; }
.guide-dl-d { text-decoration: underline dotted rgba(0,255,255,0.8); text-underline-offset: 3px; color: #7fe9f2; }
.guide-dl-l { text-decoration: underline dotted rgba(232,162,122,0.9); text-underline-offset: 3px; color: #E8A27A; }
.guide2-intro, .guide2-toc, .guide2-sec { flex-shrink: 0; }

/* Lecteur « miel » : bouton maison (même style que dans le dictionnaire) */
.miel-reader .mr-home { color: #E0B265; border-color: rgba(224,178,101,0.5); background: rgba(224,178,101,0.08); }
.miel-reader .mr-home:active { background: rgba(224,178,101,0.2); }

/* Deux titres de section qui se suivent : pas de trait entre eux (seulement sous le dernier) */
.verse-modal-body .note-section > strong.ns-suite {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 6px;
}

/* Numéro de chapitre (Le miel…) : touche pour partager */
.mr-num {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; padding: 0 6px; cursor: pointer; position: relative;
  -webkit-tap-highlight-color: transparent; border-radius: 14px;
  transition: transform .15s ease;
}
.mr-num:active { transform: scale(.94); }
.mr-num-share {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  align-items: center; justify-content: center; align-self: center;
  color: #E0B265; background: rgba(224,178,101,0.10);
  border: 1px solid rgba(224,178,101,0.35);
  -webkit-text-fill-color: initial;
}
.mr-num-share svg { width: 14px; height: 14px; }

/* Guide : petite icône dans le texte */
.guide2-inline-ico {
  display: inline-flex; vertical-align: -3px; padding: 2px 4px; border-radius: 6px;
  background: rgba(252,154,70,0.12); border: 1px solid rgba(252,154,70,0.35);
}

/* Dictionnaire : conversion franc / euro */
.dl-change {
  display: flex; flex-direction: column; gap: 2px;
  margin: 1em 0 .6em; padding: 10px 14px;
  border-left: 3px solid #E0B265; border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(224,178,101,0.12), rgba(224,178,101,0.02));
  font-size: .92em; line-height: 1.5;
}
.dl-change strong { color: #E0B265; font-weight: 700; }
.dl-change em { font-size: .8em; color: rgba(255,255,255,0.55); margin-top: 2px; }
/* Dictionnaire : tableaux (Monnaie, Mesures, Chronologie…) */
.dl-table table { font-size: .82em; }
.dl-table th[colspan] { letter-spacing: .08em; }
.dl-table td:empty { background: transparent !important; }
.dl-table td em { color: rgba(0,255,255,0.75); font-style: italic; }
.dl-table th.dl-tsec {
  text-align: left; font-size: .92em; letter-spacing: .02em;
  color: #E0B265; background: rgba(224,178,101,0.10);
  border-bottom: 1px solid rgba(224,178,101,0.3);
}
.dl-table th, .dl-table td { padding: 7px 5px; }
.dl-table table { font-size: .76em; }

/* ═══ Traductions (versions.js) ═══════════════════════════════ */
.chapter-title.has-extras { padding-right: 168px; }
.ct-extras {
  position: absolute; right: 84px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.ct-ver-chip {
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
  padding: 4px 9px; border-radius: 10px; cursor: pointer;
  background: rgba(0,0,0,0.35); border: 1px solid var(--vc, #00ffff);
  color: var(--vc, #00ffff); font-family: Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.ct-ver-chip b { font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.ct-ver-chip small { font-size: .58rem; opacity: .75; font-weight: 400; }
.ct-ver-chip:active { transform: scale(.94); }
.ct-chrono {
  font-family: Roboto, system-ui, sans-serif; font-size: .62rem; line-height: 1.25; font-weight: 500;
  color: #8ec5ff; background: #102a4a; border: 1px solid rgba(142,197,255,0.35);
  border-radius: 6px; padding: 3px 7px; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ct-chrono:active { transform: scale(.94); }
.chapter-orig-title {
  font-family: 'Literata', "Times New Roman", Georgia, serif; font-size: 1.25rem; color: #cfd8e8;
  letter-spacing: .06em; margin: -1.2rem 1.5rem 1.4rem; opacity: .85;
}
.chapter-orig-title[dir="rtl"] { text-align: center; font-size: 1.6rem; color: #b9b9b9; }
/* Verset original (grec / hébreu) au-dessus du français */
.verse-orig {
  display: block; margin: 0 0 .35rem;
  font-family: 'Literata', "SBL Greek", "Gentium Plus", "Times New Roman", Georgia, serif;
  font-size: 1.45rem; line-height: 1.55; color: #ff6b6b;
}
.verse-orig[dir="rtl"] {
  text-align: right; font-family: "Ezra SIL", "SBL Hebrew", "Times New Roman", serif;
  font-size: 1.6rem; color: #ff6b6b;
}
.verse--orig { padding-bottom: .9rem !important; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.verse-orig .vv, .ver-orig .vv {
  color: #FFF168; font-family: Roboto, system-ui, sans-serif; font-weight: 700; font-size: .8em; padding: 0 2px;
}
.verse-orig .vb, .ver-orig .vb { color: #7fe9f2; }
.vstar { color: #5DCAA5; font-size: .75em; vertical-align: super; }
.darby-note-tag {
  display: table; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #5DCAA5; border: 1px solid rgba(93,202,165,0.4); border-radius: 6px; padding: 2px 8px; margin: 0 0 8px;
}
/* Bouton « Versions » de la fenêtre Options (même style que « Annotation ») */
.opt-btn-versions { margin: 4px 0 14px; width: 100%; }
/* Dans le panneau Options, le bouton est placé sous la rangée d'icônes (replié ou déplié) */
.options-panel .opt-btn-versions { width: calc(100% - 32px); margin: 4px 16px 10px; }
.options-panel.is-quick-mode .opt-btn-versions { margin-bottom: 16px; }
/* Fenêtre « Versions » */
.ver-modal { max-height: 86vh; }
.ver-ref { font-weight: 700; color: #fff; font-size: 1.05rem; }
.ver-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ver-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--vc); border-radius: 10px; padding: 10px 12px; cursor: pointer;
  color: #e6edf6; font: inherit; -webkit-tap-highlight-color: transparent;
}
.ver-card:active { transform: scale(.985); background: rgba(255,255,255,0.06); }
.ver-card.is-cur { background: rgba(0,255,255,0.06); }
.ver-card-head { display: flex; align-items: center; gap: 8px; }
.ver-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vc); flex: none; box-shadow: 0 0 6px var(--vc); }
.ver-name { font-family: Roboto, system-ui, sans-serif; font-weight: 700; font-size: .86rem; color: var(--vc); letter-spacing: .02em; }
.ver-where { font-size: .74rem; color: rgba(255,255,255,0.55); }
.ver-cur { margin-left: auto; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #00ffff; border: 1px solid rgba(0,255,255,0.4); border-radius: 6px; padding: 1px 6px; }
.ver-text { display: flex; flex-direction: column; gap: 4px; font-size: calc(1.02rem * var(--ref-z, 1)); line-height: 1.55; }
.ver-orig { color: #ff6b6b; font-family: 'Literata', "Times New Roman", Georgia, serif; font-size: 1.08rem; }
.ver-orig[dir="rtl"] { text-align: right; font-size: 1.2rem; }
.ver-none, .ver-loading { color: rgba(255,255,255,0.45); font-style: italic; font-size: .9rem; }
.ver-help { text-align: center; font-size: .78rem; color: rgba(255,255,255,0.45); margin: 4px 0 0; }
.ver-pick {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 10px; cursor: pointer; font: inherit; color: #e6edf6;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
}
.ver-pick small { margin-left: auto; font-size: .72rem; color: rgba(255,255,255,0.5); }
.ver-pick.is-cur { border-color: var(--vc); background: rgba(0,255,255,0.05); }
.ver-pick:disabled { opacity: .4; cursor: default; }
.ver-doc .ver-body { display: block; font-size: calc(1rem * var(--ref-z, 1)); line-height: 1.7; color: #dbe4ef; }
.ver-doc .ver-body h2 { color: #00ffff; font-size: 1.1em; margin: 1.2em 0 .5em; }
.ver-doc .ver-body p { margin: 0 0 .9em; }
.ver-doc .ver-body .auteur { color: #E0B265; font-weight: 700; }
.ver-doc-title { font-weight: 700; color: #fff; font-size: 1.1rem; }
#verToast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0;
  background: rgba(10,20,35,0.95); color: #00ffff; border: 1px solid rgba(0,255,255,0.35);
  border-radius: 20px; padding: 8px 16px; font: 600 .9rem Roboto, system-ui, sans-serif;
  z-index: 99990; pointer-events: none; transition: opacity .25s, transform .25s;
}
#verToast.show { opacity: 1; transform: translate(-50%, 0); }
/* Grec : numéro et texte original sur la même ligne, français dessous */
.verse--orig .verse-orig:not([dir="rtl"]) { display: inline; }
.verse--orig .verse-text { display: block; margin-top: .45rem; }
.verse-orig .vv, .ver-orig .vv { margin: 0 .3em 0 .05em; }
.verse-orig .vb, .ver-orig .vb { margin-right: .15em; }
/* Le miel… : bouton de langue français / anglais */
.miel-reader .mr-lang {
  display: inline-flex; align-items: center; gap: 0; padding: 2px; width: auto; min-width: 0;
  border-radius: 12px; border: 1px solid rgba(224,178,101,0.45); background: rgba(0,0,0,0.25);
  font: 700 .66rem Roboto, system-ui, sans-serif; letter-spacing: .04em;
}
.miel-reader .mr-lang span { padding: 4px 6px; border-radius: 9px; color: rgba(224,178,101,0.55); transition: background .2s, color .2s; }
.miel-reader .mr-lang[data-lang="fr"] span:first-child,
.miel-reader .mr-lang[data-lang="en"] span:last-child { background: #E0B265; color: #1a1206; }
@media (max-width: 440px) { .miel-reader .mr-title small { display: none; } }
/* Le miel (anglais) : verset King James dans la fenêtre de référence */
.ref-fallback .ref-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ref-kjv { font: 600 .64rem Roboto, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #E0B265; border: 1px solid rgba(224,178,101,0.4); border-radius: 6px; padding: 1px 6px; }
/* Bouton « Versions » : mot à gauche (sans soulignement), pastille de la traduction à droite */
.opt-btn-versions .opt-btn-note__label::after { display: none; }
.opt-btn-versions .opt-btn-note__inner { justify-content: space-between; gap: 10px; padding: 8px 12px 8px 22px; }
.opt-btn-versions .opt-btn-note__label { flex: 0 1 auto; min-width: 0; transform: none; line-height: 1.2; }
.opt-btn-versions .ct-ver-chip {
  position: static; transform: none; flex: none; z-index: 6;
  padding: 3px 9px; background: rgba(0,0,0,0.45);
}
.opt-btn-versions .ct-ver-chip:active { transform: scale(.94); }
.ver-name small { font-weight: 400; opacity: .7; font-size: .9em; }
/* Bible de l'Épée : suscription des psaumes */
.vtitle { display: inline; font-size: .85em; color: #9fb3c8; }
.vtitle::after { content: "\A"; white-space: pre; }

/* Bouton « Versions » : contour lumineux qui tourne lentement (version discrète du n° 18 D) */
@property --vr-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes vrTurn { to { --vr-a: 360deg; } }
.opt-btn-versions .opt-btn-note__label { transform: none; line-height: 1.2; }
.vr-ring {
  position: relative; display: inline-block; padding: 1.5px; border-radius: 13px; isolation: isolate;
  transition: transform .12s ease;
}
.vr-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--vr-a), rgba(0,229,255,.12) 0 55%, rgba(0,229,255,.75) 78%, rgba(224,178,101,.6) 92%, rgba(0,229,255,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: vrTurn 4s linear infinite;
}
.vr-ring::after {
  content: ""; position: absolute; inset: -2px; border-radius: 15px; z-index: -1;
  background: conic-gradient(from var(--vr-a), transparent 0 65%, rgba(0,229,255,.5) 85%, transparent);
  filter: blur(6px); opacity: .3;
  animation: vrTurn 4s linear infinite;
}
.vr-in {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 12px 4px 13px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,255,255,.06), rgba(7,18,25,.95) 60%);
  color: #dffcff; font-size: 1.22rem; letter-spacing: 1px;
}
/* Pastilles aux couleurs des traductions, devant le mot (n° 4 de la planche) */
.vr-in { color: #ffffff; gap: 8px; }
.vr-in .dots { display: inline-flex; flex: none; padding-right: 3px; }
.vr-in .dots i { width: 10px; height: 10px; border-radius: 50%; margin-right: -3px; border: 1.5px solid #0a1218; box-shadow: 0 0 4px rgba(0,0,0,.6); }
.opt-btn-versions:active .vr-ring { transform: scale(.95); }

/* Carte « Dans la version » : couleur de la traduction en cours, sur toute la largeur */
.ct-choice-search.ct-choice-search-version {
  grid-column: 1 / -1;
  border-color: var(--vc, #00ffff);
  box-shadow: 0 0 26px color-mix(in srgb, var(--vc, #00ffff) 25%, transparent);
}
.ct-choice-search.ct-choice-search-version:active { box-shadow: 0 0 36px color-mix(in srgb, var(--vc, #00ffff) 45%, transparent); }
.ct-choice-search-version .ct-choice-label { color: var(--vc, #00ffff); }
@media (orientation: landscape) {
  .ct-choice-wrap { grid-template-columns: repeat(5, 1fr); width: min(98vw, 980px); }
  .ct-choice-search.ct-choice-search-version { grid-column: auto; }
}


/* ══ Titre de l'ÉCRAN D'ACCUEIL uniquement : « Bible & Versions » ══
   (n° D de la planche : esperluette dorée + sous-titre en petites capitales dorées).
   Toutes les règles sont limitées à .welcome-screen .bv-title : rien d'autre n'est touché. */
.welcome-screen .main-title.bv-title { font-size: 1.85rem; text-align: left; white-space: nowrap; line-height: 1.15; }
.welcome-screen .bv-title .bv-amp { margin-left: 0; }
.welcome-screen .bv-title .bv-amp { color: #E0B265; font-weight: 400; margin: 0 .06em; text-shadow: 0 0 10px rgba(224,178,101,.35); }
.welcome-screen .bv-title .bv-sub {
  display: block; margin-top: 6px; white-space: normal;
  font-size: .8rem; line-height: 1.3; font-weight: 400;
  font-variant: small-caps; letter-spacing: .025em;
  color: #E0B265; text-shadow: none;
}

/* Bouton Zoom entre le titre et le bouton Fermer (Résumé, Choix verset(s)) */
.cmp-header .cmp-zoom { width: 40px; height: 40px; margin-left: auto; margin-right: 10px; flex: none; }
.cmp-header .cmp-title { min-width: 0; }
/* Fenêtre Versions : titre sur deux lignes si besoin, jamais sous les boutons */
.ver-modal .ver-ref { overflow-wrap: anywhere; }
/* Résumé : la pastille « verset » ne se coupe plus en morceaux (« ve / rs / et ») */
.mns-ov-row .mns-chip, .mns-item-head .mns-chip { white-space: nowrap; flex: none; }
.mns-ov-row .mns-item-ref, .mns-item-head .mns-item-ref { min-width: 0; white-space: normal; flex: 0 1 auto; }
.mns-ov-row .mns-chip, .mns-item-head .mns-chip { flex: 1 0 auto; }

/* Guide : bouton Zoom dans l'en-tête, bouton « retour en haut » */
#modal-guide .guide-zoom { width: 38px; height: 38px; margin-left: auto; margin-right: 10px; flex: none; }
#modal-guide .submenu-modal-panel { position: relative; }
.guide-top {
  position: absolute; right: 16px; bottom: 18px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #00ffff; background: rgba(12,16,33,0.92); border: 1.5px solid rgba(0,255,255,0.55);
  box-shadow: 0 4px 14px rgba(0,0,0,0.55), 0 0 10px rgba(0,255,255,0.25);
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.guide-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.guide-top:active { transform: scale(.92); }
.guide-illu svg text { user-select: none; }
#modal-guide .submenu-modal-title { font-size: 1.08rem; white-space: nowrap; }

/* Lecture audio : égaliseur animé (remplace « 🔊 Lecture en cours… ») */
.tts-status .tts-eq { display: block; margin: 0 auto; overflow: visible; filter: drop-shadow(0 0 6px rgba(173,255,47,0.35)); }
.tts-eq-b { transform-box: fill-box; transform-origin: 50% 50%; animation: ttsEq 0.9s ease-in-out infinite; }
.tts-eq-b:nth-child(2n) { animation-duration: 1.1s; }
.tts-eq-b:nth-child(3n) { animation-duration: 0.75s; }
@keyframes ttsEq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.tts-eq-w1, .tts-eq-w2 { animation: ttsWave 1.2s ease-in-out infinite; }
.tts-eq-w2 { animation-delay: .25s; }
@keyframes ttsWave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tts-eq-b, .tts-eq-w1, .tts-eq-w2 { animation: none; } }

/* Mes notes : bouton « clavier du téléphone » (barré quand le clavier est masqué) */
.mn-kbd .mn-kbd-slash { opacity: 0; transition: opacity .15s; }
.mn-kbd.is-off { color: #e8c46a; border-color: rgba(232,196,106,0.7); background: rgba(232,196,106,0.12); }
.mn-kbd.is-off .mn-kbd-slash { opacity: 1; }

/* Sélection multiple : la fenêtre est déplaçable → poignée, icône « déplacer », rappel */
#cmvPanel { padding-top: 10px; }
/* Titre et trait retirés : fenêtre plus compacte, la croix « déplacer » reste à gauche */
#cmvPanel .cmv-header { min-height: 40px; }
#cmvPanel .cmv-header .cmv-move { width: 26px; height: 26px; margin-left: 2px; }
.cmv-grip {
  position: absolute; top: 6px; left: 50%; width: 44px; height: 5px; margin-left: -22px;
  border-radius: 3px; background: rgba(0,255,255,0.55); box-shadow: 0 0 8px rgba(0,255,255,0.35);
}
.cmv-header .cmv-move { flex: none; color: rgba(0,255,255,0.75); margin-right: -2px; }
.cmv-header .cmv-title { flex: 1; min-width: 0; }
.cmv-move-hint {
  position: absolute; left: 50%; top: -34px; transform: translate(-50%, 6px);
  white-space: nowrap; font: 600 .78rem Roboto, system-ui, sans-serif; color: #0c1021;
  background: #00e5ff; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.cmv-move-hint::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #00e5ff; }
#cmvPanel.cmv-show-hint .cmv-move-hint { opacity: 1; transform: translate(-50%, 0); }
#cmvPanel.cmv-show-hint .cmv-grip { animation: cmvGrip 1s ease-in-out 3; }
#cmvPanel.cmv-show-hint { animation: cmvNudge 1.1s ease-in-out 1; }
@keyframes cmvGrip { 0%, 100% { width: 44px; margin-left: -22px; opacity: .7; } 50% { width: 64px; margin-left: -32px; opacity: 1; } }
@keyframes cmvNudge { 0%, 100% { translate: 0 0; } 25% { translate: -10px 6px; } 50% { translate: 8px -4px; } 75% { translate: -4px 2px; } }
@media (prefers-reduced-motion: reduce) { #cmvPanel.cmv-show-hint, #cmvPanel.cmv-show-hint .cmv-grip { animation: none; } }

/* Sauvegarde de mes données */
.bk-panel { max-width: 440px; border-color: #e8c46a; box-shadow: 0 0 40px rgba(232,196,106,0.22); }
.bk-title { color: #e8c46a; }
.bk-body { padding: 4px 18px 18px; overflow-y: auto; }
.bk-intro { color: rgba(255,255,255,.82); font-size: .95rem; line-height: 1.55; margin: 6px 0 10px; }
.bk-now { font-size: .82rem; color: #8ea0c0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 8px 10px; margin-bottom: 14px; }
.bk-btn { width: 100%; justify-content: center; }
.bk-save { border-color: rgba(232,196,106,.6); color: #e8c46a; }
.bk-restore { border-color: rgba(0,255,255,.5); color: #00ffff; margin-top: 6px; }
.bk-help { font-size: .8rem; color: #8ea0c0; margin: 6px 2px 12px; line-height: 1.45; }
.bk-confirm { margin-top: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(0,255,255,.4); background: rgba(0,255,255,.06); color: #dfe7f5; font-size: .88rem; line-height: 1.5; }
.bk-confirm.is-error { border-color: rgba(255,90,90,.6); background: rgba(255,90,90,.08); color: #ffb3b3; }
.bk-confirm.is-ok { border-color: rgba(55,240,101,.6); background: rgba(55,240,101,.08); color: #9ff7b8; }
.bk-warn { color: #ffcf7a; margin-top: 6px; font-size: .82rem; }
.bk-actions { display: flex; gap: 10px; margin-top: 10px; }
.bk-actions .mn-btn { flex: 1; justify-content: center; }
.bk-actions .bk-yes { border-color: rgba(0,255,255,.6); color: #00ffff; }

/* Languette discrète en haut de l'en-tête des fiches du bloc-notes
   (indique qu'on peut poser le doigt ici pour faire glisser la liste) */
.bn-item-header{position:relative}
.bn-grip{position:absolute;top:4px;left:50%;transform:translateX(-50%);width:36px;height:4px;border-radius:3px;background:rgba(0,255,255,.45);box-shadow:0 0 6px rgba(0,255,255,.25);pointer-events:none}

/* Multi-Sélection : titre + repli pendant le choix « De… à… » */
.cmv-header .cmv-label { flex: 1; min-width: 0; text-align: center; font: 600 1rem Roboto, system-ui, sans-serif; color: var(--cmv-cyan, #00ffff); letter-spacing: .03em; text-shadow: 0 0 10px rgba(0,255,255,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cmvPanel { transition: width .3s ease, padding .3s ease; }
.cmv-fold { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .3s ease, opacity .2s ease; }
.cmv-fold-in { min-height: 0; overflow: hidden; }
.cmv-range-wrap { transition: margin .3s ease, padding .3s ease, border-color .3s ease; }
#cmvPanel.cmv-folded { width: 196px; padding-top: 10px; padding-bottom: 10px; }
#cmvPanel.cmv-folded .cmv-fold { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
#cmvPanel.cmv-folded .cmv-range-wrap { margin-top: 0; padding-top: 0; border-top-color: transparent; }
@media (prefers-reduced-motion: reduce) { #cmvPanel, .cmv-fold, .cmv-range-wrap { transition: none; } }

/* Bloc-Notes : bouton ZOOM (entre « Résumé » et la corbeille) — seuls les versets grandissent */
.bloc-notes-panel .cmp-header .bn-zoom { width: 38px; height: 38px; margin: 0; flex: none; }
.bn-list .bn-item-text, .bn-list .bn-verse-text { font-size: calc(1.2rem * var(--ref-z, 1)); }
.bn-list .bn-verse-ref { font-size: calc(0.92rem * var(--ref-z, 1)); }

/* Panneau de navigation : interrupteur « Liens dans la Bible » + Bloc-Notes réduit */
.quick-nav-panel .qnp-tools-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-nav-panel .qnp-dl-switch { margin-left: 2px; zoom: 1.4; }   /* même hauteur visuelle que le bouton Bloc-Notes */
.quick-nav-panel .bloc-notes-nav-btn.qnp-bn-compact { width: auto; flex: 0 0 auto; min-width: 150px; justify-content: center; gap: 22px; padding: 0.45rem 1.1rem; letter-spacing: 0; }
/* Chiffre du compteur bien centré dans son cercle (l'espacement des lettres du bouton le décalait) */
.bn-c-number { letter-spacing: 0; text-indent: 0; font-variant-numeric: tabular-nums; text-align: center; }

/* Lecture audio : 3 rubans cyan → violet (remplacent l'ancien égaliseur à barres) */
.tts-status .tts-rib { display: block; width: min(240px, 80%); height: 34px; margin: 0 auto; overflow: visible; filter: drop-shadow(0 0 6px rgba(77,139,255,.45)); }

/* Fiche du dictionnaire : jamais de sélection de texte ni de menu « Copier / Tout sélectionner »
   (l'appui long qui l'ouvre ne doit pas se prolonger sur son texte) */
.dl-pop-overlay, .dl-pop-overlay * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
/* tant que le doigt de l'appui long est encore posé, la fiche ne réagit pas au toucher */
.dl-pop-overlay.dl-pop-wait, .dl-pop-overlay.dl-pop-wait * { pointer-events: none !important; }
