/* =========================================================
   LIGNES — thème Yellow v3 / vertical slice
   Prolonge le thème v2 : fond plat, calendrier éditorial,
   aucune grille décorative ni esthétique de dashboard.
   ========================================================= */


:root {
    --lignes-bg: #F1F1F1;
    --lignes-surface: #F1F1F1;
    --lignes-red: #CB382F;
    --lignes-black: #000000;
    --lignes-blue: #CC2F72;
    --lignes-white: #FFFFFF;
    --lignes-muted: #5d5d5d;

    --lignes-title: "LEMON MILK";
    --lignes-subtitle: "Cormorant Garamond";
    --lignes-text: "Syne";

    --lignes-max: 1100px;
    --lignes-reading: 760px;
}
@font-face {
    font-family: "LEMON MILK";
    src: url("/media/fonts/lemon-milk.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Syne";
    src: url("/media/fonts/Syne-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("/media/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

* { box-sizing: border-box; }
html, body { background: var(--lignes-bg); }
body { margin: 0; color: var(--lignes-black); font-family: var(--lignes-text); font-size: 18px; line-height: 1.5; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .14em; }
a:hover { color: var(--lignes-red); }
.page { width: min(calc(100% - 40px), var(--lignes-max)); margin: 0 auto; }
.content img { max-width: 100%; height: auto; }
.content h1, .content h2, .content h3, .content h4 { color: var(--lignes-black); font-family: var(--lignes-title); font-weight : 400; }
.content h1 { letter-spacing: -0.025em; }
.content h2, .content h3 { line-height: 1.06; }
.content blockquote { margin-left: 0; padding-left: 1.2rem; border-left: 4px solid var(--lignes-red); font-family: var(--lignes-text); font-style: italic; }
.content hr { border: 0; border-top: 2px solid var(--lignes-red); }

/* HEADER */
.header { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 40px; padding: 5px 0 10px; border-bottom: 2px solid var(--lignes-red); }
.header .sitename h1 { margin: 0; font-family: var(--lignes-title); font-size: .9rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.header .sitename h1 a { text-decoration: none; }
.navigation { justify-self: end; }
.navigation ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 19px; margin: 0; padding: 0; list-style: none; }
.navigation a { font-family: var(--lignes-title); font-size: 1rem; line-height: 1; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.navigation a:hover, .navigation a.active { color: var(--lignes-red); }

/* TITRES DE SECTION / INDEX */
.index-page { padding: 62px 0 96px; }
.index-header { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,360px); align-items: end; gap: 44px; padding-bottom: 28px; border-bottom: 4px solid var(--lignes-red); }
.index-header h1 { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-size: clamp(3.2rem, 8vw, 5rem); line-height: .84; text-transform: uppercase; }
.index-eyebrow { grid-column: 2; grid-row: 1; margin: 0; color: var(--lignes-red); font-family: var(--lignes-subtitle); font-size: 1.15rem; font-style: italic; font-weight : 500; }
.section-heading { display: flex; align-items: baseline; gap: 18px; padding-bottom: 14px; border-bottom: 3px solid var(--lignes-red); }
.section-heading.compact { border-bottom-width: 2px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 3.2rem); text-transform: uppercase; }
.section-number { margin: 0; color: var(--lignes-red); font-family: var(--lignes-title); font-size: .72rem; }
.section-link, .back-link { margin-top: 18px; font-family: var(--lignes-title); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }

/* ACCUEIL */
.home-content {
    padding: 27px 0 50px;
}


/* ---------------------------------------------------------
   GRILLE PRINCIPALE
   Événements + intervention placés sur le même plan
   --------------------------------------------------------- */

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 52px;
    align-items: start;
}

.home-grid > section {
    min-width: 0;
    margin: 0;
}


/* Titres des deux colonnes alignés */
.home-grid .section-heading {
    min-height: 76px;
    align-items: flex-end;
}

.home-grid .section-heading h1,
.home-grid .section-heading h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.35rem);
    line-height: .95;
}


/* ---------------------------------------------------------
   COLONNE GAUCHE — PROCHAINS ÉVÉNEMENTS
   --------------------------------------------------------- */

.home-event-list {
    margin-top: 20px;
}


