/* ==========================================================================
   SAÏRAM ONG INTERNATIONALE
   Couche d'identité visuelle appliquée par-dessus Bootstrap 5.3.
   Bootstrap gère la grille, la navbar et les points de rupture.
   Ce fichier gère la palette, la typographie et les composants du site.

   Palette : pigments de l'Égypte antique — papyrus, basalte,
   lapis-lazuli, malachite, cornaline, or.
   Tous les couples texte/fond dépassent le ratio 4.5:1 (WCAG AA).
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  --papyrus:     #f4ead6;
  --papyrus-2:   #eaddc2;
  --lin:         #fffdf7;
  --basalte:     #1e1710;
  --basalte-2:   #2c2318;

  --lapis:       #1b4d7a;
  --malachite:   #1f6b57;
  --cornaline:   #a63d2b;
  --or:          #c8a24a;
  --or-clair:    #e3c377;
  --or-fonce:    #8a6a26;

  --encre:       #241a11;
  --encre-doux:  #4d3c2b;
  --papyrus-vif: #f6efe0;
  --papyrus-mat: #ded1b6;

  --display: "Marcellus", "Optima", "Palatino Linotype", Georgia, serif;
  --texte:   "Spectral", Georgia, "Times New Roman", serif;

  --rythme: clamp(4rem, 8vw, 7.5rem);
  --doux: 0.45s cubic-bezier(.2, .7, .3, 1);

  /* on aligne les variables Bootstrap sur la palette */
  --bs-body-bg: #f4ead6;
  --bs-body-color: #241a11;
  --bs-link-color: #a63d2b;
  --bs-link-hover-color: #8a6a26;
  --bs-border-color: rgba(36, 26, 17, .16);
}

/* ------------------------------------------------------------- 2. Socle */
body {
  background: var(--papyrus);
  color: var(--encre);
  font-family: var(--texte);
  font-size: clamp(1.075rem, 1.02rem + 0.28vw, 1.19rem);
  line-height: 1.78;
  font-weight: 400;
}

/* Les images conservent toujours leurs propres proportions.
   Sans « height: auto », l'attribut height écrit dans le HTML s'applique
   littéralement et écrase l'image pour la forcer dans ce rectangle. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 0.6em;
  color: var(--encre);
}
h1 { font-size: clamp(2.5rem, 1.7rem + 4.2vw, 5rem); }
h2 { font-size: clamp(1.95rem, 1.4rem + 2.3vw, 3.05rem); }
h3 { font-size: clamp(1.35rem, 1.12rem + 0.85vw, 1.7rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--or); color: var(--basalte); }

:focus-visible { outline: 3px solid var(--cornaline); outline-offset: 3px; }
.entete :focus-visible, .heros :focus-visible, .titre-page :focus-visible,
.pied :focus-visible, .bande--basalte :focus-visible,
.bande--lapis :focus-visible { outline-color: var(--or-clair); }

.saut-contenu {
  position: absolute; left: -9999px;
  background: var(--or); color: var(--basalte);
  padding: 0.9rem 1.5rem; z-index: 2000; font-family: var(--display);
}
.saut-contenu:focus { left: 1rem; top: 1rem; }

/* la grille Bootstrap, élargie à la mesure du site */
@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 1180px; }
}

/* bloc de texte à largeur de lecture confortable */
.mesure { max-width: 62ch; }
.centre { text-align: center; }
.centre.mesure { margin-inline: auto; }

/* ----------------------------------------------------- 3. Bandes */
.bande { padding-block: var(--rythme); position: relative; }
.bande--papyrus { background: var(--papyrus); }
.bande--sable   { background: var(--papyrus-2); }
.bande--serree  { padding-block: calc(var(--rythme) * 0.62); }

.bande--basalte, .bande--lapis { color: var(--papyrus-vif); }
.bande--basalte { background: var(--basalte); }
.bande--lapis   { background: var(--lapis); }

.bande--basalte h1, .bande--basalte h2, .bande--basalte h3, .bande--basalte h4,
.bande--lapis h1, .bande--lapis h2, .bande--lapis h3, .bande--lapis h4 {
  color: var(--papyrus-vif);
}

