@font-face {
  font-family: "Poppins";

  src: url("../font/Poppins/Poppins-Bold.ttf") format("truetype");

  font-weight: normal;

  font-style: normal;
}

@font-face {
  font-family: "Avenir";

  src: url("../font/Avenir.ttc") format("truetype");

  font-weight: normal;

  font-style: normal;
}

.text-muted {
  display: flex;
  margin-top: 0;
  color: #002798;
  text-align: center;
  justify-content: center;
}
body {
  background-color: #f1f8ff;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

header {
  z-index: 100000;
  background-color: #002798;
  display: flex;
  flex-wrap: wrap;
  position: fixed;
  left: 0;
  top: 0;
  height: 100px;
  width: 100%;
  color: #f1f8ff;
  align-items: center;

  justify-content: space-between;
}
header img {
  margin-left: 20px;
  width: 80px;
  height: 80px;
}
span {
  color: #ff7f00;
}
header h1 {
  margin-left: 20px;
}
main {
  justify-content: center;
  margin-top: 100px;
}
footer {
  background-color: #002798;
  display: flex;
  position: fixed;
  left: 0;
  bottom: 0;
  color: #f1f8ff;
  height: 50px;
  width: 100%;
  justify-content: center;
  align-items: center;
}
/* Style général de la balise progress */
progress {
  -webkit-appearance: none; /* Supprime le style par défaut */
  appearance: none;
  width: 400px;
  height: 40px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #f1f8ff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Style de la barre remplie (Chrome, Safari, Edge) */
progress::-webkit-progress-bar {
  background-color: #f1f8ff;
  border-radius: 20px;
  border: #ff7f00 3px solid;
}

progress::-webkit-progress-value {
  background-color: #ff7f00;
  border-radius: 0px 20px 20px 0px;
  transition: width 0.4s ease;
}

/* Style de la barre remplie (Firefox) */
progress::-moz-progress-bar {
  background: linear-gradient(90deg, #007bff, #00c6ff);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Facultatif : animation de progression */
@keyframes progress-animate {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

progress.animated::-webkit-progress-value {
  background-size: 40px 40px;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.3) 0,
    rgba(255, 255, 255, 0.3) 10px,
    transparent 10px,
    transparent 20px
  );
  animation: progress-animate 1s linear infinite;
}

main {
  width: 100%;
  display: flex;

  flex-direction: column;
  flex-wrap: wrap;
}

.allprojet {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  color: #002798;
  justify-content: center;
}
.log {
  width: 50%;
  display: flex;
  flex-direction: row;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 400px;
}
.top a {
  text-decoration: none;
  color: #002798;
  border: 2px solid #002798;
  border-radius: 100px;
  background-color: #f1f8ff;
  padding: 5px;
  padding-left: 15px;
  padding-right: 15px;
  z-index: 1000;
  cursor: pointer;
}
.top p {
  font-size: 30px;
}

.top a:hover {
  background-color: #002798;
  color: #f2f2f2;
}
.projet {
  margin: 10px;
  display: flex;
  flex-direction: row;
  width: auto;

  border: 5px solid #002798;
  padding: 10px;
  justify-content: space-around;
  border-radius: 20px;
}

.projet img {
  width: 200px;
  height: 300px; /* Ajoute une hauteur fixe (ajuste cette valeur selon ton goût) */
  object-fit: cover; /* LA SOLUTION : Ça remplit le cadre sans déformer l'image (ça coupe un peu les bords si besoin) */

  position: relative;
  border: 5px solid #002798;
  border-radius: 10px;
}

.timer__grid {
  color: #002798;
}
.timer__label {
  color: #f1f8ff;
}
.timer {
  align-items: center;
  margin: 10px;
  width: 600px;
  color: #f1f8ff;
  display: flex;
  flex-direction: row;
  right: 0;
  position: relative;
  zoom: 75%;
  border-radius: 20px;
}
.timer__label {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.75;
}
.timer__grid {
  flex-direction: row;
  display: flex;
}
.unit {
  background-color: #f1f8ff;
  margin: 10px;
  border-radius: 10px;
  min-width: var(--digit-w);
  padding: 10px 12px;
  text-align: center;
  position: relative;
}
.unit__value {
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.unit__name {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

@media (max-width: 520px) {
  :root {
    --digit-w: 66px;
    --gap: 10px;
  }
}

.droite {
  margin-left: 20px;
}

.video-round {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

.video-round video {
  zoom: 25%;
  width: 100%;
  height: 100%;
  object-fit: none; /* remplissage sans bord noir */
  border-radius: 50%;
  display: block;
}
.img {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 750px) {
  .timer {
    display: none;
  }
  .log h1,
  .log span {
    font-size: 20px;
  }
  .log img {
    width: 50px;
    height: 50px;
  }
  header {
    width: 100%;
    height: 90px;
  }
  .log {
    width: 100%;
  }
  .top a:hover {
    text-decoration: none;
    color: #002798;
    border: 2px solid #002798;
    border-radius: 100px;

    padding: 5px;
    padding-left: 15px;
    padding-right: 15px;
    z-index: 1000;
    cursor: pointer;
    background-color: #f1f8ff;
  }
}

@media screen and (max-width: 930px) {
  .timer {
    display: none;
  }
  .log h1,
  .log span {
    font-size: 20px;
  }
  .log img {
    width: 50px;
    height: 50px;
  }
  header {
    width: 100%;
    height: 90px;
  }
  .log {
    width: 100%;
  }
}
