/*
=============================
HERO SOSTENIBILITÀ
=============================
.sostenibilita-hero {
  background-color: #5b3519;
  padding-top: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 16px;
}

.hero-grid > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-center {
  position: relative;
  width: 100%;
}

.hero-center img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-title {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;

  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.5px;

  text-shadow: 0 6px 20px rgba(0,0,0,0.45);
  pointer-events: none;
}

.hero-title span {
  display: block;
  font-size: 1em;
  margin-top: 6px;
}

@media (max-width: 1024px) {

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .hero-grid > img {
    display: none;
  }

  .hero-center {
    display: block;
  }
}

@media (max-width: 768px) {

  .hero-grid {
    display: flex;
    justify-content: center;
  }

  .hero-center img {
    width: 100%;
    min-height: 85vh;
    max-height: 95vh;
    object-fit: contain;
  }
}
*/

/* ============================= */
/* HERO SOSTENIBILITÀ IMAGE UNIQUE */
/* ============================= */

.sostenibilita-hero-single {
  background-color: #5b3519;
  padding-top: 16px;
}

/* container image */
.hero-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* image pleine largeur */
.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* titre sur l'image */
.hero-title-single {
  position: absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  margin: 0;

  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  color: white;

  text-align: center;
  line-height: 1.1;

  text-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.hero-title-single span {
  display: block;
  margin-top: 6px;
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {

  .hero-image-container img {
    min-height: 80vh;
    object-fit: cover;
  }

}

/* ============================= */
/* BANDEAU BAS */
/* ============================= */
.hero-bottom {
  height: 120px;
  background-color: #5b3519;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-arrow {
  color: white;
  font-size: 32px;
  opacity: 0.8;
}
/* ============================= */
/* AJUSTEMENT TITRE – IPAD */
/* ============================= */
@media (max-width: 1024px) {

  .hero-title {
    bottom: 300px;                 /* 🔼 monte ENCORE */
    font-size: clamp(42px, 6.8vw, 72px);
    line-height: 1.05;
  }
}

/* ============================= */
/* AJUSTEMENT TITRE – MOBILE */
/* ============================= */
@media (max-width: 768px) {

  .hero-title {
    bottom: 160px;                 /* 🔥 sous la tablette exactement */
    font-size: clamp(34px, 8vw, 60px);
    line-height: 1.05;
  }

  .hero-title span {
    margin-top: 4px;               /* resserre légèrement */
  }
}
/* ============================= */
/* TEXTE HERO – SOSTENIBILITÀ */
/* ============================= */

.hero-text-section {
  position: relative;
  background-color: #5b3519;
  overflow: hidden;                 /* 🔥 nécessaire pour la vague */
  padding: 90px 0 220px;
          
}

.hero-text-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
  z-index: 2;                       /* au-dessus de la vague */
}

.hero-paragraph {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 60px;
}
/* ============================= */
/* INDICATEUR DE SCROLL */
/* ============================= */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-indicator .chevron {
  width: 22px;
  height: 22px;
  border-right: 3px solid rgba(255,255,255,0.85);
  border-bottom: 3px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
  animation: scrollDown 1.6s infinite;
}

.scroll-indicator .chevron:nth-child(2) {
  animation-delay: 0.3s;
  opacity: 0.6;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(45deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px) rotate(45deg);
  }
}
/* ============================= */
/* FIN ONDULÉE – HERO SOSTENIBILITÀ */
/* ============================= */

.hero-text-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 160px;
  background: #ffffff;     /* couleur de la section suivante */
  z-index: 1;

  clip-path: path(
    "M0,40 C200,120 400,0 720,50 1000,100 1200,140 1440,60 L1440,160 L0,160 Z"
  );
}
/* ============================= */
/* FIX AFFICHAGE MOBILE – TEXTE & FLÈCHES */
/* ============================= */

/* SUPPRIME la hauteur fixe du bandeau
   UNIQUEMENT quand il contient du texte */
.hero-bottom.hero-text-section {
  height: auto;
  display: block;
}

/* AJUSTEMENT SPÉCIAL MOBILE */
@media (max-width: 768px) {

  .hero-text-section {
    padding: 90px 0 180px;
  }

  .hero-text-container {
    padding: 0 20px;
  }

  .hero-paragraph {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 50px;
  }
}

/* FORCE les flèches à rester dans le bandeau marron */
.scroll-indicator {
  position: relative;
  z-index: 3;
}

/* Empêche la vague blanche de recouvrir le texte */
.hero-text-section::after {
  bottom: -1px;
}
/* ============================= */
/* CORRECTION ESPACE IMAGE → TEXTE */
/* ============================= */

/* Mobile + iPad : on enlève la hauteur artificielle */
@media (max-width: 1024px) {

  .hero-center img {
    min-height: unset;   /* 🔥 CLÉ ABSOLUE */
    max-height: none;
  }
}
/* ============================= */
/* SECTION SOSTENIBILITÀ – BLOCCO AMBIENTE */
/* ============================= */