/* grain minéral sur les fonds sombres */
.bande--basalte::before, .bande--lapis::before,
.heros::before, .titre-page::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(246, 239, 224, .06) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}
.bande--basalte > .container, .bande--lapis > .container { position: relative; z-index: 1; }

/* ------------------------------------------------------------ 4. Fioritures */
.surtitre {
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cornaline);
  display: flex; align-items: center; gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.surtitre::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; flex: none; }
.surtitre--centre { justify-content: center; }
.surtitre--centre::after { content: ""; width: 2.2rem; height: 2px; background: currentColor; flex: none; }

.bande--basalte .surtitre, .bande--lapis .surtitre,
.heros .surtitre, .titre-page .surtitre { color: var(--or-clair); }

.chapo {
  font-size: clamp(1.18rem, 1.06rem + 0.55vw, 1.4rem);
  line-height: 1.62;
  color: var(--encre-doux);
}
.bande--basalte .chapo, .bande--lapis .chapo,
.heros .chapo, .titre-page .chapo { color: var(--papyrus-mat); }

.filet {
  border: 0; height: 2px; opacity: 1;
  background: linear-gradient(90deg, var(--or-fonce), rgba(138, 106, 38, 0));
  margin: 2.6rem 0;
}
.filet--centre {
  background: linear-gradient(90deg, rgba(138, 106, 38, 0), var(--or-fonce), rgba(138, 106, 38, 0));
}

.rappel-contact {
  font-size: 0.98rem; font-style: italic; color: var(--encre-doux); margin-top: 1.4rem;
}
.rappel-contact a { color: var(--cornaline); border-bottom: 1px solid currentColor; }

/* ---------------------------------------------------------- 5. Navbar */
.entete {
  background: var(--basalte);
  border-bottom: 2px solid var(--or);
  padding-block: 0.6rem;
  z-index: 1030;
}
.entete .container { align-items: center; }

.marque { display: flex; align-items: center; gap: 0.9rem; padding: 0; }
.marque__sceau { width: 2.9rem; height: 2.9rem; flex: none; }
.marque__nom {
  font-family: var(--display);
  font-size: 1.3rem; letter-spacing: 0.06em;
  color: var(--papyrus-vif); line-height: 1.05;
}
.marque__nom span {
  display: block; font-family: var(--texte);
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--or-clair); margin-top: 0.3rem;
}

.entete .nav-link {
  font-family: var(--display);
  font-size: 1.04rem; letter-spacing: 0.04em;
  color: var(--papyrus-vif);
  padding: 0.45rem 0;
  margin-inline: clamp(0.5rem, 0.9vw, 0.9rem);
  position: relative;
  white-space: nowrap;
}
.entete .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0.15rem;
  width: 0; height: 2px; background: var(--or);
  transition: width var(--doux);
}
.entete .nav-link:hover,
.entete .nav-link:focus,
.entete .nav-link.active { color: var(--or-clair); }
.entete .nav-link:hover::after,
.entete .nav-link.active::after { width: 100%; }

.entete .navbar-toggler {
  border: 2px solid var(--or);
  padding: 0.5rem 0.7rem;
  border-radius: 0;
}
.entete .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(200, 162, 74, .35); }
.entete .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e3c377' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* menu déplié sur petit écran */
@media (max-width: 1199.98px) {
  .entete .navbar-collapse {
    border-top: 2px solid rgba(200, 162, 74, .35);
    margin-top: 0.9rem;
    padding-top: 0.6rem;
  }
  .entete .nav-link {
    font-size: 1.2rem;
    margin-inline: 0;
    padding-block: 0.65rem;
  }
  .entete .nav-link::after { display: none; }
  .entete .nav-item + .nav-item { border-top: 1px solid rgba(200, 162, 74, .18); }
}

