:root {
  --primary: #446f7f;
  --secondary: #a6d8dc;
  --pink: #fce4eb;
  --purple: #F3C7F3; 
  --baloo: 'Baloo 2', sans-serif;
  --lucky: 'Luckiest Guy', cursive;
  --padding: 5%; 
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--pink);
  font-family: var(--baloo);
  color: var(--primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  font-size: 18px; 
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--lucky);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto; 
  z-index: 0;
  display: block;
}

.main-container {
  width: 100%;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--lucky);
  font-size: 48px; 
  font-weight: 400;
  text-align: center;
  color: var(--primary);
  letter-spacing: 2px;
}

.cta-button, .product-link {
  display: inline-block;
  background-color: var(--secondary);
  padding: 12px 30px; 
  font-size: 22px; 
  border-radius: 15px;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--baloo);
  border: 2px solid transparent;
}

.cta-button:hover, .product-link:hover {
  background-color: var(--primary);
  color: var(--secondary);
}

.cta-button {
  margin-top: 25px;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

.site-header {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  padding: 20px var(--padding); 
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto;
}

.logo-img {
  height: 85px; 
  width: auto;
  display: block;
  flex-shrink: 0;
}

.main-nav {
  flex-grow: 0; 
}

.main-nav ul {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  gap: 40px; 
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--primary);
  font-family: var(--baloo);
  font-weight: 800; 
  font-size: 22px; 
  text-align: center;
  transition: color 0.3s ease;
}

.main-nav a:not(.nav-button):hover {
  color: var(--secondary);
}

.nav-button {
  background-color: var(--secondary);
  padding: 12px 35px;
  border-radius: 20px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-button:hover {
  background-color: var(--primary);
  color: var(--secondary);
  transform: scale(1.05);
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 40px; 
  padding: 50px var(--padding) 80px;
  min-height: 500px; 
  flex-direction: row-reverse; 
  max-width: 1600px;
  margin: 0 auto;
}

.hero-content {
  width: 50%; 
  text-align: center; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 50px; 
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: var(--primary); 
}

.hero-content p {
  font-size: 20px; 
  margin-bottom: 25px;
}

.hero-image {
  width: 60%; 
  max-width: 1050px; 
  height: auto;
}

.favorite-section {
  padding: 80px var(--padding);
  display: grid;
  grid-template-columns: 1fr 1fr; 
  column-gap: 50px;
  row-gap: 15px;
  align-items: center;
  position: relative;
  max-width: 1600px; 
  margin: 0 auto;
}

.favorite-image {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end; 
  width: 100%;
  max-width: 500px; 
  height: auto;
  margin: 0; 
}

.favorite-title {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
  align-self: end;
  font-family: var(--lucky);
  font-size: 50px; 
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 15px;
  width: 100%;
}

.favorite-text {
  grid-column: 1;
  grid-row: 2;
  text-align: left;
  align-self: start;
  font-family: var(--baloo);
  font-size: 20px; 
  font-weight: 400;
  color: var(--primary);
  width: 100%;
}

.advantages-section {
  padding: 60px var(--padding);
  text-align: center;
  position: relative;
  isolation: isolate; 
}

.advantages-grid {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  gap: 25px;             
  list-style: none;
  padding: 0;
  max-width: 1600px; 
  margin: 0 auto;
}

.advantages-grid li {
  display: flex;
  justify-content: center;
  width: 100%;            
}

.advantages-grid li:nth-child(odd) .advantage-item {
  flex-direction: row; 
  margin-right: 40px; 
}

.advantages-grid li:nth-child(even) .advantage-item {
  flex-direction: row-reverse; 
  margin-left: 40px; 
}

.advantage-item {
  background: transparent; 
  padding: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.advantage-item img {
  height: 120px; 
  width: auto;
  display: block;
  flex-shrink: 0;
}

.advantage-item h3 {
  background-color: var(--secondary); 
  padding: 10px 25px;
  border-radius: 30px; 
  font-family: var(--baloo);
  font-size: 20px; 
  font-weight: 700;
  color: var(--primary); 
  text-transform: none;
  margin: 0;
  white-space: nowrap;
}

.advantages-deco {
  position: absolute;
  left: 5%;
  bottom: 120px;
  width: 300px;
  opacity: 5;
  display: block;
  margin: 0;
  z-index: -1;
}

.about-section {
  padding: 100px 5%;
  position: relative;
  isolation: isolate;
  overflow: visible; 
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1; 
}

.relative-title {
  grid-column: 1;
  grid-row: 1;
  position: static;
  width: 100%;
  text-align: left;
  font-family: var(--lucky);
  font-size: 50px;
  color: var(--primary);
  margin-bottom: 0;
  z-index: 2;
}

.title-deco {
  position: absolute;
  right: -50%; 
  top: 20%;
  transform: translateY(-50%);
  width: 100%; 
  min-width: 2400px; 
  max-width: 4000px;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

.about-content {
  display: contents;
}

.about-image {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 60%;
  height: auto;
  border-radius: 20px;
  justify-self: right;
  align-self: center;
  z-index: 2;
  position: relative;
}

.about-content p {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 100%;
  text-align: left;
  font-family: var(--baloo);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--primary);
  z-index: 2;
  position: relative;
}

.extra-fun-section {
  width: 100%; 
  padding: 0;
  padding-bottom: 100px ;
  margin: 150px auto 0 auto;
  text-align: center;
  position: relative;
  z-index: 5; 
  overflow: visible;
}

.fun-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.fun-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  margin-bottom: 0; 
}

.fun-content p {
  z-index: 2;
  font-family: var(--baloo);
  font-size: 20px;
  line-height: 1.6;
  color: var(--primary);
  max-width: 700px;

}

.products-section {
  background-color: var(--purple); 
  padding: 80px 5%;
  position: relative;
  text-align: center;
  z-index: 20; 
  padding-top: 80px; 
}

.products-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid li {
  display: flex; 
}

.product-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 15px;
  border-radius: 10px;
  display: block;
}

