/* ----------------------------------------------------
   VARIABLES
---------------------------------------------------- */
:root {
  --fond: #05060a;
  --texte: #f5f1ea;
  --accent: #e0b37a;
  --lapin: rgba(20, 40, 80, 0.85);
  --header-height: 170px;
}

/* ----------------------------------------------------
   RESET
---------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ----------------------------------------------------
   BODY — BRUME
---------------------------------------------------- */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;

  background: url("/statics/images/brume2.png") center 35% / cover no-repeat fixed;
  background-color: var(--fond);
  color: var(--texte);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: stretch; /* ← tu ajoutes cette ligne ici */
}

/* ----------------------------------------------------
   MAIN
---------------------------------------------------- */
main.contenu-scroll {
  flex: 1 0 auto;
  overflow-y: visible;
  margin: 0;
  padding: 0;
}

/* Correction : rétablir l’espace sous le header pour la home */
body.accueil main.contenu-scroll {
  margin-top: 120px; /* ajuste la valeur si nécessaire */
}

main {
  padding: 0;
  min-height: auto;
  display: block;
}

.contenu-page {
  max-width: 760px;
  margin-left: 2rem;
  padding-right: 2rem;
  text-align: left;
}

/* ----------------------------------------------------
   HEADER — FIXE, TOUJOURS VISIBLE
---------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;

  z-index: 5000; /* très haut pour éviter d'être recouvert */

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;

  padding: 0.5rem 2rem;

  background: rgba(245, 236, 225, 0.88);
  backdrop-filter: blur(6px);

  color: var(--fond);
  overflow: visible;

  /* IMPORTANT : on supprime tout effet de glissement */
  transform: translateY(0) !important;
  transition: none !important;
}

/* Neutralisation complète du masquage */
header.header-hidden {
  transform: translateY(0) !important;
}

/* Espace sous le header pour que le contenu ne passe pas dessous */
body.flex,
.contenu-scroll {
  padding-top: var(--header-height, 110px);
}

/* ----------------------------------------------------
   PARTIE GAUCHE : PORTRAIT + TITRE
---------------------------------------------------- */

.header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.portrait-flottant {
  position: relative;
  animation: haloRespire 6s ease-in-out infinite,
             flottement 5.5s ease-in-out infinite;
}

.portrait-flottant img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(224, 179, 122, 0.45);
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(224, 179, 122, 0.25);
}

/* Titre du site */
.logo-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.logo-title h1 {
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lapin);
  margin: 0;
}

.logo-title h1 a {
  color: var(--lapin);
  text-decoration: none;
}

.logo-title p {
  font-size: 1.2rem;
  opacity: 0.75;
  color: rgba(70, 75, 85, 0.9);
  margin: 0.2rem 0 0;
}

/* ----------------------------------------------------
   MENU HAUT
---------------------------------------------------- */

.menu-haut {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 20;
  overflow: visible;
  flex-grow: 1;
}

.menu-haut button {
  background: transparent;
  border: none;
  color: var(--lapin);
  cursor: pointer;

  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 500;

  transition: 0.25s ease;
}

.menu-haut button:hover {
  color: rgba(35, 70, 140, 0.95);
  text-shadow: 0 0 6px rgba(120, 150, 200, 0.45);
  transform: translateY(-1px);
}

button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----------------------------------------------------
   ARCHIVES — DROPDOWN
---------------------------------------------------- */

.menu-archives {
  position: relative;
  overflow: visible;
}

.menu-archives .menu-button {
  background: none;
  border: none;
  color: var(--lapin);
  font-family: inherit;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  cursor: pointer;
}

.menu-archives-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;

  background: rgba(80, 100, 130, 0.28);
  border: 1px solid rgba(200, 220, 255, 0.25);
  backdrop-filter: blur(14px);
  border-radius: 0.6rem;

  padding: 0.6rem 0;
  list-style: none;
  z-index: 5000;
}

.menu-archives-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--lapin);
  text-decoration: none;
}

.menu-archives-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-archives:hover .menu-archives-dropdown {
  display: block;
}

/* ----------------------------------------------------
   VERSION MOBILE
---------------------------------------------------- */