/*
   Le calendrier normal dispose de trois colonnes.
   Sur la home, on le compacte pour qu'il fonctionne
   dans une demi-page.
*/
.home-events .calendar-event-link {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 22px 8px 23px 0;
}

.home-events .calendar-date {
    grid-template-columns: auto 1fr;
    gap: 8px;
}

.home-events .calendar-day {
    font-size: 2.7rem;
}

.home-events .calendar-date-secondary {
    font-size: .6rem;
}

.home-events .calendar-event-title {
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    line-height: 1.02;
}


/* Le lieu passe sous le titre */
.home-events .calendar-location {
    grid-column: 2;
    margin-top: -6px;
    padding-left: 0;
    border-left: 0;
}

.home-events .calendar-place-name {
    font-size: .96rem;
}

.home-events .calendar-place-detail {
    font-size: .8rem;
}


/* ---------------------------------------------------------
   COLONNE DROITE — DERNIÈRE INTERVENTION
   --------------------------------------------------------- */

.home-intervention {
    padding-left: 38px;
    border-left: 1px solid var(--lignes-red);
}


/*
   On abandonne ici la mise en page date + contenu
   pensée pour une intervention pleine largeur.
*/
.home-intervention .featured-intervention {
    display: block;
    padding: 25px 0 18px;
}

.home-intervention .intervention-date {
    margin: 0 0 16px;
    color: var(--lignes-blue);
    font-family: var(--lignes-title);
    font-size: 1.5rem;
    letter-spacing: .02em;
}

.home-intervention .featured-intervention h3 {
    max-width: none;
    margin: 0;
    font-size: clamp(1.1rem, 3.5vw, 3rem);
    line-height: .92;
    letter-spacing: -.08em;

}

.home-intervention .featured-intervention h3 a {
    text-decoration: none;
}

.home-intervention .featured-standfirst {
    max-width: 560px;
    margin: 22px 0 0;
    font-family: var(--lignes-subtitle);
    font-size: 1.08rem;
    font-style: italic;
    font-weight : 500;
    line-height: 1.38;
}

