@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
body,
html {
  margin: 0 auto;
  padding: 0 auto;
  font-family: 'Montserrat', sans-serif; /* Utiliser Montserrat par défaut */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120vh;
}

/*************************************** HEADER *****************************************/
.container-fluid.d-flex.bbb {
  margin-left: 50px;
  margin-right: 50px;
}

/*********** NAVBAR ***********/
.navbar {
  display: flex;
  width: 100%;
  background-color: rgb(36, 36, 36) !important;
  border-bottom: 1px solid #000000af;
}

/* class active nav */

.active-h {
  color: #ffffff !important;
  font-weight: bold !important;
}

.nav-link {
  color: white !important;
}
.logo {
  width: 150px;
  height: 65px;
  overflow: hidden;
  margin-right: 20px;
}


.dropdown-menu {
  background-color: rgb(36, 36, 36) !important;
}

.dropdown-item {
  color: white !important;
  max-width: 100%;
}
.dropdown-item:hover {
  background-color: transparent !important;
  transform: scale(1.05); /*zoom sur le list dropdown (+ de 1 = zoom , -1 = dézoom)*/
}

/********* FIN NAVBAR **********/

.image {
  width: 100%;
  background-image: url(../image/cuisine_d_accueil.jpg);
  background-size: cover;
  background-position: center;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.image a {
  font-size: 20px;
}
.info-nav {
  margin-left: auto;
}
/* responsive navbar */
@media (max-width: 990px) {
  .info-nav {
    gap: 20px;
  }
  .list-link-nav {
    right: 0!important;
  }
}

/********************************************* FIN HEADER ***************************************/

/********************************************* PAGE ACCUEIL *********************************************/

#container {
  display: flex;
  margin: 120px 60px 0 60px;
}

#carouselExampleIndicators {
  width: 45%;
}

.carousel-description {
  width: 55%;
  padding: 60px;
  position: relative;
  text-align: center;
}

.carousel-description h2{
  margin-top: 28px;
  margin-bottom: 75px;
  font-size: 80px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
}
.carousel-description p {
  text-align: center;
  font-size: 20px;
    
}

/* Fin carousel */
#bestseller {
  background-color: rgb(36, 36, 36) !important;

}

#bestseller h2{
  text-align: center;
  font-size: 80px;
  margin-top: 120px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
  color: white;
  padding-top: 64px;
}

/* best seller */
:root{
  --background-dark: #2d3548;
  --text-light: rgba(255,255,255,0.6);
  --text-lighter: rgba(255,255,255,0.9);
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;
  --width-container: 1200px;
}

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

html{
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.hero-section{
  align-items: flex-start;
  background-color: rgb(36, 36, 36) !important;
  display: flex;
  min-height: 100%;
  justify-content: center;
  padding: var(--spacing-xxl) var(--spacing-l);
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: var(--spacing-l);
  grid-row-gap: var(--spacing-l);
  max-width: var(--width-container);
  width: 100%;
}

@media(min-width: 540px){
  .card-grid{
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media(min-width: 960px){
  .card-grid{
    grid-template-columns: repeat(4, 1fr); 
  }
}

.card{
  list-style: none;
  position: relative;
  padding-bottom: 150%;
}

.card__background{
  background-size: cover;
  background-position: center;
  bottom: 0;
  filter: brightness(0.75) saturate(1.2) contrast(0.85);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: center;
  transform: scale(1) translateZ(0);
  transition: 
  filter 200ms linear,
  transform 200ms linear;
}

.card:hover .card__background{
  transform: scale(1.05) translateZ(0);
}

.card-grid:hover > .card:not(:hover) .card__background{
  filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.card__content{
  left: 0;
  padding: var(--spacing-l);
  position: absolute;
  top: 0;
}

.card__category{
  color: black;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: var(--spacing-s);
  text-transform: uppercase;
  
}

.card__heading{
  color: var(--text-lighter);
  font-size: 1.9rem;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
  line-height: 1.4;
  word-spacing: 100vw;
}
/* fin best seller */




/* contactez-nous */
#contact {
  margin: 120px 60px 120px 60px;

}
#contact h2{
  text-align: center;
  font-size: 80px;
  margin-bottom: 60px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
}

.descriptioncontact {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.descriptioncontact a {
  max-width: fit-content;
  font-size: 20px;
}
.descriptioncontact p {
  font-size: 20px;
}
.imagecontact {
  width: 50%;
}
.imagecontact img{
  width: 100%;
  height: 100%;
}
#btn-contact2 {
  display: none;
}

@media(max-width: 1400px) {
  #container {
    flex-direction: column-reverse;
    margin: 20px 60px 0 60px;

  }
  #contact {
    flex-direction: column;
  }
   .carousel-description, .descriptioncontact {
    width: 100%;
    padding: 0 60px 60px 60px;
  }
  #carouselExampleIndicators, .imagecontact {
    width: 70%;
    margin: 0 auto;
  }
  #btn-contact1 {
    display: none;
  }
  #btn-contact2 {
    display: inline-block;
    max-width: fit-content;
    margin: 0 auto;
  }
 
}
/************************************************ FIN ACCUEIL **********************************************/

