/* reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* General */
body {
    margin: 0;
    font-family: 'Poppins','roboto', 'sans-serif';
    background-color: #F9EFE3;
    max-width: 1920px;
    align-items: center;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    }

/* Menu */
.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    background-color: #F9EFE3;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    margin-left: 100px;
}

.site-nav {
    margin-left: 700px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    margin-right: 100px;
}

.site-nav a {
    text-decoration: none;
    color: #FF6F00;
    font-weight: 500;
    font-size: 28px;
    font-family: "Poppins";
}

.site-nav a:hover {
    color: #4CAF50;
}

.social-icons {
    display: flex;
    align-items: center;
    margin-right: 100px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

/* Menu burger masqué desktop*/


.burger {
  display: none; 
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #000;
}
.burger:hover {
  background-color: #4CAF50;
  
}
.burger img {
  width: 30px;
  height: auto;
}

/* Menu Burger Overlay*/

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #FF6F00;
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  padding: 1em;
  z-index: 3;
}

.mobile-nav a {
  padding: 10px 0;
  color: #F9EFE3;
  text-decoration: none;
}
.mobile-nav a:hover {
  background-color: #4CAF50;
}

.mobile-nav.open {
  display: flex;
}

/* Banniere */
.header-banner {
    position: relative;
    width: 100%;
    height: 710px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.banner-content h1 {
    font-size: 72px;
    font-weight: 700;
    text-shadow: 7px 9px 6px rgba(7, 9, 0, 0.793);
    margin: 0 0 20px 0;
    font-family: "Poppins";
    font-style: bold;
    color:#F9EFE3
}

.button {
    background-color: #FF6F00;
    color:#F9EFE3;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 20px;
    font-family: "Poppins";
    height: 50px;
    width: 200px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 7px 9px 6px rgba(7, 9, 0, 0.793);
    text-decoration: none;
}

.button:hover {
    background-color: #D32F2F;
}

/* Avantages */

.advantages-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 50px 20px;
    background-color: #F9EFE3;
}

.advantage {
    display: flex;
    align-items: center;
    text-align: center;
    flex: 1 1 300px; 
    max-width: 400px;
    margin: 0 20px;
}

.advantage img {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.advantage-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
    font-family: "Roboto";
    font-style:black;
    margin-bottom: 10px;
}

.advantage h4 {
    font-size: 24px;
    font-family: "Roboto";
    font-style:black;
    color: #4CAF50;
    font-weight: 600;
}
/* Banniere publicitaire facultative */

.banniere-pub {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F9EFE3;
  }
  
  .banniere-pub img {
    width: 100%;
    height: auto;
    display: block;
  }

/* Recettes page d'accueil */