/* ------------------------------------------------------ 6. Bandeau défilant */
.defilant {
  background: var(--lapis);
  border-bottom: 2px solid var(--or);
  overflow: hidden; padding-block: 0.7rem;
}
.defilant__piste { display: flex; width: max-content; animation: glisse 48s linear infinite; }
.defilant:hover .defilant__piste { animation-play-state: paused; }
.defilant__lot { display: flex; flex: none; }
.defilant span {
  font-family: var(--display);
  font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--papyrus-vif); padding-inline: 1.5rem; white-space: nowrap;
  display: flex; align-items: center; gap: 1.5rem;
}
.defilant span::after { content: "\25C6"; font-size: 0.55rem; color: var(--or-clair); }
@keyframes glisse { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- 7. Héros */
.heros {
  position: relative; overflow: hidden;
  background: var(--basalte);
  background-image:
    radial-gradient(115% 90% at 80% 14%, rgba(27, 77, 122, .72) 0%, rgba(30, 23, 16, 0) 60%),
    radial-gradient(95% 75% at 4% 96%, rgba(31, 107, 87, .55) 0%, rgba(30, 23, 16, 0) 58%);
  color: var(--papyrus-vif);
  padding-block: clamp(3.5rem, 9vw, 8rem);
}
.heros > .container { position: relative; z-index: 2; }
.heros h1 { color: var(--papyrus-vif); margin-bottom: 0.4em; }
.heros h1 em { font-style: normal; color: var(--or-clair); display: block; }
.heros__texte { max-width: 52ch; color: var(--papyrus-mat); font-size: 1.12rem; }

/* ---------------------------------------------- Le sceau du Temple d'Edôm
   Transcription vectorielle de l'emblème de l'ONG. Seul le dragon central
   est une image ; tout le reste est dessiné en SVG et animé. */
.sceau {
  width: 100%; max-width: 30rem; margin-inline: auto; display: block;
  --px: 0px; --py: 0px;
}
.sceau-marque { display: block; }
.marque .sceau-marque { width: 3rem; height: 3rem; flex: none; }

.sceau .chiffre {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700; font-size: 64px; fill: #14100a; text-anchor: middle;
}
.sceau .temple {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700; font-size: 43px; fill: #ffffff; text-anchor: middle;
}

/* rotations lentes — le centre du sceau est en 320,310 */
.sceau__anneau-tournant { animation: tourne 150s linear infinite; transform-origin: 320px 310px; }
.sceau__anneau-lent     { animation: tourne 230s linear infinite reverse; transform-origin: 320px 310px; }
.sceau__respire         { animation: respire 7s ease-in-out infinite; transform-origin: 320px 310px; }
@keyframes tourne  { to { transform: rotate(360deg); } }
@keyframes respire { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* pulsation en cascade des orbes 3 -> 6 -> 9 */
.orbe__halo { opacity: .5; transition: opacity 1.25s ease; }
.orbe.est-actif .orbe__halo { opacity: 1; }

/* parallaxe douce à la souris */
/* les orbes se décalent un peu plus que l'astre : la profondeur vient de
   l'écart entre les deux plans, puisqu'il n'y a plus de fond */
.sceau__astre { transform: translate(calc(var(--px) * 0.35), calc(var(--py) * 0.35)); transition: transform .7s ease-out; }
.sceau__orbes { transform: translate(var(--px), var(--py)); transition: transform .7s ease-out; }

@media (max-width: 991.98px) {
  .sceau { max-width: 24rem; }
}

/* -------------------------------------------------------------- 8. Boutons */
.groupe-boutons {
  display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem;
}

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--display); font-size: 1.02rem;
  letter-spacing: 0.05em; text-align: center;
  padding: 0.85rem 1.8rem;
  border: 2px solid var(--or);
  background: var(--or); color: var(--basalte);
  cursor: pointer;
  transition: background var(--doux), color var(--doux), transform var(--doux);
}
.bouton:hover, .bouton:focus {
  background: var(--or-clair); border-color: var(--or-clair);
  color: var(--basalte); transform: translateY(-2px);
}

.bouton--fantome { background: transparent; color: var(--or-clair); }
.bouton--fantome:hover, .bouton--fantome:focus { background: var(--or); color: var(--basalte); }

.bouton--encre { background: var(--basalte); border-color: var(--basalte); color: var(--papyrus-vif); }
.bouton--encre:hover, .bouton--encre:focus {
  background: var(--cornaline); border-color: var(--cornaline); color: var(--papyrus-vif);
}

