/* =========================================================
   Écrits — pages de lecture
   S'appuie sur home.css (couleurs, polices, en-tête, pied).
   Colonne de 680 px, Spectral 20 px, interligne 1,7.
   ========================================================= */

.page-ecrits .entete { box-shadow: 0 1px 0 var(--filet-clair); }
.page-ecrits .barre { display: none; }
@media (max-width: 680px) { .page-ecrits .barre { display: flex; transform: none; } }

.pc { font-variant-caps: all-small-caps; letter-spacing: .12em; }
.ariane { font-family: var(--u); font-size: 13px; color: var(--encre-2); margin-bottom: 28px; }
.ariane a { text-decoration: none; border-bottom: 1px solid var(--filet); }
.ariane a:hover { color: var(--vermillon); border-color: var(--vermillon); }
.ariane span { margin: 0 6px; opacity: .6; }

/* ---------- Texte ---------- */
.texte { max-width: 680px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 22px clamp(60px, 8vw, 110px); font-size: 20px; line-height: 1.72; }
.texte .no { font-family: var(--d); font-style: italic; font-size: 40px; line-height: 1; color: var(--vermillon); font-variant-caps: normal; letter-spacing: 0; }
.texte h1 { font-family: var(--d); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -.01em; margin: 12px 0 18px; text-wrap: balance; }
.texte .sous { font-family: var(--t); font-style: italic; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; color: var(--encre-2); margin: 0 0 14px; }
.texte .signe { font-family: var(--u); font-variant-caps: normal; letter-spacing: .02em; font-size: 14px; color: var(--encre-2); margin-bottom: 30px; }
.texte .chapo { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.55; color: var(--encre); margin: 0 0 36px; padding-bottom: 30px; border-bottom: 1px solid var(--encre); max-width: none; }
.texte p + p { margin-top: 1em; }
.texte h3 { font-family: var(--t); font-weight: 500; font-size: clamp(23px, 2.4vw, 27px); line-height: 1.3; margin: 1.9em 0 .5em; }
.texte b { font-weight: 500; }
.texte i { font-style: italic; }
.texte a { color: var(--vermillon); }
.texte blockquote { font-style: italic; font-size: 22px; line-height: 1.55; margin: 1.4em 0; padding-left: 24px; border-left: 2px solid var(--cerise); }

.texte .oeuvre { margin: 0 0 40px; }
.texte .oeuvre img { display: block; width: 100%; height: auto; background: var(--teinte); }
.texte .oeuvre.haut { max-width: 460px; }
.texte .oeuvre figcaption, .texte .schema figcaption { font-family: var(--t); font-style: italic; color: var(--encre-2); font-size: 16px; line-height: 1.5; margin-top: 10px; }
.texte .schema { margin: 36px -24px 32px; }
.texte .schema svg { display: block; width: 100%; height: auto; }
.texte .schema svg text { font-family: var(--t); }
.texte .schema figcaption { margin: 10px 24px 0; padding-top: 10px; border-top: 1px solid var(--filet); }

.texte .exercice { margin-top: 44px; background: #FBFAF6; border: 1px solid var(--filet); border-top: 3px solid var(--bleu-jung); padding: 28px 30px; }
.texte .exercice .pc { display: block; color: var(--vermillon); margin-bottom: 10px; font-family: var(--u); font-size: 13px; font-variant-caps: normal; text-transform: uppercase; letter-spacing: .16em; font-weight: 500; }
.texte .formule { margin-top: 44px; padding: 26px 0; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--encre); font-family: var(--d); font-style: italic; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.35; text-align: center; }
.texte .formule .pc { display: block; font-family: var(--u); font-style: normal; font-size: 12px; text-transform: uppercase; font-variant-caps: normal; letter-spacing: .16em; color: var(--vermillon); margin-bottom: 12px; }
.texte .formule + .exercice { margin-top: 26px; }
.texte .formule.tableau { font-family: var(--t); font-style: normal; text-align: left; font-size: 18px; padding: 26px 0 22px; }
.texte .formule.tableau .pc { text-align: center; }
.texte .formule table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.texte .formule th { font-weight: 500; font-family: var(--u); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--encre-2); text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--encre); }
.texte .formule td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--filet); vertical-align: top; line-height: 1.4; }
.texte .formule td:first-child { font-style: italic; white-space: nowrap; }
.texte .formule tr.fin td { color: var(--vermillon); border-bottom: 0; }
.texte .formule .eq { margin-top: 20px; text-align: center; font-family: var(--d); font-style: italic; font-size: 23px; line-height: 1.35; }