.recette-section {
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: #F9EFE3;
  }
  
  .recette-section h1 {
    font-size: 60px;
    color: #FF6F00;
    font-family: "Playfair Display";
    font-weight: bold;
    margin-bottom: 30px;
  }
  
  .grille-recettes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    align-items: center;
    padding: 50px 20px;
  }

  .recette-container {
    display: flex;
    flex: 1 1 300px; 
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  /* Box recettes accueil */

.carte-recette {
  display: flex;
  flex: 1 1 600px; 
  max-width: 800px;
  background-color: #22593C;
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  gap: 20px;
   display: flex;
 
}

.image-recette img {
   width: 400px;
  height: auto;
  object-fit: cover;
}

.texte-bouton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.texte-box {
  background-color: #F9EFE3;
  border-radius: 16px;
  padding: 12px 16px;
  height:270px;
  width:auto;
  text-align: center;
  margin-bottom: 10px;
  color: #22593C;
}

.texte-box h3 {
  margin: 0 0 8px;
  color: #4CAF50;
  font-weight: bold;
  font-family: "Roboto";
  margin-bottom: 50px;
  font-size: 28px;
}

.texte-box h4 {
  margin: 0;
  font-size: 24px;
  font-family: "Roboto";
  font-weight:bold;
}

.btn-orange {
  background-color: #FF6F00; 
  color: #F9EFE3;
  padding: 10px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-family:"Poppins";
  font-weight: "regular";
  font-size: 20px;
}

.btn-orange:hover {
    background-color: #D32F2F;
}

/* Box page Recettes*/

.categorie {
    margin-top: 100px;
    margin-bottom: 100px;
    align-items: center;
}

.categorie h1 {
    font-size: 60px;
    color: #FF6F00;
    font-family: "Playfair Display";
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}
.grid-container {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
    margin: 0 auto;
    max-width: 1200px;
  }
  
  .recette {
    background: #F9EFE3;
    border: 4px solid #4CAF50;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    height: 600px;
  }
  
  .recette img {
    width: 400px;
    height: 400px;
    object-fit: cover;
  }
  
  .recette h2 {
    font-size:  28px;
    font-family: "Roboto";
    font-weight:bold;
    color: #4CAF50;
    margin-bottom: 50px;
  }

/* Recettes */

h1 {
    font-family: 'Playfair Display';
    font-size: 60px;
    color:#FF6F00;
  }
h2 {
    font-family: 'Playfair Display';
    font-size: 48px;
    color:#FF6F00;
}

h3 {
    font-family: "Poppins";
    color: #4DAF51;
    font-size: 28px;
    font-weight: bold;
}
p {
    font-family: "Open Sans";
    color:#000;
    font-size:18px;
}
header {
    text-align: center;
    padding: 40px 20px 20px;
  }

  header h1 {
    font-family: 'Playfair Display';
    font-size: 60px;
    color:#FF6F00;
  }

  .image-container {
    text-align: center;
  }

  .image-container img {
    width: 100%;
    max-width: 1000px;
    height: auto;
  }

  .actions {
    text-align: right;
    margin: 10px 30px;
  }

  .actions img {
    width: 20px;
    margin-left: 10px;
  }

  .section {
    padding: 40px 20px;
  }

  .section h2 {
    font-family: 'Playfair Display';
    font-size: 38px;
    color:#FF6F00;
    text-align:center
  }

  .courses-liste img {
    width: auto;
    height: 35px;
  }

  .ingredients ul,
  .ustensiles ul {
    list-style: none;
    padding-left: 0;
    font-family: "Open Sans";
    color:#000;
    font-size:18px;
  }

  .tableaux-recette img {
    width: auto;
    height: 30px;
  }
  .info-nutritionnelle table,
  .details-rapides table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }

  table td, table th {
    border: 1px solid #4DAF51;
    padding: 10px;
    text-align: center;
  }

  table th {
    font-family: "Poppins";
    color:#F9EFE3;
    font-size: 20px;
  }

  table td {
    font-family: "Open Sans";
    color:#000;
    font-size:18px;
  }

  table th {
    background-color: #4DAF51;
  }

  .preparation-recette {
    background-color: #F9EFE3;
    padding: 30px;
    max-width: 800px;
    width: 100%;
  }

  .preparation img {
    height: 35px;
    width: auto;
  }

  .preparation ol {
    padding-left: 20px;
    font-family: "Open Sans";
    color:#000;
    font-size:18px;
    
  }

strong {
    color:#4DAF51;
    font-size: 24px
}

  .formulaire {
    padding: 0;
    margin-bottom: 100px;
  }

  .formulaire input,
  .formulaire textarea {
    display: inline-block;
    width: 45%;
    padding: 10px;
    margin: 10px 2%;
    border: 2px solid #4DAF51;;
    border-radius: 8px;
    background-color: #F9EFE3;
    font-size: 16px;
  }

  .formulaire textarea {
    width: 94%;
    height: 100px;
  }


/* Dernières Recettes*/

h1 {
    font-size: 60px;
    color: #FF6F00;
    font-family: "Playfair Display";
    font-weight: bold;
    margin-bottom: 100px;
    text-align: center;
  }

  .dernieres-recettes {
    margin-top: 100px;
    margin-bottom: 100px;
  } 

  .cta {
    display: flex;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: center;
    padding: 30px;
    margin: 0 auto;
    max-width: 1200px;
  }
  
  .cta-recette {
    display: flex;
    background-color: #2e533b;
    color: #F9EFE3;
    border-radius: 6px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
  }
  
  .cta-recette img {
    width: 50%;
    height: auto;
    object-fit: contain;
  }
  
  .cta-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
  }
  
  .cta-content h2 {
    font-size: 40px;
    margin-bottom: 15px;
    color: #F9EFE3;
    font-family: "Open Sans";
  }
  
  .cta-content p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: "Open Sans";
    color: #F9EFE3;
  }
  
  button {
    align-self: start;
    background-color: #f17a2b;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #d4641c;
  }
/* Contact */