/*********************************************** FOOTER ************************************************/

footer {
  background-color: rgb(36, 36, 36);
  color: white;
  display: flex;
  flex-wrap: wrap; /* Permet aux éléments de s'adapter à la largeur de l'écran */
  justify-content: space-between; /* Sépare le contenu en deux blocs */
  padding: 20px;
  box-sizing: border-box; /* S'assure que le padding est inclus dans la largeur définie */
}

.footer-left, .footer-right {
  display: flex;
  flex-direction: column; /* Organise le contenu verticalement */
  align-items: center; /* Centre les éléments horizontalement */
}

.footer-left ul, .footer-center ul {
  list-style: none;
  
  padding: 0;
  display: flex;
  flex-direction: row; /* Organise les liens horizontalement */
  justify-content: center;
  gap: 20px; /* Espacement entre chaque lien */
}

.footer-left ul li a, .footer-right a, .footer-center li a {
  text-decoration: none;
  color: white;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Place les éléments à droite */
  gap: 20px; /* Espacement entre "FAQ" et "Condition générale" */
}


/* Media Queries */
@media (max-width: 768px) {
  footer {
    flex-direction: column; /* Empile les contenus verticalement sur petits écrans */
  }

  .footer-left, .footer-right {
    justify-content: center;
    width: 100%; /* Prend la pleine largeur pour éviter le surpeuplement */
    margin: 10px 0; /* Espacement entre les blocs */
  }

  .footer-left ul {
    margin-right: 0!important;
  }
  .footer-right {
    flex-direction: row; /* Garde "FAQ" et "Condition générale" côte à côte */
    justify-content: center; /* Centre les éléments dans le bloc */
  }
}


/******************** page contact *********************/


.untree_co-section .container h1{
  text-align: center;
  font-size: 110px;
  margin-bottom: 60px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
  margin-top: 60px;
}

.form-control {
  height: 50px;
  border-radius: 10px;
  font-family: "Inter", sans-serif; 
}

.form-control:active, .form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #3b5d50;
  -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2); 
}

.form-control::-webkit-input-placeholder {
  font-size: 14px;
}

.form-control::-moz-placeholder {
  font-size: 14px; 
}

.form-control:-ms-input-placeholder {
  font-size: 14px; 
}
  
.form-control:-moz-placeholder {
  font-size: 14px;
}
.service {
  line-height: 1.5; 
}

.service .service-icon {
  border-radius: 10px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50px;
  flex: 0 0 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: rgb(36, 36, 36) !important;;
  margin-right: 20px;
  color: #ffffff; 
}
/* icons fin */
textarea {
  height: auto !important; 
}
#btn-contact {
  background: rgb(36, 36, 36) !important;;
  color: #ffffff;
}
  
/* Styles existants... */

