/* ================================================
   VARIABLES & RESET
   ================================================ */

   :root {
    --ink:              #0f1923;
    --parchment:        #F0F4EF;
    --parchment-dark:   #e2e8e1;
    --blue:             #801818;
    --blue-dark:        #661313;
    --blue-deep:        #4d0e0e;
    --blue-pale:        #f9ebeb;
    --gold:             #801818;
    --header-gradient:  linear-gradient(135deg, #4d0e0e 0%, #661313 60%, #801818 100%);
    --radius-main:      20px;
    --border:           rgba(128, 24, 24, 0.2);

    /* Échelle typographique */
    --fs-1:  12px;
    --fs-2:  14px;
    --fs-3:  140px;
    --fs-4:  18px;
    --fs-5:  24px;
    --fs-6:  40px;
    --fs-7:  56px;
    --fs-8:  72px;

    /* Couleurs sémantiques */
    --success: #1a7a41;
    --error:   #b93226;
}

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

html { overflow-x: hidden; }

body {
    font-family: 'Manrope', sans-serif;
    background: var(--parchment);
    min-height: 100vh;
    padding: 20px;
    color: var(--ink);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}


/* ================================================
   NAVIGATION
   ================================================ */

.main-nav {
    margin-bottom: 50px;
    padding: 20px 0;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 8px 22px;
    border-radius: 25px;
    font-size: var(--fs-1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-decoration: none !important;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: normal;
}

.nav-btn:hover,
.nav-btn.active {
    background: transparent !important;
    border-color: var(--blue);
    color: var(--blue);
    text-decoration: none !important;
}

/* Sélecteur de langue dans la nav */
.lang-select {
    display: inline-block;
    padding: 8px 35px 8px 22px;
    border-radius: 25px;
    border: 2px solid var(--blue);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
    outline: none;
    font-size: var(--fs-1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23801818' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
    vertical-align: middle;
    line-height: normal;
}

.lang-select:hover {
    background-color: rgba(128, 24, 24, 0.05);
}


/* ================================================
   HEADER
   ================================================ */

header {
    position: relative;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: var(--blue-deep);
}

.header-img-slot {
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 100%;
    background: var(--header-gradient);
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-img-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    mix-blend-mode: luminosity;
}

.header-img-slot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 100%;
    background: linear-gradient(90deg, var(--blue-deep), transparent);
    z-index: 3;
}

.header-content {
    position: relative;
    z-index: 4;
    padding: 50px 52px;
    max-width: 56%;
}

.header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-1);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--blue-pale);
    opacity: 0.3;
    margin-bottom: 22px;
}

.header-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--blue-pale);
}

h1 {
    font-weight: 800;
    font-size: var(--fs-7);
    color: #fff;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

h1 em { font-style: normal; color: var(--blue); }

.subtitle {
    color: rgba(255,255,255,0.55);
    font-size: var(--fs-4);
    font-weight: 300;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 36px;
}

.header-meta { display: flex; gap: 28px; }

.header-stat { display: flex; flex-direction: column; gap: 2px; }

.header-stat-val {
    font-size: var(--fs-5);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.header-stat-label {
    font-size: var(--fs-1);
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}


/* ================================================
   TITRES DE SECTION
   ================================================ */

.design-impact {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 60px;
    padding: 20px 0;
}

.design-impact .eyebrow {
    font-size: var(--fs-1);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.design-impact h2 {
    font-size: var(--fs-7);
    font-weight: 800;
    background: var(--header-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.3;
    letter-spacing: -2px;
    padding-bottom: 10px;
}

.design-impact .line {
    width: 120px;
    height: 2px;
    background: var(--header-gradient);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* Texte d'introduction sous les titres */
.section-intro-text {
    margin-top: 30px;
    color: #000000;
    font-weight: 500;
    font-size: var(--fs-4);
    text-align: center;
}


/* ================================================
   CARTES & TIMELINE
   ================================================ */

.tl-card {
    background: transparent;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--blue);
    transition: transform 0.3s ease;
}

.tl-card:hover { transform: translateY(-12px); }

.tl-card a { color: var(--blue); font-weight: 700; text-decoration: none; }
.tl-card a:hover { text-decoration: underline; }

.period {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--fs-2);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.timeline-title {
    font-weight: 700;
    font-size: var(--fs-4);
    color: var(--blue-deep);
    margin-bottom: 10px;
}

.timeline-text {
    color: #000000;
    line-height: 1.7;
    font-size: var(--fs-2);
}


/* ================================================
   BLOC LÉGAL
   ================================================ */

.legal-blocks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 80px;
}


/* ================================================
   CITATIONS BIBLIQUES
   ================================================ */

.bible-quote-wrap {
    width: 100%;
    margin: 100px 0;
    padding: 40px 0;
}

.bible-quote-wrap.left-aligned  { text-align: left; }
.bible-quote-wrap.right-aligned { text-align: right; margin-left: auto; margin-right: 0; }

.bible-quote-text {
    font-weight: 800;
    font-size: var(--fs-8);
    line-height: 1.15;
    color: var(--blue-deep);
    letter-spacing: -1.5px;
    opacity: 0.3;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bible-quote-source {
    font-size: var(--fs-2);
    font-weight: 600;
    color: var(--blue-deep);
    opacity: 0.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-aligned .bible-quote-source::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--blue-deep);
}

.right-aligned .bible-quote-source {
    justify-content: flex-end;
}

.right-aligned .bible-quote-source::after {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--blue-deep);
}


/* ================================================
   CTA
   ================================================ */

.cta-section {
    position: relative;
    background: var(--header-gradient);
    border-radius: var(--radius-main);
    padding: 100px 50px;
    text-align: center;
    margin: 80px 0 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: var(--fs-6);
    font-weight: 800;
    line-height: 1.25;
    max-width: 1000px;
}


/* ================================================
   FOOTER
   ================================================ */

.site-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(128, 24, 24, 0.1);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: var(--fs-2);
    color: rgba(15, 25, 35, 0.5);
}

.footer-container a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.footer-container a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.footer-sep { color: rgba(128, 24, 24, 0.2); }


/* ================================================
   PAGE BIBLIOTHÈQUE — Archive & Liens
   ================================================ */

.archive-card {
    background: transparent;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--blue);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
    cursor: pointer;
}