.contact {
    padding: 40px 20px;
    background-color: #F9EFE3;
    font-family: 'Poppins', 'Open Sans', 'Playfair Display';
    margin-bottom: 60px;
  }

  .contact img {
    width: 100%;
    border-radius: 10px;
  }
  
  .about-container, .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1500px;
    margin: auto;
    align-items: center;
  }
  
  .about-text, .contact-form {
    flex: 1 1 50%;
  }
  
  .about-text h2,
  .contact-form h2 {
    color: #FF6F00;
    font-family: 'Playfair Display';
    font-size: 48px;
    margin-bottom: 50px;
    margin-top:50px;
  }
  
  .about-text p {
    margin-bottom: 30px;
    line-height: 1.5;
    font-family: 'Open Sans';
    font-size: 28px;
  }
  
  .contact-img {
    width: 80%;
  }
  
  .contact-form form {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  
  .contact-form .form-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    border: 2px solid #4DAF51;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    flex: 1;
  }
  
  .contact-form textarea {
    resize: vertical;
    border-radius: 10px;
  }
  
  .contact-form button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #4DAF51;
    color: #F9EFE3;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .contact-form button:hover {
    background-color: #4DAF51;
  }
  

/* Footer */
footer {
  width: 100vw;
  margin-left: 0;
  margin-right: 0; 
  margin-top: 50px;
  }

  
/* Newsletter */
.footer-top {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
    background-color: #22593C;
    color: #FF6F00;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
  }
  
.footer-top h2 {
    margin-bottom: 30px;
    font-family: "Playfair Display" ;
    font-size: 60px;
    font-weight: bold;
  }

.newsletter {
    display: flex;
    justify-content: center;
    margin: auto;
    border-radius: 50px;
    overflow: hidden;
    background-color: #FF6F00;
  }
  
.newsletter input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    background-color: #F9EFE3;
    text-align: center;
    font-family: "Poppins";
    font-size: 20px;

  }

  
.newsletter button {
    background-color: #FF6F00;
    color: #F9EFE3;
    border: #FF6F00;
    padding: 15px 30px;
    font-family: "Poppins";
    font-size:  20px;
    cursor: pointer;
  }
  
.newsletter button:hover {
    background-color: #D32F2F;
  }

/* Pied de page */

.footer-bottom {
    background-color: #F9EFE3;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 50px;
  }
  
  .footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #22593C;
  }
  
  .footer-links a {
    color: #22593C;
    text-decoration: none;
    font-weight: 500;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  .footer-social-icons {
  display: block;
  margin-top: 5px;
  width: 200px;      /* IMPORTANT */
  margin-left: auto;
  }
  .footer-social-icons a img {
    width: 22px;
    height: 22px;
    margin-left: 12px;
  }

  span {
    font-family: "Lora";
    font-size: 18px;
    color:#22593C ;
  }
/* Responsive */
@media (max-width: 1024px) {
  header {
    padding-left: 20px;
    padding-right: 20px;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 5px;
  }

    .logo img {
    height: 60px;
    margin-left: 0px;
}

  .burger {
    display: block;
    position: absolute;
    left: 20px;
    height: 50px;
  }

  nav.site-nav {
    display: none; 
  }

  .logo {
    position: relative;
    left: 40%;
    
  }
   .social-icons {
    display: flex;
    align-items: center;
    margin-right: 0px;
    margin-left: 300px;
}

  .social-icons a img {
    position: relative;
    width: 20px;
    height: 20px;
    margin-left: 5px;
  }
    .cta {
    display: flex;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 1fr;
}

    .grid-container {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px;
    margin: 0 auto;
    max-width: 1200px;
  }

    .about-container, .contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0px;
    max-width: 1500px;
    margin: auto;
    align-items: center;
  }

    .about-text p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-family: 'Roboto';
    font-size: 28px;
  }

     .contact-img {
    width: 100%;
    align-items: center;
  }
 

@media (max-width: 600px) {
    
  body {
        width: 100% !important;
        
    }    
  h1 {
    font-size: 3em !important;
  }
  h2 {
    font-size: 2em !important;
  }
   h3 {
    font-size: 1.7em !important;
  }
  h4 {
    font-size: 1.4em !important;
  }
  h5 {
    font-size: 1.2em !important;
  }
  p {
    font-size: 0.9em !important;
  }
.newsletter input {
    padding: 10px 15px !important; 
    font-size: 16px !important;
}

.newsletter button {
    padding: 10px 20px !important; 
    font-size: 16px !important;
}
.grille-recettes {
    grid-template-columns: 1fr;
  }
.carte-recette {
    flex-direction: column;
    align-items: center;
  }
  .grid-container {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
    margin: 0 auto;
    max-width: 1200px;
  }
  .image-recette img {
    width: 100%;
  }
}