/* ===========================================
   VEILLE TECHNOLOGIQUE - Styles
   Fil narratif (récit en 4 chapitres)
   =========================================== */

/* ----- Section veille dans index.html ----- */
.veille-thematique {
    font-size: 0.65rem !important;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gray) !important;
    margin-bottom: 1.5rem !important;
}

.topic-axe {
    display: inline-block;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-dark);
}

.veille-cta {
    text-align: center;
    margin-top: 4rem;
}

/* ----- Page veille.html : Récit ----- */
.recit-intro {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.recit-intro p {
    font-size: 1rem;
    line-height: 2;
    color: var(--gray-light);
    letter-spacing: 0.03em;
    font-style: italic;
}

/* Chapitre */
.chapitre {
    max-width: 850px;
    margin: 0 auto 5rem;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--gray-dark);
    backdrop-filter: blur(5px);
    transition: border-color 0.3s;
}

.chapitre:hover {
    border-color: var(--white);
}

.chapitre-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-dark);
}

.chapitre-num {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1rem;
}

.chapitre-header h3 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.chapitre-content p {
    font-size: 0.9rem;
    color: var(--gray-light);
    line-height: 2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.chapitre-content p strong {
    color: var(--white);
    font-weight: 500;
}

.chapitre-content p em {
    color: var(--gray-light);
    font-style: italic;
}

.chapitre-lead {
    font-size: 1rem !important;
    color: var(--white) !important;
    font-style: italic;
    border-left: 2px solid var(--white);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem !important;
}

.chapitre-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.chapitre-list li {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.9;
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}

.chapitre-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--gray);
}

.chapitre-list li strong {
    color: var(--white);
    font-weight: 500;
}

/* Pull quote */
.pull-quote {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    line-height: 1.5;
    margin: 3rem 0 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-dark);
    border-bottom: 1px solid var(--gray-dark);
    text-align: center;
    letter-spacing: 0.02em;
}

/* Bascules dans le chapitre 3 */
.bascule {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(34, 34, 34, 0.4);
    border-left: 3px solid var(--white);
}

.bascule-label {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.bascule h4 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    color: var(--white);
}

.bascule p {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.bascule p:last-child {
    margin-bottom: 0;
}

.bascule p strong {
    color: var(--white);
    font-weight: 500;
}

/* Aparté à la fin du chapitre 4 */
.chapitre-aside {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--gray-dark);
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.9;
    font-style: italic;
}

.chapitre-aside strong {
    color: var(--white);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ----- Méthodologie honnête ----- */
.section-subtitle {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.9;
    font-style: italic;
}

.methodo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--gray-dark);
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.methodo-step {
    background: rgba(0, 0, 0, 0.7);
    padding: 2.5rem 1.5rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, background 0.3s;
}

.methodo-step .step-num {
    display: block;
    font-size: 2rem;
    font-weight: 200;
    opacity: 0.2;
    margin-bottom: 1rem;
}

.methodo-step h3 {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.methodo-step p {
    font-size: 0.7rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Variante honnête : steps légèrement décalés */
.methodo-honest .methodo-step:nth-child(2) {
    transform: translateY(8px) rotate(-0.4deg);
}
.methodo-honest .methodo-step:nth-child(4) {
    transform: translateY(-6px) rotate(0.3deg);
}
.methodo-honest .methodo-step:hover {
    transform: translateY(0) rotate(0);
    background: rgba(34, 34, 34, 0.9);
}

.methodo-aveu {
    max-width: 800px;
    margin: 3rem auto 6rem;
    padding: 2.5rem;
    border-left: 2px solid var(--white);
    background: rgba(0, 0, 0, 0.5);
}

.methodo-aveu p {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.methodo-aveu strong {
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.methodo-progress {
    color: var(--white) !important;
    font-size: 0.78rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-dark);
    margin-top: 1.5rem !important;
}

/* ----- Sources ----- */
.sources-block {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid var(--gray-dark);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.sources-block h3 {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--gray-light);
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.source-group h4 {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-dark);
}

.source-group ul {
    list-style: none;
    padding: 0;
}

.source-group li {
    font-size: 0.7rem;
    color: var(--gray-light);
    line-height: 2;
}

/* ----- Journal de veille ----- */
.journal-timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--gray-dark);
}

.journal-entry {
    padding: 0 0 3rem 2rem;
    position: relative;
}

.journal-entry::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0.5rem;
    width: 5px;
    height: 5px;
    background: var(--white);
    transform: rotate(45deg);
}

