/* ==========================
   FOOTER INTRO SECTION
========================== */

.footer-intro {
  width: 100%;
  padding: 60px 4vw 10px;
  background: transparent;
margin-top: 5rem;
}

/* 🔒 GRID ISOLÉ */
.footer-intro-inner {
  max-width: 1400px;
  margin: 0px 0px 0px 0px;
  display: grid !important;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.footer-intro-inner > div {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

/* TEXTE */
.footer-intro-text p {
  font-family: 'TemposRomanMonoBeta', monospace;
  font-size: 18px;
  line-height: 1.6;
  color: #bdbdbd;
  max-width: 720px;
}

/* IMAGE */
.footer-intro-image img {
  width: 50%;
  height: auto;
  display: block;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {
  .footer-intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

          .footer-intro-text p {
        font-size: 16px;
        margin: 0rem 2rem 1rem 1rem
}
  }


/*bordure intro footer*/

.footer-intro  {
  position: relative;
}

/* Ligne de séparation au-dessus du footer */
.footer-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 35%); /* point de départ = centre - moitié de 70% */
  width: calc(100vw - (50% - 35%));
  height: 2px;
  background-color: #cccccc;
}


.memori-footer::before


@keyframes lineSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}


/**/
/* ==========================
   FOOTER INTRO – HERALDIC LOGO
========================== */

.footer-logo-section {
  position: relative;
  width: 260px;
  aspect-ratio: 1;
  margin-left: auto;
}

/* Grille 2×2 */
.footer-blasons-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

/* Carte */
.footer-blason {
  perspective: 1000px;
}

/* Intérieur de la carte */
.footer-blason-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Faces */
.footer-blason-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}

.footer-blason-inner img:last-child {
  transform: rotateY(180deg);
}

/* === Hover individuel === */
.footer-blason:hover .footer-blason-inner {
  transform: rotateY(180deg);
}

/* Logo central */
.footer-main-logo {
  position: absolute;
  inset: 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.footer-main-logo img {
  width: 50%;
  height: auto;
}

/* Mobile */
@media (max-width: 900px) {
  .footer-logo-section {
    width: 200px;
    margin: 0 auto;
  }
}


/* Centre le bloc des blasons dans la colonne */
.footer-intro-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-section {
  position: relative;
  width: 260px;
  aspect-ratio: 1;
  margin: 0 auto;   /* au lieu de margin-left:auto */
}