.bouton--petit { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

.lien-fleche {
  font-family: var(--display); color: var(--cornaline);
  font-size: 1.05rem; letter-spacing: 0.03em;
  display: inline-flex; gap: 0.5rem;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
  transition: gap var(--doux);
}
.lien-fleche:hover { gap: 0.95rem; color: var(--cornaline); }
.bande--basalte .lien-fleche, .bande--lapis .lien-fleche,
.pole--majeur .lien-fleche { color: var(--or-clair); }
.bande--basalte .lien-fleche:hover, .pole--majeur .lien-fleche:hover { color: var(--or-clair); }

/* --------------------------------------------------------- 9. Visuels */
.visuel { position: relative; }
.visuel img { position: relative; z-index: 1; width: 100%; }
.visuel::after {
  content: ""; position: absolute; z-index: 0;
  top: 1.3rem; right: -1.3rem; bottom: -1.3rem; left: 1.3rem;
  border: 2px solid var(--or-fonce);
}
.bande--basalte .visuel::after, .bande--lapis .visuel::after { border-color: var(--or); }

@media (max-width: 991.98px) {
  .visuel::after { display: none; }
}

.legende {
  font-size: 0.98rem; line-height: 1.6;
  color: var(--encre-doux); margin-top: 2rem; font-style: italic;
}
.bande--basalte .legende, .bande--lapis .legende { color: var(--papyrus-mat); }

/* ------------------------------------------------------ 10. Liste indexée */
.index { list-style: none; margin: 0; padding: 0; }
.index li {
  counter-increment: idx;
  display: flex; gap: 1.3rem; align-items: baseline;
  padding-block: 1.4rem;
  border-top: 2px solid rgba(36, 26, 17, .16);
}
.index li:last-child { border-bottom: 2px solid rgba(36, 26, 17, .16); }
.index li::before {
  content: counter(idx, decimal-leading-zero);
  font-family: var(--display); font-size: 1.15rem;
  color: var(--cornaline); letter-spacing: 0.06em;
  flex: none; min-width: 2.2rem;
}
.index strong { font-family: var(--display); font-weight: 400; font-size: 1.26rem; }

.bande--basalte .index li, .bande--lapis .index li { border-color: rgba(200, 162, 74, .35); }
.bande--basalte .index li::before, .bande--lapis .index li::before { color: var(--or-clair); }

/* --------------------------------------------------------- 11. Pôles */
.pole {
  background: var(--lin);
  border: 2px solid rgba(36, 26, 17, .14);
  border-top: 5px solid var(--cornaline);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform var(--doux), box-shadow var(--doux);
}
.pole:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(36, 26, 17, .16); }
.pole--majeur {
  background: var(--basalte); color: var(--papyrus-mat);
  border-color: var(--basalte); border-top-color: var(--or);
}
.pole--majeur h3 { color: var(--papyrus-vif); }
.pole__etiquette {
  font-family: var(--display); font-size: 0.86rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--malachite);
}
.pole--majeur .pole__etiquette { color: var(--or-clair); }
.pole img { margin-bottom: 1.1rem; width: 100%; }
.pole > .lien-fleche { margin-top: auto; align-self: flex-start; padding-top: 1.2rem; }

/* ------------------------------------------------------- 12. Cartes */
.carte {
  background: var(--lin);
  border: 2px solid rgba(36, 26, 17, .14);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  display: flex; flex-direction: column;
  transition: transform var(--doux), box-shadow var(--doux), border-color var(--doux);
}
.carte:hover {
  transform: translateY(-4px); border-color: var(--or-fonce);
  box-shadow: 0 18px 40px rgba(36, 26, 17, .14);
}
.carte h3 { margin-bottom: 0.5rem; }
.carte p { color: var(--encre-doux); font-size: 1.04rem; }
.carte__glyphe { font-size: 1.05rem; color: var(--cornaline); margin-bottom: 0.9rem; letter-spacing: .3em; }
.carte .bouton { margin-top: 1.3rem; align-self: flex-start; }