.home-intervention .featured-read {
    margin-top: 24px;
    font-family: var(--lignes-title);
    font-size: .7rem;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   LIENS DE BAS DE SECTION
   --------------------------------------------------------- */

.home-grid .section-link {
    margin-top: 22px;
}

/* ==========================================
   LIGNES — RESPONSIVE MOBILE V6
   ========================================== */

@media screen and (max-width: 800px) {

    /* Structure générale */

    html,
    body {
        width: 100%;
        max-width: 100%;
    }

    .page {
        width: calc(100% - 32px);
        max-width: 100%;
        margin-inline: auto;
    }

    .content,
    .home-content {
        min-width: 0;
    }

    /* HEADER */

    .header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding: 16px 0 20px;
    }

    .header .sitename {
        width: 100%;
        min-width: 0;
    }

    .header .site-brand-logo {
        width: min(100%, 260px);
        max-width: 100%;
        height: auto;
    }

    .navigation {
        width: 100%;
        justify-self: auto;
    }

    .navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px 20px;
    }

    .navigation a {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    /* ACCUEIL : UNE SEULE COLONNE */

    .home-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

    .home-grid > section {
        width: 100%;
        min-width: 0;
    }

    .home-grid .section-heading {
        min-height: 0;
        padding-bottom: 14px;
    }

    .home-grid .section-heading h1,
    .home-grid .section-heading h2 {
        font-size: clamp(1.55rem, 6vw, 2.3rem);
        line-height: 1;
        overflow-wrap: break-word;
    }

    /* ÉVÉNEMENTS */

    .home-events .calendar-event-link {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        padding: 22px 0;
    }

    .home-events .calendar-date {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .home-events .calendar-day {
        font-size: 2.6rem;
    }

    .home-events .calendar-date-secondary {
        font-size: 0.65rem;
    }

    .home-events .calendar-event-main {
        min-width: 0;
    }

    .home-events .calendar-kicker {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .home-events .calendar-event-title {
        font-size: clamp(1.15rem, 4.5vw, 1.5rem);
        line-height: 1.08;
        overflow-wrap: break-word;
    }

    .home-events .calendar-location {
        grid-column: 2;
        min-width: 0;
        margin-top: 0;
        padding-left: 0;
        border-left: 0;
    }

    /* INTERVENTION */

    .home-intervention {
        padding-left: 0;
        border-left: 0;
    }

    .home-intervention .featured-intervention {
        padding-top: 24px;
    }

    .home-intervention .intervention-date {
        font-size: 1.35rem;
    }

    .home-intervention .featured-intervention h3 {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
        line-height: 1.05;
        letter-spacing: -0.04em;
        overflow-wrap: break-word;
    }

    /* AUTRES PAGES */

    .detail-header h1,
    .index-header h1,
    .calendar-header h1 {
        max-width: 100%;
        overflow-wrap: break-word;
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .detail-body,
    .related-block {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .reading-copy {
        overflow-wrap: break-word;
    }

    .reading-copy img,
    .reading-copy svg {
        max-width: 100%;
        height: auto;
    }
}


/* ==========================================
   PETITS TÉLÉPHONES
   ========================================== */

@media screen and (max-width: 480px) {

    .page {
        width: calc(100% - 28px);
    }

    .navigation ul {
        gap: 10px 16px;
    }

    .navigation a {
        font-size: 0.72rem;
    }

    .home-content {
        padding-top: 30px;
    }

    .home-grid {
        gap: 48px;
    }

    .home-events .calendar-event-link {
        grid-template-columns: 65px minmax(0, 1fr);
        gap: 12px;
    }

    .home-events .calendar-day {
        font-size: 2.35rem;
    }

    .home-events .calendar-event-title {
        font-size: 1.15rem;
    }

    .home-intervention .featured-intervention h3 {
        font-size: 1.65rem;
    }

    .section-heading h1,
    .section-heading h2 {
        overflow-wrap: break-word;
    }
}



/* CALENDRIER — reprend la logique du thème v2 */
.calendar-content { width: 100%; }
.calendar { width: 100%; padding: 56px 0 90px; }
.calendar-header { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,370px); gap: 50px; align-items: end; padding: 0 0 28px; border-bottom: 4px solid var(--lignes-red); }
.calendar-eyebrow { margin: 0 0 12px; color: var(--lignes-red); font-family: var(--lignes-subtitle); font-size: 1.15rem; font-style: italic; line-height: 1; font-weight : 500; }
.calendar-header h1 { margin: 0; font-size: clamp(3.25rem,8vw,5rem); font-weight: 800; line-height: .84; letter-spacing: -.055em; text-transform: uppercase; }
.calendar-intro { margin: 0 0 2px; font-size: 1.08rem; line-height: 1.42; }
.calendar-intro > :first-child { margin-top: 0; } .calendar-intro > :last-child { margin-bottom: 0; }
.calendar-section { padding-top: 5px; }
.calendar-section + .calendar-section { margin-top: 82px; padding-top: 54px; border-top: 1px solid rgba(0,0,0,.28); }
.calendar-section-heading { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 28px; align-items: start; margin-bottom: 4px; }
.calendar-section-heading h2 { margin: 0; font-size: clamp(2rem,5vw,4.7rem); line-height: .92; text-transform: uppercase; }
.calendar-section-heading p:last-child { max-width: 620px; margin: 10px 0 0; font-family: var(--lignes-subtitle); font-style: italic; font-weight : 500;}
.calendar-archives .calendar-section-heading h2 { color: var(--lignes-blue); }
.calendar-month { margin-top: 50px; }
.calendar-month-heading { display: flex; align-items: center; gap: 18px; padding-bottom: 10px; }
.calendar-month-heading h2 { margin: 0; flex: none; color: var(--lignes-red); font-size: 1.2rem; letter-spacing: .075em; text-transform: uppercase; }
.calendar-month-line { flex: 1; height: 2px; background: var(--lignes-red); }
.calendar-event { position: relative; border-top: 1px solid var(--lignes-red); }
.calendar-event:last-child { border-bottom: 1px solid var(--lignes-red); }
.calendar-event-link { display: grid; grid-template-columns: 125px minmax(0,1fr) 190px; gap: 28px; align-items: center; padding: 25px 12px 27px 0; color: inherit; text-decoration: none; transition: background-color .15s ease, padding-left .15s ease; }
.calendar-event-link:hover { color: var(--lignes-black); background: rgba(255,255,255,.56); padding-left: 12px; }
.calendar-event-link:focus-visible { outline: 3px solid var(--lignes-red); outline-offset: -3px; }
.calendar-date { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.calendar-day { font-family: var(--lignes-title); font-size: 3.3rem; font-weight: 800; line-height: .84; letter-spacing: -.05em; }
.calendar-date-secondary { padding-top: 1px; font-family: var(--lignes-title); font-size: .66rem; line-height: 1.38; letter-spacing: .055em; text-transform: uppercase; }
.calendar-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; min-height: 22px; margin-bottom: 8px; font-family: var(--lignes-subtitle); font-size: 1rem; font-style: italic; font-weight : 500; line-height: 1.12; }
.calendar-cycle { color: var(--lignes-red); }
.calendar-badge { display: inline-block; padding: 5px 9px 4px; color: var(--lignes-white); background: var(--lignes-blue); font-family: var(--lignes-title); font-size: .61rem; font-style: normal; line-height: 1; letter-spacing: .05em; text-transform: uppercase; }
.calendar-badge.is-cancelled { background: var(--lignes-red); }
.calendar-event-title { margin: 0; font-size: clamp(1.3rem,2.5vw,2.05rem); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; text-transform: uppercase; }
.calendar-location { padding-left: 16px; border-left: 3px solid var(--lignes-red); font-size: 1.02rem; line-height: 1.22; }
.calendar-meta-label { display: block; margin-bottom: 5px; color: var(--lignes-black); font-family: var(--lignes-title); font-size: .61rem; line-height: 1; letter-spacing: .07em; text-transform: uppercase; }
.calendar-place-name { display: block; font-family: var(--lignes-subtitle); font-size: 1.08rem; font-style: italic; font-weight : 800;}
.calendar-place-detail { display: block; margin-top: 3px; font-size: .88rem; color: var(--lignes-black); }
.calendar-event.is-outside-cycle { border-top-color: var(--lignes-blue); }
.calendar-event.is-outside-cycle .calendar-event-link { position: relative; padding-left: 18px; }
.calendar-event.is-outside-cycle .calendar-event-link::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--lignes-blue); }
/* Retrait visuel réservé aux séances de la section Archives du calendrier. */
.calendar-archives .calendar-event.is-past { opacity: .60; }
.calendar-archives .event-item,
.calendar-archives .calendar-month {
  opacity: 0.68;
}
.calendar-event.is-cancelled .calendar-event-title { text-decoration: line-through; text-decoration-thickness: 2px; }
.calendar-event.is-compact .calendar-event-link { padding-top: 20px; padding-bottom: 21px; }
.calendar-empty { margin: 36px 0; font-family: var(--lignes-subtitle); font-size: 1.15rem; font-style: italic; }

/* LECTURES / SAISONS / CYCLES */
.season-block { padding: 58px 0 12px; }
.season-block.is-archive { margin-top: 46px; padding-top: 54px; border-top: 1px solid rgba(0,0,0,.28); }
.season-block.is-archive .season-label { color: var(--lignes-blue); }
.season-heading { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; margin-bottom: 26px; }
.season-label { margin: 0; color: var(--lignes-blue); font-family: var(--lignes-title); font-size: .68rem; text-transform: uppercase; }
.season-heading h2 { margin: 0; font-size: clamp(2rem,4vw,2.7rem); text-transform: uppercase; }
.season-heading a { text-decoration: none; }
.cycle-list { border-top: 1px solid var(--lignes-red); }
.cycle-list.standalone { margin-top: 50px; }


/* Index Lectures — cycles disposés par rangées de trois.
   Scope volontairement limité à .cycle-grid pour ne pas modifier
   les listes de cycles utilisées sur les autres layouts. */
.cycle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 18px;
}
.cycle-grid .cycle-entry {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    height: 100%;
    padding: 28px 0 30px;
}
.cycle-grid .cycle-number {
    font-size: 1.8rem;
}
.cycle-grid .cycle-entry h3 {
    font-size: clamp(1.15rem, 1.55vw, 2rem);
    line-height: 1.03;
}
.cycle-grid .cycle-summary {
    margin: 12px 0 18px;
    font-size: 1rem;
    line-height: 1.35;
}
.cycle-grid .reading-list {
    margin-top: 14px;
}
.cycle-grid .reading-list li a {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0 11px;
}
.cycle-grid .reading-list li span {
    font-size: .78rem;
    line-height: 1.2;
}
.cycle-grid .reading-list li em {
    text-align: left;
    font-size: .94rem;
    line-height: 1.2;
}
.cycle-entry { display: grid; grid-template-columns: 150px 1fr; gap: 34px; padding: 30px 0 34px; border-bottom: 1px solid var(--lignes-red); }
.cycle-number { margin: 0; color: var(--lignes-red); font-family: var(--lignes-title); font-size: 2.5rem; line-height: 1; }
.cycle-entry h2, .cycle-entry h3 { margin: 0; font-size: clamp(1.55rem,3.5vw,3rem); text-transform: uppercase; }
.cycle-entry h2 a, .cycle-entry h3 a { text-decoration: none; }
.cycle-summary { max-width: 720px; margin: 14px 0 22px; font-family: var(--lignes-text); }
.reading-list { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--lignes-black); }
.reading-list li { border-bottom: 1px solid none; }
.reading-list li a { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 24px; padding: 12px 0; text-decoration: none; }
.reading-list li span { font-family: var(--lignes-title); font-size: .9rem; text-transform: uppercase; }
.reading-list li em { font-family: var(--lignes-subtitle); text-align: right; }
.reading-list.large li a { padding: 20px 0; }
.reading-list.large li span { font-size: clamp(1rem,2vw,1.4rem); }
.cycle-section { margin-top: 70px; }
.concept-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 24px; }
.concept-links a { color: var(--lignes-blue); font-family: var(--lignes-title); font-size: .76rem; letter-spacing: .025em; text-decoration: none; text-transform: uppercase; }

