/* Pages de l'office (mentions légales, CGV ; 2026-11-19) : liens visibles (brique, soulignés), flèche « ↗ » pour
   ceux qui s'ouvrent dans un nouvel onglet ; lien UNITICE mis en avant. */
.page-page a:not(.tc-email) { color: rgb(176, 73, 50) !important; text-decoration: underline; text-underline-offset: 3px; }
.page-page a:hover { color: rgb(150, 58, 38) !important; text-decoration-thickness: 2px; }
.page-page a[target="_blank"]::after { content: "\2009\2197"; font-size: .85em; text-decoration: none; display: inline-block; }
.page-page a.tc-lien-unitice { font-weight: 500; }

/* Lecture (2026-11-19) : lignes plus courtes, interligne aéré, texte aligné à gauche, titres et sommaire. */
.page-page { max-width: 760px; text-align: left; line-height: 1.65; font-size: 15px; }
.page-page p { margin: 0 0 .9em; text-align: left; }
.page-page h2.tc-page-titre { margin: 1.6em 0 .5em; padding-top: .6em; border-top: 1px solid #eadfd4; font-size: 1.25rem; font-weight: 500;
  color: rgb(176, 73, 50); letter-spacing: .02em; text-transform: none; scroll-margin-top: 12px; }
.page-page h3.tc-page-sous-titre { margin: 1.2em 0 .3em; font-size: 1.05rem; font-weight: 500; color: #222; scroll-margin-top: 12px; }
.tc-sommaire { margin: 4px 0 22px; padding: 14px 18px; border: 1px solid #eadfd4; border-radius: 8px; background: #fbf8f4; }
.tc-sommaire-titre { margin: 0 0 6px !important; font-weight: 500; color: #4e342e; }
.tc-sommaire ul { margin: 0; padding: 0; list-style: none; }
.tc-sommaire > ul { column-width: 280px; column-gap: 28px; }
.tc-sommaire li { break-inside: avoid; margin: 2px 0; }
.tc-sommaire li.tc-sommaire-partie { margin-top: 8px; }
.tc-sommaire li.tc-sommaire-partie > a { display: inline-block; font-weight: 500; text-transform: lowercase; }
.tc-sommaire li.tc-sommaire-partie > a::first-letter { text-transform: uppercase; }
.tc-sommaire li li { padding-left: 12px; font-size: 14px; }
.tc-sommaire > ul > li:not(.tc-sommaire-partie) { font-size: 14px; }
.page-page .tc-sommaire a { text-decoration: none; }
.page-page .tc-sommaire a:hover { text-decoration: underline; }
.page-page h2:target, .page-page h3:target { background: #fbf3ef; }

/* Impression ou enregistrement en PDF : seulement le texte (ni en-tête, ni menu, ni pied de page). */
@media print {
  header, footer, nav, .sidenav, .tc-aller-contenu, #tc-confirmation, .breadcrumb, .tc-sommaire, .tc-recap-barre { display: none !important; }
  body, html { background: #fff !important; }
  .page-page { max-width: none; font-size: 11pt; color: #000; }
  .page-page a { color: #000 !important; text-decoration: none; }
  .page-page a[target="_blank"]::after { content: none; }
  .page-page h2.tc-page-titre { color: #000; break-after: avoid; }
  .page-page h3.tc-page-sous-titre { break-after: avoid; }
}

/* Aperçu d'une version proposée (office seulement, apps/core/views.py ApercuVersionMixin). */
.tc-apercu { max-width: 760px; margin: 0 0 1.5rem; padding: .75rem 1rem; border-left: 4px solid #b5502f;
  background: #fbf1ea; color: #4a2a1d; font-size: .95rem; line-height: 1.5; text-align: left; }
.tc-apercu a { color: #8f3a20; text-decoration: underline; font-weight: 600; }
@media print { .tc-apercu { display: none; } }

/* Listes du texte (page « qui sommes-nous », 2026-11-20) : puces visibles (Materialize les retire partout). */
.page-page > ul { margin: 0 0 .9em; padding-left: 1.3em; }
.page-page > ul > li { list-style: disc; margin: .2em 0; }

/* Photos de la page « qui sommes-nous » (reprises du CV de l'association, 2026-11-20). */
.page-page .tc-figure { margin: .3em 0 1em; }
.page-page .tc-figure img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.page-page .tc-figure figcaption { margin-top: .35em; font-size: 13px; color: #6d5c52; font-style: italic; }
.page-page .tc-figure-large img { width: 100%; }
@media (min-width: 600px) {
  .page-page .tc-figure-droite { float: right; width: 40%; margin: .3em 0 1em 1.4em; }
  .page-page .tc-figure ~ h2 { clear: both; }
}
/* Sur grand écran, les photos occupent la marge droite laissée par la colonne de texte (760 px). */
@media (min-width: 993px) {
  .page-page:has(.tc-figure) { max-width: none; }
  .page-page:has(.tc-figure) > :not(.tc-figure), .page-page .tc-figure-large { max-width: 760px; }
  .page-page .tc-figure-droite { width: 34%; margin-left: 2em; }
  .page-page .tc-figure ~ h2 { clear: none; }
  .page-page .tc-figure-droite { clear: right; }
  .page-page .tc-figure-large { max-width: calc(66% - 2em); }
}