.archive-card:hover {
    transform: translateY(-5px);
    background: rgba(128, 24, 24, 0.04);
}

.languages-full-card {
    width: 100%;
    margin-bottom: 30px;
    cursor: default;
}

.languages-full-card:hover {
    transform: none;
    background: transparent;
}

.lang-select-custom {
    width: 100%;
    max-width: 500px;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--blue);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
    outline: none;
    margin-top: 15px;
    font-size: var(--fs-1);
    text-transform: uppercase;
    letter-spacing: 1px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23801818' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 80px;
}

.archive-category {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--fs-1);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
    align-self: flex-start;
}

.archive-title {
    font-weight: 800;
    font-size: var(--fs-4);
    color: var(--blue-deep);
    margin-bottom: 8px;
    line-height: 1.2;
}

.archive-text {
    color: #000000;
    font-size: var(--fs-2);
    line-height: 1.5;
    margin-bottom: 15px;
}

.pdf-link-btn {
    text-decoration: none;
    color: var(--blue);
    font-weight: 800;
    font-size: var(--fs-1);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(128, 24, 24, 0.1);
}

.links-subtitle {
    text-align: left;
    font-size: var(--fs-5);
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: 20px;
    margin-top: 40px;
}


/* ================================================
   PAGE ACCUEIL — Intro animée & Storytelling
   ================================================ */

#intro-curtain {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.curtain-panel {
    position: absolute;
    width: 51%;
    height: 100%;
    background-color: var(--blue-deep);
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.1, 1);
    z-index: 1;
    pointer-events: auto;
}

.panel-left  { left: 0; }
.panel-right { right: 0; }

.intro-text-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.intro-line-wrap {
    overflow: hidden;
    padding: 0.2em 0.2em 0.4em;
    margin: -0.2em 0;
}

.intro-line {
    display: block;
    color: #fff;
    font-size: var(--fs-3);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.line-top    { transform: translateY(-150%); }
.line-bottom { transform: translateY(150%); color: var(--blue); }

#intro-curtain.reveal-text .intro-line      { transform: translateY(0); }
#intro-curtain.slide-away .panel-left       { transform: translateX(-100%); }
#intro-curtain.slide-away .panel-right      { transform: translateX(100%); }
#intro-curtain.slide-away .intro-text-container { opacity: 0; transition: opacity 0.4s ease; }

#main-site {
    opacity: 0;
    transition: opacity 0.8s ease;
    max-width: 1200px;
    margin: 0 auto;
    visibility: hidden;
}

#main-site.visible {
    opacity: 1;
    visibility: visible;
}

/* Blocs storytelling */
.story-container {
    position: relative;
    padding: 60px 0;
}

.story-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 40px;
    margin-bottom: 50px;
}

.story-block.reverse { flex-direction: row-reverse; }

.story-image-premium {
    flex: 1;
    height: 480px;
    position: relative;
    background: var(--blue-deep);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 1;
}