.sostenibilita-blocco {
  background: #ffffff;
  padding: 60px 0 120px; /* 🔥 remonte encore */
  text-align: center;
}

.sostenibilita-contenuto {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ICÔNE */
.sostenibilita-icona {
  width: 120px;
  height: auto;
  margin-bottom: 22px;
}

/* TITRE */
.sostenibilita-titolo {
  font-family: 'Playfair Display', serif;
  font-size: 54px;      /* 🔥 plus impactant */
  font-weight: 700;     /* 🔥 plus gras */
  color: #5b3519;
  margin-bottom: 22px;
}


/* TEXTE */
.sostenibilita-testo {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

/* ============================= */
/* TABLETTE */
/* ============================= */
@media (max-width: 1024px) {

  .sostenibilita-blocco {
    padding: 70px 0 110px; /* 🔼 moins d’espace en haut */
  }

  .sostenibilita-icona {
    width: 110px;          /* 🔥 icône plus visible sur iPad */
  }

  .sostenibilita-titolo {
    font-size: 46px;       /* 🔥 plus grand que 40px */
    font-weight: 700;
  }

  .sostenibilita-testo {
    font-size: 17px;
  }
}


/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 768px) {

  .sostenibilita-blocco {
    padding: 55px 0 95px;  /* 🔼 remonte le contenu */
  }

  .sostenibilita-contenuto {
    padding: 0 20px;
  }

  .sostenibilita-icona {
    width: 90px;           /* 🔥 plus visible sur mobile */
    margin-bottom: 18px;
  }

  .sostenibilita-titolo {
    font-size: 36px;       /* 🔥 plus grand */
    font-weight: 700;
    margin-bottom: 18px;
  }

  .sostenibilita-testo {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ============================= */
/* FIX LIGNE BLANCHE – MOBILE SEULEMENT */
/* ============================= */

@media (max-width: 768px) {

  /* 1️⃣ On force le collage parfait entre les sections */
  .hero-text-section {
    margin-bottom: -1px;
  }

  /* 2️⃣ On supprime toute marge parasite */
  .sostenibilita-blocco {
    margin-top: 0;
  }
}
/* ============================= */
/* FIX LIGNE ENTRE VAGUE & SECTION BLANCHE (MOBILE) */
/* ============================= */
@media (max-width: 768px) {

  /* 1) Supprime toute bordure/ombre éventuelle (base.css / home.css) */
  .hero-text-section,
  .sostenibilita-blocco {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  /* 2) Chevauchement : la section blanche remonte un peu sous la vague */
  .sostenibilita-blocco {
    position: relative;
    margin-top: -2px !important;   /* 🔥 CLÉ */
  }

  /* 3) Sécurité Safari : la vague descend 1px */
  .hero-text-section::after {
    bottom: -2px !important;       /* 🔥 CLÉ */
  }
}
/* ============================= */
/* SECTION IMAGE – SOSTENIBILITÀ */
/* ============================= */

.sostenibilita-image-section {
  background-color: #ffffff;
  padding: 0;
}

.sostenibilita-image-wrapper {
  width: 100%;
  max-width: 1400px;     /* belle limite sur desktop */
  margin: 0 auto;
}

.sostenibilita-image-wrapper img {
  width: 100%;
  height: auto;          /* 🔥 image complète */
  display: block;
  object-fit: contain;  /* 🔥 jamais découpée */
}

/* ============================= */
/* DECORATION FEUILLE GAUCHE */
/* ============================= */

.decor-leaf-left{
  position: absolute;
  left: -40px;
  top: 40px;

  width: 220px;
  opacity: 0.25;

  pointer-events: none;
  z-index: 1;

  animation: leafFloat 6s ease-in-out infinite;
}

/* animation douce */

@keyframes leafFloat {

  0%{
    transform: translateY(0px) rotate(0deg);
  }

  50%{
    transform: translateY(-12px) rotate(-2deg);
  }

  100%{
    transform: translateY(0px) rotate(0deg);
  }

}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width:768px){

.decor-leaf-left{
  width:120px;
  left:-20px;
  top:20px;
  opacity:0.18;
}
.decor-leaf-right{
  width:120px;
  right:-20px;
  top:20px;
  opacity:0.18;
}

}

/* ============================= */
/* DECORATION FEUILLE DROITE */
/* ============================= */

.decor-leaf-right{
  position:absolute;
  right:-40px;
  top:40px;

  width:220px;
  opacity:0.25;

  pointer-events:none;
  z-index:1;

  animation:leafFloatRight 7s ease-in-out infinite;
}
@keyframes leafFloatRight{

  0%{
    transform:translateY(0px) rotate(0deg);
  }

  50%{
    transform:translateY(-10px) rotate(2deg);
  }

  100%{
    transform:translateY(0px) rotate(0deg);
  }

}
/* ============================= */
/* FIX LIGNE iPad PRO / AIR */
/* ============================= */

.hero-text-section::after{
  bottom:-3px;          /* chevauchement pour supprimer la ligne */
}

/* sécurité supplémentaire */
.sostenibilita-blocco{
  margin-top:-3px;
  position:relative;
}

