/* cmsms stylesheet: Memento 1 - Cadre modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 1 - Cadre
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Cadre general du Memento : variables, bandeau du haut, zone principale, fil d'Ariane et cadre du contenu.
   Toutes les regles sont limitees a .am-memento pour ne pas affecter les autres designs.
   ========================================================================== */

/* Variables de couleur du Memento (vert, orange, or, fond bleu) et police/taille de base du site */
.am-memento {
  --am-ink: #182522;
  --am-muted: #63716b;
  --am-paper: #d5eaff;
  --am-surface: #fff;
  --am-line: #d8dfd8;
  --am-green: #153b36;
  --am-green-light: #e4eee8;
  --am-orange: #bd5a37;
  --am-gold: #dfa74a;

  /* DIMENSIONS DE LA PAGE SUR ORDINATEUR (a modifier ici pour tout le site) :
     --am-largeur-max : largeur maximale du bandeau, du contenu et du pied de page
                        (1220px = ancien reglage ; plus grand = visuel plus large)
     --am-marge       : espace laisse a gauche et a droite du contenu
     --am-marge-cadre : espace entre le bord du cadre du contenu et son interieur */
  --am-largeur-max: 1760px;
  --am-marge: 16px;
  --am-marge-cadre: 18px;
  min-height: 100vh;
  color: var(--am-ink);
  background-color: var(--am-paper);
  background-image:
    linear-gradient(rgba(21, 59, 54, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 59, 54, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: "DM Sans", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* Remise a zero : box-sizing et marges identiques pour tous les elements du Memento */
.am-memento,
.am-memento * {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* Titres et paragraphes : marges nulles (l'espacement est gere par chaque bloc) */
.am-memento h1,
.am-memento h2,
.am-memento h3,
.am-memento p {
  margin-top: 0;
}

/* Texte reserve aux lecteurs d'ecran (titre h1 invisible mais lu) */
.am-memento__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* BANDEAU DU HAUT : barre bleue, ligne doree, conteneur centre */
.am-memento__topbar {
  border-bottom: 4px solid var(--am-gold);
  background: #3da7ff;
  color: #000;
}

.am-memento__topbar-inner,
.am-memento__main,
.am-memento__footer-inner,
.am-memento__footer-bottom {
  width: min(var(--am-largeur-max), 100%);   /* largeur maximale */
  margin-inline: auto;                       /* centre la page */
  padding-inline: var(--am-marge);           /* marges gauche/droite */
}

.am-memento__topbar-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo (carre "A") et nom du site */
.am-memento__brand,
.am-memento__footer-brand > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

/* Logo du bandeau : version complete (plaque + nom) ; version icone seule sous 600 px (balise picture du gabarit) */
.am-memento__logo,
.am-memento__logo img {
  display: block;
}

.am-memento__logo {
  margin: 8px 0;
  padding: 5px 12px;
  border-radius: 10px;
  background: #fffdf5;
  box-shadow: 0 2px 6px rgba(21, 59, 54, .18);
}

.am-memento__logo img {
  width: auto;
  height: 70px;
}

@media (max-width: 600px) {
  .am-memento__logo {
    padding: 4px 6px;
  }

  .am-memento__logo img {
    height: 40px;
  }
}

.am-memento__brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  font: 700 17px Georgia, "Times New Roman", serif;
}

.am-memento__brand-name {
  font: 600 22px Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
}

/* Liens du bandeau (But de l'association, Contact) et survol/focus */
.am-memento__toplinks {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
}

.am-memento__toplinks a {
  color: inherit;
  text-decoration: none;
}

.am-memento__toplinks a:hover,
.am-memento__toplinks a:focus-visible,
.am-memento__footer a:hover,
.am-memento__footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Bouton "Espace adherent" (cadre noir) */
.am-memento__toplinks .am-memento__login {
  padding: 8px 13px;
  border: 1px solid currentColor;
}

/* ZONE PRINCIPALE : largeur maximale et marges autour du contenu */
.am-memento__main {
  min-height: 55vh;
  padding-top: 25px;
  padding-bottom: 68px;
}

/* Fil d'Ariane (Ici : Armees > Terre) */
.am-memento__breadcrumb {
  margin-bottom: 22px;
  color: var(--am-muted);
  font-size: 12px;
}

.am-memento__breadcrumb a {
  color: var(--am-green);
}

/* CADRE DU CONTENU : fond gris-vert pale, bordure et ombre */
.am-memento__content {
  min-width: 0;
  padding: var(--am-marge-cadre);
  border: 1px solid rgba(21, 59, 54, .14);
  border-radius: 8px;
  background: #eef3ee;
  box-shadow: 0 10px 28px rgba(27, 48, 41, .08);
}

/* ADHERENT CONNECTE (bandeau du haut) : pastille verte + bouton Deconnexion.
   Le nom de l'adherent s'affiche dans une bulle sous la zone, au survol ou au focus clavier. */
.am-memento__user {
  position: relative;               /* repere pour positionner la bulle */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--am-green);
  border-radius: 999px;
  background: #eef6ef;
  color: var(--am-green);
  font-weight: 600;
  cursor: default;
}

/* Pastille verte = "vous etes connecte" */
.am-memento__user-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2e9e4f;
  box-shadow: 0 0 0 3px rgba(46, 158, 79, .25);
}

/* Bouton Deconnexion */
.am-memento__toplinks .am-memento__logout {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--am-green);
  color: #fff;
  font-weight: 500;
}

/* BULLE DU NOM : cachee par defaut, visible au survol / focus de la zone.
   Memes polices et couleurs que le reste du bandeau (heritage de .am-memento). */
.am-memento__user-card {
  position: absolute;
  top: calc(100% + 12px);           /* sous la zone ; 12px = hauteur de la fleche + espace */
  right: 0;                         /* alignee a droite pour ne pas sortir de l'ecran */
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  max-width: min(320px, 80vw);
  padding: 12px 16px;
  border: 1px solid var(--am-line);
  border-top: 3px solid var(--am-gold);   /* filet dore, comme le bandeau */
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 59, 54, .22);
  color: var(--am-ink);
  font-weight: 400;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}

/* Fleche de la bulle (petit carre tourne a 45 degres) */
.am-memento__user-card::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 34px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--am-line);
  border-left: 1px solid var(--am-line);
  background: #fff;
  transform: rotate(45deg);
}

/* Zone invisible qui comble l'espace entre la zone et la bulle : la bulle ne se ferme pas en y allant */
.am-memento__user-card::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

/* Affichage de la bulle */
.am-memento__user:hover .am-memento__user-card,
.am-memento__user:focus-within .am-memento__user-card {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* Etiquette "Connecte en tant que" : petite et discrete */
.am-memento__user-label {
  color: var(--am-muted);
  font-size: 12px;
  letter-spacing: .02em;
}

/* Nom de l'adherent : plus gros, en gras, vert fonce ; coupe les adresses tres longues */
.am-memento__user-name {
  overflow: hidden;
  color: var(--am-green);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Texte reserve aux lecteurs d'ecran (reutilise ailleurs) */
.am-memento__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
/* cmsms stylesheet: Memento 2 - Pages de corps modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 2 - Pages de corps
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Pages de corps ({am_memento_corps}) : en-tete, compteur, rubriques repliables, liste des documents, bouton Tout replier/deplier.
   Toutes les regles sont limitees a .am-memento pour ne pas affecter les autres designs.
   ========================================================================== */

/* PAGES DE CORPS (balise {am_memento_corps}) - en-tete de page : titre et filet de separation */
.am-memento .am-content-page__header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--am-line);
}