.texte ul.signes { list-style: none; margin: .6em 0 0; padding: 0; }
.texte ul.signes li { padding: 10px 0 10px 26px; border-top: 1px solid var(--filet); position: relative; }
.texte ul.signes li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu-jung); }
.texte .etape { font-family: var(--u); color: var(--vermillon); margin: 2.8em 0 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.texte .etape + h3 { margin-top: .35em; }

.texte aside { margin-top: 44px; }
.texte .refs { margin-top: 44px; font-size: 16.5px; line-height: 1.55; color: var(--encre-2); }
.texte .refs .pc { display: block; color: var(--encre); margin-bottom: 8px; font-family: var(--u); font-size: 12px; text-transform: uppercase; font-variant-caps: normal; letter-spacing: .16em; font-weight: 500; }
.texte .refs ul { list-style: none; margin: 0; padding: 0; }
.texte .refs li { padding: 7px 0; border-top: 1px solid var(--filet); }
.texte .appel { margin-top: 32px; padding: 20px 24px; background: #FBFAF6; border-left: 3px solid var(--cerise); font-size: 18px; }
.texte .appel a { color: var(--cerise); font-weight: 500; white-space: nowrap; }

.lettre-texte { margin-top: 40px; padding: 26px 28px; background: var(--vert); color: var(--clair); }
.lettre-texte .label { color: var(--champagne); }
.lettre-texte p { margin: 8px 0 18px; font-size: 18px; }
.lettre-texte .btn { box-shadow: 0 0 0 1px rgba(255,255,255,.55); }

.suite-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 3px double var(--filet); }
.suite-nav a { display: block; text-decoration: none; color: var(--encre); font-family: var(--t); font-style: italic; font-size: 19px; line-height: 1.3; padding: 14px 16px; border: 1px solid var(--filet); transition: border-color .2s; }
.suite-nav a:hover { border-color: var(--vermillon); }
.suite-nav .suiv { text-align: right; }
.suite-nav small { display: block; font-family: var(--u); font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--vermillon); margin-bottom: 6px; }

/* ---------- Sommaire ---------- */
.ecrits-tete-page .w { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(48px, 6vw, 80px); }
.ecrits-tete-page h1 { font-family: var(--d); font-style: italic; font-weight: 400; font-size: clamp(60px, 10vw, 128px); line-height: .95; color: var(--noir-bleu); }
.ecrits-tete-page .chapo { margin-top: 22px; max-width: 34em; color: var(--noir-bleu); }
.ecrits-tete-page .ariane, .ecrits-tete-page .ariane a { color: var(--noir-bleu); border-color: rgba(10,15,36,.35); }
.sommaire-ecrits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--encre); }
.sommaire-ecrits a { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--filet); text-decoration: none; transition: background-color .2s; }
.sommaire-ecrits a:hover { background: rgba(56,129,180,.07); }
.sommaire-ecrits b { font-family: var(--d); font-style: italic; font-weight: 400; font-size: 30px; color: var(--vermillon); }
.sommaire-ecrits strong { display: block; font-family: var(--t); font-weight: 500; font-size: clamp(21px, 2.1vw, 25px); line-height: 1.25; }
.sommaire-ecrits em { display: block; font-family: var(--t); font-size: 17px; color: var(--encre-2); margin-top: 4px; }
.sommaire-ecrits small { font-family: var(--u); font-size: 13px; color: var(--encre-2); white-space: nowrap; }
.carte-systeme h2 { font-family: var(--d); font-weight: 400; font-style: italic; font-size: clamp(30px, 3.4vw, 42px); text-align: center; }
.carte-systeme p { text-align: center; color: var(--encre-2); max-width: 34em; margin: 8px auto 18px; }
.carte-systeme svg { display: block; width: 100%; height: auto; }
.carte-systeme svg text { font-family: var(--t); fill: var(--encre); }
.carte-systeme svg a:hover text { fill: var(--vermillon); }
.page-ecrits .final h2 { max-width: 14em; }