.prix {
  margin-top: auto; padding-top: 1.4rem;
  border-top: 2px dashed var(--or-fonce);
  font-family: var(--display); display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 0.5rem;
}
.prix strong { font-size: 1.45rem; font-weight: 400; color: var(--lapis); }
.prix em { font-style: normal; font-family: var(--texte); font-size: 1rem; color: var(--encre-doux); }
.prix__note {
  width: 100%; font-family: var(--texte); font-size: 0.96rem;
  line-height: 1.6; color: var(--encre-doux); font-style: italic; margin-top: 0.5rem;
}

/* -------------------------------- 13. Lignes de formations, livres, produits */
.formation {
  padding-block: 1.9rem;
  border-top: 2px solid rgba(36, 26, 17, .16);
  margin-inline: 0;
}
.formation:last-of-type { border-bottom: 2px solid rgba(36, 26, 17, .16); }
.formation__num {
  font-family: var(--display); color: var(--cornaline);
  font-size: 1.2rem; letter-spacing: 0.06em; padding-top: 0.3rem;
}
.formation h3 { margin-bottom: 0.5rem; }
.formation p { color: var(--encre-doux); margin: 0; max-width: 62ch; font-size: 1.04rem; }
.formation p + p { margin-top: 0.6rem; }

.livre__date {
  font-family: var(--display); font-size: 0.92rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--malachite) !important; margin-bottom: 0.7rem !important;
}

.formation__aside {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.9rem; padding-top: 0.2rem;
}
.formation__prix {
  font-family: var(--display);
  color: var(--lapis); font-size: 1.3rem; line-height: 1.2;
}
.formation__prix span {
  display: block; font-family: var(--texte);
  font-size: 0.94rem; color: var(--encre-doux); margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .formation__aside { align-items: flex-end; text-align: right; min-width: 13rem; }
}

/* ------------------------------------------------------------ 14. Citation */
.citation { text-align: center; max-width: 48ch; margin-inline: auto; }
.citation blockquote {
  margin: 0; font-family: var(--display);
  font-size: clamp(1.55rem, 1.15rem + 1.9vw, 2.6rem);
  line-height: 1.3; color: var(--papyrus-vif);
}
.citation figcaption {
  margin-top: 1.6rem; font-size: 0.96rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-clair);
  font-family: var(--display);
}

/* -------------------------------------------------------------- 15. Chiffres */
.chiffre { border-left: 3px solid var(--or-fonce); padding-left: 1.2rem; height: 100%; }
.chiffre b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 1.5rem + 1.9vw, 2.9rem); color: var(--cornaline); line-height: 1;
}
.chiffre span { display: block; margin-top: 0.55rem; font-size: 0.98rem; color: var(--encre-doux); }
.bande--basalte .chiffre, .bande--lapis .chiffre { border-left-color: var(--or); }
.bande--basalte .chiffre b, .bande--lapis .chiffre b { color: var(--or-clair); }
.bande--basalte .chiffre span, .bande--lapis .chiffre span { color: var(--papyrus-mat); }

/* -------------------------------------------------------- 16. Encarts */
.encart {
  background: var(--lin);
  border: 2px solid var(--or-fonce);
  border-left: 6px solid var(--cornaline);
  padding: clamp(1.5rem, 3vw, 2.3rem);
}
.bande--basalte .encart, .bande--lapis .encart {
  background: var(--basalte-2); color: var(--papyrus-mat);
  border-color: var(--or); border-left-color: var(--or);
}
.encart h3 { margin-bottom: 0.9rem; }

.paiements { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.paiements li {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline;
  font-size: 1.03rem;
}
.paiements b {
  font-family: var(--display); font-weight: 400; color: var(--lapis);
  letter-spacing: 0.03em; font-size: 1.08rem;
}
.bande--basalte .paiements b, .bande--lapis .paiements b { color: var(--or-clair); }
.paiements a { border-bottom: 1px solid currentColor; }

/* ------------------------------------------------------------ 17. Formulaire */
.champ { display: flex; flex-direction: column; gap: 0.45rem; }
.champ label {
  font-family: var(--display); font-size: 0.96rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre);
}
.champ input, .champ select, .champ textarea {
  font-family: var(--texte); font-size: 1.06rem; color: var(--encre);
  background: var(--lin);
  border: 2px solid rgba(36, 26, 17, .28);
  border-radius: 0;
  padding: 0.8rem 1rem; width: 100%;
  transition: border-color var(--doux), box-shadow var(--doux);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--cornaline);
  box-shadow: 0 0 0 3px rgba(166, 61, 43, .2);
}
.champ textarea { resize: vertical; min-height: 9.5rem; }
.note-formulaire { font-size: 0.96rem; color: var(--encre-doux); font-style: italic; line-height: 1.6; }