/* Petit libelle au-dessus du titre */
.am-memento .am-content-page__eyebrow {
  margin-bottom: 6px;
  color: var(--am-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.am-memento .am-content-page__header h2 {
  margin-bottom: 8px;
  color: var(--am-ink);
  font: 600 clamp(28px, 4vw, 42px)/1.15 Georgia, "Times New Roman", serif;
}

/* Texte d'introduction sous le titre */
.am-memento .am-content-page__lead {
  max-width: 68ch;
  margin-bottom: 0;
  color: #354740;
  font-size: 16px;
}

/* Compteur "x documents classes par rubrique" */
.am-memento .am-content-page__count {
  margin: 12px 0 0;
  color: var(--am-muted);
  font-size: 13px;
}

.am-memento .am-content-page__count strong {
  color: var(--am-green);
}

/* Colonne qui contient toutes les rubriques */
.am-memento .am-content-page__groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Une rubrique (balise details) : bordure, fond gris-vert, ombre */
.am-memento .am-content-page__group {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #95ad9d;
  border-radius: 7px;
  background: #FFFFD7;
  box-shadow: 0 3px 0 rgba(24, 59, 50, .08), 0 7px 14px rgba(24, 59, 50, .06);
}

/* Titre de la rubrique (summary) : bandeau bleu cliquable pour replier/deplier */
.am-memento .am-content-page__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  background: #3da7ff;
  color: #102f2b;
  font: 600 22px/1.3 Georgia, "Times New Roman", serif;
  cursor: pointer;
  list-style: none;
}

.am-memento .am-content-page__group summary::-webkit-details-marker {
  display: none;
}

.am-memento .am-content-page__group summary::after {
  content: "\25BE";
  margin-left: auto;
  transition: transform .15s;
}

.am-memento .am-content-page__group:not([open]) summary::after {
  transform: rotate(-90deg);
}

/* Pastille qui indique le nombre de documents de la rubrique */
.am-memento .am-content-page__group-count {
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  font: 700 12px/1.6 "DM Sans", Arial, sans-serif;
}

/* Liste des documents : grille responsive (2 colonnes ou plus selon la largeur) */
.am-memento .am-content-page__group ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-memento .am-content-page__group li {
  border-top: 1px solid var(--am-line);
}

/* Lien vers un document : sans soulignement, fond plus fonce au survol/focus */
.am-memento .am-content-page__group a {
  display: flex;
  min-height: 46px;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 13px;
  color: var(--am-green);
  font-size: 17px;
  line-height: 1.45;
  text-decoration: none;
}

.am-memento .am-content-page__group a:hover,
.am-memento .am-content-page__group a:focus-visible {
  background: #b7d8fa;
  text-decoration: none;
}

/* Etiquette du format du fichier (PDF, DOC...) */
.am-memento .am-content-page__format {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid #95ad9d;
  border-radius: 3px;
  background: #fff;
  color: var(--am-green);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

/* Bouton "Retour a la page parente" */
.am-memento .am-content-page__back {
  margin: 0 0 14px;
}

.am-memento .am-content-page__back a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #95ad9d;
  border-radius: 6px;
  background: #fff;
  color: var(--am-green);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.am-memento .am-content-page__back a:hover,
.am-memento .am-content-page__back a:focus-visible {
  background: #eef7ff;
  text-decoration: underline;
}

/* Taille du fichier (en gris, a droite du titre) */
.am-memento .am-content-page__size {
  color: var(--am-muted);
  font-size: 14px;
  white-space: nowrap;
}

/* Mention "Nouveau" sur un document recent */
.am-memento .am-content-page__new {
  padding: 0 6px;
  border-radius: 3px;
  background: #dfa74a;
  color: #102f2b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}


/* Bouton a bascule "Tout replier / Tout deplier" place sous le compteur de documents */
.am-memento .am-content-page__toggle {
  margin: 12px 0 0;
  padding: 8px 14px;
  border: 1px solid #95ad9d;
  border-radius: 6px;
  background: #fff;
  color: var(--am-green);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.am-memento .am-content-page__toggle:hover,
.am-memento .am-content-page__toggle:focus-visible {
  background: #b7d8fa;
}

/* IMAGES DU CONTENU (editeur du CMS) : adaptees a la largeur de l'ecran, proportions conservees, coins arrondis.
   !important : l'editeur ecrit des attributs width/height et des styles en ligne qui empechent l'image de se reduire sur mobile. */
.am-memento .am-memento__content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px;
}
/* cmsms stylesheet: Memento 3 - Accueil et filtres modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 3 - Accueil et filtres
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Accueil et pages a cartes ({am_memento_cartes}) : hero, filtres, interrupteurs, compteur de resultats, barre A-Z.
   Toutes les regles sont limitees a .am-memento pour ne pas affecter les autres designs.
   ========================================================================== */

/* ACCUEIL ET PAGES A CARTES (balise {am_memento_cartes}) - respecte l'attribut HTML hidden */
.am-memento [hidden] {
  display: none !important;
}

/* Cadre de la page d'accueil sans fond ni bordure (les blocs ont leur propre fond) */
.am-memento__content:has(.am-home--accueil) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Bloc d'introduction (hero) : texte a gauche, mosaique a droite */
.am-memento .am-hero {
  display: grid;
  grid-template-columns: 1fr 290px;
  align-items: stretch;
  gap: 34px;
  margin-bottom: 24px;
}

.am-memento .am-hero__copy {
  align-self: center;
}

.am-memento .am-hero h2 {
  margin-bottom: 8px;
  color: var(--am-ink);
  font: 600 46px/1.08 Georgia, "Times New Roman", serif;
}

.am-memento .am-hero__lead {
  max-width: 640px;
  margin: 0;
  color: #243b35;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
}

/* Statistiques du hero (nombre de ressources, etc.) */
.am-memento .am-hero__stats {
  max-width: 640px;
  margin: 14px 0 0;
}

.am-memento .am-hero__stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(21, 59, 54, .18);
}

.am-memento .am-hero__stats dt {
  color: #455a52;
  font-size: 15px;
  line-height: 1.35;
}

.am-memento .am-hero__stats dd {
  flex: 0 0 70px;
  margin: 0;
  color: #173b33;
  font: 600 26px/1 Georgia, "Times New Roman", serif;
  text-align: right;
}

/* Mosaique d'images du hero */
.am-memento .am-figure {
  position: relative;
  min-height: 200px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 59, 54, .28);
  border-radius: 8px;
  background: var(--am-green);
  box-shadow: 0 3px 0 rgba(24, 59, 50, .12), 0 8px 18px rgba(24, 59, 50, .14);
}

.am-memento .am-figure__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  gap: 3px;
}

