/* PENDHORE — Réparation texture minérale + voile lumineux discret.
   Ce fichier ne modifie ni la composition des photos ni les scripts Analytics.
*/
body {
  position: relative;
  background-color: var(--paper, #fafaf8);
  background-image: none;
}

/* Même fond que la version minérale 50 % éclaircie, adapté à la fenêtre. */
.home-water-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #e5e1db;
  background-image:
    linear-gradient(rgba(250,250,248,.28), rgba(250,250,248,.28)),
    url("images/home-mineral-texture-light.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Ne pas masquer la couche de réfraction : elle est stylisée séparément
   dans home-wave-texture.css et pilotée par home-cursor-wave.js. */
body > .site-header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

/* Les voiles suivent les BLOCS DE TEXTE, pas la hauteur des sections.
   Le motif minéral reste visible autour et entre les deux sections. */
#about .about-carousel,
#contact .contact-content {
  position: relative;
  isolation: isolate;
}
#about .about-carousel::before,
#contact .contact-content::before {
  content: "";
  position: absolute;
  inset: -52px -42px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(250, 250, 248, .83) 0%,
    rgba(250, 250, 248, .75) 55%,
    rgba(250, 250, 248, .58) 73%,
    rgba(250, 250, 248, 0) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#about .about-carousel > *,
#contact .contact-content > * {
  position: relative;
  z-index: 1;
}
@media (max-width:700px) {
  #about .about-carousel::before,
  #contact .contact-content::before { inset: -36px -20px; }
}

/* Noir sur les textes des deux sections. */
#about,
#contact,
#about .section-label,
#contact .section-label,
#about h1,
#about h2,
#about p,
#about span,
#about button,
#contact h2,
#contact p,
#contact span,
#contact a,
#contact address { color: #000 !important; }
#about .about-controls span { color: #000 !important; }
#about .about-lang {
  color: #000 !important;
  border-color: rgba(0,0,0,.28);
}
#about .about-lang.active {
  color: #000 !important;
  border-color: rgba(0,0,0,.55);
}
#contact a.external,
#contact .contact-details a { color: #000 !important; }

/* Le footer conserve son fond clair. */
.legal-footer {
  position: relative;
  z-index: 1;
  background: var(--paper, #fafaf8);
}


/* PENDHORE — titres ABOUT, CONTACT, CARTOGRAPHIE DES LIMITES : 16 px. */
#about > .section-label,
#contact > .section-label {
  font-size: 16px;
}

#about .about-cartography-title {
  font-size: 16px;
}


/* CARTOGRAPHIE DES LIMITES — ajustement horizontal sur ordinateur seulement.
   L'arête gauche du voile passe entre « DES » et « LIMITES ».
   Le flou, sa transparence, le fond et l'animation restent inchangés. */
@media (min-width: 1024px) {
  #about .about-cartography-title {
    left: calc(-16px - 8cm + 64px + 1.2cm);
  }
}

/* PENDHORE — téléphone uniquement : garder les titres de section bien
   visibles au-dessus du voile, sans changer la version ordinateur. */
@media (max-width: 700px) {
  #about > .section-label,
  #contact > .section-label {
    position: relative;
    z-index: 3;
    padding-top: 0;
    transform: translateY(-8px);
  }

  /* Le voile commence plus bas pour ne jamais empiéter sur les titres. */
  #about .about-carousel::before,
  #contact .contact-content::before {
    inset: -16px -20px -36px;
  }
}