/* GLOSSAIRE */
.alphabet { display: flex; flex-wrap: wrap; gap: 8px 13px; padding: 22px 0; border-bottom: 1px solid var(--lignes-red); color: var(--lignes-blue); font-family: var(--lignes-title); font-size: .68rem; }
.concept-index-entry { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: 45px; padding: 28px 0; border-bottom: 1px solid var(--lignes-red); }
.concept-index-entry h2 { margin: 0; font-size: clamp(1.5rem,3vw,2rem); text-transform: uppercase; }
.concept-index-entry h2 a { text-decoration: none; }
.concept-theme { margin: 4px 0 0; color: var(--lignes-blue); font-family: var(--lignes-subtitle); font-style: italic; }
.concept-index-entry > p:last-child { margin: 0; }

/* INTERVENTIONS */
.intervention-entry { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--lignes-red); }
.intervention-date { margin: 0; color: var(--lignes-blue); font-family: var(--lignes-title); font-size: 1rem; }
.intervention-entry h2 { margin: 0; font-size: clamp(1.6rem,4vw,2rem); text-transform: uppercase; }
.intervention-entry h2 a { text-decoration: none; }
.intervention-entry p:last-child { max-width: 720px; }

/* PAGES DE DÉTAIL */
.detail-page { padding: 32px 0 50px; }
.detail-header { padding-bottom: 20px; border-bottom: 4px solid var(--lignes-red); }
.detail-kicker { margin: 0 0 16px; color: var(--lignes-red); font-family: var(--lignes-subtitle); font-size: 1.08rem; font-style: italic; }
.detail-header h1 { max-width: 980px; margin: 0; font-size: clamp(3rem,7vw,4rem); line-height: .88; text-transform: uppercase; }
.detail-standfirst { max-width: 760px; margin-top: 26px; font-family: var(--lignes-subtitle); font-size: 1.22rem; font-style: italic; }
.detail-body { max-width: var(--lignes-reading); margin: 46px 0 0 150px; }
.detail-body > :first-child { margin-top: 0; }
.detail-body h2 { margin-top: 2.2em; font-size: 1.5rem; text-transform: uppercase; }
.reading-byline, .concept-authors { margin: 24px 0 0; color: var(--lignes-blue); font-family: var(--lignes-subtitle); font-size: 2rem; font-style: italic; font-weight: 800;}
.event-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--lignes-red); }
.event-facts p { margin: 0; }
.related-block { max-width: 900px; margin: 64px 0 0 150px; padding-top: 16px; border-top: 2px solid var(--lignes-red); }
.related-label { margin: 0 0 12px; color: var(--lignes-red); font-family: var(--lignes-title); font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.related-block h2 { margin: 0 0 5px; font-size: 1.65rem; text-transform: uppercase; }
.reading-author { margin: 0; font-family: var(--lignes-subtitle); font-style: italic; font-weight : 800; }
.reading-fallback { max-width: 720px; margin: 0; font-family: var(--lignes-subtitle); font-size: 1.08rem; font-style: italic; }
.primary-action { margin: 36px 0 0 150px; }
.primary-action a { display: inline-block; padding: 11px 14px 9px; color: var(--lignes-white); background: var(--lignes-red); font-family: var(--lignes-title); font-size: .72rem; text-decoration: none; text-transform: uppercase; }
.back-link { margin-left: 150px; }

/* A PROPOS */
/* ---------------------------------------------------------
   RÉSEAUX SOCIAUX — PAGE À PROPOS
   --------------------------------------------------------- */

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;

    border: 1px solid #000;
    color: #000;
    background: transparent;

    font-family: "LEMON MILK", sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;

    text-decoration: none;

    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease;
}

