@font-face {
  font-family: "Lowe";
  src: url("../fonts/loew-medium-webfont.woff2") format("woff2"),
    url("../fonts/loew-medium-webfont.woff") format("woff"),
    url("../fonts/Loew-Medium.otf") format("opentype");
}
@font-face {
  font-family: "Lowe_bold";
  font-weight: bold;
  src: url("../fonts/loew-bold-webfont.woff2") format("woff2"),
    url("../fonts/loew-bold-webfont.woff") format("woff"),
    url("../fonts/Loew-Bold.otf") format("opentype");
}
@font-face {
  font-family: "Galeb_bold";
  font-weight: bold;
  src: url("../fonts/galeb_bold-webfont.woff2") format("woff2"),
    url("../fonts/galeb_bold-webfont.woff") format("woff"),
    url("../fonts/Galeb_Bold.otf") format("opentype");
}

@font-face {
  font-family: "Lowe_italic";
  src: url("../fonts/loew-mediumitalic-webfont.woff2") format("woff2"),
    url("../fonts/loew-mediumitalic-webfont.woff") format("woff"),
    url("../fonts/Loew-MediumItalic.otf") format("opentype");
}
body {
  font-family: "Lowe";
}
h1 {
  font-family: "Lowe", "Arial", sans-serif;
  font-weight: 400;
  font-size: 3em;
  margin-top: 100px;
  margin-bottom: 30px;
  text-transform: uppercase;
}
h2 {
  font-family: "Galeb_Bold", "Arial", sans-serif;
  font-size: 1.5em;
  margin-top: 50px;
  margin-bottom: 25px;
  text-transform: uppercase;
  padding: 12px 25px; /* Plus d'espace pour le fond */
  background-color: rgba(0, 0, 0, 0.6); /* Augmentation de l'opacité */
  backdrop-filter: blur(12px); /* Effet plus prononcé */
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
  width: 100%;
}
h3,
h4,
h5 {
  font-family: "Galeb_Bold", "Arial", sans-serif;
}
a {
  color: #e2711d;
}
a:hover {
  color: #ef904a;
}
.alert-danger {
  display: none;
}

.row {
  padding-bottom: 5px;
}
.form-control {
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.95); /* Quasi-opaque pour une lecture parfaite */
  color: #222;
}

/* Suppression des flèches dans les inputs de type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

#index > article {
  padding-top: 15vh;
}
#index > article img {
  margin: 40px 20px;
  max-height: 15vh;
}

#index > article > div {
  padding: 40px;
}

#index main {
  margin-top: 10vh;
}
#logo_index {
  max-height: 150px;
  margin: 40px;
}
#index a:hover {
  text-decoration: none;
}
.index_link {
  padding: 40px 0;
  font-size: 1.4em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  color: #fff;
  transition: all 0.5s ease-in-out;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-radius: 10px;
  font-family: "Galeb_Bold", "Arial", sans-serif;
  line-height: 30px;
  background-color: rgba(0, 0, 0, 0.4); /* Fond sombre pour contraste */
  backdrop-filter: blur(8px); /* Effet de flou pour isoler du fond */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
@media screen and (max-width: 450px) {
  .index_link {
    font-size: 1.2em;
  }
}

.index_link i {
  font-size: 34px;
  padding: 5px;
  display: block;
  height: 80px;
  border-radius: 40px;
  line-height: 68px;
  margin: 0 auto;
  width: 80px;
  text-align: center;
  color: #212529;
  background-color: #ffffff;
  margin-bottom: 20px;
  mix-blend-mode: screen;
  opacity: 0.9;
}
.index_link:hover,
.index_link:focus,
.index_link:active {
  text-decoration: none;
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}
.countdown_block {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 20px 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  line-height: 26px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.countdown_block strong {
  color: #e2711d;
}

#login_form {
  margin-top: 15vh;
}
#login_form a {
  color: white;
  cursor: pointer;
}
.liencompte {
  padding: 20px 0;
  font-size: 1em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  color: #fff;
  transition: all 0.5s ease-in-out;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-radius: 10px;
  text-align: center;
  line-height: 30px;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.liencompte i {
  font-size: 20px;
  padding: 5px;
  display: block;
  height: 40px;
  border-radius: 20px;
  line-height: 29px;
  margin: 0 auto;
  width: 40px;
  text-align: center;
  color: #212529;
  background-color: #ffffff;
  margin-bottom: 5px;
  mix-blend-mode: screen;
  opacity: 0.9;
}
.liencompte:hover,
.liencompte:focus,
.liencompte:active {
  text-decoration: none;
  transform: background-color 0.3s ease;
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background-color: #e2711d;
  border: 1px solid #c35e14;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:visited,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #e78339;
  border: 1px solid #e2711d;
}
.btn-primary:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem #e2711d;
}
body {
  background: url("../images/pdv2b.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #eee;
}

#index h3 {
  color: white;
  text-shadow: 1px 1px #000;
}
.navbar {
  background-color: #fff;
}
.navbar-brand {
  width: 100px;
  margin-right: 30px;
}
.nav-link i {
  font-size: 150%;
  display: block;
  float: left;
}

