/*------------------------------------*\
    		$Version Mobile
\*------------------------------------*/

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.bg {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 500% 500%;
    background-image: linear-gradient(-45deg, rgb(47, 53, 236) 0%, rgb(54, 145, 190) 25%, rgb(93, 45, 212) 51%, #3564ff 100%);
    -webkit-animation: AnimateBG 10s ease infinite;
    animation: AnimateBG 10s ease infinite;
  }
  
  @-webkit-keyframes AnimateBG {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes AnimateBG {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #f8f9fa;
}

header {
    background: linear-gradient(to bottom, #0056b3, #007bff);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid;
}

header h1 {
    font-size: 24px;
    margin: 0;
}

#logo {
    max-width: 200px;
    margin-right: auto;
}

nav {
    display: none;
    flex: 1;
    justify-content: center;
    align-items: center;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

nav a:hover {
    background-color: #0056b3;
}

main {
    flex: 1;
    padding: 20px;
}

footer {
  background: linear-gradient(to bottom, #0056b3, #007bff);
  padding: 20px;
  color: #fff;
  text-align: center;
  position: relative;
}

#err1 {
    font-size: 24px;
    color: #ff0000;
}

#searchform {
    text-align: center;
    margin-top: 20px;
}

#bouton {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#bouton:hover {
    background-color: #0056b3;
}

img.zoomable-image {
    width: 130px;
    height: 140px;
}

.images {
    margin-top: 20px;
    background-color: rgb(66, 100, 230);
    opacity: 100%;
    display: flex;
}

.images p {
    margin: 10px;
}


@media screen and (max-width: 480px) {
    header {
        flex-direction: column; /* Stack elements vertically */
        text-align: center; /* Center-align text */
    }

    nav {
        display: flex; /* Show the navigation */
        order: 3; /* Move nav to the bottom of header */
        margin-top: 10px; /* Add some space between header and nav */
    }

    nav ul {
        flex-direction: column; /* Stack navigation items vertically */
    }

    nav ul li {
        margin: 10px 0; /* Add space between navigation items */
    }
}


/*------------------------------------*\
    		$Version Tablette
\*------------------------------------*/

@media screen and (min-width: 481px) and (max-width: 960px) {
	#conteneur {
		display: grid;
		grid-template-columns: 1fr 2fr;
	}
	header, #navi, footer {
		grid-column: 1 / 3;
	}
	aside {
		grid-column: 1 / 2;
	}
	#articles {
		grid-column: 2 / 3;
	}

	#navi{
		display: flex;
		flex-direction: row;
		justify-content: space-evenly;
	}

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    nav ul {
        display: flex;
        list-style: none;
        padding: 10px;
    }
    
    nav ul li {
        margin: 0 15px;
    }

	.tri-collection>select{
		width: 100%;
	}

	#footer-inner{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}
}

/*------------------------------------*\
    		$Version Desktop
\*------------------------------------*/

@media screen and (min-width: 961px) {
    h1{
        display: flex;
        justify-content: left;
    }

    p{
        display: flex;
        justify-content: left;
    }

	#conteneur{
		display: grid;
		grid-template-columns: 1fr 2fr 1fr;
	}
	header, footer{
		grid-column: 1 / 4;
	}
	#navi{
		flex: auto;
        align-items: center;
        justify-content: center;
	}
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    nav ul {
        display: flex;
        list-style: none;
        padding: 10px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    }
	#produits{
		grid-column: 2 / 3;
		grid-row: 2 / 3;
	}
	aside{
		grid-column: 3 / 4;
	}

	#produits>article{
		width: 33%;
	}

	.tri-collection>select{
		width: 100%;
	}

	#footer-inner{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		width: 92%;
	}