/* Ajustements pour responsivité */
@media (max-width: 768px) {
  .untree_co-section .container h1 {
    font-size: 48px; /* Taille de police réduite pour les écrans plus petits */
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .form-control, textarea.form-control {
    font-size: 14px; /* Assurez-vous que la taille de la police est lisible sur les petits appareils */
  }

  .service .service-icon {
    flex: 0 0 40px; /* Réduisez la taille pour les petits écrans */
    height: 40px;
    margin-right: 15px; /* Espace réduit entre l'icône et le texte */
  }

  .row > .col-lg-4, .row > [class*='col-'] {
    margin-bottom: 20px; /* Ajoute de l'espace entre les éléments lorsqu'ils sont empilés */
  }

  #btn-contact {
    width: 100%; /* Bouton pleine largeur pour faciliter le clic sur les petits écrans */
    padding: 10px; /* Ajustement du padding pour garder le bouton proportionnel */
  }
}


/* fin page contact */



/***************** Page nos cuisines ********************/

/* titre */
#produits {
  padding: 2rem 0;
}

#produits h1 {
  text-align: center;
  font-size: 110px; /* Ajusté pour être plus petit sur les petits écrans */
  margin: 2rem 0;
  font-family: "Great Vibes", cursive;
  margin-top: 60px;
  font-weight: 500;
  margin-bottom: 40px;
}

/* Adapter les cartes pour différents écrans */
.produits_list {
  margin: 2rem auto;
  width: 95%; /* Plus large pour petits écrans */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); /* S'adapte automatiquement */
  gap: 1rem;
}

.cuisine {
  background-color: #fff;
  box-shadow: 0 0 5px rgb(36, 36, 36);
  border-radius: 6px;
  overflow: hidden;
  transition: 0.5s;
}

.cuisine:hover {
  transform: scale(1.05); /* Moins extrême pour éviter les problèmes sur petits écrans */
}

.image_produits img {
  height: 200px;
  width: 100%; /* S'adapte à la largeur du conteneur */
  object-fit: cover;
}

.content, .prix, .titre {
  margin: 1rem 0;
  text-align: center;
}

.prix, .titre {
  font-size: 1.25rem; /* Taille ajustée */
}

.boutonconsulterproduit {
  display: block; /* Pour s'assurer qu'il s'étend */
  margin: 1rem auto; /* Centrer le bouton */
  padding: 0.5rem 2rem; /* Ajuster le padding */
  width: auto; /* S'adapte au texte */
}

/* Media Queries pour les écrans plus petits */
@media (max-width: 768px) {
  #produits h1 {
    font-size: 60px; /* Plus petit pour les appareils mobiles */
    margin-top: 80px; /* Ajustement de la marge supérieure */
    margin-bottom: 20px;
  }

  .produits_list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Colonnes plus petites */
  }

  .prix, .titre {
    font-size: 1rem; /* Texte plus petit pour s'adapter */
  }
}

/************************** page consulter produit ********************/
.boutonretour{
  position: relative;
  text-decoration: 0;
  background: rgb(36, 36, 36);
  color: #fff;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 16px;
  height: 50px;
}

/* Style pour le conteneur principal */
#un_produit {
  display: flex;
  justify-content: space-between;
  margin: 20px; /* Espace entre les éléments et les bords de la page */
  margin-top: 150px;
  height: 100vh;
}

/* Style pour la partie gauche (image) */
.imageproduit-seul {
  flex: 1; /* Pour que la partie image prenne la moitié de l'espace */
  margin-right: 20px; /* Espace entre la partie image et la partie texte */
  margin-top: 150px;
  margin-left: 60px;
}

.produitimage img {
  width: 90%; /* Pour que l'image remplisse entièrement la partie image */
}

/* Style pour la partie droite (titre, description, prix) */
.textproduit-seul {
  flex: 1; /* Pour que la partie texte prenne la moitié de l'espace */
  margin-right: 60px; /* Espace entre la partie image et la partie texte */
  margin-top: 150px;
  margin-left: 20px;
  text-align: center;
}

.produit-titre {
  margin-top: 30px;
  margin-bottom: 60px; /* Espace entre le titre et la description */
}

.produit-description {
  margin-bottom: 60px; /* Espace entre la description et le prix */
}

.produit-prix {
  font-weight: bold; /* Pour mettre en gras le prix */
  margin-bottom: 100px;
}

.boutonajouterpanier{
  position: relative;
  text-decoration: 0;
  background: rgb(36, 36, 36);
  color: #fff;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 16px;
  height: 50px;
}