.am-memento .am-figure__mosaic img {
  display: block;
  /* !important : la regle generale des images du contenu (feuille Memento 2) impose height:auto */
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

/* FILTRES : panneau, lignes, groupes et libelles */
.am-memento .am-filters {
  padding: 16px 0 14px;
  border-top: 1px solid var(--am-line);
  border-bottom: 1px solid var(--am-line);
}

.am-memento .am-filters__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.am-memento .am-filters__row + .am-filters__row {
  padding-top: 14px;
}

.am-memento .am-filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.am-memento .am-filters__label {
  margin: 0;
  color: var(--am-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Boutons de filtre (puces) et liste deroulante */
.am-memento .am-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.am-memento .am-chips button,
.am-memento .am-az button,
.am-memento .am-filters select {
  font-family: inherit;
}

.am-memento .am-chips button {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--am-line);
  background: #fff;
  color: var(--am-ink);
  font-size: 15px;
  cursor: pointer;
}

.am-memento .am-chips button:hover {
  border-color: var(--am-green);
}

.am-memento .am-chips button[aria-pressed="true"] {
  border-color: var(--am-green);
  background: var(--am-green);
  color: #fff;
}

.am-memento .am-filters select {
  min-height: 40px;
  padding: 5px 30px 5px 10px;
  border: 1px solid var(--am-line);
  background: #fff;
  color: var(--am-ink);
  font-size: 15px;
}

/* Interrupteurs "Affichage compact" et "Mode sombre" */
.am-memento .am-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--am-muted);
  font-size: 15px;
  cursor: pointer;
}

.am-memento .am-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--am-green);
}

/* Compteur "N ressources affichees" */
.am-memento .am-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 10px;
  color: var(--am-muted);
  font-size: 15px;
}

.am-memento .am-result strong {
  color: var(--am-ink);
}

/* Barre alphabetique A-Z */
.am-memento .am-az {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 16px;
}

.am-memento .am-az button {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--am-muted);
  font-size: 14px;
  cursor: pointer;
}

.am-memento .am-az button:hover,
.am-memento .am-az button[aria-pressed="true"] {
  background: var(--am-green);
  color: #fff;
}
/* cmsms stylesheet: Memento 4 - Cartes et sous-rubriques modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 4 - Cartes et sous-rubriques
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Cartes avec sous-pages, badge, boutons, vue sous-rubriques (drill), modes compact et sombre.
   Toutes les regles sont limitees a .am-memento pour ne pas affecter les autres designs.
   ========================================================================== */

/* CARTES : ligne haute de la carte (type + badge), reservee pour ne pas chevaucher les boutons */
.am-memento .am-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Badge de la carte (champ "Attribut supplementaire 1" de la page) */
.am-memento .am-card__badge {
  padding: 3px 8px;
  background: rgba(255, 255, 255, .9);
  color: #183f59;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.am-memento .am-card__badge--member {
  background: #f4d99f;
  color: #5d4118;
}

/* Carte avec sous-pages : fond, bordure, position des deux boutons */
.am-memento .am-card.am-card--group {
  padding: 0;
  overflow: hidden;
}

/* Zone principale de la carte (clic = ouvre les sous-rubriques sur place) */
.am-memento .am-card__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 62px 14px 17px;
  color: inherit;
  text-decoration: none;
}

.am-memento .am-card__main:focus-visible {
  outline: 3px solid #bd5a37;
  outline-offset: -3px;
}

/* Signe "+" orange en haut a droite de la carte */
.am-memento .am-card__main::after {
  position: absolute;
  top: 12px;
  right: 56px;
  color: #bd5a37;
  font: 700 22px/1 "DM Sans", Arial, sans-serif;
  content: "+";
}

.am-memento .am-card--group .am-card__top {
  min-height: 30px;
}

/* Titre et compteur "N sous-rubriques" de la carte groupe */
.am-memento .am-card__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.am-memento .am-card--group .am-card__count {
  margin: 0;
  padding: 0;
  flex: none;
  color: #52665d;
  font-size: 14px;
  font-weight: 500;
}

/* Bouton carre fleche haut-droite : ouvre la vraie page */
.am-memento .am-card__open {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(23, 59, 51, .24);
  border-radius: 4px;
  background: rgba(255, 255, 255, .7);
  color: #173b33;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.am-memento .am-card__open:hover,
.am-memento .am-card__open:focus-visible {
  background: #fff;
  outline: 2px solid #bd5a37;
}

/* VUE SOUS-RUBRIQUES (drill) : masque filtres, compteur et autres themes pendant la navigation */
.am-memento .am-home--drill > .am-filters,
.am-memento .am-home--drill > .am-result,
.am-memento .am-home--drill > .am-az,
.am-memento .am-home--drill > .am-empty,
.am-memento .am-home--drill > .am-theme:not(.am-drill) {
  display: none;
}

/* Barre bleue avec bouton retour dans la vue sous-rubriques */
.am-memento .am-drill__back {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, .28);
  border-radius: 4px;
  background: rgba(255, 255, 255, .6);
  color: #000;
  cursor: pointer;
  font: 700 20px/1 "DM Sans", Arial, sans-serif;
}

.am-memento .am-drill__back:hover,
.am-memento .am-drill__back:focus-visible {
  background: #fff;
  outline: 2px solid #bd5a37;
}

/* Message "aucun resultat" */
.am-memento .am-empty {
  padding: 40px 16px;
  border: 1px dashed var(--am-line);
  background: #fff;
  color: var(--am-muted);
  text-align: center;
}

/* MODE COMPACT : cartes plus serrees */
.am-memento .am-home--compact .am-cards {
  grid-template-columns: 1fr;
  gap: 0;
}

.am-memento .am-home--compact .am-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 190px minmax(160px, 1fr) 2fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

/* MODE SOMBRE : fond et textes inverses */
.am-memento .am-home--dark {
  padding: 18px;
  border-radius: 8px;
  background: #172421;
  color: #e9eee8;
}

.am-memento .am-home--dark .am-hero__lead,
.am-memento .am-home--dark .am-hero__stats dt,
.am-memento .am-home--dark .am-hero__stats dd,
.am-memento .am-home--dark .am-result,
.am-memento .am-home--dark .am-result strong,
.am-memento .am-home--dark .am-filters__label,
.am-memento .am-home--dark .am-switch,
.am-memento .am-home--dark .am-az button {
  color: #e9eee8;
}

/* Adaptation a l'ecran etroit (moins de 860 px) */
@media (max-width: 860px) {
  .am-memento .am-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .am-memento .am-figure {
    order: -1;
    min-height: 180px;
  }

  .am-memento .am-hero h2 {
    font-size: 34px;
  }

  .am-memento .am-home--compact .am-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* THEMES : pastilles de raccourci vers chaque theme */
.am-memento .am-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.am-memento .am-themes a {
  padding: 8px 14px;
  border: 1px solid #95ad9d;
  border-radius: 999px;
  background: #fff;
  color: var(--am-green);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.am-memento .am-themes a:hover,
.am-memento .am-themes a:focus-visible {
  background: var(--am-green);
  color: #fff;
}
/* cmsms stylesheet: Memento 5 - Themes et cartes simples modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 5 - Themes et cartes simples
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Themes (pages de 1er niveau), icones, grille et cartes simples.
   Toutes les regles sont limitees a .am-memento pour ne pas affecter les autres designs.
   ========================================================================== */

/* Bloc d'un theme (page de 1er niveau) et ancre de defilement */
.am-memento .am-theme {
  margin-top: 22px;
  scroll-margin-top: 16px;
}

/* Titre du theme : icone + nom + compteur */
.am-memento .am-theme__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 9px 14px;
  border-left: 4px solid var(--am-green);
  border-radius: 5px;
  background: #3da7ff;
  color: #000;
  font: 600 24px/1.3 Georgia, "Times New Roman", serif;
}

/* Icone du theme (champ vignette de la page) */
.am-memento .am-theme__icon {
  display: inline-block;
  width: 34px;
  height: 34px;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
  flex: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, .6);
}

