/* Vivent les Femmes — feuille de style du site
   Couleurs reprises du logo (bleu-vert, argent) et du tableau du bandeau (coquelicots). */

:root {
  --sarcelle: #1f6f6c;
  --sarcelle-fonce: #144d4b;
  --sarcelle-clair: #62b5c4;
  --sarcelle-pale: #e6f2f1;
  --argent: #8a9ea3;
  --argent-pale: #eef2f3;
  --coquelicot: #b8322a;
  --coquelicot-pale: #fbecea;
  --creme: #faf8f4;
  --blanc: #ffffff;
  --encre: #1d2627;
  --encre-douce: #4a5759;
  --trait: #dfe6e7;
  --ombre: 0 1px 2px rgba(20, 50, 50, .06), 0 6px 20px rgba(20, 50, 50, .07);
  --rayon: 14px;
  --titres: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --largeur: 1180px;
  --largeur-texte: 760px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--sarcelle); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sarcelle-fonce); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--coquelicot); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--titres); font-weight: 700; line-height: 1.2; color: var(--sarcelle-fonce); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--sarcelle-fonce); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.evitement:focus { top: 1rem; color: #fff; }

.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.conteneur-etroit { width: min(100% - 32px, var(--largeur-texte)); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* ------------------------------------------------------------------ boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  background: var(--sarcelle); color: #fff; border: 2px solid var(--sarcelle);
  border-radius: 999px; font: 600 1rem/1.2 var(--texte); text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.bouton:hover { background: var(--sarcelle-fonce); border-color: var(--sarcelle-fonce); color: #fff; text-decoration: none; }
.bouton-secondaire { background: transparent; color: var(--sarcelle-fonce); border-color: currentColor; }
.bouton-secondaire:hover { background: var(--sarcelle-pale); color: var(--sarcelle-fonce); border-color: var(--sarcelle-fonce); }
.bouton-clair { background: #fff; color: var(--sarcelle-fonce); border-color: #fff; }
.bouton-clair:hover { background: var(--sarcelle-pale); color: var(--sarcelle-fonce); border-color: var(--sarcelle-pale); }
.bouton-petit { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }

.lien-fleche { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ en-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--trait);
}
.entete-interieur {
  width: min(100% - 32px, var(--largeur)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 76px;
}
.marque { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; min-width: 0; }
.marque:hover { text-decoration: none; }
.marque-logo { width: 56px; height: 56px; flex: none; }
.marque-texte { display: flex; flex-direction: column; min-width: 0; }
.marque-nom { font-family: var(--titres); font-weight: 700; font-size: 1.3rem; color: var(--sarcelle-fonce); line-height: 1.1; }
.marque-slogan { font-size: .78rem; color: var(--encre-douce); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.menu-element { position: relative; }
.menu-element > a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3;
}
.menu-element > a:hover, .menu-element > a[aria-current="page"] { color: var(--sarcelle); background: var(--sarcelle-pale); }
.menu-adhesion { margin-left: .4rem; }
.menu-adhesion > a.bouton { color: #fff; background: var(--coquelicot); border-color: var(--coquelicot); padding: .45em 1.1em; }
.menu-adhesion > a.bouton:hover { background: #962821; border-color: #962821; color: #fff; }
.a-sous-menu > a::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2em) rotate(45deg); }
.sous-menu {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; left: 0; top: 100%; min-width: 260px;
  background: #fff; border: 1px solid var(--trait); border-radius: 12px; box-shadow: var(--ombre);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.a-sous-menu:hover > .sous-menu, .a-sous-menu:focus-within > .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu a { display: block; padding: .55rem .75rem; border-radius: 8px; color: var(--encre); text-decoration: none; font-size: .95rem; }
.sous-menu a:hover, .sous-menu a[aria-current="page"] { background: var(--sarcelle-pale); color: var(--sarcelle-fonce); }

.menu-bouton { display: none; }

@media (max-width: 1100px) {
  .marque-slogan { display: none; }
  .menu-element > a { padding: .5rem .5rem; font-size: .9rem; }
}

@media (max-width: 980px) {
  .js .menu-bouton {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem .9rem;
    background: var(--sarcelle-pale); color: var(--sarcelle-fonce); border: 0; border-radius: 999px;
    font: 600 1rem var(--texte); cursor: pointer;
  }
  .menu-icone, .menu-icone::before, .menu-icone::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .menu-icone::before, .menu-icone::after { content: ""; position: absolute; left: 0; }
  .menu-icone::before { top: -6px; }
  .menu-icone::after { top: 6px; }
  .menu-ouvert .menu-icone { background: transparent; }
  .menu-ouvert .menu-icone::before { transform: translateY(6px) rotate(45deg); }
  .menu-ouvert .menu-icone::after { transform: translateY(-6px) rotate(-45deg); }

  .entete-interieur { flex-wrap: wrap; }
  .navigation { flex-basis: 100%; }
  .js .navigation { display: none; }
  .js .menu-ouvert .navigation { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .menu-element > a { padding: .8rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--trait); border-radius: 0; }
  .a-sous-menu > a::after { display: none; }
  .sous-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .sous-menu a { padding: .65rem .5rem; border-bottom: 1px solid var(--trait); border-radius: 0; }
  .menu-adhesion { margin: 1rem 0 0; }
  .menu-adhesion > a.bouton { width: 100%; }
}

@media (max-width: 420px) {
  .marque-logo { width: 46px; height: 46px; }
  .marque-nom { font-size: 1.1rem; }
}

/* ------------------------------------------------------------------ accueil */
.une {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% 20%, rgba(98, 181, 196, .20), transparent 60%),
    radial-gradient(900px 400px at 0% 100%, rgba(184, 50, 42, .07), transparent 60%),
    linear-gradient(180deg, #fff, var(--creme));
  border-bottom: 1px solid var(--trait);
}
.une-interieur {
  width: min(100% - 32px, var(--largeur)); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem);
}
.surtitre {
  display: inline-block; margin-bottom: 1rem; padding: .3rem .8rem;
  background: var(--sarcelle-pale); color: var(--sarcelle-fonce); border-radius: 999px;
  font-size: .85rem; font-weight: 600; letter-spacing: .03em;
}
.une-titre { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.9rem); margin-bottom: .25em; }
.une-slogan { font-family: var(--titres); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--coquelicot); margin-bottom: 1.1em; }
.une-intro { font-size: 1.1rem; color: var(--encre-douce); max-width: 36em; margin-bottom: 1.8em; }
.une-tableau { margin: 0; position: relative; }
.une-tableau img {
  display: block; width: 100%; aspect-ratio: 640 / 478; object-fit: cover;
  border-radius: 6px; border: 10px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 20px 50px rgba(20, 60, 60, .18);
  transform: rotate(1.2deg);
}
.une-tableau::before {
  content: ""; position: absolute; inset: 8% -4% -6% 10%; z-index: -1;
  background: var(--sarcelle-pale); border-radius: 30px; transform: rotate(-3deg);
}
@media (max-width: 860px) {
  .une-interieur { grid-template-columns: 1fr; }
  .une-tableau { max-width: 560px; }
}

.section-titre { margin-bottom: 1.2em; }
.section-entete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section-entete .section-titre { margin-bottom: 0; }

.engagements { background: #fff; border-bottom: 1px solid var(--trait); }
.grille-engagements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.engagement { padding: 1.5rem; border-radius: var(--rayon); background: var(--creme); border: 1px solid var(--trait); }
.engagement h3 { font-size: 1.2rem; margin-bottom: .45em; }
.engagement p { margin: 0; color: var(--encre-douce); font-size: 1rem; }
.engagement-signe {
  display: block; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--coquelicot) 0 22%, transparent 23%), var(--sarcelle-pale);
  border: 2px solid var(--sarcelle-clair);
}

.appel { background: var(--sarcelle-fonce); color: #fff; }
.appel-interieur { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.2rem, 2rem + 2vw, 3.5rem); }
.appel h2 { color: #fff; margin-bottom: .35em; }
.appel p { margin: 0; max-width: 46em; color: #d9ecea; }

/* ------------------------------------------------------------------ cartes */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.carte {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
  transition: transform .15s, box-shadow .15s;
}
.carte:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 50, 50, .06), 0 12px 30px rgba(20, 50, 50, .12); }
.carte-image { display: block; aspect-ratio: 16 / 10; background: var(--argent-pale); overflow: hidden; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.carte:hover .carte-image img { transform: scale(1.03); }
/* articles sans photo : un morceau du tableau du bandeau, voilé aux couleurs du logo */
.carte-image-vide {
  position: relative; display: grid; place-items: center; text-decoration: none;
  background: url("images/tableau-coquelicots.jpg") center / 260% no-repeat;
}
.carte-image-vide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20, 77, 75, .78), rgba(98, 181, 196, .55)); }
.carte-motif-0 { background-position: 10% 30%; }
.carte-motif-1 { background-position: 85% 60%; }
.carte-motif-2 { background-position: 40% 90%; }
.carte-motif-3 { background-position: 70% 10%; }
.carte-image-signe {
  position: relative; padding: .45rem 1.1rem; border: 2px solid rgba(255, 255, 255, .85); border-radius: 999px;
  color: #fff; font-family: var(--titres); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em;
}
.carte-image-vide:hover { text-decoration: none; }
.carte-corps { padding: 1.15rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.carte-infos { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: 0; font-size: .88rem; color: var(--encre-douce); }
.etiquette { display: inline-flex; align-items: center; gap: .35em; padding: .1rem .55rem; border-radius: 999px; background: var(--coquelicot-pale); color: var(--coquelicot); font-size: .78rem; font-weight: 600; }
.carte-titre { font-size: 1.2rem; margin: 0; }
.carte-titre a { color: var(--sarcelle-fonce); text-decoration: none; }
.carte-titre a::after { content: ""; position: absolute; inset: 0; }
.carte { position: relative; }
.carte-titre a:hover { color: var(--sarcelle); text-decoration: underline; }
.carte-extrait { margin: 0; color: var(--encre-douce); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ pages intérieures */
.bandeau-page { background: linear-gradient(180deg, #fff, var(--sarcelle-pale)); border-bottom: 1px solid var(--trait); padding-block: clamp(2rem, 1.6rem + 2vw, 3.2rem); }
.bandeau-page p { color: var(--encre-douce); max-width: 44em; }
.recherche-formulaire { display: flex; gap: .6rem; max-width: 620px; margin-top: 1.2rem; }
.recherche-formulaire input {
  flex: 1; min-width: 0; min-height: 48px; padding: .6rem 1rem;
  border: 2px solid var(--trait); border-radius: 999px; background: #fff; font: inherit; color: inherit;
}
.recherche-formulaire input:focus { border-color: var(--sarcelle); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 108, .18); }
@media (max-width: 520px) {
  .recherche-formulaire { flex-direction: column; }
}
.note { color: var(--encre-douce); }

.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.pagination ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span[aria-current] {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .8rem;
  border-radius: 999px; border: 1px solid var(--trait); background: #fff; text-decoration: none; font-weight: 600;
}
.pagination span[aria-current] { background: var(--sarcelle); border-color: var(--sarcelle); color: #fff; }
.pagination a:hover { background: var(--sarcelle-pale); }
.pagination-ellipse { align-self: center; color: var(--encre-douce); }

/* ------------------------------------------------------------------ article et page */
.publication-entete { background: linear-gradient(180deg, #fff, var(--creme)); padding-block: clamp(2rem, 1.6rem + 2vw, 3.4rem) 1.2rem; }
.fil-ariane { margin-bottom: .6rem; font-size: .92rem; font-weight: 600; }
.fil-ariane a { text-decoration: none; }
.fil-ariane a::before { content: "← "; }
.publication-entete h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: .4em; }
.publication-date { color: var(--encre-douce); margin: 0; }

.texte { padding-block: 1rem 2.5rem; font-size: 1.1rem; overflow-wrap: anywhere; }
.texte > :first-child { margin-top: 0; }
.texte h2 { margin-top: 1.6em; }
.texte h3, .texte h4 { margin-top: 1.4em; }
.texte ul, .texte ol { padding-left: 1.4em; }
.texte li { margin-bottom: .35em; }
.texte blockquote { margin: 1.5em 0; padding: .8em 1.2em; border-left: 4px solid var(--sarcelle-clair); background: #fff; border-radius: 0 10px 10px 0; font-style: italic; }
.texte .accent { color: var(--sarcelle); font-weight: 600; }
.texte .centre { text-align: center; }
.texte .droite { text-align: right; }
.texte hr { border: 0; border-top: 1px solid var(--trait); margin: 2em 0; }
.texte table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: .98rem; display: block; overflow-x: auto; }
.texte th, .texte td { border: 1px solid var(--trait); padding: .5em .7em; text-align: left; }

.texte p > img, .texte p > a > img { display: block; margin: .4rem 0 .6rem; border-radius: 8px; }
.texte p.centre > img, .texte p.centre > a > img { margin-inline: auto; }
.texte img.centre { margin-inline: auto; display: block; }

.texte figure { margin: 1.8em 0; }
.texte figure.image img { display: block; margin-inline: auto; border-radius: 10px; box-shadow: var(--ombre); }
.texte figure.image.droite img { margin-right: 0; }
.texte figcaption { margin-top: .6rem; font-size: .95rem; color: var(--encre-douce); text-align: center; }

.texte .galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .75rem; margin: 1.8em 0; }
.texte .galerie figure { margin: 0; display: flex; flex-direction: column; }
.texte .galerie img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.texte .galerie a { display: block; border-radius: 10px; overflow: hidden; }
.texte .galerie figcaption { font-size: .85rem; text-align: left; margin-top: .35rem; }

.texte .video { margin: 1.8em 0; }
.texte .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; background: #000; }
.texte .video video { display: block; width: 100%; border-radius: 12px; background: #000; }

.texte p.document { margin: .7em 0; }
.texte p.document a {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem;
  background: #fff; border: 1px solid var(--trait); border-radius: 12px; box-shadow: var(--ombre);
  color: var(--encre); text-decoration: none; font-weight: 600; line-height: 1.35;
}
.texte p.document a::before {
  content: ""; flex: none; width: 40px; height: 46px; border-radius: 6px;
  background: var(--coquelicot-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8322a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h6'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.texte p.document a::after { content: "Ouvrir"; margin-left: auto; padding: .3rem .8rem; border-radius: 999px; background: var(--sarcelle-pale); color: var(--sarcelle-fonce); font-size: .85rem; white-space: nowrap; }
.texte p.document a:hover { border-color: var(--sarcelle-clair); }
.texte p.document a:hover::after { background: var(--sarcelle); color: #fff; }

.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--trait); }
.suite-lien { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--trait); border-radius: 12px; text-decoration: none; color: var(--encre); }
.suite-lien:hover { border-color: var(--sarcelle-clair); }
.suite-ancien { grid-column: 2; text-align: right; }
.suite-recent { grid-column: 1; }
.suite-sens { font-size: .85rem; color: var(--encre-douce); }
.suite-titre { font-family: var(--titres); font-weight: 700; color: var(--sarcelle-fonce); line-height: 1.3; }
@media (max-width: 640px) {
  .suite { grid-template-columns: 1fr; }
  .suite-ancien, .suite-recent { grid-column: auto; text-align: left; }
}
.retour { margin: 2rem 0 3rem; }

.bandeau-apercu { margin: 0; padding: .8rem 16px; background: #fff4d6; border-bottom: 1px solid #f0d58a; text-align: center; font-weight: 600; }

/* ------------------------------------------------------------------ pied de page */
.pied { background: #102f2e; color: #cfe1df; margin-top: auto; }
.pied a { color: #fff; }
.pied-interieur {
  width: min(100% - 32px, var(--largeur)); margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem;
}
.pied-identite { display: flex; gap: 1rem; align-items: flex-start; }
.pastille-logo { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; }
.pastille-logo img { width: 68px; height: 68px; }
.pied-nom { font-family: var(--titres); font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 0 .2rem; }
.pied-slogan { margin: 0 0 .4rem; font-style: italic; }
.pied-mention { margin: 0; font-size: .9rem; opacity: .8; }
.pied-titre { font-family: var(--texte); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #9fc9c4; margin-bottom: .8rem; }
.pied address { font-style: normal; display: flex; flex-direction: column; gap: .35rem; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.pied-bas { width: min(100% - 32px, var(--largeur)); margin: 0 auto; padding: 1.2rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
@media (max-width: 860px) {
  .pied-interieur { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ visionneuse de photos */
.visionneuse {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  background: rgba(8, 20, 20, .92); padding: 1rem;
}
.visionneuse[hidden] { display: none; }
.visionneuse-cadre { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-height: 100%; min-width: 0; }
.visionneuse-cadre img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 6px; }
.visionneuse-cadre figcaption { color: #e6efee; margin-top: .8rem; text-align: center; max-width: 60em; }
.visionneuse button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.visionneuse button:hover { background: rgba(255, 255, 255, .28); }
.visionneuse-fermer { position: absolute; top: 1rem; right: 1rem; }
.visionneuse-precedent[hidden], .visionneuse-suivant[hidden] { visibility: hidden; display: block; }
@media (max-width: 640px) {
  .visionneuse { grid-template-columns: 1fr; padding: .5rem; }
  .visionneuse-precedent, .visionneuse-suivant { position: absolute; bottom: 1rem; }
  .visionneuse-precedent { left: 1rem; }
  .visionneuse-suivant { right: 1rem; }
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .entete, .pied, .suite, .retour, .visionneuse, .recherche-formulaire { display: none !important; }
  body { background: #fff; }
}