.product-title {
  margin: 0 0 20px 0;
  font-size: 22px;
  font-family: var(--baloo);
  font-weight: 700;
  text-align: center;
  flex-grow: 1;
}

.product-card .product-link {
  margin-top: auto;
}

.products-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  opacity: 1;
  width: 2000px;
  pointer-events: none;
}

.newsletter-section {
  padding: 80px var(--padding);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.newsletter-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-family: var(--lucky);
  font-size: 40px;
  color: var(--primary);
}

.newsletter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.newsletter-mascotte {
  height: auto; 
  width: 420px; 
  max-width: 45%;
  display: block;
}

.newsletter-form {
  background: transparent; 
  padding: 0;
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative; 
}

.newsletter-form label {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--baloo);
  color: var(--primary);
  margin-bottom: -10px;
  padding-left: 10px; 
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  padding: 15px 25px;
  border-radius: 20px; 
  background-color: #d0c4de; 
  border: none;
  font-family: inherit;
  font-size: 18px;
  color: var(--primary);
  outline: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 5px;
  padding-left: 10px;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #d0c4de;
}

.newsletter-form button {
  background: var(--secondary);
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 15px;
  color: var(--primary);
  font-family: inherit;
  font-size: 20px;
  width: fit-content; 
  transition: transform 0.2s ease;
  align-self: center; 
}

.newsletter-form button:hover {
  transform: scale(1.05);
  background-color: var(--primary);
  color: var(--secondary);
}

.newsletter-deco {
  display: block !important; 
  position: absolute;
  z-index: 1; 
  pointer-events: none;
}

.newsletter-deco:nth-last-of-type(2) {
  top: -150px !important;    
  right: -20px !important;       
  left: auto !important;    
  bottom: auto !important;
  width: 200px;   
  transform: rotate(15deg);
}