@media (max-width: 768px) {

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;

    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.6rem 1rem;
    gap: 0.8rem;
  }

  header.header-hidden {
    transform: translateY(-100%);
  }

  .header-left {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .portrait-flottant img {
    width: 60px;
    height: 60px;
  }

  .logo-title h1 {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }

  .logo-title p {
    display: none;
  }

  .menu-haut {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 360px;
  }

  .menu-haut button,
  .menu-archives .menu-button {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .menu-archives-dropdown {
    left: 50%;
    transform: translateX(-50%);
  }
}
/* ----------------------------------------------------
   BANDEAU DE RUBRIQUE
---------------------------------------------------- */
.rubrique-header {
  position: relative;
  top: 0;
  z-index: 2500;

  margin: 0.5rem auto 2rem;
  padding: 0.4rem 2rem;

  background: rgba(80, 90, 105, 0.35);
  border: 1px solid rgba(220, 230, 245, 0.35);
  backdrop-filter: blur(18px);
  border-radius: 1rem;

  max-width: 760px;

  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.20),
    0 0 80px rgba(180, 210, 255, 0.12);

  text-align: center;
}

.rubrique-header h2 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.rubrique-header p {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--lapin);
  opacity: 0.9;
}

/* ----------------------------------------------------
   LISTE D’ARTICLES
---------------------------------------------------- */
.liste-articles {
  max-width: 760px;
  margin: 2rem 4rem;
  padding: 0rem;
}