#commande .produit,
#catalogue .produit,
.produit {
  position: relative !important; /* CRITIQUE : Pour que l'absolute des inputs fonctionne */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  margin-top: 15px !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  height: 180px !important; /* Hauteur généreuse pour tout caser */
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}
.produit .row {
  padding-bottom: 0;
}
.illuproduit {
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%; /* L'image prend toute la hauteur */
  width: 30%;
  margin-right: 3%;
  float: left;
}
.details {
  width: 67%;
  float: right;
  padding: 10px 10px 0 0; /* Un peu plus de padding */
  color: #222;
}
.infobulle {
  background-color: #e2711d;
  color: #eee;
  border-radius: 12px;
  width: 24px;
  text-align: center;
  height: 24px;
  line-height: 24px;
  float: right;
  cursor: pointer;
  margin-right: 10px;
  font-family: "Times New Roman", Times, serif;
  font-size: 19px;
  font-weight: 700;
}
.details > b,
.produit-meta b {
  line-height: 18px;
  display: block;
  font-family: "Galeb_bold";
  height: 38px; /* Un peu plus pour les longs noms */
  overflow: hidden;
  margin-bottom: 5px; /* Espace sous le titre */
}
.produit-meta small {
  display: block;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.2;
}
.small-text {
  font-size: 0.75rem;
  font-style: italic;
  display: block;
  margin-top: 2px;
}

.modal-content {
  color: #222;
}
#commande .produit img,
#catalogue .produit img {
  width: 90px;
  max-height: 90px;
  overflow: hidden;
  margin-top: 4px;
}
.qtecommande {
  position: absolute;
  height: auto;
  bottom: 12px !important; /* Forçage de l'ancrage en bas */
  width: 94%;
}
.qte-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px; /* Espace sous le label */
  line-height: 1;
  letter-spacing: 0.5px;
}
.modal-footer {
  justify-content: flex-start;
}
.infospdv {
  padding: 20px;
  margin-top: 15px;
  font-family: "Lowe";
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: none;
}
.infospdv i {
  font-size: 26px;
  padding: 5px;
  display: inline-block;
  height: 40px;
  border-radius: 20px;
  line-height: 29px;
  margin: 0 auto;
  width: 40px;
  text-align: center;
  color: #212529;
  background-color: #ffffff;
  margin-bottom: 10px;
  margin-right: 5px;
  mix-blend-mode: screen;
  opacity: 0.9;
}
#barre_total {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  border: 1px solid gray;
  background-color: #eee;
  color: #222;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
#btn_reglement {
  width: 120px;
  display: inline-flex;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.8em;
  letter-spacing: 1.5px;
  padding-left: 20px;
  padding-right: 20px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#cb {
  width: 20px;
  margin-top: 2px;
  position: absolute;
  transform: translateX(50px);
  opacity: 0;
  -webkit-transition: all 0.25s cubic-bezier(0.14, 0.59, 1, 1.01);
  transition: all 0.15s cubic-bezier(0.14, 0.59, 1, 1.01);
  margin: 0;
  padding: 0 5px;
}

#btn_reglement:hover #cb {
  width: 20px;
  opacity: 1;
  transform: translateX(40px);
}
.pass-status {
  cursor: pointer;
  color: #555;
  position: absolute;
  top: 2px;
  right: 15px;
  height: 34px;
  padding-top: 8px;
  width: 34px;
  text-align: center;
}

#map {
  height: 450px;
  width: 100%;
  margin-top: 40px;
}
/* Modale recap commande */
#table_recap {
  background-color: white;
  color: #212529;
  font-size: 0.9em;
}
#table_recap tr:hover {
  color: #212529;
}
#table_recap tr td {
  border-top: none;
  padding: 0.3rem;
}
#btn_valider {
  text-transform: uppercase;
  color: white;
}
.illubenevoles {
  background: url("../images/entraide-voisin.jpg") top center no-repeat;
  background-size: cover;
  min-height: 100%;
  border: 1px solid #fff;
}
.table-sm td,
.table-sm th {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
.table {
  color: #eee;
}
table.table tbody tr:hover {
  color: #e2711d;
}
footer {
  color: #ccc;
  font-size: 80%;
}
footer a {
  color: #ddd;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}

.glass-panel {
  background-color: rgba(0, 0, 0, 0.6); /* Augmentation de l'opacité */
  backdrop-filter: blur(15px); /* Effet plus prononcé */
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  margin-top: 110px; /* Augmentation de l'espace sous la barre fixed-top */
  margin-bottom: 50px;
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.glass-panel h1 {
  margin-top: 0;
  margin-bottom: 40px;
}
.glass-panel label {
  color: #fff;
  font-weight: 600;
}

/* Amélioration des champs de formulaire pour le contraste */
.form-control {
  background-color: rgba(255, 255, 255, 0.9) !important; /* Presque opaque pour la saisie */
  color: #333 !important;
  border: 1px solid #ccc;
  height: calc(1.5em + 1.25rem + 2px);
  padding: 0.625rem 1rem;
}

select.form-control {
  background-color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
}

.form-control:focus {
  background-color: #fff !important;
  box-shadow: 0 0 0 0.2rem rgba(226, 113, 29, 0.25);
  border-color: #e2711d;
}