/* Ajustements généraux pour le responsive */
@media (max-width: 768px) {
  #un_produit {
    flex-direction: column; /* Change la direction de flex pour superposer image et texte sur petits écrans */
    margin: 20px;
    margin-top: 100px; /* Ajuste l'espace au-dessus pour les petits écrans */
    height: auto; /* Permet à la hauteur de s'adapter au contenu */
  }

  .imageproduit-seul, .textproduit-seul {
    flex: none; /* Annule la règle flex: 1 pour que les conteneurs prennent la largeur disponible */
    margin: 0 auto; /* Centre les éléments sur petits écrans */
    margin-bottom: 10px; /* Ajoute de l'espace entre l'image et le texte */
  }

  .produitimage img {
    width: 100%; /* Permet à l'image de s'adapter à la largeur du conteneur */
  }

  .boutonretour, .boutonajouterpanier {
    width: 100%; /* Boutons en pleine largeur pour faciliter l'accès sur écrans tactiles */
    margin-top: 10px; /* Ajuste l'espace au-dessus du bouton */
  }

  .boutonretour{
    margin-bottom: 45px;
  }

  .produit-prix{
    margin-bottom: 35px;
  }
}

/* Style pour petits écrans spécifiques (par exemple, moins de 480px) */
@media (max-width: 480px) {
  .boutonretour, .boutonajouterpanier {
    padding: 10px; /* Ajuste le padding pour garder les boutons proportionnels */
  }
}


/************* page connexion et inscription *************/

/* note : jai pris le meme code de la page connexion et je lai collé dans la page inscription. Du coup ils ont les mêmes noms */

/* formulaire */

.container-connexion {
  padding: 2rem 1rem; /* Réduction du padding pour les petits écrans */
}

.container-connexion h1 {
  font-size: 110px; /* Taille de police ajustée pour les petits écrans */
  margin-bottom: 20px; /* Réduction de la marge */
  margin-top: 30px;
  font-family: "Great Vibes", cursive;
  text-align: center;
  font-weight: 500;
  font-style: normal;
}

.container-connexion button {
  background: rgb(36, 36, 36) !important;
  color: #ffffff;
}

.container-connexion button:hover {
  color: #fff;
}

.container-connexion a {
  color: rgb(36, 36, 36) !important;
}
.input-left {
  padding-right: 5px;
}
.input-right {
  padding-left: 5px;
}

.popup{
  position: fixed; /*fixer en fonction de la fenetre(=ecran)*/
  left: 0; /*par rapport au coté gauche. Donc il est collé a 0*/
  top: 90px; /* decale a 90 par rapport au haut de la fenetre */
}


@media (max-width: 768px) {
  .container-connexion {
    padding: 2rem; /* Encore plus petit pour les très petits écrans */
  }

  .container-connexion h1 {
    font-size: 2rem; /* Encore plus petite taille de police pour les écrans très petits */
    font-family: "Great Vibes", cursive;
  }

  /* Ajustement des inputs pour mieux s'adapter aux petits écrans */
  .input-left, .input-right {
    padding-right: 0;
    padding-left: 0;
  }

  .container-connexion button {
    width: 100%; 
    padding: 100%;/* Bouton pleine largeur pour faciliter l'interaction sur les petits écrans */
  }
}

/************** page panier ******************/

.container {             
  padding: 7rem 0; 
}

/* titre panier */
.mon-panier h1 {
  text-align: center;
  font-size: 110px;
  margin-bottom:40px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
  margin-top: 60px;
}

/* bouton retour cuisine */

.link{
  margin: 20px;
  width: 100%;
  position: relative;
  text-decoration: 0;
  background: rgb(36, 36, 36);
  color: #fff;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 25px;
  
}
 
.premiere_class{
  padding: 0%;
  margin-top: 45px;
}

.deuxieme_class{
  padding: 0%;
}
.total-panier{
  padding: 0%;
  margin-top: 45%;
  margin-bottom: 45px;
}

.troisieme_class text{
  display: inline;
}

@media (max-width: 773px) {
  .mon-panier h1{
    font-size: 75px; /* Encore plus petite taille de police pour les écrans très petits */
    font-family: "Great Vibes", cursive;
  }
}