@media (max-width: 680px) {
  .texte { font-size: 19px; }
  .texte .schema { margin-left: -16px; margin-right: -16px; overflow-x: auto; }
  .texte .schema svg { min-width: 560px; }
  .texte .formule.tableau { font-size: 16px; }
  .texte .formule td:first-child { white-space: normal; }
  .texte table { display: block; overflow-x: auto; max-width: 100%; }
  .texte .exercice { padding: 22px 18px; }
  .suite-nav { grid-template-columns: 1fr; }
  .sommaire-ecrits a { grid-template-columns: 44px 1fr; }
  .sommaire-ecrits small { grid-column: 2; }
  .carte-systeme .w { overflow-x: auto; }
  .carte-systeme svg { min-width: 620px; }
}
.texte h1 { font-weight: 500; letter-spacing: -.005em; font-size: clamp(42px, 6.2vw, 66px); }
.texte .no { font-weight: 500; }
.ecrits-tete-page h1 { font-weight: 500; }
.carte-systeme h2 { font-weight: 500; }
/* Œuvres : centrées, passe-partout, filet doré */
.texte .oeuvre, .texte .oeuvre.haut { max-width: 520px; margin: 0 auto 44px; text-align: center; }
.texte .oeuvre.large { max-width: none; }
.texte .oeuvre img { padding: 10px; background: #FBFAF6; border: 1px solid rgba(156,122,60,.5); box-shadow: 0 2px 4px rgba(10,15,36,.08), 0 28px 50px -24px rgba(10,15,36,.55); }
.texte .oeuvre figcaption { margin-top: 14px; }
/* Bouton de la Lettre : texte blanc (le style des liens du texte ne s'applique pas) */
.texte .lettre-texte .btn, .texte .lettre-texte .btn span, .texte .lettre-texte .btn i { color: #fff; text-decoration: none; }
.texte .appel a { text-underline-offset: 3px; }

/* Fin des textes : appel et Lettre réunis en un bloc soigné */
.texte .appel { margin-top: 56px; padding: 34px 32px 30px; background: #FBFAF6; border: 1px solid rgba(156,122,60,.4); border-left: 1px solid rgba(156,122,60,.4);
  text-align: center; font-family: var(--d); font-style: italic; font-size: 22px; line-height: 1.45; position: relative; }
.texte .appel::before { content: ""; position: absolute; top: -1px; left: 50%; translate: -50% 0; width: 70px; height: 3px; background: var(--or-clair); }
.texte .appel a { display: table; margin: 18px auto 0; padding: 13px 22px; background: var(--cerise); color: #fff; font-family: var(--u); font-style: normal; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.texte .appel a:hover { background: var(--cerise-fonce); }
.texte .lettre-texte { margin-top: 22px; padding: 30px 32px; text-align: center; background: radial-gradient(120% 120% at 50% 0%, #1E3D80 0%, var(--vert) 60%); }
.texte .lettre-texte p { margin: 10px auto 20px; max-width: 26em; font-family: var(--d); font-style: italic; font-size: 21px; }
.texte .lettre-texte .btn { margin: 0 auto; }
.texte .suite-nav { margin-top: 48px; }
@media (max-width: 680px) { .texte .appel { padding: 28px 20px 24px; font-size: 19px; } .texte .appel a { white-space: normal; } }
/* Option C : titres et italiques en Cormorant, texte Figtree un peu plus petit */
.texte { font-size: 18.5px; line-height: 1.75; }
.texte h3 { font-family: var(--d); font-weight: 600; font-size: clamp(26px, 2.7vw, 31px); line-height: 1.2; }
.texte .sous, .texte .oeuvre figcaption, .texte .schema figcaption, .suite-nav a { font-family: var(--d); }
.texte .sous { font-size: clamp(22px, 2.4vw, 26px); }
@media (max-width: 700px) { .texte { font-size: 17.5px; } }
