/* ==========================================================================
   renART Invest — styles.css (FINAL)
   Sobriété • Discrétion • Continuité visuelle
   ========================================================================== */

/* -----------------------------
   RESET
------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #000;
  color: rgba(255,255,255,.92);
  overflow-x: hidden;
}

/* -----------------------------
   VARIABLES
------------------------------ */
:root{
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 500ms;
  --maxW: 980px;
}

/* -----------------------------
   THEME
------------------------------ */
body.theme-dark{
  background: #000;
  color: rgba(255,255,255,.92);
}

body.theme-light{
  background: #f4f4f4;
  color: rgba(10,10,10,.92);
}

/* -----------------------------
   BACKGROUND (MER / NUAGES)
------------------------------ */
.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg::before,
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transition: opacity var(--dur) var(--ease);
}

.bg::before{
  background-image: url("img/bg-dark.jpeg");
  opacity:1;
}

.bg::after{
  background-image: url("img/bg-light.jpeg");
  opacity:0;
}

body.theme-light .bg::before{ opacity:0; }
body.theme-light .bg::after{ opacity:1; }

/* -----------------------------
   TOP ACTIONS
------------------------------ */
.top-actions{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  gap: 10px;
}

/* -----------------------------
   BUTTONS
------------------------------ */
.btn{
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.25);
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: opacity .2s ease, transform .2s ease;
}

.btn:hover{ opacity:.95; transform: translateY(-1px); }

.btn--icon{
  width: 42px;
  padding: 0;
  display: grid;
  place-items: center;
}

/* -----------------------------
   PAGE / HERO
------------------------------ */
.page{
  min-height: 100vh;
  padding-top: 14vh;
  display: flex;
  justify-content: center;
}

.hero{
  text-align: center;
  max-width: 720px;
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn{
  from{ opacity:0; transform: translateY(20px); }
  to{ opacity:1; transform:none; }
}

.brand{
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: .6rem;
}

.tagline{
  font-size: 1.05rem;
  letter-spacing: .03em;
  opacity: .85;
}

/* -----------------------------
   ARTISTS NAV (bas)
------------------------------ */
.artists{
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
}

.artist{
  background: none;
  border: none;
  color: inherit;
  letter-spacing: .08em;
  font-size: 13px;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease, transform .2s ease;
}

.artist:hover{
  opacity: 1;
  transform: scale(1.1);
}

/* -----------------------------
   ARTIST SECTION (SCROLL)
------------------------------ */
.artist-section{
  padding: 16vh 0 18vh;
}

.artist-section__content{
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 0 4vw;
}

/* -----------------------------
   ARTIST HEADER
------------------------------ */
.artist-header{
  margin-bottom: 6vh;
}

.artist-name{
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: .4rem;
}

.artist-role{
  letter-spacing: .06em;
  font-size: .9rem;
  opacity: .7;
}

/* -----------------------------
   ARTIST IMAGES (CAROUSEL)
------------------------------ */
.artist-images{
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0 30px;
  scroll-snap-type: x mandatory;
}

.artist-images::-webkit-scrollbar{ display:none; }

.artist-images img{
  flex: 0 0 80%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 16px;
  scroll-snap-align: center;
  background: rgba(0,0,0,.15);
}

/* -----------------------------
   ARTIST TEXT
------------------------------ */
.artist-text{
  margin-top: 6vh;
  max-width: 720px;
  line-height: 1.7;
  opacity: .9;
}

.artist-text p{
  margin-bottom: 1.2rem;
}

/* =========================
   FOND TEXTE — ULTRA SUBTIL
========================= */

.artist-text{
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.18),
    rgba(0,0,0,.10)
  );

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  padding: 24px 28px;
  border-radius: 16px;

  box-shadow: none;
}

/* thème clair */
body.theme-light .artist-text{
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.38),
    rgba(255,255,255,.22)
  );

  box-shadow: none;
}

/* =========================
   IMAGES ARTISTE — FOCUS CENTRAL SUBTIL
========================= */

.artist-images img{
  opacity: .78; /* base : brume */
  transform: scale(.985);
  transition:
    opacity 520ms cubic-bezier(.2,.7,.2,1),
    transform 520ms cubic-bezier(.2,.7,.2,1);
}

/* image survolée / focus tactile */
.artist-images img:hover{
  opacity: .90;
  transform: scale(1);
}

/* mobile / iPad : image “active” au scroll */
.artist-images img:focus,
.artist-images img:focus-visible{
  opacity: .90;
  transform: scale(1);
  
  /* Fade piloté par JS (scroll) */
.artist-images img{
  will-change: opacity, transform;
  transition: opacity 180ms linear, transform 180ms linear; /* léger, pour lisser */

}

/* -----------------------------
   FOOTER
------------------------------ */
footer.footprint{
  padding: 18px;
  text-align: center;
  font-size: .75rem;
  opacity: .6;
}

/* -----------------------------
   CONTACT MODAL
------------------------------ */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  backdrop-filter: blur(8px);
}

.modal__dialog{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  width: min(560px, 92vw);
  padding: 24px;
  border-radius: 18px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
}

.modal__close{
  position:absolute;
  top:12px;
  right:12px;
  background:none;
  border:none;
  color:inherit;
  cursor:pointer;
  font-size:18px;
}

/* -----------------------------
   FORMS
------------------------------ */
.form{ display:grid; gap:14px; }

.input, .textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.25);
  color:inherit;
}

.textarea{ min-height:120px; }

.btn-primary{
  height:46px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color:inherit;
  cursor:pointer;
  font-weight:700;
}

/* -----------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 700px){
  .artist-images img{
    flex: 0 0 92%;
  }
}