.story-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    mix-blend-mode: luminosity;
}

.story-card {
    flex: 0 0 45%;
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    position: relative;
    z-index: 10;
}

.story-block:not(.reverse) .story-card { margin-left: -100px; }
.story-block.reverse .story-card        { margin-right: -100px; }

.story-card h2 {
    font-size: var(--fs-6);
    color: var(--blue);
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.story-card p {
    line-height: 1.8;
    color: #000000;
    font-size: var(--fs-4);
}


/* ================================================
   PAGE INVENTION — Timeline, Flip boxes, Frise
   ================================================ */

/* Timeline */
.timeline { padding: 0; }
.timeline-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Flip boxes */
.flip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flip-box {
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-box:hover .flip-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;
}

.flip-front {
    background: transparent;
    border: 2px solid var(--blue);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.flip-number {
    font-weight: 800;
    font-size: var(--fs-7);
    color: var(--blue);
    line-height: 1;
    margin-bottom: 14px;
}

.flip-text {
    color: #000000;
    font-size: var(--fs-4);
    line-height: 1.7;
}

.flip-back {
    transform: rotateY(180deg);
    background: var(--header-gradient);
    padding: 0;
    display: block;
}

.flip-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    mix-blend-mode: luminosity;
    display: block;
}

/* Frise chronologique */
.chrono-track-main { position: relative; width: 100%; }

.chrono-track-main::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--blue);
    z-index: 1;
    transform: translateY(-50%);
    opacity: 0.5;
}

.chrono-items-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    align-items: center;
    min-height: 520px;
    margin: 0 60px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.chrono-items-container::-webkit-scrollbar { display: none; }

.chrono-nav-btn {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transform: translateY(-50%);
    font-size: var(--fs-8);
    color: var(--blue);
    font-weight: 100;
    transition: 0.3s;
}

.chrono-nav-btn:hover { color: var(--blue-deep); transform: translateY(-50%) scale(1.1); }
.chrono-nav-btn.prev { left: 0; }
.chrono-nav-btn.next { right: 0; }

.bubble-item {
    flex: 0 0 216px;
    height: 520px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    scroll-snap-align: start;
}

.bubble-anchor {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--blue);
    border-radius: 50%;
    z-index: 5;
    position: relative;
}

.bubble-year-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: var(--fs-4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.bubble-item.up   .bubble-year-label { top: calc(50% + 20px); }
.bubble-item.down .bubble-year-label { bottom: calc(50% + 20px); }

.bubble-content-wrap {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bubble-item.up   .bubble-content-wrap { bottom: calc(50% + 8px); }
.bubble-item.down .bubble-content-wrap { top: calc(50% + 8px); }

.bubble-stem { width: 2px; height: 60px; background: var(--blue); opacity: 0.3; }

.bubble-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.bubble-picto-placeholder { width: 50px; height: 50px; margin-bottom: 8px; object-fit: contain; }
.bubble-city  { font-weight: 800; font-size: var(--fs-2); color: var(--blue); text-transform: uppercase; }
.bubble-note  { font-size: var(--fs-1); color: var(--blue-dark); font-style: italic; line-height: 1.2; }

/* Section interactive */
.interactive-section {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.interactive-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================
   PAGE BIBLE — Structure, Comparaison, Traduction
   ================================================ */

.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Structure (chiffres et barres) */
.struct-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.big-number {
    font-size: var(--fs-7);
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 10px;
}

.split-bar {
    display: flex;
    height: 35px;
    border-radius: 18px;
    overflow: hidden;
    margin: 15px 0;
}

.at-part {
    background: var(--blue-deep);
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: var(--fs-1);
    text-transform: uppercase;
}

.nt-part {
    background: var(--blue);
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: var(--fs-1);
    text-transform: uppercase;
}

/* Tableau comparatif Latin / Français */
.comparison-container {
    border: 2px solid var(--blue);
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    margin: 20px 0 80px;
}

.verse-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(128, 24, 24, 0.1);
    position: relative;
}

.verse-row:last-child { border-bottom: none; }

.verse-row::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(128, 24, 24, 0.1);
}

.verse-col {
    padding: 25px 30px;
    display: flex;
    align-items: flex-start;
}

.v-marker {
    font-weight: 800;
    color: var(--blue);
    font-size: var(--fs-1);
    min-width: 25px;
    margin-top: 4px;
}

.text-lat {
    font-style: italic;
    color: var(--blue-deep);
    line-height: 1.8;
    font-size: var(--fs-2);
    flex: 1;
}

.text-fr {
    color: #000000;
    line-height: 1.8;
    font-size: var(--fs-2);
    flex: 1;
}

/* Boîte de traduction */
.translation-box {
    margin: 20px auto 40px;
    padding: 40px;
    border: 2px solid var(--blue);
    border-radius: 20px;
}

.translation-box p {
    font-size: var(--fs-2);
    color: #444;
    line-height: 1.8;
    text-align: justify;
}

.translation-box a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid rgba(128, 24, 24, 0.2);
    transition: 0.3s;
}