.social-link:hover {
    color: #CB382F;
    border-color: #CB382F;
}

/* FOOTER */
.footer { margin-top: 30px; padding: 25px 0 40px; border-top: 2px solid var(--lignes-red); font-size: .9rem; }
.footer p { margin: 0; }

/* RESPONSIVE */
/* Grille des cycles : 3 colonnes desktop, 2 tablette, 1 mobile. */
@media screen and (max-width: 1050px) {
    .cycle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }
}

@media screen and (max-width: 640px) {
    .cycle-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .cycle-grid .cycle-entry {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
    }
    .cycle-grid .cycle-entry h3 {
        font-size: 1.35rem;
    }
}

@media screen and (max-width: 800px) {
    .page { width: min(calc(100% - 28px), var(--lignes-max)); }
    .header { grid-template-columns: 1fr; gap: 16px; }
    .navigation { justify-self: start; }
    .navigation ul { justify-content: flex-start; }
    .index-header, .calendar-header { grid-template-columns: 1fr; gap: 22px; }
    .index-header h1, .index-eyebrow { grid-column: auto; grid-row: auto; }
    .calendar { padding-top: 34px; }
    .calendar-section-heading { grid-template-columns: 1fr; gap: 8px; }
    .calendar-event-link { grid-template-columns: 96px minmax(0,1fr); gap: 18px; align-items: start; }
    .calendar-location { grid-column: 2; margin-top: -8px; }
    .calendar-day { font-size: 2.7rem; }
    .featured-intervention, .season-heading, .cycle-entry, .intervention-entry, .concept-index-entry { grid-template-columns: 1fr; gap: 10px; }
    .featured-intervention .intervention-date { grid-column: 1; grid-row: auto; }
    .detail-body, .related-block, .primary-action, .back-link { margin-left: 0; }
    .event-facts { grid-template-columns: 1fr; }
}

