@font-face {
    font-family: 'Jakarta';
    src: url("../fonts/static/PlusJakartaSans-Bold.ttf") format("truetype");
}
@font-face {
    font-family: 'Old';
    src: url("../fonts/Old_Standard_TT/OldStandardTT-Regular.ttf") format("truetype");
}
@font-face {
    font-family: 'Old italic';
    src: url("../fonts/Old_Standard_TT/OldStandardTT-Italic.ttf") format("truetype");
}
body {
    font-family: 'Palatino', sans-serif;
    background: #fff;
    color: #333;
    margin: 0;
}
h1 {
    font-family: 'Palatino';
    color: #fff;
    text-align: center;
    font-size: 4.8em;
    text-shadow: 8px 8px 4px #222;
}
header {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.subtitle {
    font-family: 'Palatino';
    color: #fff;
    text-align: center;
    font-size: 2.4em;
    font-weight: bolder;
    text-shadow: 8px 8px 4px #222;
}
input[type=checkbox] {
    transform: scale(1.8);
    margin-left: 8px;
}
/*
.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: top / contain no-repeat url('/images/castelgrande.jpg');
}

.sidebar {
    width: 200px;
    background: #c5a880;
    padding: 1rem;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo img {
    max-width: 190px;
    margin-bottom: 1rem;
}
    */
nav {
    /*border-bottom: 1px solid black;*/
    border-radius: 4px;

}
.nav-top {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}
.navbar-top {
    width: 76%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto;
}
.navbar-admin {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto;
    background-color: lightblue;
}
.navbar-admin a:hover {
    text-decoration: underline;
}
nav a {
    display: block;
    margin: 00;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    padding: 0.7rem 2.4rem;
    transition: background 0.2s;
}
.navbar-up {
    width: 100%;
    margin-top: 15px;
    padding: 0 1.2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /*box-shadow: 0 3px 15px gray inset;*/
}
.paginator {
    display: flex;
    justify-content: center;
}
#per_page {
    height: 25px;
    overflow: auto;
}
.search-form{
    margin-right: 0;
    width: 46%;
}
.btn-search {
    background-color: white;
    color: #198754;
}
.btn-search:hover {
    background-color: #198754;
    color: white;
}
.nav-links-pro {
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}
.nav-link-pro {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 165px;
    min-width: 145px;
    /*height: 55px;*/
    background-color: #00325f;
    color: #eee;
    padding: 0.8rem;
    border-radius: 7px;
    text-decoration: none;
    transition:
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out,
        transform 0.2s;
}
.nav-link-pro:hover {
    background-color: rgba(0, 66, 153, .7);
    /*background-color: #c5a880;*/
    color: #fff;
    box-shadow: 0 3px 7px gray;
}
.navlink-contact {
    margin-left: 1.7rem;
}
.navlink-espace-pro {
    margin: 0 1.7rem;
}
.login-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 145px;
    /*height: 55px;*/
    background-color: #00325f;
    color: #eee;
    padding: 0.8rem;
    border: none;
    border-radius: 7px;
    text-decoration: none;
    transition:
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out,
        transform 0.2s;
}
.login-button:hover {
    background-color: rgba(0, 66, 153, .7);
    /*background-color: #c5a880;*/
    color: #fff;
    box-shadow: 0 3px 7px gray;
}
.icone {
    width: 25px;
    margin-right: 8px;
}
.icone-contact {
    width: 25px;
    margin-right: 20px;
    margin-left: 5px;
}
.logo {
    height: 130px;
    margin: 0.7rem;
    margin-left: 0.4rem;
}
.banner {
    /*width: 85%;*/
    flex-grow: 4;
    background: top / cover no-repeat url('/images/castelgrande_r.jpg');
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    height: 480px;
}
.banner h1 {
    margin-top: 4.8rem;
}
.banner a {
    width: 200px;
    margin: 0 auto;
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    text-shadow: 8px 8px 3px #222;
}
.banner a:hover {
    text-decoration: underline;
}
.search-word {
    display: inline;
    color: #198754;
}
/*================ Navbar ASIDE =====================*/
    .main-top {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: flex-start;
    }
    .navbar-aside li {
        list-style-type: none;
        background-color: #fddbb0;
        box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
        border-radius: 7px;
        transition: all 0.2s ease-in-out;
    }
    .navbar-aside a {
        color: #000;
        border: 1px solid #777;
        border-radius: 7px;
    }
    .navbar-aside li:hover {
        background-color: rgb(255, 234, 209);
        box-shadow: 0 1px 10px gray;
    }
    .featurette-wrapper {
        width: 60%;
        margin-top: 2rem;
        margin-left: 20%;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .featurette-image img {
        max-height: 380px;
        margin: 0 auto;
    }

    .featurette-text {
        width: 40%;
        align-self: center;
    }
    .featurette-image {
        /*max-width: 38%;*/
        display: flex;
        justify-content: end;
    }
    .navbar-aside {
        margin-top: 1.2rem;
        margin-left: 1.2rem;
        min-width: 200px;
        max-width: 270px;
        padding: 0;
        align-items: center;
        display: flex;
    }
    .navbar-aside ul {
        padding: 0;
        margin: 0;
    }
    .navbar-aside li {
        margin: 0.8rem 0;
    }
/*================ Fin de Navbar ASIDE =====================*/
/*============== Breadcrumbs ========================*/
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
.breadcrumbs li {
    list-style-type: none;
    margin-right: 0.8rem;
}
.breadcrumbs li a {
    text-decoration: none;
    color: black;
}
.breadcrumbs li a:hover {
    text-decoration: underline;
    color: #333;
}
/*=============== Fin de Breadcrumbs ================*/
.sidebar nav a:hover {
    background: #e0d4c1;
}
.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}
.grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    padding: 0 1.2rem;
}
.produit {
    width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInCard 0.6s ease forwards;
    opacity: 0;
}
.produit:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.produit img {
    max-width: 270px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.produit a {
    text-decoration: none;
}
.produit a:hover {
    background: #8b2e2e;
    text-decoration: underline;
}
.produit h2 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
.form-button {
    width: 105px;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.form-button-container a {
    display: inline-block;
    width: 105px;
    height: 40px;
    border-radius: 5px;
}
.produit .button-edit {
    background: #198754;
}
.produit .button-edit:hover {
    background: #f7d2a1;
    color: #000;
}
.produit .button-delete {
    background: #8b2e2e;
}
.produit .button-delete:hover {
    background: #b64b4b;
}
.fade-in {
    animation: fadeInPage 1s ease forwards;
    opacity: 0;
}
/*------------------- Login Form -------------------------*/
.login-form {
    width: 50%;
    min-width: 350px;
    max-width: 650px;
    margin: 0 auto;
    padding: 3.2rem 0;
}
/*------------------- Fin de Login Form ------------------*/
/*------------------ Modal Window -------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  padding: 6.4rem 0;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
/*------------Fin de Modal Window -------------------*/
@keyframes fadeInPage {
    to { opacity: 1; }
}
@keyframes fadeInCard {
    to { opacity: 1; }
}
@media (max-width: 500px) {
    .banner {
        height: 350px;
        background: top / cover no-repeat url('/images/castelgrande_r.jpg');
    }
    form {
        display: flex;
        flex-direction: column;
        margin-bottom: 1.2rem;
    }
}
@media (max-width: 900px) {
    .navbar-up {
        flex-direction: column;
    }
    .nav-link-pro {
        margin: 1.2rem;
    }
    .search-form {
        margin: 0 auto;
    }
    .nav-link-pro {
        margin-bottom: 0;
    }
    .nav-links-pro {
        margin-top: 0.8rem;
    }
}
@media (min-width: 1600px) {
    .banner {
        background-position: 0px -50px;
    }
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
    .sidebar nav a {
        margin: 0 0.5rem;
    }
    .content {
        padding: 1rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/*=============== Importé de proposition_3 =======================*/
/*
.search-form {
    max-width: 450px;
    margin-right: auto;
}
    */
main {
    width: 100%;
    margin: 0 auto;
}
/*
.produits-container {
    max-width: 900px;
    background-color: white;
    border-radius: 25px;
    border: 1px solid #777;
}
.produits-container img {
    border-radius: 25px;
    border: 1px solid #777;
}
    */
.section-up, .section-down {
    width: 100%;
    margin-top: 9.6em;
    margin-bottom: 6.4rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.section-up img {
    max-width: 300px;

}
.section-left {
    width: 45%;
    max-width: 470px;
    padding: 20px;
    color: #eee;
    text-decoration: none;
    background-color: #c5a880;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 10px;
    transition: box-shadow 0.3s ease-in-out;
    border-radius: 7px;
}
.section-left:hover {
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.65) 0px 5px 15px;
}
.section-left img {
    max-height: 300px;
    width: auto;
    margin: 1.2rem 0;
    border-radius: 7px 7px 0 0;
}
.section-left-text {
    width: 100%;
    height: 100%;
    color: #000;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.section-left-text h5 {
    font-style: italic;
}
.section-right {
    width: 45%;
    justify-content: space-evenly;
    display: flex;
    flex-wrap: wrap;
    align-content: space-evenly;
}
.section-small-item {
    text-align: center;
    width: 45%;
    min-width: 120px;
    background-color: #f0dcbf;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    transition: box-shadow 0.3s ease-in-out;
    text-decoration: none;
    color: #333;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.section-small-item:hover {
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.55) 0px 5px 18px;
}
.section-small-item img {
    max-height: 250px;
    width: auto;
    max-width: 200px;
    margin: 25px auto 0.8rem;
    border-radius: 7px 7px 0 0;
}
.section-small-item-text {
    width: 100%;
    padding: 0.8rem;
    margin: 0;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.section-small-item-text h5 {
    font-style: italic;
}
.ask-pro {
    margin-bottom: 2.4rem;
    text-align: center;
}
.ask-pro a {
    color: #198754;
    text-decoration: none;
    background-color: #fff;
    padding: 0.4rem;
    border-radius: 8px;
    text-decoration: underline;
    transition: all 0.123s ease-in-out;
}
.ask-pro a:hover {
    background-color: #2da06a;
    color: white;
    border-radius: 8px;
}
.small-cards {
    max-width: 1350px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 90%;
    margin: 0 auto;
}
.small-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20%;
    max-width: 250px;
    min-width: 220px;
    background-color: #fddbb0;
    margin: 1.6rem 0.4rem;
    border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: #333;
}
.small-card img {
    max-width: 100%;
    max-height: 300px;
    background-color: white;
    border-radius: 25px;
}
.small-card:hover {
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.55) 0px 5px 18px;
    background-color: rgb(255, 234, 209);
}
.small-card-image-container {
    height: 300px;
    border-radius: 25px;
    background-color: white;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    padding: 1.2rem;
}
footer {
    padding: 0.8rem;
    background-color: #00325f;
    color: white;
}
footer li {
    list-style-type: none;
}
footer a {
    color: #eee;
    text-decoration: none;
}
.newletter {
    margin-top: 6.4rem;
}
.newsletter-form {
    width: 50%;
    margin: 1.2rem auto 6.4rem;
}
/*============== Contact Form ====================*/
.form-page {
  width: 75%;
  margin: 3.2rem auto;
}
/*============== Fin de Contact Form ===============*/
  .pro-form-page {
    width: 75%;
    margin: 6.4rem auto;
    margin-bottom: 16rem;
  }
  .pro-contact-form {
    display: flex;
    flex-direction: column;
    width: 50%;
    min-width: 300px;
    margin: 0 auto;
  }
  /*============== Page produit =======================*/
  .product-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }
  .product-wrapper {
    width: 800px;
    margin: 0 auto 1.8rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
}
  .image-product {
    max-width: 420px;
    margin-right: 2.4rem;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, 0.55) 0px 5px 18px;
  }
  .product-description {
    width: 33%;
    display: flex;
    flex-direction: column;
  }

.quantity {
    width: 120px;
    padding: 0.8 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    border: 1px solid grey;
    border-radius: 70px;
}
.minus {
    border-right: 1px solid grey;
    padding-right: 10px;
}
.plus {
    border-left: 1px solid grey;
    padding-left: 10px;
}
.minus:hover {
    cursor: pointer;
}
.plus:hover {
    cursor: pointer;
}
.product-add {
    width: 780px;
    margin: 1.6rem auto 3.2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #aaa;
    padding: 0.2rem 6.8rem;
    border-radius: 5px;
}
.product-add-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}
  .product-add-item h5 {
      margin-right: 0.8rem;
}
.product-add-item img {
    width: 60px;
}
  /*============== Fin de Page produit =======================*/