/* Compteur de cartes du theme */
.am-memento .am-theme__count {
  margin-left: auto;
  font: 500 14px "DM Sans", Arial, sans-serif;
}

/* Grille des cartes d'un theme */
.am-memento .am-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 12px;
}

/* Carte simple (page sans sous-page) : fond blanc, bordure */
.am-memento .am-card {
  position: relative;
  display: flex;
  min-height: 140px;
  flex-direction: column;
  gap: 6px;
  padding: 16px 17px 14px;
  border: 1px solid #95ad9d;
  border-radius: 8px;
  background: linear-gradient(90deg, #7e9c8d 0%, #b6cbb8 52%, #eff3e8 100%);
  box-shadow: 0 3px 0 rgba(24, 59, 50, .12), 0 7px 14px rgba(24, 59, 50, .09);
  color: #183b32;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

/* Survol et focus clavier d'une carte */
.am-memento .am-card:hover,
.am-memento .am-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 5px 0 rgba(24, 59, 50, .13), 0 13px 22px rgba(24, 59, 50, .16);
}

.am-memento .am-card:focus-visible {
  outline: 3px solid #bd5a37;
  outline-offset: 2px;
}

/* Type de la carte (petit libelle en haut) */
.am-memento .am-card__type {
  color: #244f3c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Titre de la carte */
.am-memento .am-card h3 {
  margin: 0;
  color: #183b32;
  font: 600 21px/1.25 Georgia, "Times New Roman", serif;
}

/* Description de la carte */
.am-memento .am-card p {
  margin: 0;
  color: #29423a;
  font-size: 16px;
  line-height: 1.45;
}

/* Compteur de la carte */
.am-memento .am-card__count {
  margin-top: auto;
  padding-top: 6px;
  color: #102f2b;
  font-size: 14px;
  font-weight: 700;
}

/* Respecte la preference "reduire les animations" du systeme */
@media (prefers-reduced-motion: reduce) {
  .am-memento .am-card {
    transition: none;
  }
}

/* CARTES DE LIENS EXTERNES (balise {am_memento_liens}) : meme design que les cartes, teinte doree pour les distinguer */
.am-memento .am-card--lien {
  border-color: #d3b574;
  background: linear-gradient(90deg, #d9b56a 0%, #ecd7a3 52%, #faf3df 100%);
  box-shadow: 0 3px 0 rgba(120, 84, 24, .14), 0 7px 14px rgba(120, 84, 24, .10);
}

.am-memento .am-card--lien:hover,
.am-memento .am-card--lien:focus-visible {
  box-shadow: 0 5px 0 rgba(120, 84, 24, .15), 0 13px 22px rgba(120, 84, 24, .18);
}

.am-memento .am-card--lien .am-card__type,
.am-memento .am-card--lien .am-card__count {
  color: #6b4a14;
}

/* En-tete de la carte : domaine a gauche, fleche "lien externe" a droite */
.am-memento .am-card--lien .am-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.am-memento .am-card__ext {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid #c9a95f;
  border-radius: 6px;
  background: rgba(255, 255, 255, .7);
  color: #153b36;
  font-size: 18px;
}
/* cmsms stylesheet: Memento 6 - Pied de page et responsive modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 6 - Pied de page et responsive
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Pied de page et adaptations aux ecrans etroits et aux telephones.
   Toutes les regles sont limitees a .am-memento pour ne pas affecter les autres designs.
   ========================================================================== */

/* PIED DE PAGE : fond vert fonce */
.am-memento__footer {
  background: var(--am-green);
  color: #edf3ed;
}

/* Colonnes du pied de page */
.am-memento__footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 1fr;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 28px;
}

/* Bloc marque du pied de page */
.am-memento__footer-brand > a {
  color: #fff;
}

.am-memento__footer-brand p {
  margin: 12px 0 0;
  color: #c6d4cb;
  font-size: 13px;
}

/* Titres des groupes de liens du pied de page */
.am-memento__footer-group h2 {
  margin-bottom: 12px;
  color: #fff;
  font: 600 16px Georgia, "Times New Roman", serif;
}

/* Listes de liens du pied de page */
.am-memento__footer-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Liens du pied de page */
.am-memento__footer a {
  color: #e1ebe4;
  font-size: 12px;
  text-decoration: none;
}

/* Ligne du bas (copyright) */
.am-memento__footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #d6e1db;
  font-size: 11px;
}

.am-memento__footer-bottom p {
  margin: 0;
}

/* ADAPTATION AUX ECRANS (moins de 820 px) : marges laterales et colonnes du pied de page */
@media (max-width: 820px) {
  .am-memento__topbar-inner,
  .am-memento__main,
  .am-memento__footer-inner,
  .am-memento__footer-bottom {
    padding-right: 20px;
    padding-left: 20px;
  }

  .am-memento__footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ADAPTATION AUX TELEPHONES (moins de 600 px) : bandeau, contenu et pied de page compacts */
@media (max-width: 600px) {
  .am-memento__topbar-inner {
    min-height: 60px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .am-memento__brand-name {
    font-size: 19px;
  }

  .am-memento__toplinks {
    gap: 12px;
    font-size: 12px;
  }

  .am-memento__toplinks a:first-child {
    display: none;
  }

  .am-memento__toplinks .am-memento__login {
    padding: 7px 9px;
  }

  .am-memento__user { padding: 5px 5px 5px 9px; }

  .am-memento__main {
    padding: 18px 12px 42px;
  }

  .am-memento__content {
    padding: 16px 12px;
  }

  .am-memento__footer-inner {
    gap: 24px 16px;
    padding: 25px 16px 20px;
  }

  .am-memento__footer-brand {
    grid-column: 1 / -1;
  }

  .am-memento__footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px 17px;
  }
}

/* Pas de defilement anime si l'utilisateur reduit les animations */
@media (prefers-reduced-motion: reduce) {
  .am-memento {
    scroll-behavior: auto;
  }
}

/* Logo complet du pied de page : sur plaque creme pour rester lisible sur le fond vert fonce */
.am-memento__footer-logo {
  display: block;
  width: auto;
  height: 70px;
  padding: 5px 12px;
  border-radius: 10px;
  background: #fffdf5;
}

/* Pied de page simplifie (pages ouvertes dans une nouvelle fenetre) : seule la ligne de copyright, sans filet au-dessus */
.am-memento__footer--simple .am-memento__footer-bottom {
  border-top: 0;
  padding-top: 18px;
}
/* cmsms stylesheet: Memento 7 - Acces rapide modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 7 - Acces rapide
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Barre d'acces rapide des pages de corps : bouton Retour et menu deroulant.
   Toutes les regles sont limitees a .am-memento pour ne pas affecter les autres designs.
   ========================================================================== */

/* Barre d'acces rapide : bouton Retour a gauche, bouton menu tout a droite (pages de corps) */
/* BARRE D'ACCES RAPIDE (pages de corps) : Retour a gauche, menu tout a droite */
.am-quick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font: 600 17px/1.2 "DM Sans", Arial, sans-serif;
}

/* Bouton Retour dans la barre */
.am-quick .am-content-page__back {
  margin: 0;
}

/* Bouton menu (trois traits) et ses variantes */
.am-quick__menu {
  margin-left: auto;
}

.am-quick summary,
.am-quick__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 2px solid var(--am-green);
  border-radius: 8px;
  background: var(--am-green);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  cursor: pointer;
  text-decoration: none;
  list-style: none;
}