.translation-box a:hover {
    border-bottom-color: var(--blue);
    background: rgba(128, 24, 24, 0.05);
}


/* ================================================
   PAGE QUIZ — Progression, Questions, Résultats
   ================================================ */

.quiz-intro-text {
    margin-top: 30px;
    color: #000000;
    font-weight: 500;
    font-size: var(--fs-4);
    text-align: center;
}

.quiz-download-btns { margin-top: 30px; }

/* Boutons de téléchargement */
.btn-download-simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    border: 2px solid transparent;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: var(--fs-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin: 10px 5px;
    transition: all 0.3s ease;
}

.btn-download-simple:hover {
    background: transparent;
    border-color: var(--blue);
    color: var(--blue);
}

/* Barre de progression */
.quiz-container { width: 100%; }

.progress-section { margin-bottom: 40px; padding: 0 5px; }

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-labels span {
    font-size: var(--fs-1);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--blue-deep);
    letter-spacing: 1.2px;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: var(--parchment-dark);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--blue);
    transition: width 0.4s ease;
}

/* Modules de questions */
.question-module {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
    position: relative;
}

.q-tag {
    font-size: var(--fs-1);
    font-weight: 800;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.q-title {
    font-size: var(--fs-5);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 35px;
    border-left: 4px solid var(--blue);
    padding-left: 25px;
}

/* Options */
.options-list { display: flex; gap: 12px; flex-wrap: wrap; }
.option-item input { display: none; }

.option-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 25px;
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    border-radius: 25px;
    font-size: var(--fs-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-box:hover {
    background: var(--blue);
    color: #fff;
}

.option-item input:checked + .option-box {
    background: var(--blue-deep);
    color: #fff;
    border-color: var(--blue-deep);
}

/* Tags de validation */
.status-tag {
    position: absolute;
    top: 60px;
    right: 0;
    font-size: var(--fs-4);
    font-weight: 800;
    text-transform: uppercase;
}

.status-tag.correct-tag { color: var(--success); }
.status-tag.wrong-tag   { color: var(--error); }

/* Bouton corriger */
.actions-wrap { text-align: center; margin: 80px 0; }

.btn-validate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 0 40px;
    border-radius: 30px;
    font-size: var(--fs-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.btn-validate:hover {
    background: transparent;
    border-color: var(--blue);
    color: var(--blue);
}

/* Panneau de résultats */
#result-panel {
    display: none;
    background: var(--parchment-dark);
    border: 2px solid var(--blue);
    padding: 50px;
    text-align: center;
    border-radius: var(--radius-main);
    margin-bottom: 80px;
}

#result-panel h2 {
    font-size: var(--fs-6);
    margin-bottom: 10px;
    color: var(--blue-deep);
}

.final-score {
    font-size: var(--fs-8);
    font-weight: 800;
    color: var(--blue-deep);
    margin: 10px 0;
}


/* ================================================
   PAGE PRESSE — Modèle 3D, Bulles, Schéma
   ================================================ */

/* Modèle 3D fixe */
.press-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    pointer-events: none;
    display: flex;
    justify-content: center;
    margin-top: max(0px, calc(50vh - 420px));
}

model-viewer {
    width: 840px;
    height: 840px;
    background: transparent;
    --progress-bar-height: 0px;
}

model-viewer::part(default-progress-bar) { display: none; }

/* Section bulles */
.section-1 {
    position: relative;
    z-index: 15;
    padding: 0 0 120px;
    pointer-events: none;
}

.grid-1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    row-gap: 50px;
    column-gap: 80px;
}

.bubble-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.info-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--blue);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stroke-bubble {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--header-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stroke-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    mix-blend-mode: luminosity;
}

.connector-v {
    width: 2px;
    height: 40px;
    background: var(--blue);
    opacity: 0.4;
}

.info-circle-title {
    font-weight: 700;
    font-size: var(--fs-6);
    margin-bottom: 8px;
}

.info-circle-text {
    font-size: var(--fs-2);
    margin-bottom: 8px;
}

.group-left  { grid-column: 1; }
.group-right { grid-column: 3; justify-self: end; margin-top: 340px; }

