@import url('global.css');
html, body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background-color: rgba(247, 241, 227,1.0);
}

.content {
  background-color:rgba(247, 241, 227,1.0);
  margin: 0 auto;
  padding: 20px;
}

.bloc1 {
  width: 90%;
  display: flex;
  align-items: center;
  border-radius: 10px;
  margin: 20px auto;
}

.bloc1 .img {
  width: 400px;
  height: 400px;
  background-image: url("../img/bloc1.webp"); /* Remplacez par le chemin de votre image */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin: auto;
}

.bloc1 .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 70%;
  text-align: center;
  margin: auto;
}

.bloc1 .text h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 2em;
  margin-bottom: 10px;
}
.bloc1 .text p {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.2em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-en-savoir-plus {
  background: linear-gradient(90deg, #330ce4 50%, #4caf50 50%);
  background-size: 200% 100%;
  background-position: right;
  color: white;
  width: 150px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-position 0.5s ease;
  text-decoration: none;
}
.btn-en-savoir-plus:hover {
  background-color: #330ce4;
  background-position: left;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
  .content {
    padding: 15px;
  }
  
  .bloc1 {
    flex-direction: column;
    width: 95%;
    margin: 15px auto;
  }
  
  .bloc1 .img {
    width: 300px;
    height: 300px;
    margin-bottom: 20px;
  }
  
  .bloc1 .text {
    width: 100%;
  }
  
  .bloc1 .text h2 {
    font-size: 1.2em;
  }
  
  .bloc1 .text p {
    font-size: 1em;
    padding: 0 10px;
  }
  
  .btn-en-savoir-plus {
    width: 140px;
    padding: 12px 16px;
    font-size: 0.95em;
  }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
  .content {
    padding: 10px;
  }
  
  .bloc1 {
    width: 98%;
    margin: 10px auto;
    padding: 15px;
  }
  
  .bloc1 .img {
    width: 250px;
    height: 250px;
    margin-bottom: 15px;
  }
  
  .bloc1 .text h2 {
    font-size: 1em;
    margin-bottom: 15px;
  }
  
  .bloc1 .text p {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 0 5px;
  }
  
  .btn-en-savoir-plus {
    width: 130px;
    padding: 10px 14px;
    font-size: 0.9em;
  }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
  .content {
    padding: 8px;
  }
  
  .bloc1 {
    width: 100%;
    margin: 8px auto;
    padding: 10px;
  }
  
  .bloc1 .img {
    width: 200px;
    height: 200px;
    margin-bottom: 12px;
  }
  
  .bloc1 .text h2 {
    font-size: 0.9em;
    margin-bottom: 12px;
  }
  
  .bloc1 .text p {
    font-size: 0.8em;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .btn-en-savoir-plus {
    width: 120px;
    padding: 8px 12px;
    font-size: 0.85em;
  }
}
