/* =====================================================================================
   Cnaturel — index.css
   Rôle : styles UNIQUEMENT pour la home (index.php)
   IMPORTANT : aucun style header/footer ici
   ===================================================================================== */

/* =====================================================================================
   CHAPITRE 1 — STRUCTURE GÉNÉRALE HOME
   ===================================================================================== */
.home{
  background:#fff;
}

/* =====================================================================================
   CHAPITRE 2 — HERO / SLIDER
   ===================================================================================== */
.hero{
  margin:0;
}

.hero-slider{
  position:relative;
  width:100%;
  height:calc(100svh - 70px);
  height:calc(100vh - 70px);
  min-height:520px;
  overflow:hidden;
  background:#000;
  z-index:1;
}

.slide{
  position:absolute;
  inset:0;
  display:block;
  opacity:0;
  pointer-events:none;
  transition:opacity .55s ease;
  color:inherit;
  text-decoration:none;
}

.slide.is-active{
  opacity:1;
  pointer-events:auto;
}

.slide-media{
  width:100%;
  height:100%;
  overflow:hidden;
  background:#000;
}

.slide-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 60%;
}

/* Overlay texte */
.slide-inner{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
}

.slide-text{
  position:relative;
  padding:28px 26px;
  max-width:80vw;
}

.slide-title1{
  font-family:var(--font, Arial, sans-serif);
  font-size:clamp(1.05rem, 2.4vw, 1.8rem);
  font-weight:700;
  color:#fff;
  text-shadow:0 8px 22px rgba(0,0,0,.55);
  margin:0 0 2px 0;
}

.slide-title2{
  font-family:var(--font, Arial, sans-serif);
  margin:0;
  font-size:clamp(2rem, 6vw, 4.4rem);
  font-weight:500;
  color:#fff;
  letter-spacing:-.02em;
  line-height:1.02;
  text-shadow:0 10px 24px rgba(0,0,0,.6);
}

/* =====================================================================================
   CHAPITRE 3 — DOTS
   ===================================================================================== */
.hero-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:14px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  z-index:2;
}

.hero-dot{
  display:block;
  width:10px;
  height:10px;
  flex:0 0 10px;
  padding:0;
  border:none;
  border-radius:50%;
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;
  background:rgba(255,255,255,.25);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75);
  cursor:pointer;
}

.hero-dot.is-active{
  background:rgba(255,255,255,.92);
}

/* =====================================================================================
   CHAPITRE 4 — BOUTONS PREV / NEXT
   ===================================================================================== */
.hero-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(0,0,0,.25);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.hero-prev{ left:12px; }
.hero-next{ right:12px; }

.hero-nav:focus{
  outline:none;
}

.hero-nav:focus-visible{
  box-shadow:0 0 0 3px rgba(255,255,255,.25);
}

/* =====================================================================================
   CHAPITRE 5 — RESPONSIVE HOME
   ===================================================================================== */
@media (max-width:900px){

  .hero{
    padding-top:60px;                            /* le hero commence sous le header mobile */
  }

  .hero-slider{
    height:calc(100svh - 60px);                  /* prend toute la hauteur disponible sous le header */
    height:calc(100vh - 60px);
    min-height:260px;
  }

  /* respect du cadrage des photos mobile */
  .slide-media{
    background:linear-gradient(to bottom,#000,#111);
  }

  .slide-media img{
    object-fit:cover;                            /* remplit toute la hauteur du slide */
    object-position:center center;
  }

  /* TEXTE EN HAUT À GAUCHE */
  .slide-inner{
    position:absolute;
    inset:0;
    display:block;
  }

.slide-text{
  position:absolute;
  top:76px;
  left:16px;
  right:auto;
  bottom:auto;
  max-width:85vw;
  padding:10px 12px;
  z-index:2;
}

  /* fond de lisibilité */
  .slide-text::before{
    content:"";
    position:absolute;
    inset:-8px -10px;
    background:linear-gradient(
      to bottom,
      rgba(0,0,0,.35),
      rgba(0,0,0,.15),
      rgba(0,0,0,0)
    );
    border-radius:6px;
    z-index:-1;
  }

  .slide-title1{
    font-size:clamp(.85rem, 2.8vw, 1rem);
    font-weight:700;
    margin:0 0 4px 0;
    line-height:1.15;
  }

  .slide-title2{
    font-size:clamp(1.35rem, 6vw, 2.2rem);
    font-weight:600;
    line-height:1.05;
    letter-spacing:-.015em;
  }

  .hero-dots{
    bottom:10px;
    gap:8px;
  }

  .hero-dot{
    width:9px;
    height:9px;
    flex:0 0 9px;
  }

  .hero-nav{
    width:40px;
    height:40px;
    font-size:26px;
  }

  .hero-prev{ left:10px; }
  .hero-next{ right:10px; }
}