/* La Charente côté Seniors : feuille du site (06/11/2026). Pierre de Charente, bleu ardoise et bleu ciel du logo, une pointe de
   cognac. Texte en Atkinson Hyperlegible, dessinée pour les lecteurs qui voient moins bien ; titres en Gelasio. */
:root {
  --ardoise: #163f52;
  --ardoise-2: #1f5670;
  --ciel: #236f9a;
  --ciel-pale: #e4eff5;
  --pierre: #f6f1e7;
  --pierre-2: #ece3d3;
  --encre: #1c262b;
  --gris: #47535a;
  --cognac: #9a4f17;
  --blanc: #ffffff;
  --texte: 'Atkinson Hyperlegible', 'Segoe UI', Arial, sans-serif;
  --titre: 'Gelasio', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fbf8f2; color: var(--encre); font-family: var(--texte); font-size: 18px; line-height: 1.68; }
img { max-width: 100%; height: auto; }
a { color: var(--ciel); }
a:hover { color: var(--ardoise); }
.cadre { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* En-tête */
.toit { background: var(--blanc); border-bottom: 3px solid var(--ciel-pale); position: relative; z-index: 20; }
.toit__ligne { display: flex; align-items: center; gap: 22px; min-height: 96px; }
.toit__marque { display: block; flex: 0 0 auto; width: 92px; height: 92px; overflow: hidden; }
.toit__marque img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.82); }
.toit__nav { flex: 1 1 auto; }
.toit__liste { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.toit__item { margin: 0; padding: 0; }
.toit__lien { display: block; padding: 10px 7px; color: var(--ardoise); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.toit__lien:hover, .toit__lien:focus-visible { color: var(--ciel); border-bottom-color: var(--ciel); }
.toit__bouton { display: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--ardoise); border-radius: 10px; background: var(--blanc); cursor: pointer; padding: 11px 10px; }
.toit__bouton span { display: block; height: 3px; margin: 4px 0; background: var(--ardoise); border-radius: 2px; }
@media (max-width: 1180px) {
  .toit__ligne { flex-wrap: wrap; min-height: 76px; }
  .toit__marque { width: 72px; height: 72px; }
  .toit__bouton { display: block; }
  .toit__nav { flex-basis: 100%; display: none; padding-bottom: 12px; }
  .toit__nav.est-ouvert { display: block; }
  .toit__liste { flex-direction: column; align-items: stretch; flex-wrap: wrap; }
  .toit__lien { padding: 13px 4px; font-size: 18px; border-bottom: 1px solid var(--pierre-2); white-space: normal; }
}

/* Fil d'Ariane */
.fil { padding: 16px 0 4px; font-size: 15px; color: var(--gris); }
.fil ol, .fil ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.fil li { margin: 0; padding: 0; list-style: none; }
.fil a { color: var(--ardoise); text-decoration: underline; text-underline-offset: 3px; }
.fil--article li[aria-current="page"], .fil--article li:has(+ li[aria-current="page"]) { display: none; }

/* Accueil : bandeau */
.seuil { background: var(--ardoise); color: var(--blanc); }
.seuil__grille { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: 420px; }
.seuil__texte { padding: 56px 44px 56px 22px; display: flex; flex-direction: column; justify-content: center; }
.seuil__surtitre { margin: 0 0 12px; color: #bfe0f1; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.seuil__titre { margin: 0 0 16px; font-family: var(--titre); font-weight: 700; font-size: 48px; line-height: 1.12; }
.seuil__accroche { margin: 0 0 28px; font-size: 21px; line-height: 1.5; color: #e9f3f8; }
.seuil__bouton { align-self: flex-start; display: inline-block; padding: 14px 22px; border-radius: 999px; background: var(--blanc); color: var(--ardoise); font-weight: 700; text-decoration: none; }
.seuil__bouton:hover { background: var(--ciel-pale); color: var(--ardoise); }
.seuil__photo { background: url('/assets/imgs/img_1.jpg') center / cover no-repeat; min-height: 320px; }
@media (max-width: 860px) {
  .seuil__grille { grid-template-columns: 1fr; }
  .seuil__photo { order: -1; min-height: 220px; }
  .seuil__texte { padding: 32px 18px 36px; }
  .seuil__titre { font-size: 34px; }
  .seuil__accroche { font-size: 19px; }
}

/* Accueil : rubriques */
.themes { padding: 56px 0 18px; }
.bloc-titre { margin: 0 0 22px; font-family: var(--titre); font-size: 31px; line-height: 1.2; color: var(--ardoise); }
.bloc-titre::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--cognac); }
.themes__liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.themes__lien { display: block; height: 100%; padding: 20px 22px; border-radius: 14px; background: var(--pierre); border: 1px solid var(--pierre-2); color: var(--encre); text-decoration: none; }
.themes__lien:hover { background: var(--ciel-pale); border-color: #c5dceb; color: var(--encre); }
.themes__nom { display: block; margin-bottom: 6px; font-family: var(--titre); font-size: 21px; font-weight: 700; color: var(--ardoise); }
.themes__desc { display: block; font-size: 16.5px; color: var(--gris); line-height: 1.5; }
@media (max-width: 900px) { .themes__liste { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .themes__liste { grid-template-columns: 1fr; } }

/* Grille de cartes */
.derniers { padding: 40px 0 24px; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
@media (max-width: 960px) { .grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grille { grid-template-columns: 1fr; } }
.tuile { display: flex; flex-direction: column; background: var(--blanc); border-radius: 14px; overflow: hidden; border: 1px solid #e6dfd1; box-shadow: 0 1px 2px rgba(22, 63, 82, .06); }
.tuile__lien { display: flex; flex-direction: column; height: 100%; color: var(--encre); text-decoration: none; }
.tuile__lien:hover .tuile__titre { color: var(--ciel); text-decoration: underline; text-underline-offset: 3px; }
.tuile__visuel { aspect-ratio: 3 / 2; background-color: var(--ciel-pale); overflow: hidden; }
.tuile__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Visuel de remplacement des articles sans image : toits et clocher de Charente sur un ciel, soleil couleur cognac. */
.tuile__visuel:not(:has(img)) { background: #dcebf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'%3E%3Crect width='300' height='200' fill='%23dcebf3'/%3E%3Ccircle cx='226' cy='62' r='24' fill='%23c7772e' opacity='.85'/%3E%3Cpath d='M0 150 Q60 128 120 142 T240 136 T300 140 V200 H0Z' fill='%23a9c9da'/%3E%3Cpath d='M18 200V146h26l13-14 13 14h12v-26l7-18 7 18v26h22v-12h18l10-10 10 10v12h30v-20h22l11-9 11 9v20h24V128l9-6 9 6v18h26v54Z' fill='%23163f52'/%3E%3Cpath d='M0 176 Q75 166 150 174 T300 172 V200 H0Z' fill='%231f5670'/%3E%3C/svg%3E") center / cover no-repeat; }
.grille > :nth-child(3n+2) .tuile__visuel:not(:has(img)) { filter: hue-rotate(-14deg) saturate(1.1); }
.grille > :nth-child(3n) .tuile__visuel:not(:has(img)) { filter: hue-rotate(10deg) brightness(1.04); }
.tuile__corps { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1 1 auto; }
.tuile__rubrique { font-size: 14px; font-weight: 700; color: var(--cognac); }
.tuile__titre { margin: 0; font-family: var(--titre); font-size: 21px; line-height: 1.32; color: var(--ardoise); }
.tuile__info { margin: auto 0 0; font-size: 15px; color: var(--gris); }
.carnet .tuile__rubrique { display: none; }

/* Accueil : texte */
.lecture { padding: 40px 0 64px; background: var(--pierre); margin-top: 32px; }
.lecture .bloc-titre { max-width: 780px; margin-left: auto; margin-right: auto; }

/* Texte courant (articles, pages, accueil) */
.prose { max-width: 760px; margin: 0 auto; font-size: 19px; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { margin: 1.9em 0 .6em; font-family: var(--titre); font-size: 30px; line-height: 1.22; color: var(--ardoise); }
.prose h2::before { content: ""; display: block; width: 38px; height: 4px; margin-bottom: 12px; border-radius: 2px; background: var(--ciel); }
.prose h3 { margin: 1.6em 0 .45em; font-family: var(--titre); font-size: 23px; line-height: 1.3; color: var(--ardoise-2); }
.prose h4 { margin: 1.3em 0 .4em; font-size: 19px; color: var(--ardoise-2); }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.5em; }
.prose li { margin: 0 0 .45em; }
.prose li::marker { color: var(--ciel); }
.prose strong { color: #10252f; }
.prose a { color: var(--ciel); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--ciel-pale); border-radius: 12px; font-size: 19px; color: var(--ardoise); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { display: block; margin: 1.4em auto; border-radius: 12px; }
.prose .divider { width: 56px; height: 4px; margin: -.2em 0 1em; border-radius: 2px; background: var(--cognac); }
.prose h2 + .divider { display: none; }
/* Tableaux : en-tête sur fond ardoise, lignes alternées, défilement dans un cadre sur téléphone. */
.prose table { width: 100%; margin: 1.4em 0 1.8em; border-collapse: collapse; font-size: 16.5px; line-height: 1.5; background: var(--blanc); border: 1px solid #d9e3ea; border-radius: 10px; overflow: hidden; }
.prose th, .prose thead td { background: var(--ardoise); color: var(--blanc); font-weight: 700; text-align: left; }
.prose th, .prose td { padding: 11px 14px; vertical-align: top; border-bottom: 1px solid #e1e8ed; }
.prose tbody tr:nth-child(even) td { background: #f3f8fb; }
.prose table + h2, .prose table + h3 { margin-top: 1.6em; }
@media (max-width: 700px) {
  .prose { font-size: 18px; }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 21px; }
  .prose table { display: block; overflow-x: auto; white-space: normal; }
  .prose th, .prose td { min-width: 150px; }
}

/* Article */
.recit { padding: 8px 0 40px; }
.recit__tete { max-width: 760px; margin: 18px auto 22px; }
.recit__titre { margin: 0 0 14px; font-family: var(--titre); font-size: 42px; line-height: 1.16; color: var(--ardoise); }
.recit__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 16px; color: var(--gris); }
.recit__meta .sep { color: #9aa6ad; }
/* Chapô : seulement un vrai paragraphe d'introduction, placé avant le premier intertitre. */
.recit__texte > p:first-child { font-size: 21px; line-height: 1.6; color: var(--ardoise); }
@media (max-width: 700px) { .recit__texte > p:first-child { font-size: 19.5px; } }
.recit__image { max-width: 980px; margin: 0 auto 26px; }
.recit__image:not(:has(img)) { display: none; }
.recit__image img { display: block; width: 100%; height: auto; max-height: 540px; object-fit: cover; border-radius: 16px; }
.sommaire { max-width: 760px; margin: 0 auto 30px; background: var(--pierre); border: 1px solid var(--pierre-2); border-radius: 14px; padding: 14px 20px; }
.sommaire summary { cursor: pointer; list-style: none; font-family: var(--titre); font-weight: 700; font-size: 20px; color: var(--ardoise); }
.sommaire summary::-webkit-details-marker { display: none; }
.sommaire summary::after { content: "+"; float: right; color: var(--cognac); font-size: 24px; line-height: 1; }
.sommaire details[open] summary::after { content: "\2212"; }
.sommaire details[open] summary { margin-bottom: 8px; }
.sommaire ol, .sommaire ul { margin: 0; padding-left: 1.3em; font-size: 16.5px; }
.sommaire ol ol, .sommaire ul ul { display: none; }
.sommaire li { margin: 0 0 6px; }
.sommaire a { color: var(--ardoise); }
@media (max-width: 900px) {
  .sommaire { position: sticky; top: 0; z-index: 10; padding: 10px 16px; margin-bottom: 22px; box-shadow: 0 2px 8px rgba(22, 63, 82, .12); max-height: 70vh; overflow-y: auto; }
  .sommaire summary { font-size: 17px; }
}
@media (max-width: 700px) {
  .recit__titre { font-size: 31px; }
  .recit__image img { border-radius: 10px; }
}
.signe { max-width: 760px; margin: 40px auto 0; display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: start; padding: 22px 0 0; border-top: 2px solid var(--pierre-2); }
.signe__photo { width: 92px; height: 92px; border-radius: 18px; overflow: hidden; background: var(--ciel-pale); display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 34px; color: var(--ardoise); }
.signe__photo img { width: 100%; height: 100%; object-fit: cover; }
.signe__libelle { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--cognac); }
.signe__nom { margin: 0 0 6px; font-family: var(--titre); font-size: 21px; color: var(--ardoise); }
.signe__bio { font-size: 16.5px; color: var(--gris); line-height: 1.55; }
.signe__bio p { margin: 0; }
.signe__bio p + p { display: none; }
@media (max-width: 560px) { .signe { grid-template-columns: 68px 1fr; gap: 14px; } .signe__photo { width: 68px; height: 68px; border-radius: 14px; } }
.voisins { padding: 36px 0 56px; background: var(--pierre); margin-top: 40px; }
.voisins:not(:has(.tuile)) { display: none; }

/* Rubrique */
.carnet__tete { padding: 10px 0 26px; }
.carnet__surtitre { margin: 6px 0 6px; font-size: 15px; font-weight: 700; color: var(--cognac); }
.carnet__titre { margin: 0 0 18px; font-family: var(--titre); font-size: 42px; line-height: 1.15; color: var(--ardoise); }
.carnet__intro { font-size: 18px; line-height: 1.68; column-count: 2; column-gap: 44px; }
.carnet__intro p { margin: 0 0 .9em; break-inside: avoid-column; }
.carnet__intro:empty { display: none; }
@media (max-width: 860px) { .carnet__intro { column-count: 1; } .carnet__titre { font-size: 31px; } }
.carnet__grille { padding: 10px 0 56px; }
.carnet .pagination:not(:has(a)) { display: none; }

/* Pages fixes et page de la rédaction */
.feuillet { padding: 8px 0 56px; }
.feuillet__tete { max-width: 760px; margin: 18px auto 24px; }
.feuillet__titre { margin: 0; font-family: var(--titre); font-size: 40px; line-height: 1.18; color: var(--ardoise); }
.feuillet__profil { max-width: 760px; margin: 0 auto 26px; display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; }
.feuillet__profil .signe__photo { width: 140px; height: 140px; border-radius: 24px; }
@media (max-width: 560px) { .feuillet__titre { font-size: 30px; } .feuillet__profil { grid-template-columns: 1fr; } }
.formulaire { max-width: 760px; margin: 28px auto 0; padding: 24px; background: var(--pierre); border-radius: 14px; }
.formulaire label { display: block; margin: 0 0 4px; font-weight: 700; }
.formulaire input, .formulaire textarea { width: 100%; margin: 0 0 14px; padding: 12px 14px; font: inherit; font-size: 17px; border: 1px solid #b9c6cd; border-radius: 10px; background: var(--blanc); }
.formulaire button, .formulaire [type="submit"] { padding: 13px 24px; border: 0; border-radius: 999px; background: var(--ardoise); color: var(--blanc); font: inherit; font-weight: 700; cursor: pointer; }

/* Pied de page */
.pied { background: var(--ardoise); color: #e3eef4; padding: 30px 0; font-size: 16px; }
.pied__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: center; }
.pied__nom { margin: 0; font-family: var(--titre); font-size: 20px; color: var(--blanc); }
.pied__accroche { margin: 2px 0 0; color: #c6dbe6; }
.pied a { color: var(--blanc); text-underline-offset: 3px; }
