/*
Theme Name: Sanctuaire d'Harmonie
Author: Héloïse
Version: 1.0
Text Domain: sanctuaire-harmonie
*/

/* ==========================================
   1. POLICES
   ========================================== */
@font-face {
  font-family: 'Antonio';
  src: url('./Font/Antonio-Regular.woff2') format('woff2'),
    url('./Font/Antonio-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Advent Pro';
  src: url('./Font/AdventPro-Regular.woff2') format('woff2'),
    url('./Font/AdventPro-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Pompiere';
  src: url('./Font/Pompiere-Regular.woff2') format('woff2'),
    url('./Font/Pompiere-Regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Clicker Script';
  src: url('./Font/ClickerScript-Regular.woff2') format('woff2'),
    url('Font/ClickerScript-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tempus Sans ITC';
  src: url('./Font/TRTempusSansITC.woff2') format('woff2'),
    ('./Font/TRTempusSansITC.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VTCGoblinHand';
  src: url('./Font/VTCGoblinHandBold.woff2') format('woff2'),
    ('./Font/VTCGoblinHandBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   2. BASE MOBILE FIRST
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #fdf6f2;
}

.no-scroll {
  overflow: hidden;
}

/* --------------------
   NAVIGATION MOBILE
   -------------------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

.nav-links {
  position: fixed;
  top: 0;
  width: max-content;
  min-width: 50vw;
  max-width: 80vw;
  left: -100vw;
  height: 100vh;

  background: #fff5f0;
  list-style: none;
  padding: 0 30px;
  /* espace gauche/droite */
  margin: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* recentré */
  gap: 40px;
  /* plus d'espace entre les liens */

  transition: left 0.4s ease;
  z-index: 6;
}

.nav-links a {
  font-family: 'Advent Pro', sans-serif;
  text-decoration: none;
  font-size: 1.6rem;
  color: #7a441d;
  list-style: none;
  padding-left: 20px;
  /* espace à gauche de chaque lien */
  white-space: nowrap;
  margin: 0;
}

.nav-links.active {
  left: 0;
  z-index: 1000;
}

.nav-links li.nav-mobile-only {
  display: list-item;
}

.burger-menu {
  position: fixed;
  margin: 0;
  top: 50px;
  /* compense la barre admin WordPress (~46px) */
  left: 20px;
  /* était 4px */
  width: 40px;
  height: 40px;
  z-index: 100;
  background: #fdf6f2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px;
}

.burger-menu span {
  width: 100%;
  height: 4px;
  /* était 6px */
  background: #8b5e3c;
  border-radius: 2px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------
   HERO
   -------------------- */
.hero-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 600;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-cloud {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
}

.hero-logo {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: auto;
  z-index: 3;
}

.bouton_soutenir {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;

  top: 15%;
  left: 65%;

  width: 25vw;
  min-width: 110px;
  max-width: 300px;
  aspect-ratio: 1.5 / 1;

  text-decoration: none !important;
  transition: transform 0.3s ease;
}

.bouton_soutenir img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 5;
}

.bouton_soutenir span {
  position: relative;
  z-index: 6;

  font-family: 'VTCGoblinHand';
  color: #7a441d;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;

  font-size: clamp(0.7rem, 1.4vw, 1.5rem);
  margin-top: 5px;
}

.bouton_soutenir:visited,
.bouton_soutenir:hover,
.bouton_soutenir:active {
  text-decoration: none !important;
  color: #7a441d;
}

.bouton_soutenir:hover {
  transform: scale(1.1);
}

/* Le repère */

/* Mini logo à droite du burger */
.header-logo {
  display: none;
}

.fleurs {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 220px;

  width: 60vw;
  min-width: 300px;
  max-width: 1000px;

  z-index: 1;
  pointer-events: none;
}

/* --------------------
   WELCOME – MOBILE
   -------------------- */
.welcome-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.welcome-title {
  position: relative;
  z-index: 2;
}

.welcome-bienvenue {
  font-family: 'Clicker Script';
  font-synthesis: none;
  font-size: clamp(3.5rem, 8vw, 9rem);
  color: #944900;
}

.welcome-au {
  display: block;
  font-family: 'Clicker Script';
  font-synthesis: none;
  font-size: clamp(1.2rem, 3vw, 3rem);
  margin-top: -0.9em;
  color: #944900;
}

.welcome-sanctuaire {
  display: block;
  font-family: 'Tempus Sans ITC';
  font-synthesis: none;
  font-size: clamp(2.8rem, 6vw, 6rem);
  margin-top: -0.4em;
  color: #7a441d;
}

.welcome-d {
  font-family: 'Tempus Sans ITC';
  font-synthesis: none;
  font-size: clamp(1.5rem, 4.5vw, 6rem);
  margin-top: -0.3em;
  margin-bottom: -0.4em;
  color: #7a441d;
}

.welcome-harmonie {
  position: relative;
  font-family: 'VTCGoblinHand';
  font-synthesis: none;
  font-size: clamp(2.2rem, 6.5vw, 6rem);
  margin-top: -0.7em;
  letter-spacing: 0.08em;
  color: #7a441d;
}

.welcome-text {
  font-family: 'Pompiere';
  font-size: 1.5rem;
  line-height: 1.6;
  color: #5d4037;
  margin: 2.2rem auto 2.5rem;
  max-width: 40ch;
}

.btn-more {
  font-family: 'Pompiere';
  display: inline-block;
  width: fit-content;
  align-self: center;
  padding: 15px 80px;
  background-color: #fdf5f2;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.6rem;
  color: #8d6e63;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  cursor: pointer;
  margin-bottom: 48px;
}

.btn-more:hover {
  background-color: #bc9c89;
  color: #fdf5f2;
}

.video-section {
  display: none;
}

.pensionnaires-section {
  text-align: center;
}

.pensionnaires-icon {
  display: block;
  width: 15%;
  margin: 0 auto 6px;
}

.title {
  text-align: center;
  font-family: 'pompiere';
  font-synthesis: none;
  font-size: 2rem;
  color: #8b5a2b;
  margin: 0 auto 40px;
}

.title-subtitle {
  display: block;
  font-family: 'Advent Pro', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #8b5a2b;
  opacity: 0.85;
  margin-top: 0.5rem;
  line-height: 1.6;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   CAROUSEL – MOBILE FIRST (wrap en base)
   Ancien max-width:1023 => déplacé ici
   ========================================== */
.cards-animaux-carousel {
  /* ✅ largeur de carte responsive (pas "trop réduit") */
  --cardW: clamp(240px, 78vw, 320px);

  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
  /* garde les ombres */
  padding: 2rem 0;
  position: relative;
}

.cards-animaux.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  /* ✅ pas de wrap */
  gap: 1.25rem;

  width: 100%;
  /* ✅ important */
  overflow-x: auto;
  /* ✅ scroll horizontal */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;

  /* ✅ centre la carte (1 visible, les autres à côté) */
  padding: 0 calc((100% - var(--cardW)) / 2) 1rem;
  scroll-padding: 0 calc((100% - var(--cardW)) / 2);

  scrollbar-width: none;
  /* Firefox */
  overscroll-behavior-x: contain;

  touch-action: pan-x;
  /* ✅ autorise le swipe horizontal */
}

.cards-animaux.carousel-track::-webkit-scrollbar {
  display: none;
}

.carte-animal {
  flex: 0 0 var(--cardW);
  width: var(--cardW);
  scroll-snap-align: center;

  height: 426px;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.4rem 1.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

.carte-animal.is-active {
  transform: scale(1);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.carte-animal:hover {
  transform: translateY(-6px) scale(0.97);
}

.image-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;

  -webkit-mask-image: url('svg-png-icone/sh_feuille_animaux.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;

  mask-image: url('svg-png-icone/sh_feuille_animaux.svg');
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-animal {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  min-width: 150px;
  background: #ffd89e;
  color: #6b4a1b;
  font-family: 'Clicker Script';
  font-size: 1.6rem;
  border-radius: 20px;

  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-label {
  pointer-events: none;
}

.btn-animal .bi {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
}

.carte-animal:hover .btn-animal {
  background: #ffc96b;
  transform: translateY(-2px);
}

/* =========================================================
   1) NOS PENSIONNAIRES 
   
   ========================================================= */

.transition-soutenir {
  position: relative;
  overflow: hidden;
  /* tu peux crop sur les côtés si width > 100% */
  padding-top: 40px;
  /* ✅ espace entre les cartes animaux et le décor */
}

/* ✅ Décor en flow (pas en absolute) => il définit la hauteur, donc plus de coupe */
.transition-soutenir__decor {
  display: block;
  width: 100%;
  /* si tu veux que ça déborde un peu comme ta maquette */
  max-width: none;
  height: auto;
  /* ✅ IMPORTANT : plus de rognage vertical */
  margin-left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.transition-content {
  position: static;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
  padding: 1rem 2rem;
  /* ← augmente le padding latéral */
}

.pensionnaires-para {
  font-family: 'Advent Pro';
  color: #8b5a2b;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 90%;
  margin: 0 auto;
}

/* bouton */
.btn-visite {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: 'Advent Pro';
  color: #8b5a2b;
  text-decoration: none;

  background: #fdf5f2;
  border: 1px solid rgba(139, 90, 43, 0.18);
  border-radius: 14px;

  min-width: min(86vw, 340px);
  padding: 20px 80px;
  font-size: clamp(1.05rem, 4.4vw, 1.4rem);

  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-visite:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.btn-visite:focus-visible {
  outline: 3px solid rgba(139, 90, 43, 0.35);
  outline-offset: 4px;
}

.btn-visite:hover {
  background-color: #ffe0a7;
  color: #8b5a2b;
}

.nous-soutenir {
  background: linear-gradient(to bottom, #ffe0a7 0%, #fdf6f2 100%);
  padding: 56px 16px 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 189px);
  grid-template-rows: auto 348px;

  /* titre puis cartes */
}

.soutenir-title {
  text-align: center;
  font-family: 'pompiere';
  font-synthesis: none;
  font-size: 2rem;
  color: #8b5a2b;
  margin: 0 auto 40px;
}

.stack-card {
  display: grid;
  place-items: center;
  width: 189px;
  height: 348px;

  border-radius: 20px;
  text-decoration: none;
  color: #8b5a2b;

  border: 1px solid rgba(139, 90, 43, 0.18);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);

  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  outline: none;
}

/* contenu */
.stack-icon img {
  width: 85%;
  height: auto;
  object-fit: contain;
}

.stack-label {
  margin: 14px 0 0;
  font-family: 'Pompiere';
  line-height: 1.5;
  text-transform: uppercase;
  font-size: 1.3rem;
}

/* styles catégories */
.stack-card {
  background: #fff8eb;
  z-index: 3;
}

.stack-card--jaune {
  background: #ffe0a7;
}

/* =========================
   SECTION ACTUALITÉS
   ========================= */
.actu-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  justify-content: center;
  /* ← ajoute ça */
}
.actu-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}

.actu-arrow {
  background: none;
  border: 1px solid rgba(139, 90, 43, 0.25);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #7a441d;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.actu-arrow:hover {
  background: #ffe0a7;
  transform: scale(1.1);
}

/* Titre catégorie à droite — style script élégant */
.actu-titre-cat {
  font-family: 'pompiere';
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-synthesis: none;
  color: #944900;
  margin: 0;
  font-weight: normal;
  line-height: 1.1;
  transition: opacity 0.25s ease;
}

.actualites {
  width: 100%;
  padding: 32px 16px;
}

.titre-section {
  margin: 0 0 24px;
  font-family: 'pompiere';
  font-synthesis: none;
  font-size: 2rem;
  color: #8b5a2b;
  text-align: center;
}

/* =========================
   CONTAINER PRINCIPAL
   MOBILE FIRST
   ========================= */

.actu-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

/* =========================
   BLOC POLAROID
   ========================= */

.polar-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  transform: rotate(-5deg);
  transform-origin: center;
}

.polar-photo-wrap {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 70%;
  height: 58%;
  overflow: hidden;
  z-index: 1;
}

.polar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.25s ease;
}

.polar {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* --- Étiquette sur le polaroid --- */
.polar-label {
  position: absolute;
  bottom: 18%;
  /* ← était 9%, remonte un peu */
  /* dans la bande blanche du bas du cadre */
  left: 0;
  width: 100%;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 0;
  padding: 0;

  font-family: 'Pompiere', sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.12em;
  color: #7a441d;
}

.polar-icone {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.polar-icone--hidden {
  display: none;
}

#actu-titre,
#actu-texte {
  transition: opacity 0.25s ease;
}

/* =========================
   COLONNE DROITE
   ========================= */

.actu-right {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* zone vide calendrier */
.actu-calendar {
  width: 100%;
  min-height: 180px;
  border: 1px dashed rgba(122, 68, 29, 0.25);
  border-radius: 12px;
}

/* texte + bouton */
.actu-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.actu-para {
  margin: 0;
  font-family: 'Advent Pro';
  font-size: 1rem;
  line-height: 1.7;
  color: #7a441d;
  max-width: 65ch;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Advent Pro';
  font-size: 1rem;
  color: #8b5a2b;
  background: #f8f3f0;
  border: 1px solid rgba(139, 90, 43, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* =========================
   HOMMAGE BELLA
   ========================= */

.hommage {
  text-align: center;
  margin-top: 90px;
  padding: 20px;
}

.title-accent {
  font-family: 'Clicker Script', cursive;
  font-size: 1.8em;
}

.hommage-content {
  max-width: 64ch;
  margin: 0 auto;
  text-align: center;
}

.hommage-content p {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-family: 'Advent Pro';
  font-size: 1.2rem;
  padding: 0 25px;
  color: #5d4037;
}

.hommage .btn-visite {
  margin: 0 auto;
}

.hommage-images {
  display: flex;
  /* ← manquait ! */
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hommage-stamp {
  position: relative;
  display: inline-block;
  line-height: 0;
}

/* Rotations mobile */
.hommage-stamp--square {
  transform: rotate(-4deg);
}

.hommage-stamp--rect {
  transform: rotate(3deg);
}

.hommage-frame {
  display: block;
  width: clamp(160px, 48vw, 260px);
  /* était clamp(140px, 42vw, 220px) */
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hommage-photo-wrap {
  position: absolute;
  overflow: hidden;
  transform: scale(0.9);
  transform-origin: center;
}

.hommage-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* timbre carré */
.hommage-photo-wrap--square {
  top: 25%;
  left: 19%;
  width: 61%;
  height: auto;
}

/* timbre rectangle */
.hommage-photo-wrap--rect {
  top: 26%;
  left: 8%;
  width: 82%;
  height: 52%;
}

.hommage-note {
  max-width: 55ch;
  padding: 0 25px;
  margin: 0 auto 24px;
  line-height: 1.6;
  font-family: 'Advent Pro';
  font-size: 1.2rem;
  color: #7a441d;
  opacity: 0.9;
}

.btn-hommage {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  font-family: 'Advent Pro';
  color: #8b5a2b;
  text-decoration: none;
  background: #fdf5f2;
  border: 1px solid rgba(139, 90, 43, 0.18);
  border-radius: 14px;
  min-width: min(86vw, 340px);
  padding: clamp(14px, 4vw, 18px) clamp(22px, 9vw, 44px);
  font-size: clamp(1.05rem, 4.4vw, 1.25rem);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-hommage:hover {
  background-color: #bc9c89;
  color: #fdf5f2;
}

/*PARTENAIRES SECTION=============================================*/
.partenaires {
  padding-top: 56px;
  padding-bottom: 30px;
  /* air autour de la section */
  text-align: center;
}

.partenaires-title {
  margin: 0 0 20px;
  font-family: 'pompiere', serif;
  /* comme tes titres */
  font-size: clamp(2rem, 4vw, 3rem);
  font-synthesis: none;
  color: #8b5a2b;
  line-height: 1.1;
}

.partenaires-sub {
  display: block;
  /* passe à la ligne sous le titre */
  margin-top: 8px;
  font-family: 'Pompiere', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* style "petit label" */
  color: #8b5a2b;
  opacity: 0.8;
}

/*PARTENAIRES GALERIE =============================================*/

/* PARTENAIRES - MARQUEE */
.partners-marquee {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  margin-top: 16px;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 48px;
  /* espace entre logos */
  width: max-content;
  /* IMPORTANT: le track fait la largeur de son contenu */
  will-change: transform;
}

.partners-track img {
  height: 70px;
  /* AUGMENTE la taille */
  width: auto;
  display: block;
  flex: 0 0 auto;
}

/* =========================
   SECTION CONTACT
   ========================= */

.contact {
  padding: 20px 20px 0;
  text-align: center;
}

.contact-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 320px;
  /* réserve la place pour l'arbre */
}

/* Ton bloc (titre + bouton) */
.contact-block {
  display: inline-block;
  padding: 56px 48px;
  border-radius: 999px;
  position: relative;
  z-index: 2;
  /* IMPORTANT : devant l'arbre */
}

.contact-title {
  margin: 0 0 16px;
  font-family: 'pompiere';
  font-synthesis: none;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #7a441d;
}

.contact-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 10px;
  background: #fff5f0;
  border: 1px solid rgba(122, 68, 29, 0.3);
  text-decoration: none;
  font-family: 'Pompiere';
  font-size: 1.8rem;
  color: #7a441d;
  max-width: fit-content;
  /* ← empêche le bouton de s'étirer */
  white-space: nowrap;
  /* ← force une seule ligne */
}

.contact-btn:hover {
  background-color: #ffcc87;
  color: #fff5f0;
}

/* Arbre en bas, derrière */
.contact-tree {
  position: absolute;
  width: clamp(280px, 45vw, 520px);
  bottom: 0;
  /* ou 10px si tu veux le remonter un peu */
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  z-index: 1;
  /* derrière le bloc */
  pointer-events: none;
}

.site-footer {
  background: #ffcc87;
  font-family: 'Advent Pro';
  position: relative;
  overflow: visible;
  font-size: clamp(13px, 1.2vw, 56px);
  /* IMPORTANT : on enlève le remonte-footer */
  margin-top: 0;
  padding-top: 0;

  /* hauteur de l'herbe (tu ajustes ici) */
  --grass-h: clamp(28px, 6vw, 90px);
  /* ↑ un peu plus haut */
}

.site-footer__grass {
  position: absolute;
  left: 0;
  top: 0;

  width: 100%;
  height: var(--grass-h);

  transform: translateY(-90%);
  /* herbe au-dessus du footer */
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}

/* Image responsive */
.site-footer__grass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  /* ✅ garde les brins, coupe plutôt le bas */
  display: block;
}

/* Contenu du footer au-dessus */
.site-footer__inner {
  position: relative;
  z-index: 2;
  padding-block: 15px 16px;
  /* tu peux réduire encore */
  display: grid;
  gap: 20px;
}

.site-footer__col {
  padding-inline: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__col a {
  display: block;
  text-decoration: none;
  color: #7a441d;
  line-height: 1.9;
}

.site-footer__title {
  margin-bottom: clamp(10px, 1.5vw, 25px);
  color: #7a441d;
  font-size: 1.3rem;
  text-align: center;
}

.site-footer a.footer-link--highlight {
  color: #fff8eb;
  font-size: 1rem;
}

.site-footer a {
  font-size: 1rem;
}

.site-footer__icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.site-footer__icons a {
  display: grid;
  place-items: center;

  text-decoration: none;
}

.site-footer-icon {
  width: 32px;
  height: 32px;
  display: block;
}

/* Bottom */
.site-footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 12px;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}

.site-footer__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

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

@media (max-width: 1023px) {
  .cards-animaux.carousel-track {
    transform: none !important;
  }
}

/* ==========================================
   3. TABLETTE (>= 768px)
   ========================================== */
@media (min-width: 768px) {
  .nav-mobile-only {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100vw;
    /* caché hors écran */
    width: 50vw;
    /* moitié de l'écran */
    height: 100vh;

    background: #fff5f0;
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;

    transition: left 0.4s ease;
    z-index: 6;
  }

  .nav-links a {
    font-family: 'Advent Pro', sans-serif;
    text-decoration: none;
    font-size: 1.5rem;
    color: #7a441d;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .bouton_soutenir {
    left: 77%;
    top: 10%;
    width: 20vw;
  }

  .welcome-section {
    padding: 80px 24px;
  }

  .welcome-title {
    max-width: 65%;
    margin: 0 auto;
  }

  .fleurs {
    top: 380px;
    width: 70vw;
  }

  .welcome-text {
    font-size: 1.5rem;
    max-width: 50ch;
  }

  .video-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 230px;
    padding: 0 20px;
  }

  .video-wrapper {
    position: relative;
    width: 60%;
    max-width: 780px;
    min-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 3;
  }

  .video-wrapper #ma-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    /* annule les styles de .video-placeholder */
    max-width: 100%;
    aspect-ratio: unset;
  }

  #ma-video {
    pointer-events: none;
    /* la vidéo ne capture plus les clics */
  }

  #btn-son {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    pointer-events: auto;
    /* le bouton reste cliquable */
    cursor: pointer;
    /* ← on garde le z-index */
    background: rgba(253, 245, 242, 0.85);
    border: 1px solid rgba(139, 90, 43, 0.25);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pensionnaires-icon {
    width: 15%;
    margin: 0 auto 16px;
  }

  .pensionnaires-title {
    font-size: 2.4rem;
    margin-bottom: 60px;
  }

  .carte-animal {
    flex: 0 0 250px;
  }

  .pensionnaires-para {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    text-align: center;
    max-width: 65ch;
    margin: 0 auto;
  }

  .btn-visite {
    min-width: 0;
    padding: 14px 40px;
    font-size: 1rem;
  }

  .transition-content {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 3rem;
    text-align: center;
  }

  .transition-content .pensionnaires-para {
    flex: 1;
    text-align: left;
    margin: 0;
  }

  .transition-content .btn-visite {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .soutenir-title {
    font-size: 2.4rem;
    margin-bottom: 60px;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 colonnes égales */
    gap: 16px;
    justify-content: center;
    width: 90vw;
    /* s'adapte à la largeur tablette */
    max-width: 600px;
    /* évite que ça devienne trop grand */
  }

  .soutenir-title {
    text-align: center;
    font-family: 'pompiere';
    font-synthesis: none;
    font-size: 2rem;
    color: #8b5a2b;
    margin: 0 auto 40px;
  }

  .stack-card {
    width: 100%;
    /* prend la largeur de la colonne */
    height: auto;
    /* hauteur proportionnelle */
    aspect-ratio: 189 / 348;
    /* garde tes proportions d'origine */
    padding: 16px 8px;
  }

  .stack-icon img {
    width: 75%;
  }

  .stack-label {
    font-size: 1.1rem;
  }

  .actualites {
    padding: 48px 24px;
  }

  .titre-section {
    font-size: 2.2rem;
    margin-bottom: 32px;
    text-align: center;
  }

  .actu-container {
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
  }

  .polar-wrapper {
    max-width: 100%;
    margin: 0;
  }

  .actu-right {
    gap: 24px;
  }

  .actu-calendar {
    min-height: 220px;
  }

  .actu-para {
    font-size: 1.12rem;
    max-width: 50ch;
  }

  .timbre {
    width: 360px;
  }

  .hommage-images {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .hommage-frame {
    width: clamp(200px, 32vw, 320px);
    /* un peu plus grand que mobile */
  }

  .hommage-stamp--square {
    transform: rotate(-4deg);
  }

  .hommage-stamp--rect {
    transform: rotate(3deg);
  }

  .hommage-img {
    width: 360px;
  }

  .hommage p {
    font-size: 1.3rem;
  }

  .hommage-note {
    font-size: 1.3rem;
  }
}

/* ==========================================
   4. DESKTOP (>= 1008px)
   - évite tout chevauchement avec la tablette
   - réactive le "vrai" carousel (nowrap + translate)
   ========================================== */
@media (min-width: 1024px) {
  /* Burger caché */
  .burger-menu {
    display: none;
  }

  .bouton_soutenir {
    top: 12%;
    left: 78%;
    width: 18vw;
  }

  .nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* ← force la largeur totale */
    width: 100%;
    z-index: 20;
    display: flex;
    /* ← la nav devient flex */
    justify-content: center;
    /* ← centre son contenu */
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* ← prend toute la largeur de .nav */
    height: auto;
    gap: 75px;
    background: transparent;
    padding-top: 30px;
    padding-left: 0;
    margin: 0;
    transition: none;
  }

  .nav-links li.nav-mobile-only {
    display: none;
  }

  .nav-links li:nth-child(2) {
    margin-left: 100px;
    /* espace avant "Actualités" */
  }

  .header-logo {
    display: block;
    position: absolute;
    top: 58px;
    left: 70px;
    transform: translate(-50%, -50%);
    z-index: 5;
  }

  .header-logo img {
    height: clamp(55px, 10vw, 80px);
    width: auto;
    display: block;
  }

  .fleurs {
    top: 420px;
    width: 65vw;
    max-width: 1100px;
  }

  .welcome-text {
    font-size: 1.5rem;
  }

  .video-section {
    display: flex;
    justify-content: center;
    margin-bottom: 230px;
  }

  .video-placeholder {
    width: 60%;
    max-width: 780px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    /* centre */
  }

  .pensionnaires-icon {
    width: 8%;
  }

  /* Carousel desktop */
  .cards-animaux-carousel {
    max-width: calc(5 * 250px + 4 * 2rem);
    overflow: hidden;
    padding: 3rem 0;
  }

  .carte-animal {
    flex: 0 0 250px;
    scroll-snap-align: unset;
  }

  .cards-animaux.carousel-track {
    overflow: visible;
    scroll-snap-type: none;
    scroll-padding: 0;
    padding: 0;
  }

  .transition-content {
    position: absolute;
    left: 65%;
    transform: translateX(-50%);
    top: 5%;
    width: 42%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 1.5rem;
  }

  .transition-content .pensionnaires-para {
    text-align: center;
    max-width: 70ch;
    margin: 0;
  }

  .transition-content .btn-visite {
    margin-top: 0;
    padding: 12px 32px;
    min-width: 0;
    width: fit-content;
  }

  /* Nous soutenir */
  .soutenir-title {
    text-align: center;
    font-family: 'pompiere';
    font-synthesis: none;
    font-size: 2.4rem;
    color: #8b5a2b;
    margin: 0 auto 60px;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    gap: 20px;
    justify-content: center;
  }

  .stack-card {
    width: 220px;
    height: 420px;
  }

  .stack-icon img {
    width: 75%;
  }

  .stack-label {
    font-size: 1.5rem;
  }

  /* Actualités */
  .actualites {
    padding: 64px 32px;
  }

  .actu-nav {
    justify-content: flex-start;
  }

  .actu-block {
    align-items: center;
    text-align: center;
  }

  .titre-section {
    text-align: center;
    font-family: 'pompiere';
    font-synthesis: none;
    font-size: 2.5rem;
    color: #8b5a2b;
    margin-left: 0;
    margin-bottom: 40px;
  }

  .actu-container {
    grid-template-columns: minmax(340px, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }

  .actu-calendar {
    min-height: 260px;
  }

  .actu-para {
    font-size: 1.22rem;
    max-width: 36ch;
  }

  /* Hommage */
  .title {
    font-size: 2.3rem;
    margin: 0 auto 40px;
  }

  .hommage {
    padding: 80px 20px;
  }

  .hommage p {
    font-size: 1.4rem;
  }

  .hommage-images {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
  }

  .hommage-stamp--square {
    transform: rotate(-4deg);
  }

  .hommage-stamp--rect {
    transform: rotate(3deg);
  }

  .hommage-frame {
    width: clamp(320px, 28vw, 460px);
    /* était clamp(260px, 22vw, 380px) */
  }

  .hommage-note {
    font-size: 1.4rem;
  }

  /* Partenaires */
  .partners-track img {
    height: 100px;
  }

  .partners-marquee:hover .partners-track {
    animation-play-state: paused;
  }

  /* Contact */
  .contact {
    padding: 50px 20px 0;
    text-align: center;
  }

  .contact-btn {
    padding: 12px 30px;
    font-size: 1.5rem;
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      'nav social legal'
      'bottom bottom bottom';
    align-items: start;
    gap: 28px;
    padding-block: 28px 18px;
    margin-top: 90px;
  }

  .site-footer__grass {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--grass-h);
    transform: translateY(-90%);
    pointer-events: none;
    z-index: 1;
  }

  .site-footer__social {
    grid-area: social;
  }

  .site-footer__legal {
    grid-area: legal;
    text-align: right;
    margin-top: 54px;
  }

  .site-footer__nav a {
    text-align: left;
  }

  .site-footer__legal a {
    text-align: right;
  }

  .site-footer__title {
    text-align: center;
  }

  .site-footer__bottom {
    grid-area: bottom;
  }

  .site-footer a.footer-link--highlight {
    font-size: 1.3rem;
  }

  .site-footer a {
    font-size: 1.3rem;
  }

  .site-footer-icon {
    width: 34px;
    height: 34px;
    display: block;
  }
}

/* ==============================
   PAGE 404
   ============================== */

.pg-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
  font-family: 'Nunito', sans-serif;
  position: relative;
  z-index: 3;
  margin-top: -12rem;
  /* ← ajout : remonte le bloc */
}

.pg-404__code {
  font-family: 'VTCGoblinHand', cursive;
  font-size: 5.5rem;
  line-height: 1;
  color: #bc9c89;
  margin: 0 0 0.25rem;
}

.pg-404__title {
  font-family: 'pompiere', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: #7a5c1e;
  margin: 0 0 0.75rem;
}

.pg-404__msg {
  font-family: 'advent pro', sans-serif;
  font-size: 0.95rem;
  color: #944900;
  max-width: 420px;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.pg-404__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.pg-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background-color: #ffe0a7;
  color: #7a441d;
  border: none;
  border-radius: 50px;
  font-family: 'Pompiere', cursive;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(194, 140, 60, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.pg-404__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 140, 60, 0.35);
  background-color: #ffcc87;
}

.pg-404__btn--ghost {
  background-color: transparent;
  color: #7a441d;
  box-shadow: 0 4px 12px rgba(200, 149, 108, 0.2);
  border: 1.5px solid #7a441d;
}

.pg-404__btn--ghost:hover {
  background-color: rgba(200, 149, 108, 0.08);
  box-shadow: 0 6px 16px rgba(200, 149, 108, 0.3);
}

/* ── Tablette ── */
@media (min-width: 600px) {
  .pg-404 {
    padding: 4rem 2rem;
  }

  .pg-404__code {
    font-size: 7rem;
  }

  .pg-404__title {
    font-size: 2.4rem;
  }

  .pg-404__actions {
    flex-direction: row;
    width: auto;
    max-width: none;
  }

  .pg-404__btn {
    padding: 16px 42px;
    font-size: 1.6rem;
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .pg-404 {
    padding: 5rem 2rem;
  }

  .pg-404__code {
    font-size: 9rem;
  }

  .pg-404__title {
    font-size: 2.8rem;
  }

  .pg-404__btn {
    padding: 18px 50px;
    font-size: 1.8rem;
  }
}