/* Schéma SVG */
.section-schema { position: relative; z-index: 20; }
.press-diagram  { max-width: 1200px; margin: 0 auto; padding: 0; }
.press-diagram svg { width: 100%; max-width: 1200px; height: auto; display: block; margin: 0 auto; }


/* ================================================
   RESPONSIVE — Tablettes (≤ 1024px)
   ================================================ */

@media (max-width: 1024px) {
    :root {
        --fs-7: 42px;
        --fs-8: 56px;
    }

    .header-content  { max-width: 65%; }
    .header-img-slot { width: 48%; }

    .flip-row,
    .archive-grid { grid-template-columns: repeat(2, 1fr); }

    .flip-box { height: 180px; }

    .bible-quote-wrap { width: 100%; padding: 40px 0; margin: 0; }
}


/* ================================================
   RESPONSIVE — Mobiles (≤ 768px)
   ================================================ */

@media (max-width: 768px) {
    :root {
        --fs-3: 60px;
        --fs-4: 16px;
        --fs-5: 22px;
        --fs-6: 32px;
        --fs-7: 36px;
        --fs-8: 40px;
    }

    body { padding: 20px; overflow-x: hidden; }

    /* Header */
    header { flex-direction: column; min-height: auto; align-items: stretch; }
    .header-content { max-width: 100%; padding: 40px 20px; order: 1; }
    .header-img-slot {
        position: relative;
        width: 100%;
        height: 320px;
        order: 2;
        right: auto;
        top: auto;
    }
    .header-img-slot::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 160px;
        top: 0;
        left: 0;
        background: linear-gradient(to bottom, var(--blue-deep) 15%, transparent 100%);
        z-index: 2;
        display: block;
    }
    .header-meta { flex-wrap: wrap; }

    /* Grilles → 1 colonne */
    .timeline-items,
    .stats-row,
    .flip-row,
    .grid-cards,
    .struct-container,
    .archive-grid,
    .verse-row { grid-template-columns: 1fr !important; }

    .stats-row { margin-top: 20px !important; }

    /* Face-à-face Latin/Français */
    .verse-row::after { display: none; }
    .verse-col:first-child {
        border-bottom: 1px dashed rgba(128, 24, 24, 0.1);
        background: rgba(128, 24, 24, 0.02);
    }

    /* Frise chronologique */
    .chrono-nav-btn { display: none; }
    .chrono-items-container { margin: 0; }
    .chrono-track-main::before { left: 20px; right: 20px; }

    /* Blocs storytelling */
    .story-block,
    .story-block.reverse { flex-direction: column-reverse; gap: 20px; margin-bottom: 40px; }
    .story-card {
        width: 100%;
        padding: 30px 20px;
        margin: 0 !important;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .story-image-premium { width: 100%; }

    /* Page presse — masquer le modèle 3D */
    .press-wrapper { display: none !important; }
    .section-1 { padding-bottom: 50px; }
    .grid-1 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        padding: 20px !important;
    }
    .info-circle,
    .stroke-bubble { width: 280px !important; height: 280px !important; }
    .connector-v {
        display: block !important;
        height: 40px !important;
        width: 2px !important;
        background: var(--blue);
        opacity: 0.4;
        margin: 0 auto !important;
    }
    .bubble-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        margin-top: 0 !important;
    }

    /* Quiz */
    .options-list { flex-direction: column; align-items: flex-start; gap: 10px; }
    .option-box   { width: 100%; justify-content: flex-start; }
    .status-tag   { position: relative; top: 0; margin-bottom: 10px; display: block; }
    .q-title      { padding-left: 15px; }

    /* Citations */
    .bible-quote-text {
        font-size: 32px;
        letter-spacing: -0.5px;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: block;
    }
    .bible-quote-wrap {
        margin: 50px 0 !important;
        padding: 0 !important;
        width: 100%;
        overflow: hidden;
    }
    .right-aligned .bible-quote-text   { padding-right: 10px; }
    .right-aligned .bible-quote-source { padding-right: 15px; }

    /* Titres & espacements */
    .design-impact        { margin-top: 50px !important; margin-bottom: 30px !important; }
    .design-impact h2     { font-size: 34px; }
    .story-container      { padding: 0; }
    .cta-section          { padding: 60px 20px; margin-top: 40px; }
    .cta-text             { font-size: 24px; }
    .links-subtitle       { font-size: 20px; margin-top: 30px; }

    /* Footer */
    footer,
    .site-footer { margin-top: 40px; padding: 30px 15px; }
    .footer-container { flex-direction: column; gap: 12px; text-align: center; }
    .footer-sep { display: none; }
    .footer-container span:last-child { margin-top: 10px; line-height: 1.4; display: block; }
}