/* ==========================================
   ABOUT – section présentation + tuiles
   ========================================== */

.jk-presentation {
  position: relative;
  background: var(--bg-alt);   /* fond sombre global */
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
  align-items:center;
  display: flex;
  padding: clamp(4rem, 8vh, 6rem) 8vw;

  /* palettes locales pour les tuiles (fallback, surchargé par le JS de palette) */
  --tile-bg-1: #4cc0aa;
  --tile-bg-2: #5a8cff;
  --tile-bg-3: #ff6f84;
  --tile-bg-4: #ffd166;
  --tile-bg-5: #b983ff;

  --tile-corner: rgba(255, 255, 255, 0.95);
  --tile-text: rgba(0, 0, 0, 0.9);
  --tile-fold-depth: 1.4;
}

/* Texte : fixe en haut, au-dessus des tuiles */
.jk-presentation__inner {
  position: relative;
  z-index: 2;         /* TEXTE > TUILES > halo */
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.jk-presentation__content {
  max-width: 740px;
  margin: 0 auto;
}

/* Titre + texte au-dessus du fond */
.jk-presentation__title,
.jk-presentation__text {
  position: relative;
  z-index: 2;
}

.jk-presentation__title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 1.1rem;
  color: var(--text-main);
}

.jk-presentation__text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
  color: var(--text-main);
  opacity: 0.9;
}

.jk-presentation__text strong {
  color: var(--text-main);
  opacity: 1;
  font-weight: 600;
}

/* ==========================================
   Grille de tuiles : décor centré, derrière le texte
   ========================================== */

/* Le SVG de tuiles sert de fond qui déborde autour de la section */
#about-tiles-svg {
  position: absolute;
  z-index: 1;
  pointer-events: none;          /* ne bloque jamais le scroll / les clics */

  /* On le fait plus grand que la section pour qu'il déborde */
  width: 130vw;
  height: 130vh;

  /* Centré horizontalement, et un peu remonté pour que ça déborde bien en bas */
  left: 50vw;
  top: 15vh;
  transform: translateX(-50vw);
}

/* Animation & style des tuiles */

.about-tiles__tile {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.22, 0.61, 0.28, 0.99),
    opacity 0.85s ease-out;
}

.about-tiles__tile--in {
  opacity: 1;
}

.about-tiles__tile-main,
.about-tiles__tile-corner {
  stroke: none !important;
  outline: none !important;
}

/* repli / ombre interne */
.about-tiles__tile-corner {
  opacity: 0.25;
  mix-blend-mode: multiply;  /* ≈ densité couleur + */
  pointer-events: none;
}

/* Texte des extensions (.AEP, .MOGRT, etc.) */
/* Considéré comme illustration : pas lié au thème, juste style local */
.about-tiles__tile-label {
  font-family: "Barlow", system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 3.1px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--tile-text, rgba(0, 0, 0, 0.72));
  opacity: 0.4;              /* un peu en retrait */
  mix-blend-mode: multiply;  /* ≈ densité couleur - */
  transition: opacity 0.35s ease-out;
}

/* Hover doux */
@media (hover: hover) {
  .about-tiles__tile:hover {
    transform: translateY(-0.6px) scale(1.02);
    opacity: 1;
  }
}

/* ==========================================
   Halo décoratif (tout au fond)
   ========================================== */

.jk-presentation::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(circle at 20% 70%, rgba(255,255,255,0.03), transparent 60%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;          /* fond de fond */
}

/* Fond image about optionnel */
.jk-section-bg--about {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1200px) {
  .about-tiles__svg--bg {
    width: 180%;
    top: 58%;
  }
}

@media (max-width: 768px) {
  .jk-presentation {
    padding: 80px 1.5rem 56px;
  }

  .jk-presentation__title {
    font-size: 1.4rem;
  }

  .jk-presentation__text {
    font-size: 0.93rem;
  }

  .about-tiles__svg--bg {
    width: 220%;
    top: 60%;
  }
}


.jk-presentation {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 9vh, 7rem) 8vw;
  overflow: hidden;
}

/* Texte au-dessus des tuiles */
.jk-presentation__inner,
.jk-presentation__content,
.jk-presentation__title,
.jk-presentation__text {
  position: relative;
  z-index: 2;
}

/* SVG = fond large qui déborde partout */
#about-tiles-svg {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: 50%;
  top: -10vh;       /* remonte les tuiles vers le haut */
  transform: translateX(-50%);
  width: 140vw;
  height: 180vh;    /* déborde bien en bas */
}