.journal-date {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.journal-entry h4 {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.journal-entry p {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.entry-axe {
    display: inline-block;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--gray-dark);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .methodo-grid { grid-template-columns: repeat(2, 1fr); }
    .sources-grid { grid-template-columns: repeat(2, 1fr); }
    .chapitre { padding: 2rem; }
    .pull-quote { font-size: 1.1rem; padding: 1.2rem 1rem; }
}

@media (max-width: 768px) {
    .methodo-grid { grid-template-columns: 1fr; }
    .sources-grid { grid-template-columns: 1fr; }
    .chapitre { padding: 1.5rem; margin-bottom: 3rem; }
    .chapitre-header h3 { font-size: 1.3rem; }
    .pull-quote { font-size: 1rem; }
    .bascule { padding: 1.5rem; }
}

/* ----- Thème floral ----- */
body.floral-theme .chapitre,
body.floral-theme .methodo-step,
body.floral-theme .sources-block,
body.floral-theme .bascule {
    background: linear-gradient(135deg, rgba(15, 31, 19, 0.9), rgba(26, 46, 31, 0.9));
    border-color: rgba(74, 222, 128, 0.3);
}

body.floral-theme .chapitre:hover {
    border-color: var(--floral-primary);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}

body.floral-theme .bascule,
body.floral-theme .methodo-aveu,
body.floral-theme .chapitre-lead {
    border-color: var(--floral-primary);
}

body.floral-theme .pull-quote {
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--floral-primary);
}

body.floral-theme .chapitre-num,
body.floral-theme .topic-axe,
body.floral-theme .bascule-label,
body.floral-theme .entry-axe {
    color: var(--floral-primary);
    border-color: rgba(74, 222, 128, 0.3);
}

body.floral-theme .journal-timeline {
    border-color: rgba(74, 222, 128, 0.3);
}

body.floral-theme .journal-entry::before {
    background: var(--floral-primary);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

body.floral-theme .methodo-progress {
    color: var(--floral-primary) !important;
    border-color: rgba(74, 222, 128, 0.3);
}

body.floral-theme .chapitre-aside {
    border-color: rgba(74, 222, 128, 0.3);
}

/* ----- Liens dans le récit ----- */
.source-link,
.chapitre-content p a,
.chapitre-list li a,
.bascule p a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 1px;
    transition: border-color 0.3s, color 0.3s;
}

.source-link:hover,
.chapitre-content p a:hover,
.chapitre-list li a:hover,
.bascule p a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* Sources spécifiques au chapitre */
.chapitre-sources {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-left: 2px solid var(--gray-dark);
}

.chapitre-sources h5 {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1rem;
}

.chapitre-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapitre-sources li {
    font-size: 0.78rem;
    color: var(--gray-light);
    line-height: 1.9;
    padding: 0.3rem 0;
}

.chapitre-sources li a {
    color: var(--gray-light);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-dark);
    transition: color 0.3s, border-color 0.3s;
}

.chapitre-sources li a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* Sources en bas des bascules */
.bascule-sources {
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-dark);
    font-size: 0.75rem !important;
    color: var(--gray) !important;
    line-height: 1.8 !important;
}

.bascule-sources a {
    color: var(--gray-light) !important;
    border-bottom: 1px solid var(--gray-dark) !important;
}

.bascule-sources a:hover {
    color: var(--white) !important;
    border-bottom-color: var(--white) !important;
}

/* Sources dans la liste principale */
.source-group li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.source-group li a:hover {
    color: var(--white);
}

/* Lien dans le journal */
.entry-link {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-light);
    text-decoration: none;
    margin: 0.5rem 0 1rem;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--gray-dark);
    transition: color 0.3s, border-color 0.3s;
}

.entry-link:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* Adaptations thème floral */
body.floral-theme .source-link,
body.floral-theme .chapitre-content p a,
body.floral-theme .chapitre-list li a,
body.floral-theme .bascule p a,
body.floral-theme .entry-link {
    color: var(--floral-primary);
    border-bottom-color: rgba(74, 222, 128, 0.4);
}

body.floral-theme .source-link:hover,
body.floral-theme .chapitre-content p a:hover,
body.floral-theme .chapitre-list li a:hover,
body.floral-theme .bascule p a:hover,
body.floral-theme .entry-link:hover {
    color: var(--floral-pink);
    border-bottom-color: var(--floral-pink);
}

body.floral-theme .chapitre-sources {
    border-color: rgba(74, 222, 128, 0.3);
}