.newsletter-deco:last-of-type {
  bottom: 5px !important;   
  left: 500px !important; 
  top: auto !important;     
  right: auto !important;
  width: 100px;   
}
.site-footer {
  position: relative;
  margin-top: 300px; 
  padding-bottom: 10px;
}

.footer-wave {
  position: absolute;
  bottom: 0%; 
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 10px auto 100px auto;
  padding: 40px var(--padding) 0;
  position: relative;
  z-index: 2;
  
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 60px; 
}

.footer-logo {
  height: 90px;
  width: auto;
  display: block;
  flex: 0 0 auto; 
}

.footer-info {
  flex: 1; 
  min-width: 200px; 
}

.footer-info h3 {
  font-family: var(--lucky);
  font-size: 26px; 
  color: #446f7f; 
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.footer-info p, 
.footer-info a {
  font-family: var(--baloo);
  font-size: 18px;
  line-height: 1.6;
  color: #446f7f;
  text-decoration: none;
  font-weight: 600; 
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-divider {
  width: 100%;
  flex-basis: 100%; 
  border: 0;
  border-top: 2px solid #446f7f; 
  opacity: 0.4;
  margin-top: -40px;
}

.copyright {
  width: 100%;
  font-family: var(--baloo);
  font-size: 15px;
  color: #446f7f;
  font-weight: 700;
  margin: -70px 0 -100px 0;
}

.disclaimer {
  width: 100%;
  font-family: var(--baloo);
  font-size: 14px;
  color: #446f7f;
  opacity: 0.8;
  margin: -110px 0 0 0;
}



@media screen and (max-width: 900px) {


  .bg-decoration {
    top: 3%;
  }
  .site-header {
    flex-direction: column; 
    gap: 15px;
    padding: 20px 15px; 
    align-items: center;
    background-color: var(--purple);
  }

  .logo-img {
    height: auto;      
    max-width: 250px;  
    width: 100%;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .main-nav a {
    font-size: 16px; 
  }

  .hero-section, 
  .favorite-section, 
  .about-section, 
  .newsletter-wrapper,
  .products-grid {
    display: flex; 
    flex-direction: column; 
    padding: 60px 20px; 
    height: auto; 
    align-items: center;
  }

  .hero-section {
    flex-direction: column-reverse; 
  }

  .hero-image, 
  .about-image, 
  .favorite-image,
  .newsletter-mascotte {
    width: 100%;
    max-width: 320px; 
    margin: 0 auto 30px auto;
  }
  
  .hero-content, 
  .favorite-content,
  .about-content,
  .fun-content {
    width: 100%;
    text-align: center;
  }
  
  .about-image, .about-content p,
  .favorite-image, .favorite-text, .favorite-title {
    grid-column: auto;
    grid-row: auto;
  }
  
  .title-deco {
    width: 100%;
    min-width: 0; 
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }

  .site-footer {
    margin-top: 100px; 
    padding-bottom: 20px;
    background-color: var(--purple);
  }
  .footer-wave {
    bottom: 100%; 
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding-top: 60px; 
  }
  
  .footer-logo {
    height: auto;
    max-width: 200px; 
    margin-right: 0;
  }

  .footer-info {
    width: 100%;
    min-width: 0;
  }

  .footer-divider {
    margin-top: 10px;
  }
  
  .copyright, .disclaimer {
    margin: 0;
    width: 100%;
  }
  .disclaimer {
    margin-top: 10px;
  }
  

  .hero-content,
  .favorite-content,
  .about-content,
  .fun-content,
  .newsletter-wrapper,
  .section-title {
    position: relative; 
    z-index: 10;
  }

  .title-deco,
  .bg-decoration,
  .advantages-deco,
  .products-bg {
    z-index: -1 !important; 
    opacity: 0.7; 
  }

  .title-deco {
    width: 100%;       
    min-width: 300px;  
    left: 50%;         
    top: 50%;
    transform: translate(-50%, -50%); 
  }
  
  .about-section, 
  .advantages-section,
  .products-section {
    z-index: 1; 
    overflow: visible; 
  }
}