/* ---------------------------------------------------------- 18. Pied de page */
.pied {
  background: var(--basalte); color: var(--papyrus-mat);
  padding-block: clamp(3.2rem, 6vw, 5rem) 0;
  border-top: 4px solid var(--or);
  font-size: 1.02rem;
}
.pied h4 {
  font-size: 0.96rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--or-clair); margin-bottom: 1.2rem; font-family: var(--display);
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.pied a:hover { color: var(--or-clair); }
.pied small { font-size: 0.9rem; color: var(--papyrus-mat); }
.pied .marque__nom { font-size: 1.2rem; }
.pied__mention { font-size: 0.99rem; line-height: 1.66; margin-top: 1.1rem; }
.pied__bas {
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
  border-top: 2px solid rgba(200, 162, 74, .35);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.7rem;
  font-size: 0.95rem; color: var(--papyrus-mat);
}

.reseaux { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.reseaux a {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 2px solid var(--or); border-radius: 50%;
  transition: background var(--doux), transform var(--doux);
}
.reseaux a:hover { background: var(--or); transform: translateY(-3px); }
.reseaux a:hover svg { fill: var(--basalte); }
.reseaux svg { width: 1.1rem; height: 1.1rem; fill: var(--or-clair); transition: fill var(--doux); }
.bande--papyrus .reseaux a, .bande--sable .reseaux a { border-color: var(--cornaline); }
.bande--papyrus .reseaux svg, .bande--sable .reseaux svg { fill: var(--cornaline); }
.bande--papyrus .reseaux a:hover, .bande--sable .reseaux a:hover { background: var(--cornaline); }
.bande--papyrus .reseaux a:hover svg, .bande--sable .reseaux a:hover svg { fill: var(--papyrus); }

/* --------------------------------------------------------- 19. Bandeau titre */
.titre-page {
  background: var(--basalte);
  background-image: radial-gradient(115% 130% at 88% 6%, rgba(27, 77, 122, .75) 0%, rgba(30, 23, 16, 0) 58%);
  color: var(--papyrus-vif);
  padding-block: clamp(3rem, 7vw, 6rem);
  position: relative; overflow: hidden;
}
.titre-page > .container { position: relative; z-index: 1; }
.titre-page h1 { color: var(--papyrus-vif); max-width: 18ch; }
.titre-page .chapo { max-width: 60ch; }
.titre-page .sceau-marque {
  position: absolute; right: -6rem; top: 50%; transform: translateY(-50%);
  width: 26rem; opacity: .2; pointer-events: none; z-index: 0;
}
.fil {
  font-size: 0.93rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--papyrus-mat); margin-bottom: 1.5rem;
}
.fil a { border-bottom: 1px solid currentColor; }
.fil a:hover { color: var(--or-clair); }

@media (max-width: 1199.98px) {
  .titre-page .sceau-marque { display: none; }
}

/* ------------------------------------------------------ 20. Apparition scroll */
.apparait {
  opacity: 0; transform: translateY(20px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .3, 1);
}
.apparait.est-visible { opacity: 1; transform: none; }
.apparait[data-retard="1"] { transition-delay: .1s; }
.apparait[data-retard="2"] { transition-delay: .2s; }