.am-quick summary::-webkit-details-marker {
  display: none;
}

.am-quick summary:hover,
.am-quick__top:hover {
  background: var(--am-orange);
  border-color: var(--am-orange);
}

.am-quick summary:focus-visible,
.am-quick__top:focus-visible,
.am-quick__panel a:focus-visible {
  outline: 3px solid var(--am-gold);
  outline-offset: 2px;
}

/* Icone "burger" dessinee en CSS (trois traits) */
.am-quick__burger,
.am-quick__burger::before,
.am-quick__burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.am-quick__burger {
  position: relative;
}

.am-quick__burger::before {
  position: absolute;
  top: -6px;
}

.am-quick__burger::after {
  position: absolute;
  top: 6px;
}

/* Panneau deroulant du menu (tous les niveaux de pages) */
.am-quick__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
  min-width: 260px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid var(--am-line);
  border-radius: 10px;
  background: var(--am-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

/* Listes et sous-listes du panneau (indentation des sous-pages) */
.am-quick__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-quick__panel ul ul {
  padding-left: 16px;
  border-left: 2px solid var(--am-green-light);
  margin-left: 12px;
}

/* Liens du panneau : survol et page courante */
.am-quick__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--am-green);
  font-size: 17px;
  text-decoration: none;
}

.am-quick__panel a:hover,
.am-quick__panel a.current {
  background: var(--am-green-light);
}

/* Impression : la barre d'acces rapide est masquee */
@media print {
  .am-quick {
    display: none;
  }
}
/* cmsms stylesheet: Memento 8 - Formulaires modified: dimanche 1 novembre 2026 19:52:11 */
/* ==========================================================================
   Memento 8 - Formulaires
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Mise en forme des pages avec formulaire (Contact, FormBuilder...) : la presentation en
   tableaux de FormBuilder est remplacee par des champs pleine largeur dans une carte.
   Les couleurs en dur de FormBuilder (balises font) sont neutralisees.
   ========================================================================== */

/* Carte du formulaire : largeur limitee, fond blanc, bordure et ombre */
.am-memento .am-memento__content form.cms_form {
  max-width: 760px;
  margin: 8px auto;
  padding: 28px 30px;
  border: 1px solid #95ad9d;
  border-top: 5px solid var(--am-orange);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 59, 54, .1);
}

/* Les tableaux de FormBuilder deviennent des blocs empiles */
.am-memento .am-memento__content form.cms_form table,
.am-memento .am-memento__content form.cms_form tbody,
.am-memento .am-memento__content form.cms_form tr,
.am-memento .am-memento__content form.cms_form td {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
}

/* Libelle d'un champ (cellule de gauche) : vert fonce, en gras ; le bleu d'origine est ignore */
.am-memento .am-memento__content form.cms_form td[align="left"] {
  margin-top: 16px;
  color: var(--am-green);
  font-size: 16px;
  font-weight: 700;
}

.am-memento .am-memento__content form.cms_form font {
  color: inherit;
}

.am-memento .am-memento__content form.cms_form td:empty {
  display: none;
}

/* Champs de saisie : pleine largeur, bordure verte, anneau bleu au focus */
.am-memento .am-memento__content form.cms_form input[type="text"],
.am-memento .am-memento__content form.cms_form input[type="email"],
.am-memento .am-memento__content form.cms_form input[type="password"],
.am-memento .am-memento__content form.cms_form input[type="tel"],
.am-memento .am-memento__content form.cms_form input[type="number"],
.am-memento .am-memento__content form.cms_form select,
.am-memento .am-memento__content form.cms_form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #95ad9d;
  border-radius: 7px;
  background: #fbfdfb;
  color: var(--am-ink);
  font: 16px/1.4 inherit;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.am-memento .am-memento__content form.cms_form textarea {
  min-height: 150px;
  resize: vertical;
}

.am-memento .am-memento__content form.cms_form input:focus,
.am-memento .am-memento__content form.cms_form select:focus,
.am-memento .am-memento__content form.cms_form textarea:focus {
  border-color: var(--am-green);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(61, 167, 255, .4);
}

/* Case a cocher du consentement : case a gauche, texte a droite */
.am-memento .am-memento__content form.cms_form table:has(input[type="checkbox"]) tr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--am-line);
  border-radius: 8px;
  background: #eef3ee;
}

.am-memento .am-memento__content form.cms_form table:has(input[type="checkbox"]) td {
  width: auto;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.am-memento .am-memento__content form.cms_form table:has(input[type="checkbox"]) td:first-child {
  flex: 0 0 auto;
}

.am-memento .am-memento__content form.cms_form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--am-green);
}

/* Captcha : image dans un cadre, champ court dessous */
.am-memento .am-memento__content form.cms_form img.captchapict {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border: 1px solid var(--am-line);
  border-radius: 8px;
}

.am-memento .am-memento__content form.cms_form input[name$="captcha_phrase"] {
  width: 220px;
  max-width: 100%;
}

/* Bouton d'envoi : vert fonce, orange au survol */
.am-memento .am-memento__content form.cms_form input[type="submit"],
.am-memento .am-memento__content form.cms_form button[type="submit"] {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--am-green);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}

.am-memento .am-memento__content form.cms_form input[type="submit"]:hover,
.am-memento .am-memento__content form.cms_form input[type="submit"]:focus-visible,
.am-memento .am-memento__content form.cms_form button[type="submit"]:hover,
.am-memento .am-memento__content form.cms_form button[type="submit"]:focus-visible {
  background: var(--am-orange);
}

/* Messages de FormBuilder (erreurs de validation, confirmation d'envoi) */
.am-memento .am-memento__content .error,
.am-memento .am-memento__content .fb_error,
.am-memento .am-memento__content .formbuilder_error {
  max-width: 760px;
  margin: 10px auto;
  padding: 12px 16px;
  border: 1px solid #d9a592;
  border-left: 5px solid var(--am-orange);
  border-radius: 8px;
  background: #fbefe9;
  color: #7a2f15;
}

@media (max-width: 600px) {
  .am-memento .am-memento__content form.cms_form {
    padding: 18px 14px;
  }

  .am-memento .am-memento__content form.cms_form input[name$="captcha_phrase"] {
    width: 100%;
  }
}
/* cmsms stylesheet: Memento 9 - Tableaux modified: dimanche 1 novembre 2026 19:52:11 */
/*
 * Memento 9 - Tableaux de contenu
 * Rend les tableaux saisis dans l'editeur (ex. page Bibliographie) lisibles et responsives.
 * Cible uniquement les tableaux qui ont des cellules d'en-tete <th> dans le contenu de page.
 * Les attributs width / height poses par l'editeur sont neutralises.
 */