@media screen and (max-width: 520px) {
    body { font-size: 16px; }
    .page { width: min(calc(100% - 20px), var(--lignes-max)); }
    .navigation ul { gap: 11px; }
    .calendar-header, .index-header, .detail-header { border-bottom-width: 3px; }
    .calendar-event-link, .calendar-event.is-outside-cycle .calendar-event-link { grid-template-columns: 72px minmax(0,1fr); gap: 12px; padding-right: 0; }
    .calendar-event-link { padding-left: 0; }
    .calendar-event.is-outside-cycle .calendar-event-link { padding-left: 12px; }
    .calendar-date { grid-template-columns: 1fr; gap: 4px; }
    .calendar-date-secondary { padding-top: 0; }
    .calendar-event-title { font-size: 1.22rem; }
    .reading-list li a { grid-template-columns: 1fr; gap: 4px; }
    .reading-list li em { text-align: left; }
    .home-events { margin-bottom: 70px; }
}

@media print {
    body { background: #fff; }
    .navigation { display: none; }
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media screen and (max-width: 800px) {

    .readings-index {
        --svg-hero-width: 75vw;
        --svg-hero-opacity: .72;
        --svg-flow-size: 820px;
        --svg-flow-opacity: .05;
    }

    .readings-index .index-header::after {
        right: -22vw;
    }

    .readings-index::before {
        right: -540px;
        top: 330px;
    }
}


@media screen and (max-width: 520px) {

    .readings-index {
        --svg-hero-width: 115vw;
        --svg-hero-opacity: .48;
    }

    .readings-index .index-header::after {
        right: -62vw;
    }

    /*
       Le fond est dispensable sur petit écran.
       On conserve uniquement le signe graphique du Hero.
    */
    .readings-index::before {
        display: none;
    }
}

/* LOGO DU SITE */

.header .site-brand {
    margin: 0;
}

.header .site-brand a {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}


/* Texte actuel = fallback */
.header .site-brand-text {
    display: inline-block;
}


/* SVG chargé mais invisible tant qu'on n'a pas
   vérifié que son chargement a réussi */
.header .site-brand-logo {
    position: absolute;
    display: block;

    width: 220px;
    height: auto;

    opacity: 0;
    pointer-events: none;
}


/* Le SVG a correctement chargé */
.header .site-brand.logo-loaded .site-brand-logo {
    position: static;
    opacity: 1;
}


/* On masque alors seulement le texte */
.header .site-brand.logo-loaded .site-brand-text {
    display: none;
}

/* ---------------------------------------------------------
   OUTILS DE LECTURE+ IMPRESSIONS
   --------------------------------------------------------- */

.reading-tools {
    margin: 0 0 32px;
}

.reading-print-button {
    appearance: none;
    border: none;
    background: var(--lignes-red);
    color: #fff;

    padding: 10px 16px;

    font-family: var(--lignes-title);
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;
}

.reading-print-button:hover {
    background: var(--lignes-bg);
    color: var(--lignes-red);

}

/* =========================================================
   IMPRESSION — LECTURES : nettoyage de la page imprimée
   ========================================================= */

@media print {

    /* -----------------------------------------------------
       PAGE
       ----------------------------------------------------- */

   @media print {

    @page {
        size: A4;
        margin: 18mm 16mm 20mm;
    }

    /* Pages impaires = numéro extérieur à droite */
    @page :right {
        @bottom-right {
            content: counter(page);

            font-family: "LEMON MILK", Arial, sans-serif;
            font-size: 8pt;
            font-weight: 400;

            color: #000;
        }
    }

    /* Pages paires = numéro extérieur à gauche */
    @page :left {
        @bottom-left {
            content: counter(page);

            font-family: "LEMON MILK", Arial, sans-serif;
            font-size: 8pt;
            font-weight: 400;

            color: #000;
        }
    }

}

@media print {

    @page :first {
        @bottom-left {
            content: none;
        }

        @bottom-center {
            content: none;
        }

        @bottom-right {
            content: none;
        }
    }

}

    html,
    body {
        background: #fff !important;
        color: #000 !important;
    }

    body {
        margin: 0;
        padding: 0;
    }


    /* -----------------------------------------------------
       MASQUER L'INTERFACE DU SITE
       ----------------------------------------------------- */

    header:not(.reading-hero),
    footer,
    nav,
    .reading-tools,
    .related-block,
    .back-links,
    .primary-action {
        display: none !important;
    }


    /* -----------------------------------------------------
       CONTENEUR PRINCIPAL
       ----------------------------------------------------- */

    .reading-detail {
        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;
        color: #000 !important;
    }

    /* -----------------------------------------------------
       CORPS DE TEXTE
       ----------------------------------------------------- */

.reading-copy {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #000 !important;
    background: transparent !important;

    column-count: 2;
    column-gap: 9mm;

    font-family: var(--lignes-text);
    font-size: 14pt;
    line-height: 1.28;

    text-align: justify;
}

.reading-copy p {
    margin-top: 0;
    margin-bottom: 3.5mm;

    orphans: 3;
    widows: 3;
}

.reading-copy > h1:first-child,
.reading-copy > h2:first-child,
.reading-copy > h3:first-child {
    margin-top: 0;
}

.reading-copy h2 {
    font-size: 18pt;
}

.reading-copy h3 {
    font-size: 15pt;
}

    /* -----------------------------------------------------
       LIENS
       ----------------------------------------------------- */

    .reading-copy a {
        color: inherit !important;
        text-decoration: none !important;
    }


    /* -----------------------------------------------------
       ÉVITER QUELQUES COUPURES MOCHES
       ----------------------------------------------------- */

    .reading-copy h1,
    .reading-copy h2,
    .reading-copy h3,
    .reading-copy h4 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .reading-copy blockquote,
    .reading-copy figure,
    .reading-copy img {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .reading-copy img {
        max-width: 100% !important;
        height: auto !important;
    }

}

/* -----------------------------------------------------
   COUVERTURE
   ----------------------------------------------------- */
@media screen {
    .print-cover,
    .print-verso {
        display: none !important;
    }
}

@media print {

    .print-cover {
        display: flex !important;
        flex-direction: column;
        align-items: center;

        height: 266mm;

        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;
        color: #000 !important;

        break-after: page;
    }

    .print-cover-heading {
        width: 100%;
        text-align: center;
        padding-top: 8mm;
    }

    .print-cover-title {
        margin: 0;

        font-family: var(--lignes-title);
        font-size: 27pt;
        line-height: 1;
        font-weight: normal;
        text-transform: uppercase;
        letter-spacing: -0.035em;
    }

    .print-cover-author {
        margin: 7mm 0 0;

        font-family: var(--lignes-title);
        font-size: 18pt;
        line-height: 1;
        font-style: normal;
        text-transform: uppercase;
    }

    .print-cover-art {
        display: flex;
        flex: 1;
        width: 100%;

        margin: 14mm 0 8mm;

        align-items: center;
        justify-content: center;
    }

    .print-cover-art img {
        display: block;

        width: auto;
        height: auto;

        max-width: 108mm !important;
        max-height: 145mm !important;

        object-fit: contain;
    }

    .print-cover-footer {
        width: 100%;
        padding-bottom: 5mm;

        text-align: center;

        font-family: var(--lignes-title);
        font-size: 11pt;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .print-cover-footer p {
        margin: 0;
    }

    .print-cover-footer p + p {
        margin-top: 3mm;
    }


    /* verso blanc */

    .print-verso {
    display: block !important;

    height: 250mm;

    break-after: page;
    page-break-after: always;
}

}
@media print {

    .reading-hero {
        display: none !important;
    }

}

@media print {

    .reading-detail > .print-cover {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        height: 250mm !important;

        margin: 0 !important;
        padding: 0 !important;

        background: white !important;
        color: black !important;

        visibility: visible !important;

        break-after: page !important;
        page-break-after: always !important;
    }

    .reading-hero {
        display: none !important;
    }

}

/* Bouton Edit */

.footer-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;

    border: 1px solid var(--lignes-red);
    color: var(--lignes-red);
    background: transparent;

    font-family: var(--lignes-title);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.footer-edit:hover,
.footer-edit:focus-visible {
    background: var(--lignes-red);
    color: var(--lignes-white);
}

/* LETTRINE — premier paragraphe du texte principal */

.reading-copy > p:first-of-type::first-letter {
    float: left;

    margin: 0.08em 0.22em 0.08em 0;
    padding: 0.12em 0.16em;

    font-family: var(--lignes-title);
    font-size: 3em;
    font-weight: 400;
    font-style: normal;
    line-height: 0.9;

    color: var(--lignes-black);
    background: var(--lignes-bg);
    border: 1px solid var(--lignes-black);
    box-shadow: 0.07em 0.07em 0 var(--lignes-red);
}

/* Contenir la lettrine lorsque le premier paragraphe est court */
.reading-copy > p:first-of-type {
    display: flow-root;
}

/* CHAPÔ — lectures et interventions */

.reading-copy > .chapo {
    margin-block: 2rem;
    padding: 1rem 1.2rem;

    border: 1px dashed var(--lignes-red);
    background: var(--lignes-bg);
    color: var(--lignes-black);

    font-family: var(--lignes-text);
    font-size: 1em;
    font-weight: 500;
    line-height: 1.5;
}

.reading-copy > .chapo > :first-child {
    margin-top: 0;
}

.reading-copy > .chapo > :last-child {
    margin-bottom: 0;
}

/* Accueil : événements puis intervention sur mobile */
@media screen and (max-width: 800px) {
    .home-content .home-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 48px;
    }

    .home-content .home-grid > section {
        grid-column: 1;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .home-content .home-intervention {
        padding-left: 0;
        border-left: 0;
    }
}