.article-item {
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-date {
  display: inline-block;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 0.3rem;
}

.article-titre {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.article-titre a {
  color: var(--texte);
  text-decoration: none;
}

.article-titre a:hover {
  text-decoration: underline;
}

.article-resume {
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.85;
  margin-top: 0.3rem;
}
/* ----------------------------------------------------
   PAGE ARTICLE
---------------------------------------------------- */
.article-wrapper {
  max-width: 760px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  background: rgba(245, 236, 225, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 0.6rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.6;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
}

.article-content a:hover {
  opacity: 0.8;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  opacity: 0.9;
}

.article-content img {
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: 0.4rem;
}

.article-title {
  font-size: 16px;
}

/* ----------------------------------------------------
   PAGE CONTACT
---------------------------------------------------- */
.contact-wrapper {
  max-width: 760px;
  margin: 2rem auto 4rem;
  margin-right: 3rem;
  margin-left: 1rem;
  padding: 0 2rem;
  color: var(--lapin);
  font-family: inherit;
}

.page-contact-intro {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.form-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  background: rgba(80, 100, 130, 0.28);
  border: 1px solid rgba(200, 220, 255, 0.25);
  backdrop-filter: blur(14px);
  border-radius: 1rem;

  padding: 2rem 2.2rem;
  margin-right: 1.5rem;
}

.form-contact label {
  font-size: 0.95rem;
  opacity: 0.85;
  color: var(--lapin);
}

.form-contact input,
.form-contact textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 220, 255, 0.25);
  border-radius: 0.4rem;

  color: var(--lapin);
  font-family: inherit;
  font-size: 1rem;

  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-contact input::placeholder,
.form-contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-contact input:focus,
.form-contact textarea:focus {
  border-color: rgba(224, 179, 122, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.form-contact button {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;

  background: #E0B37A;
  color: #111;
  border: none;
  border-radius: 0.4rem;

  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;

  transition: background 0.2s ease;
}

.form-contact button:hover {
  background: #e8c79a;
}

/* ----------------------------------------------------
   FOOTER — FIXE, TOUJOURS VISIBLE
---------------------------------------------------- */
footer.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 1.2rem 2.8rem;
  margin-top: 0;

  background: transparent;
  border-top: none;
  backdrop-filter: none;

  display: block;
  z-index: 3000;
}

/* Grille à 2 colonnes : gauche = RSS, droite = newsletter */
.footer-content {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* ← colle les deux blocs à droite */
  align-items: center;
  gap: 1.5rem; /* ← espace entre Flux RSS et Newsletter */
   
}

/* Bloc RSS + signature — reste centré dans sa colonne */
.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0.85;
  text-align: right !important;
  justify-content: flex-end !important;
}

/* Signature */
.footer-signature {
  font-size: 0.85rem;
  opacity: 0.85;
  color: var(--accent);
}

/* Bloc newsletter — collé à droite */
.footer-right {
  justify-self: end; /* clé : colle à droite */
  display: flex;
  align-items: center;
}

/* Newsletter : colonne interne */
.newsletter-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

/* Couleur globale */
.footer-fixed,
.footer-fixed a,
.footer-signature,
.newsletter-mini-title {
  color: var(--texte);
}

/* ----------------------------------------------------
   ESPACE POUR NE PAS QUE LE CONTENU PASSE SOUS LE FOOTER
---------------------------------------------------- */
main.contenu-scroll {
  padding-bottom: 90px;
}

/* ----------------------------------------------------
   ANIMATIONS
---------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contenu-page,
.article-wrapper,
.contact-wrapper,
.liste-articles,
.rubrique-header {
  animation: fadeIn 0.6s ease both;
}

a {
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

button,
input,
textarea {
  transition: background 0.2s ease,
              border-color 0.2s ease,
              opacity 0.2s ease;
}
/* ----------------------------------------------------
   BLOC D’INTRO — PAGE D’ACCUEIL
---------------------------------------------------- */
.intro-block {
  max-width: 600px;
  margin-right: 2.5rem;
  margin-left: 2.5rem;
  margin-top: 10px;

  padding: 2rem 2.2rem;

  background: rgba(80, 100, 130, 0.28);
  border: 1px solid rgba(200, 220, 255, 0.25);
  backdrop-filter: blur(14px);
  border-radius: 1rem;

  color: var(--lapin);
  line-height: 1.55;
  animation: fadeIn 0.6s ease both;
}

.intro-block h2 {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.intro-block p {
  margin-bottom: 1rem;
  opacity: 0.95;
  color: var(--lapin);
}

/* ----------------------------------------------------
   BLOC D’INTRO — PAGE D’ACCUEIL
---------------------------------------------------- */
.intro-block {
  max-width: 600px;
  margin: 10px 2.5rem;
  padding: 2rem 2.2rem;

  background: rgba(80, 100, 130, 0.28);
  border: 1px solid rgba(200, 220, 255, 0.25);
  backdrop-filter: blur(14px);
  border-radius: 1rem;

  color: var(--lapin);
  line-height: 1.55;
  animation: fadeIn 0.6s ease both;
}

.intro-block h2 {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.intro-block p {
  margin-bottom: 1rem;
  opacity: 0.95;
  color: var(--lapin);
}

/* ----------------------------------------------------
   PASTILLES ACCUEIL
---------------------------------------------------- */
.pastilles-accueil {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pastilles-accueil .pastille-terrier {
  white-space: nowrap;
}

/* ----------------------------------------------------
   PAGE NEWSLETTER — VERSION HARMONISÉE
---------------------------------------------------- */

/* Couleur du texte générale */
.page-territoire {
  color: var(--lapin);
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Mise en page : texte à gauche, vidéo à droite */
.newsletter-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
  justify-content: center;
}

/* Colonne texte — même largeur que la vidéo */
.newsletter-texte {
  flex: 0 0 620px;
  background: rgba(120, 150, 190, 0.25);
  padding: 2.2rem;
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  color: var(--lapin);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Aération du texte */
.newsletter-texte p {
  line-height: 1.7;
  margin-bottom: 1.4rem;
  font-size: 1.08rem;
}

/* Colonne vidéo — même largeur que le texte */
.newsletter-video {
  flex: 0 0 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vidéo newsletter — mêmes proportions que l’image */
.newsletter-video video {
  width: 100%;
  max-width: 620px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  object-position: center 85%;
}

/* Animation du titre */
@keyframes tresaillement {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-1px); }
  40%  { transform: translateX(1px); }
  60%  { transform: translateX(-1px); }
  80%  { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

.site-title {
  color: var(--lapin);
  text-decoration: none;
  display: inline-block;
}

.site-title:hover {
  animation: tresaillement 0.25s ease-in-out;
}

@keyframes flottement {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* ----------------------------------------------------
   ARCHIVES — LISTE
---------------------------------------------------- */

/* Couleur + taille uniquement pour le corps de la rubrique Archives */
.section-content.archives-liste .archive-annee,
.section-content.archives-liste .archive-mois,
.section-content.archives-liste .archive-mois-bloc,
.section-content.archives-liste .article-item,
.section-content.archives-liste .article-item *,
.section-content.archives-liste .tag-date {
  color: #010a12 !important;
  font-size: 14px !important;
}

/* Rétablir la couleur orangée EXACTE des autres rubriques */
.rubrique-header h2,
.rubrique-header p {
  color: var(--accent) !important;
  font-size: inherit !important;
}

/* Décalage du texte du corps de la page Archives vers la droite */
.section-content.archives-liste {
  padding-left: 3rem;
  padding-right: 2rem;
}

/* Couleur du texte dans toutes les rubriques ET dans les articles */
.section-content,
.section-content * {
  color: var(--lapin) !important;
}

/* Pousser le texte vers la droite dans toutes les rubriques (sauf Archives) */
.section-content:not(.archives-liste) {
  padding-left: 3rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* ----------------------------------------------------
   LIGNE D’ARTICLE DANS LA PAGE LISTE
---------------------------------------------------- */
.article-line {
  display: grid;
  grid-template-columns: 7rem 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "date title"
    ".    teaser";
  column-gap: 0.5rem;
  row-gap: 0.2rem;

  padding: 0.5rem 0.5rem 0.5rem 0;
  color: var(--lapin);
  box-sizing: border-box;
}

/* Date */
.article-line .article-date {
  grid-area: date;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* Titre */
.article-line .article-title {
  grid-area: title;
}

.article-line .article-title a {
  color: var(--lapin);
  font-weight: 600;
  text-decoration: none;
}

/* Sous-titre */
.article-line .article-teaser {
  grid-area: teaser;
  color: var(--lapin);
  opacity: 0.8;
  font-style: italic;
  max-width: 100ch;
}

/* Images dans les articles */
.article-body img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
}

/* ----------------------------------------------------
   PAGE ARTICLE — HEADER TOP
---------------------------------------------------- */
.article-page .article-header-top {
  display: grid;
  grid-template-columns: 7rem 1fr;
  grid-template-areas: "date title";
  column-gap: 0.5rem;
  align-items: baseline;
}

.article-page .article-date {
  grid-area: date;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 500;
}

.article-page .article-title {
  grid-area: title;
  font-weight: 600;
  color: var(--lapin);
}

.article-page .article-teaser {
  display: block;
  margin-left: 7.6rem;
  max-width: 65ch;
  white-space: normal !important;
  font-style: italic;
  opacity: 0.8;
  line-height: 1.4;
  color: var(--lapin);
}

/* Dates dans toutes les rubriques */
.section-content .article-line .article-date {
  color: var(--accent) !important;
}

.article-body > *:first-child {
  margin-top: 3rem;
}
/* ----------------------------------------------------
   LAPIN SCROLL-TO-TOP
---------------------------------------------------- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 350px;

  font-size: 1.7rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  animation: lapin-saut 0.8s infinite ease-in-out;

  z-index: 999999999 !important;

  -webkit-tap-highlight-color: transparent;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

@keyframes lapin-saut {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

#backToTop:focus,
#backToTop:focus-visible,
#backToTop::-moz-focus-inner {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}


/* ----------------------------------------------------
   PARTAGE D’ARTICLES
---------------------------------------------------- */
.share-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.share-block p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.share-link {
  margin-right: 1rem;
  color: #c45a00;
  text-decoration: none;
}

.share-link:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------
   PASTILLE TERRIER
---------------------------------------------------- */
.pastille-terrier {
  display: block;
  width: fit-content;
  padding: 0.55rem 1.2rem;
  margin: 1.4rem auto 0 auto;

  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 12px;

  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.3px;

  transition: all 0.2s ease;
}

.pastille-terrier:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* ----------------------------------------------------
   PAGE VIDÉO DU TERRIER
---------------------------------------------------- */
.page-video-terrier {
  display: flex;
  justify-content: center;
  padding: 0rem 1rem 3rem;
  position: relative;
}

.page-video-terrier .video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.page-video-terrier .video-wrapper::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.page-video-terrier video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Fond spécifique Terrier */
body.presentation-terrier {
  background-image: url('/statics/images/fond_basalte_bleu.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ----------------------------------------------------
   ESPACE GLOBAL SOUS LE HEADER FIXED
---------------------------------------------------- */
main.contenu-scroll {
  margin-top: 0;
}

body:not(.accueil) main.contenu-scroll {
  margin-top: 120px;
}

/* ----------------------------------------------------
   HEADER MASQUÉ — desktop + mobile
---------------------------------------------------- */
header.header-hidden {
  transform: translateY(-100%);
}

/* ----------------------------------------------------
   VERSION MOBILE
---------------------------------------------------- */

/* Par défaut : le header mobile est masqué */
.mobile-header {
  display: none;
}

@media (max-width: 768px) {

  /* Masquer le header desktop */
  header.site-header {
    display: none !important;
  }

  /* Afficher le header mobile */
  .mobile-header {
    display: flex !important;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    max-width: 100vw;
    position: static !important;
  }

  /* Conteneur du titre + portrait */
  .mobile-header-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Portrait miniature */
  .portrait-mobile {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    flex-shrink: 0;
  }

  .mobile-header h1 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .menu-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .menu-mobile a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.35rem 0.65rem;
    background: #f4efe7;
    color: #1d2a49;
    border-radius: 8px;
    border: 1px solid #e3ded4;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
  }

  .menu-mobile a:hover {
    background: #e9e3d8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  }

  /* Boutons désactivés */
  .menu-mobile a.disabled {
    background: #d9d4cc;
    color: #8a847b;
    border: 1px solid #c8c2b9;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.9;
    filter: grayscale(40%);
  }

  .menu-mobile a.disabled:hover {
    background: #d9d4cc;
    transform: none;
    box-shadow: none;
  }

  /* Page du Terrier : marge-top pour descendre la vidéo */
  body.presentation-terrier main.contenu-scroll {
    margin-top: 100px !important;
  }

  /* Toutes les autres pages : aucune marge-top */
  body:not(.presentation-terrier) main.contenu-scroll {
    margin-top: 0 !important;
  }

  .mobile-title-link {
    text-decoration: none;
    color: inherit;
  }

  .mobile-title-link:active,
  .mobile-title-link:visited {
    color: inherit;
  }
}

/* ----------------------------------------------------
   VERSION DESKTOP : masquer le header mobile
---------------------------------------------------- */
@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
  }
}

/* ----------------------------------------------------
   UTILITAIRE
---------------------------------------------------- */

.hidden {
  display: none !important;
}

/* ----------------------------------------------------
   ÉCHOS — FOND IMMERSIF FIXE
---------------------------------------------------- */

.echos-privee {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: none;
}

.echos-privee::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('/statics/images/fond_archives.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.95) contrast(1.08);
  z-index: -1;
}

.echos-privee::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(1px);
  z-index: 0;
}

/* ----------------------------------------------------
   CONTENU INTERNE — PAS DE SCROLL
---------------------------------------------------- */

.echos-contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(100vh - 140px); /* Ajuste selon ton header */
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  color: var(--texte);
}

/* ----------------------------------------------------
   CONSTELLATION
---------------------------------------------------- */

#constellation-echos {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#constellation-echos.visible {
  opacity: 1;
}

/* ----------------------------------------------------
   POINTS LUMINEUX — ÉCHOS
---------------------------------------------------- */

.point-echo {
  position: absolute;
  width: 9px;   /* 6px → 9px */
  height: 9px;  /* 6px → 9px */
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.9;
  z-index: 3;

  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 16px rgba(255, 255, 255, 0.5);

  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Survol */
.point-echo:hover {
  transform: scale(1.7); /* 1.5 → 1.7 */
  opacity: 1;
  box-shadow:
    0 0 14px rgba(255, 255, 255, 1),
    0 0 22px rgba(255, 255, 255, 0.9);
}

/* Révélation */
.point-echo.revelation {
  transform: scale(2.2); /* 2 → 2.2 */
  opacity: 1;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 1),
    0 0 28px rgba(255, 255, 255, 0.9);
}

/* Pré‑résonance */
.point-echo.pre-resonance {
  animation: pulse-pre 0.6s ease-out;
}

@keyframes pulse-pre {
  0%   { transform: scale(1); opacity: 0.8; }
  50%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Titre au survol / révélation */
.point-echo::before {
  content: attr(data-title);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;

  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.point-echo:hover::before,
.point-echo.revelation::before {
  opacity: 1;
}

/* ----------------------------------------------------
   BARRE DE RECHERCHE FIXÉE EN HAUT
---------------------------------------------------- */

.barre-recherche {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: #050505;
  padding: 1rem 0 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* Ligne Année/Mois */
.barre-celeste {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  padding: 0.8rem 1.2rem;
}

.bloc-date {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.barre-celeste label {
  font-size: 0.9rem;
  opacity: 0.7;
}

.barre-celeste select {
  background: #111;
  color: #fff;
  border: 1px solid #444;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

/* Titres */
.titre-echos,
.titre-archives {
  color: var(--texte);
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.9;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.titre-echos { margin-right: 2.5rem; }
.titre-archives { margin-left: 2.5rem; }

/* ----------------------------------------------------
   BARRE ÉCHO + COMPTEUR
---------------------------------------------------- */

.barre-filtres {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

#champ-echo {
  background: #111;
  color: #fff;
  border: 1px solid #444;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  width: 280px;
  max-width: 60%;
  text-align: center;
}

.compteur-echo {
  font-size: 12px;
  opacity: 0.5;
  text-align: center;
  margin-top: -6px;
  transition: opacity 0.3s ease;
}

.compteur-echo.ok {
  opacity: 0;
}

.btn-reset {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ----------------------------------------------------
   MESSAGE POUR LES PÉRIODES VIDES
---------------------------------------------------- */

.message-echos {
  text-align: center;
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.message-echos.visible {
  opacity: 1;
}

/* ----------------------------------------------------
   AJUSTEMENTS MOBILE
---------------------------------------------------- */

@media (max-width: 600px) {

  .point-echo {
    width: 2px;
    height: 2px;
    box-shadow:
      0 0 3px rgba(255, 255, 255, 0.9),
      0 0 6px rgba(255, 255, 255, 0.5);
  }

  @keyframes pulse-pre {
    0%   { transform: scale(1); opacity: 0.8; }
    50%  { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
  }

  .point-echo:hover {
    transform: scale(2);
  }

  .point-echo.revelation {
    transform: scale(2.5);
  }
}


/* ----------------------------------------------------
Lapin retour salle echo
---------------------------------------------------- */
.lapin-retour {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.lapin-icone {
  font-size: 2.4rem;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.lapin-icone:hover {
  opacity: 1;
}

/* ——— LIENS RITUELS SOUS L’ARTICLE ——— */

.section-content.article-wrapper.article-page .liens-territoires {
  margin-top: 2.2rem; /* espace entre "A lire aussi" et les liens rituels */
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.section-content.article-wrapper.article-page .liens-territoires p {
  margin: 0.55rem 0;
}

.section-content.article-wrapper.article-page .liens-territoires .lien-territoire {
  color: #c46a2b !important; /* orange var-lapin */
  text-decoration: none;
  font-size: 0.97rem;
  font-variant: small-caps; /* contraste typographique fort */
  letter-spacing: 0.7px;
  font-weight: 600;
  opacity: 0.92;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.section-content.article-wrapper.article-page .liens-territoires .lien-territoire:hover {
  color: #e98a47 !important; /* var-lapin lumineux */
  opacity: 1;
}

/* ————————————————————————————————
   LAYOUT GLOBAL (desktop)
   ———————————————————————————————— */
.newsletter-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ————————————————————————————————
   COLONNE TEXTE (desktop)
   ———————————————————————————————— */
.newsletter-texte {
  flex: 1 1 600px;
  max-width: 600px;
  line-height: 1.65;
  font-size: 1.08rem;
}

/* ————————————————————————————————
   COLONNE VIDÉO (desktop)
   ———————————————————————————————— */
.newsletter-video {
  flex: 1 1 600px;
  max-width: 600px;
}

.newsletter-video video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* ————————————————————————————————
   VERSION TABLETTE (≤ 900px)
   ———————————————————————————————— */
@media (max-width: 900px) {

  .newsletter-layout {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 1.5rem;
  }

  .newsletter-texte,
  .newsletter-video {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .newsletter-video video {
    width: 100%;
    height: auto;
  }
}

/* ————————————————————————————————
   VERSION MOBILE (≤ 600px)
   ———————————————————————————————— */
@media (max-width: 600px) {

  /* Libère le parent */
  .newsletter-layout {
    display: block;
    padding: 1.5rem 1rem;
  }

  .newsletter-texte {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 2rem;
  }

  /* ————————————————————————————————
     CONTENEUR VIDÉO RÉDUIT (la vraie solution)
     ———————————————————————————————— */
  .newsletter-video {
    width: 96vw;                 /* ← réduit réellement la largeur */
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: none;
    padding-bottom: 4rem;
  }

  /* ————————————————————————————————
     VIDÉO PLUS HAUTE
     ———————————————————————————————— */
  .newsletter-video video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
  }

  /* Footer non fixe */
  .footer-fixed {
    position: static !important;
  }
}


/* ————————————————————————————————
   VERSION MOBILE (≤ 600px) — Présentation du Terrier
   ———————————————————————————————— */
@media (max-width: 600px) {

  /* Libère le parent */
  .page-video-terrier {
    display: block;
    padding: 1.5rem 1rem;
  }

  /* Conteneur vidéo élargi mais sans toucher les bords */
  .page-video-terrier .video-wrapper {
    width: 95vw;                 /* largeur ajustée */
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: none;
    padding-bottom: 4rem;
  }

  /* Vidéo plus haute : ratio + hauteur réelle supplémentaire */
  .page-video-terrier video {
    width: 100%;
    aspect-ratio: 4 / 4.3;       /* base verticale */
    height: calc(100% + 80px);   /* ← +2 cm réels environ */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  /* Footer non fixe */
  .footer-fixed {
    position: static !important;
  }
}


/* ————————————————————————
   VIDÉO — Salle des Échos uniquement
   ———————————————————————— */

.echos .overlay-video {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* VIDÉO PLUS GRANDE SUR PC */
.echos .video-container {
  position: relative;
  max-width: 1200px;   /* vidéo plus grande */
  width: 95%;
  max-height: 90vh;    /* empêche qu’elle soit coupée */
  overflow: visible;   /* permet à la croix de dépasser */
}

/* VIDÉO ADAPTÉE À L’ÉCRAN */
.echos #video-presentation {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
}
.echos .lien-video {
  font-size: 0.9rem;
  color: #b0c7ff !important;   /* bleu clair minéral */
  opacity: 0.85;
  margin-left: 0.6rem;         /* ajoute deux espaces visuels */
  text-decoration: none;
  transition: opacity 0.3s, color 0.3s;
}

.echos .lien-video:hover {
  opacity: 1;
  color: #d8e4ff !important;   /* bleu clair encore plus lumineux */
}

/* CROIX TOUJOURS VISIBLE — OPTION 2 */
.echos .fermer-video {
  position: absolute;
  top: -10px;          /* visible même si la vidéo est grande */
  right: -10px;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: white;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s;

  /* OPTION 2 : halo noir pour visibilité */
  text-shadow:
    0 0 4px black,
    0 0 8px black,
    0 0 12px black;
}

.echos .fermer-video:hover {
  opacity: 1;
}

/* MASQUER / AFFICHER */
.echos .hidden {
  display: none;
}

/* ————————————————————————
   ADAPTATION MOBILE (GSM)
   ———————————————————————— */
@media (max-width: 600px) {

  .echos .video-container {
    max-width: 360px; /* Taille GSM */
    width: 90%;
  }

  .echos .fermer-video {
    top: -30px;
    font-size: 1.6rem;
  }
}

/* ————————————————————————
   ADAPTATION MOBILE (GSM) — WRAPPER ARTICLE
   ———————————————————————— */
@media (max-width: 600px) {

  /* On neutralise le décalage du wrapper */
  .section-content.article-wrapper.article-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* On centre la vidéo dans l'article */
  .article-content video {
    display: block;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

  /* Mise à jour article */
.article-line {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.article-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5rem; /* largeur fixe = ALIGNEMENT PARFAIT */
  flex-shrink: 0; /* empêche la colonne de se réduire */
}

.maj-label {
  display: block;
  font-size: 0.85em;
  opacity: 0.6;
  margin-top: -2px;
}

.maj-blink {
  animation: majBlink 1.2s ease-in-out infinite;
}

@keyframes majBlink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.15; }
}

/* RSS en footer */
.footer-links {
  text-align: right;
  margin: 0.3rem 0 1.2rem 0; /* marge basse augmentée */
}

.footer-links a {
  color: var(--texte);
  font-size: 0.9rem;
  opacity: 0.85;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
}

/* Pulsation mystique pour les pastilles page d'accueil du site */
@keyframes pulse-pastille {
  0%   { transform: scale(1); opacity: 1; }
  10%  { transform: scale(1.05); opacity: 0.96; }
  20%  { transform: scale(1.02); opacity: 1; }
  30%  { transform: scale(1.06); opacity: 0.95; }
  40%  { transform: scale(1.015); opacity: 1; }
  60%  { transform: scale(1.01); opacity: 0.98; }
  80%  { transform: scale(1.005); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Appliquer automatiquement l’animation aux pastilles */
.pastille-terrier {
  animation: pulse-pastille 9s ease-out;
}

/* page blogroll*/
.blogroll h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blogroll p {
  font-style: italic;
  margin-bottom: 2rem;
  color: #444;
}

.blogroll ul {
  list-style: none;
  padding: 0;
}

.blogroll li {
  margin-bottom: 0.8rem;
}

.blogroll a {
  color: #2a4a6a;
  text-decoration: none;
}

.blogroll a:hover {
  text-decoration: underline;
}

/* footer pour constellations amies*/
.footer-extra-link a {
  color: #e5e5e5;      /* gris clair doux */
  text-decoration: none;
}

.footer-extra-link a:hover {
  color: #ffffff;      /* blanc léger au survol */
}

/* ————————————————————————————————
   Ombre minérale — version 100 % compatible
   avec les <button onclick="…"> du menu haut
   ———————————————————————————————— */

nav.menu-haut button {
  transition: text-shadow 0.25s ease, color 0.25s ease;
}

/* Créations */
body.cat-creations nav.menu-haut button[onclick*="/creations/"] {
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(255,255,255,0.28),
               0 0 14px rgba(200,200,200,0.18);
}

/* Actualités */
body.cat-actualites nav.menu-haut button[onclick*="/actualites/"] {
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(255,255,255,0.28),
               0 0 14px rgba(200,200,200,0.18);
}

/* Idées */
body.cat-idees nav.menu-haut button[onclick*="/idees/"] {
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(255,255,255,0.28),
               0 0 14px rgba(200,200,200,0.18);
}

/* Spirimental */
body.cat-spirimental nav.menu-haut button[onclick*="/spiritualite/"] {
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(255,255,255,0.28),
               0 0 14px rgba(200,200,200,0.18);
}

/* Archives */
body.cat-archives nav.menu-haut button[onclick*="/archives/"] {
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(255,255,255,0.28),
               0 0 14px rgba(200,200,200,0.18);
}
/* episode dans le yaml  */
.article-episode {
  display: block;
  text-align: center; /* même alignement que le teaser */
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* Mise en page horizontale pour texte + miniature */
.capsule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Contenu texte à gauche */
.capsule-content {
  flex: 1;
}

/* Miniature à droite */
.capsule-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  margin-left: 1rem;
}