/* ---------------------------------------------------------- 21. Petits écrans */
@media (max-width: 575.98px) {
  .marque__nom { font-size: 1.1rem; }
  .marque__sceau { width: 2.5rem; height: 2.5rem; }
  .index li { gap: 0.9rem; }
  .index li::before { min-width: 1.9rem; }
  .groupe-boutons .bouton { width: 100%; }
  .pied__bas { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .apparait { opacity: 1; transform: none; }
}

@media print {
  .entete, .defilant, .pied { display: none; }
  body { background: #fff; color: #000; }
}

/* =========================================================
   Menu déroulant « Actualités »
   À coller à la fin de assets/css/style.css
   ========================================================= */

.entete .dropdown-menu {
  background-color: var(--basalte, #1e1710);
  border: 1px solid rgba(200, 162, 74, .28);
  border-radius: 4px;
  padding: .4rem 0;
  margin-top: .4rem;
  min-width: 12rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .38);
}

.entete .dropdown-item {
  color: var(--papyrus, #f4ead6);
  padding: .58rem 1.15rem;
  font-size: .95rem;
  transition: background-color .2s ease, color .2s ease;
}

.entete .dropdown-item:hover,
.entete .dropdown-item:focus-visible {
  background-color: rgba(200, 162, 74, .14);
  color: var(--or, #c8a24a);
}

.entete .dropdown-item.active,
.entete .dropdown-item:active {
  background-color: rgba(200, 162, 74, .20);
  color: var(--or, #c8a24a);
}

/* Alignement de la petite flèche du menu déroulant */
.entete .dropdown-toggle::after {
  vertical-align: .16em;
  margin-left: .4em;
}

/* En dessous de 1200px le menu passe en hamburger : le déroulant
   devient une simple liste indentée, sans cadre ni ombre. */
@media (max-width: 1199.98px) {
  .entete .dropdown-menu {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    margin: 0 0 .25rem;
    padding: .1rem 0 .1rem .9rem;
  }

  .entete .dropdown-item {
    padding-left: .35rem;
  }
}

/* =========================================================
   Cartes vidéo — page « Nos vidéos »
   À coller à la fin de assets/css/style.css
   ========================================================= */

.pole--video {
  display: flex;
  flex-direction: column;
}

/* La vignette est un lien : on la rend cliquable en entier
   et on y superpose le bouton de lecture. */
.pole--video .pole__vignette {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1.1rem;
  background-color: var(--basalte, #1e1710);
  text-decoration: none;
}

/* YouTube fournit des miniatures en 4/3 avec des bandes noires.
   Le recadrage en 16/9 les supprime proprement. */
.pole--video .pole__vignette img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}

.pole--video .pole__vignette:hover img,
.pole--video .pole__vignette:focus-visible img {
  transform: scale(1.04);
  opacity: .82;
}

/* Bouton de lecture centré */
.pole--video .pole__jouer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin-top: -24px;
  margin-left: -34px;
  pointer-events: none;
}

.pole--video .pole__jouer svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pole--video .pole__jouer-fond {
  fill: var(--basalte, #1e1710);
  fill-opacity: .78;
  transition: fill .3s ease, fill-opacity .3s ease;
}

.pole--video .pole__jouer-fleche {
  fill: var(--papyrus, #f4ead6);
}

.pole--video .pole__vignette:hover .pole__jouer-fond,
.pole--video .pole__vignette:focus-visible .pole__jouer-fond {
  fill: var(--cornaline, #a63d2b);
  fill-opacity: .92;
}

/* Contour visible au clavier, pour l'accessibilité */
.pole--video .pole__vignette:focus-visible {
  outline: 2px solid var(--or, #c8a24a);
  outline-offset: 3px;
}

/* Date et nombre de vues */
.pole--video .pole__date {
  margin: 0 0 .6rem;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .68;
}

/* Le titre reste un lien mais garde la couleur des titres */
.pole--video h3 {
  margin-bottom: .6rem;
}

.pole--video h3 .pole__lien {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--or, #c8a24a), var(--or, #c8a24a));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .35s ease;
}

.pole--video h3 .pole__lien:hover,
.pole--video h3 .pole__lien:focus-visible {
  background-size: 100% 1px;
}

/* Le lien du bas s'aligne en pied de carte, pour que les
   trois colonnes restent régulières malgré des textes inégaux. */
.pole--video .lien-fleche {
  margin-top: auto;
  padding-top: .5rem;
}

/* Pas d'agrandissement au survol si la personne préfère
   les animations réduites. */
@media (prefers-reduced-motion: reduce) {
  .pole--video .pole__vignette img {
    transition: opacity .3s ease;
  }
  .pole--video .pole__vignette:hover img,
  .pole--video .pole__vignette:focus-visible img {
    transform: none;
  }
}