/* page condition general */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 0; 
}

.conditiongeneral {
  padding: 20px;
  border-radius: 10px;
}

.conditiongeneral p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.conditiongeneral h1 {
  text-align: center;
  font-size: 110px;
  margin-bottom:40px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
  margin-top: 60px;
}

.conditiongeneral ol {
  list-style-type: decimal;
  margin-left: 20px;
}

.conditiongeneral ol li {
  margin-bottom: 10px;
}

.conditiongeneral ol li p {
  margin-bottom: 5px;
}

@media (max-width: 600px) {
  .container {
    padding: 7rem 0;
  }

  .conditiongeneral {
    padding: 10px;
  }

  .conditiongeneral h1{
    font-size: 2rem; /* Encore plus petite taille de police pour les écrans très petits */
    font-family: "Great Vibes", cursive;
  }
}


/* page FAQ */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 0; 
}

.faq {
  padding: 20px;
  border-radius: 10px;
}

.faq p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.faq h1 {
  text-align: center;
  font-size: 110px;
  margin-bottom:40px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
  margin-top: 60px;
}

.faq ol {
  list-style-type: decimal;
  margin-left: 20px;
}

.faq ol li {
  margin-bottom: 10px;
}

.faq ol li p {
  margin-bottom: 5px;
}

@media (max-width: 600px) {
  .container {
    padding: 7rem 0;
  }

  .faq {
    padding: 10px;
  }
}


/* page mention legal */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 0; 
}

.mentionlegal {
  padding: 20px;
  border-radius: 10px;
}

.mentionlegal p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.mentionlegal h1 {
  text-align: center;
  font-size: 110px;
  margin-bottom:40px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
  margin-top: 60px;
}

.mentionlegal ol {
  list-style-type: decimal;
  margin-left: 20px;
}

.mentionlegal ol li {
  margin-bottom: 10px;
}

.mentionlegal ol li p {
  margin-bottom: 5px;
}

@media (max-width: 600px) {
  .container {
    padding: 7rem 0;
  }

  .mentionlegal {
    padding: 10px;
  }

  .mentionlegal h1{
    font-size: 2rem; /* Encore plus petite taille de police pour les écrans très petits */
    font-family: "Great Vibes", cursive;
  }
}



/* page success */

#success h1{
  text-align: center;
  font-size: 110px;
  margin-bottom:40px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
  margin-top: 60px;
}

.success{
  flex-grow: 1; /* Le contenu principal prend tout l'espace disponible */
  display: flex; /* Utiliser Flexbox pour centrer le contenu */
  flex-direction: column; /* Orientation verticale des éléments flex */
  justify-content: center; /* Centrer le contenu verticalement */
  align-items: center; /* Centrer le contenu horizontalement */
  padding: 20px; /* Espacement autour du contenu */
}


/* page cancel */

#erreur{
  margin-top: 180px;
  width: 100%;
}

#erreur h1{
  text-align: center;
  font-size: 110px;
  margin-bottom:40px;
  font-family: "Great Vibes", cursive;
  font-weight: 500;
  font-style: normal;
  margin-top: 60px;
}

.erreur{
  flex-grow: 1; /* Le contenu principal prend tout l'espace disponible */
  display: flex; /* Utiliser Flexbox pour centrer le contenu */
  flex-direction: column; /* Orientation verticale des éléments flex */
  justify-content: center; /* Centrer le contenu verticalement */
  align-items: center; /* Centrer le contenu horizontalement */
  padding: 20px; /* Espacement autour du contenu */
  margin-top: 40px;
}

@media (max-width: 768px) {
  #erreur h1 {
    font-size: 85px; /* Réduire la taille de la police pour les tablettes */
    margin-top: 40px; /* Moins d'espace en haut */
  }
  #erreur {
    margin-top: 100px;
  }
}

/* Pour les téléphones mobiles */
@media (max-width: 480px) {
  #erreur h1 {
    font-size: 50px; /* Encore plus petit pour les téléphones */
    margin-top: 20px;
  }
  #erreur {
    margin-top: 60px;
  }
  .erreur {
    padding: 10px;
    margin-top: 20px;
  }
}