/* Conteneur : le <center> de l'editeur ne doit pas elargir la page */
.am-memento__content center { display: block; text-align: left; }

/* Tableau : pleine largeur, cartes arrondies, fond blanc */
.am-memento__content table:has(th):not(.am-rech__table) {
  width: 100% !important;
  height: auto !important;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #c9d6c9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(20, 60, 40, .08);
  font-size: .95rem;
}

/* En-tete : bandeau vert fonce, reste visible au defilement */
.am-memento__content table:has(th):not(.am-rech__table) th {
  background: #14372f;
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
  position: sticky;
  top: 0;
}
.am-memento__content table:has(th):not(.am-rech__table) th p { margin: 0; }

/* Cellules */
.am-memento__content table:has(th):not(.am-rech__table) td {
  padding: 10px 14px;
  border-top: 1px solid #e3ebe3;
  vertical-align: top;
  text-align: left !important;
}
.am-memento__content table:has(th):not(.am-rech__table) td p { margin: 0; text-align: left !important; }

/* Lignes alternees et survol */
.am-memento__content table:has(th):not(.am-rech__table) tbody tr:nth-child(even) td { background: #f5f8f5; }
.am-memento__content table:has(th):not(.am-rech__table) tbody tr:hover td { background: #fff3d6; }

/* Colonnes : le titre prend la place, la date reste compacte */
.am-memento__content table:has(th):not(.am-rech__table) td:first-child { font-weight: 600; color: #14372f; }
.am-memento__content table:has(th):not(.am-rech__table) td:last-child { white-space: nowrap; }

/* Mobile : chaque ligne devient une fiche, avec le nom de la colonne devant la valeur */
@media (max-width: 700px) {
  .am-memento__content table:has(th):not(.am-rech__table),
  .am-memento__content table:has(th):not(.am-rech__table) tbody,
  .am-memento__content table:has(th):not(.am-rech__table) tr,
  .am-memento__content table:has(th):not(.am-rech__table) td {
    display: block;
    width: 100% !important;
  }
  .am-memento__content table:has(th):not(.am-rech__table) {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .am-memento__content table:has(th):not(.am-rech__table) tr:has(th) {
    position: absolute;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .am-memento__content table:has(th):not(.am-rech__table) tr {
    background: #fff;
    border: 1px solid #c9d6c9;
    border-left: 4px solid #d9822b;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 6px 0;
    box-shadow: 0 2px 6px rgba(20, 60, 40, .08);
  }
  .am-memento__content table:has(th):not(.am-rech__table) td,
  .am-memento__content table:has(th):not(.am-rech__table) tbody tr:nth-child(even) td {
    background: transparent;
    border: 0;
    padding: 5px 14px;
    white-space: normal;
  }
  .am-memento__content table:has(th):not(.am-rech__table) td::before {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7d70;
  }
  .am-memento__content table:has(th):not(.am-rech__table) td:nth-child(1)::before { content: "Titre"; }
  .am-memento__content table:has(th):not(.am-rech__table) td:nth-child(2)::before { content: "Auteur"; }
  .am-memento__content table:has(th):not(.am-rech__table) td:nth-child(3)::before { content: "Imprimeur / Éditeur"; }
  .am-memento__content table:has(th):not(.am-rech__table) td:nth-child(4)::before { content: "Date"; }
}
/* cmsms stylesheet: Memento 10 - Recherche modified: dimanche 1 novembre 2026 19:52:10 */
/*
 * Memento 10 - Recherche
 * Mise en forme des balises de recherche (patronymes, bureaux de recrutement, Napoléon...) : formulaire et tableau de résultats.
 * Elles sont générées par la balise am_recherche_lib (et rr_mf_rech_multi_patronymes).
 * Classes : .am-rech (conteneur), .am-rech__form / __grid / __field (formulaire),
 * .am-rech__actions / __btn (boutons), .am-rech__summary (compteur), .am-rech__table (résultats).
 */

/* Largeur de la zone de recherche : suit la largeur de la page (variable --am-largeur-max) */
.am-rech { max-width: none; margin: 0 auto; }

/* Formulaire : carte blanche, filet orange en haut */
.am-rech__form {
  background: #fff;
  border: 1px solid #c9d6c9;
  border-top: 4px solid #d9822b;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(20, 60, 40, .08);
}

/* Champs : grille qui passe de 3 colonnes à 1 selon la largeur disponible */
.am-rech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 18px;
}
.am-rech__field label { display: block; font-weight: 700; color: #14372f; margin-bottom: 5px; }
.am-rech__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  background: #f9fbf9;
  border: 1px solid #aebfae;
  border-radius: 8px;
}
.am-rech__field input:focus { outline: 3px solid #b7d8fa; border-color: #3b8de0; background: #fff; }

/* Boutons et lien d'aide */
.am-rech__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 18px; }
.am-rech__btn {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #14372f;
  border: 0;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
}
.am-rech__btn:hover, .am-rech__btn:focus-visible { background: #d9822b; }
.am-rech__btn--clear { background: #fff; color: #14372f; border: 1px solid #14372f; }
.am-rech__btn--clear:hover, .am-rech__btn--clear:focus-visible { background: #fff3d6; color: #14372f; }
.am-rech__help { color: #14372f; text-decoration: none; margin-left: auto; }
.am-rech__help:hover, .am-rech__help:focus-visible { background: #b7d8fa; }
.am-rech .am-rech__count { margin: 24px 0 0; color: #4f6357; font-size: .9rem; }

/* Compteur de résultats */
.am-rech .am-rech__summary { text-align: center; margin: 34px 0 18px; color: #14372f; }
.am-rech__more { color: #b3261e; font-weight: 700; }

/* Tableau de résultats */
.am-rech__results {
  background: #fff;
  border: 1px solid #c9d6c9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(20, 60, 40, .08);
}
.am-rech__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.am-rech__table th {
  background: #14372f;
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  position: sticky;
  top: 0;
}
.am-rech__table td { padding: 10px 14px; border-top: 1px solid #e3ebe3; vertical-align: top; text-align: left; }
.am-rech__table tbody tr:nth-child(even) td { background: #f5f8f5; }
.am-rech__table tbody tr:hover td { background: #fff3d6; }
.am-rech__first { font-weight: 700; color: #14372f; }
.am-rech__link { text-decoration: none; }
.am-rech__doc .am-rech__link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.am-rech__link:hover, .am-rech__link:focus-visible { background: #b7d8fa; }
/* Texte réservé aux lecteurs d'écran (l'étiquette de format est décorative) */
.am-rech__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Mobile : formulaire sur une colonne, boutons pleine largeur, résultats en fiches */
@media (max-width: 700px) {
  .am-rech__form { padding: 14px; }
  .am-rech__btn { flex: 1 1 40%; }
  .am-rech__help { margin-left: 0; flex-basis: 100%; }

  .am-rech__results { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .am-rech__table, .am-rech__table tbody, .am-rech__table tr, .am-rech__table td { display: block; width: 100%; box-sizing: border-box; }
  .am-rech__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .am-rech__table tr {
    background: #fff;
    border: 1px solid #c9d6c9;
    border-left: 4px solid #d9822b;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 6px 0;
    box-shadow: 0 2px 6px rgba(20, 60, 40, .08);
  }
  .am-rech__table td,
  .am-rech__table tbody tr:nth-child(even) td { background: transparent; border: 0; padding: 4px 14px; }
  .am-rech__table td:empty { display: none; }
  .am-rech__table td::before {
    content: attr(data-label);
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7d70;
  }
}
/* cmsms stylesheet: Memento 11 - Espace adherent modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 11 - Espace adherent (MAMS)
   Design : Ancestramil - Memento (gabarit Ancestramil-Memento-CMSMS)
   Mise en forme des ecrans du module MAMS : connexion, deconnexion, mot de passe oublie,
   verification du code, changement du mot de passe et parametres du compte.
   Les gabarits correspondants se trouvent dans assets/templates/mams (copies de travail) et
   dans le CMS (Extensions > MAMS pour les gabarits "MAMS ...", fichiers connexion.tpl,
   deconnexion.tpl et deconnexion_retour.tpl pour la connexion).
   Structure : .am-mams (carte) > .am-mams__title, .am-mams__alert, .am-mams__field,
   .am-mams__actions, .am-mams__links.
   ========================================================================== */

/* Carte centrale : largeur limitee, fond blanc, filet orange en haut */
.am-memento .am-mams {
  max-width: 520px;
  margin: 10px auto 24px;
  padding: 28px 30px;
  border: 1px solid #95ad9d;
  border-top: 5px solid var(--am-orange);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 59, 54, .1);
}

/* Le formulaire du module porte la classe cms_form (carte de "Memento 8") : on la neutralise ici */
.am-memento .am-mams form.cms_form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* Variante pour la page des parametres du compte (plus de champs) */
.am-memento .am-mams--wide {
  max-width: 760px;
}

.am-memento .am-mams__title {
  margin: 0 0 8px;
  color: var(--am-green);
  font-size: 26px;
  line-height: 1.2;
}

.am-memento .am-mams__intro {
  margin: 0 0 18px;
  color: var(--am-ink);
  line-height: 1.5;
}

/* Messages : erreur (orange) et information (vert) */
.am-memento .am-mams__alert {
  margin: 12px 0 18px;
  padding: 12px 16px;
  border: 1px solid #b9cdbf;
  border-left: 5px solid var(--am-green);
  border-radius: 8px;
  background: #eef3ee;
  color: var(--am-ink);
  line-height: 1.45;
}

.am-memento .am-mams__alert--error {
  border-color: #d9a592;
  border-left-color: var(--am-orange);
  background: #fbefe9;
  color: #7a2f15;
}

/* Champ : libelle au-dessus, saisie pleine largeur */
.am-memento .am-mams__field {
  margin-top: 16px;
}

.am-memento .am-mams__field > label,
.am-memento .am-mams__label {
  display: block;
  color: var(--am-green);
  font-size: 16px;
  font-weight: 700;
}

.am-memento .am-mams__req {
  color: var(--am-orange);
}

.am-memento .am-mams input[type="text"],
.am-memento .am-mams input[type="email"],
.am-memento .am-mams input[type="password"],
.am-memento .am-mams input[type="file"],
.am-memento .am-mams select,
.am-memento .am-mams textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #95ad9d;
  border-radius: 7px;
  background: #fbfdfb;
  color: var(--am-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}

.am-memento .am-mams textarea {
  min-height: 130px;
  resize: vertical;
}

.am-memento .am-mams input:focus,
.am-memento .am-mams select:focus,
.am-memento .am-mams textarea:focus {
  border-color: var(--am-green);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(61, 167, 255, .4);
}

.am-memento .am-mams input[readonly],
.am-memento .am-mams input:disabled {
  background: #eef3ee;
  color: #4d6a60;
}

/* Pot de miel anti-robot : sorti de l'ecran, invisible pour les utilisateurs */
.am-memento .am-mams__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Captcha : image dans un cadre, champ court dessous */
.am-memento .am-mams__captcha-img {
  margin-top: 6px;
}

.am-memento .am-mams__captcha-img img,
.am-memento .am-mams__captcha img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--am-line);
  border-radius: 8px;
}

.am-memento .am-mams__captcha input[type="text"] {
  width: 220px;
}

/* Cases a cocher et boutons radio : bloc cliquable sur fond clair */
.am-memento .am-mams__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--am-line);
  border-radius: 8px;
  background: #eef3ee;
  line-height: 1.4;
  cursor: pointer;
}

.am-memento .am-mams__check input,
.am-memento .am-mams__checkbox {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--am-green);
}

.am-memento .am-mams__radios {
  display: grid;
  gap: 8px;
}

.am-memento .am-mams__radios .am-mams__check {
  margin-top: 6px;
}

.am-memento .am-mams__dates select {
  display: inline-block;
  width: auto;
  margin-right: 8px;
}

.am-memento .am-mams__hint {
  margin: 6px 0 0;
  color: #4d6a60;
  font-size: 14px;
}

.am-memento .am-mams__avatar {
  display: block;
  margin: 8px 0;
  border-radius: 8px;
  object-fit: cover;
}

/* Boutons : vert fonce (principal) ou contour (secondaire), orange au survol */
.am-memento .am-mams__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.am-memento .am-mams__btn {
  display: inline-block;
  padding: 13px 26px;
  border: 2px solid var(--am-green);
  border-radius: 8px;
  background: var(--am-green);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.am-memento .am-mams__btn:hover,
.am-memento .am-mams__btn:focus-visible {
  border-color: var(--am-orange);
  background: var(--am-orange);
  color: #fff;
  text-decoration: none;
}

.am-memento .am-mams__btn--ghost {
  background: #fff;
  color: var(--am-green);
}

/* Dans un formulaire, les regles de "Memento 8" sur les boutons sont reprises avec la meme force */
.am-memento .am-mams form.cms_form button.am-mams__btn {
  margin-top: 0;
  padding: 13px 26px;
  border: 2px solid var(--am-green);
  background: var(--am-green);
  color: #fff;
}

.am-memento .am-mams form.cms_form button.am-mams__btn--ghost {
  background: #fff;
  color: var(--am-green);
}

.am-memento .am-mams form.cms_form button.am-mams__btn:hover,
.am-memento .am-mams form.cms_form button.am-mams__btn:focus-visible {
  border-color: var(--am-orange);
  background: var(--am-orange);
  color: #fff;
}

/* Liens secondaires (mot de passe oublie) */
.am-memento .am-mams__links {
  margin: 20px 0 0;
  text-align: center;
}

.am-memento .am-mams__links a {
  color: var(--am-green);
  text-decoration: none;
}

.am-memento .am-mams__links a:hover,
.am-memento .am-mams__links a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .am-memento .am-mams {
    padding: 20px 16px;
  }

  .am-memento .am-mams__actions {
    flex-direction: column;
  }

  .am-memento .am-mams__btn {
    width: 100%;
    box-sizing: border-box;
  }

  .am-memento .am-mams__captcha input[type="text"] {
    width: 100%;
  }
}

/* FORMULAIRE DE CONTACT (balise {am_contact}) : message d'erreur sous chaque champ, champ invalide, recapitulatif d'envoi */
.am-memento .am-mams__error {
  margin: 6px 0 0;
  color: #7a2f15;
  font-size: 14px;
  font-weight: 600;
}

.am-memento .am-mams input[aria-invalid="true"],
.am-memento .am-mams textarea[aria-invalid="true"] {
  border-color: var(--am-orange);
  background: #fff8f5;
}

.am-memento .am-contact__recap {
  margin: 14px 0 0;
}

.am-memento .am-contact__recap dt {
  margin-top: 10px;
  color: var(--am-green);
  font-weight: 700;
}

.am-memento .am-contact__recap dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
/* cmsms stylesheet: Memento 12 - Fiches Napoleon modified: dimanche 1 novembre 2026 19:52:10 */
/* ==========================================================================
   Memento 12 - Fiches Napoleon
   Design : Ancestramil - Memento
   ROLE : mise en forme des fiches detaillees (pages ouvertes en nouvelle fenetre) et du
          calendrier des medaillons du chapitre "Napoleon et le Premier Empire".
   BALISES CONCERNEES :
     - fiches : toutes les balises rr_*_appel_ip, via la balise am_fiche_lib (classes am-fiche*)
     - calendrier : rr_rech_armee_imperiale, rr_rech_corps_garde, rr_rech_divisions_garde (classes *consul)
   STRUCTURE D'UNE FICHE :
     .am-fiche__carte          une carte (bloc blanc arrondi)
       .am-fiche__titre--1     titre principal (vert fonce)
       .am-fiche__titre--2     sous-titre (vert clair)
       .am-fiche__corps        contenu de la carte
         dl.am-fiche__liste    liste de champs
           .am-fiche__champ    une ligne : libelle + valeur
             dt .am-fiche__libelle   LIBELLE ("Grade") : pastille verte en gras
             dd .am-fiche__valeur    VALEUR venant de la table
   POUR MODIFIER :
     - rendre les libelles plus/moins visibles : regle ".am-fiche__libelle" ci-dessous
     - largeur de la colonne des libelles : variable --am-fiche-libelle (defaut 15rem)
     - les couleurs viennent des variables --am-* de "Memento 1 - Cadre"
   ========================================================================== */

.am-fiche__carte {
  --am-fiche-libelle: 15rem;               /* largeur de la colonne des libelles */
  margin: 0 0 14px;
  background: var(--am-surface, #fff);
  border: 1px solid var(--am-line, #d8dfd8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(21, 59, 54, .08);
}
.am-fiche__corps { padding: 6px 16px 10px; }

/* Grand titre de la page (nom du regiment, de l'armee...) */
.am-fiche__nom {
  margin: 4px 0 14px;
  text-align: center;
  color: var(--am-green, #153b36);
  font-size: 1.5rem;
}

/* Titres des cartes */
.am-fiche__titre {
  margin: 0;
  padding: 10px 16px;
  font-size: 1.05rem;
  font-weight: 700;
}
.am-fiche__titre--1 { background: var(--am-green, #153b36); color: #fff; }
.am-fiche__titre--2 {
  background: var(--am-green-light, #e4eee8);
  color: var(--am-green, #153b36);
  border-bottom: 1px solid var(--am-line, #d8dfd8);
}
.am-fiche__date { color: var(--am-orange, #bd5a37); }

/* Liste de champs : libelle a gauche, valeur a droite */
.am-fiche__liste { margin: 0; padding: 0; }
.am-fiche__champ {
  display: grid;
  grid-template-columns: minmax(8rem, var(--am-fiche-libelle)) 1fr;
  gap: 4px 14px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--am-line, #d8dfd8);
}
.am-fiche__champ:last-child { border-bottom: 0; }

/* LIBELLE : bien visible (pastille vert clair, trait orange, gras vert fonce) */
.am-fiche__libelle {
  margin: 0;
  padding: 3px 10px;
  background: var(--am-green-light, #e4eee8);
  border-left: 4px solid var(--am-orange, #bd5a37);
  border-radius: 6px;
  color: var(--am-green, #153b36);
  font-weight: 700;
  font-size: .92rem;
}
/* VALEUR : texte normal, tres lisible */
.am-fiche__valeur {
  margin: 0;
  color: var(--am-ink, #182522);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* Texte libre (campagnes, blessures, honneurs...) */
.am-fiche__texte { margin: 10px 0; line-height: 1.6; overflow-wrap: anywhere; }

/* Identite : portrait a gauche, champs a droite */
.am-fiche__entete { display: flex; gap: 18px; align-items: flex-start; padding: 12px 16px; }
.am-fiche__entete .am-fiche__liste { flex: 1; min-width: 0; }
.am-fiche__portrait { max-width: 140px; height: auto; border-radius: 8px; margin: 10px 16px 0 0; }
.am-fiche__entete .am-fiche__portrait { margin: 0; }

/* Filets entre groupes d'une meme carte */
.am-fiche__sep { border: 0; height: 3px; border-radius: 2px; margin: 12px 0; }
.am-fiche__sep--rouge { background: var(--am-orange, #bd5a37); }
.am-fiche__sep--vert  { background: var(--am-green, #153b36); }

/* Adjoints d'un commandant (armee imperiale) : 1 = vert, 2 = bleu et decale */
.am-fiche__adjoints { list-style: none; margin: 8px 0; padding: 0; }
.am-fiche__adjoint { padding: 4px 0; }
.am-fiche__adjoint--1 { color: #0a6b2c; }
.am-fiche__adjoint--2 { color: #333366; margin-left: 2rem; }

/* Petit ecran : libelle au-dessus de la valeur, portrait au-dessus des champs */
@media (max-width: 640px) {
  .am-fiche__champ { grid-template-columns: 1fr; gap: 3px; }
  .am-fiche__libelle { justify-self: start; }
  .am-fiche__entete { flex-direction: column; }
  .am-fiche__corps { padding: 4px 12px 8px; }
}

/* ---------- Calendrier des medaillons (annee x mois) ---------- */
table.tabconsul {
  display: block;            /* permet le defilement horizontal sur mobile */
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  background: var(--am-surface, #fff);
  border: 1px solid var(--am-line, #d8dfd8);
  border-radius: 12px;
  margin: 0 0 18px;
}
table.tabconsul th.ligthconsul {
  background: var(--am-green, #153b36);
  color: #fff;
  padding: 8px 6px;
  font-size: .85rem;
  white-space: nowrap;
  text-align: center;
}
table.tabconsul td.celanneeconsul {
  background: var(--am-green-light, #e4eee8);
  color: var(--am-green, #153b36);
  font-weight: 700;
  padding: 6px 10px;
  text-align: center;
  position: sticky;          /* l'annee reste visible pendant le defilement */
  left: 0;
}
table.tabconsul td.celtdconsul {
  padding: 4px;
  text-align: center;
  border: 1px solid var(--am-line, #d8dfd8);
  min-width: 36px;
}
table.tabconsul td.celtdconsul a { display: inline-block; border-radius: 50%; }
table.tabconsul td.celtdconsul a:hover,
table.tabconsul td.celtdconsul a:focus-visible {
  outline: 2px solid var(--am-gold, #dfa74a);
  outline-offset: 2px;
}
