@import "/common.css";
:root {
  --header-height: 60px;
}

body { 
   padding-top: 60px /*var(--header-height)*/; 
   font-family: 'Segoe UI', Arial, sans-serif; 
   margin: 0; 
   background: #f3f3f3; 
}
header { 
   background: linear-gradient(90deg, #0000ff,#00bbff,#0000ff);
   color: #fff;
   /*padding: 1rem 2rem;*/
   display: flex;
   align-items: center;
   justify-content: space-between; 
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--header-height);
   z-index: 1000;  
   min-width: 0;
}
header h1 { 
   margin: 0;
   font-size: 1.5rem; 
}
header nav {
   flex-shrink: 1;
   min-width: 0;
   overflow-x: auto;
   white-space: nowrap;
}
.bartxt { 
   color: #fff; 
   text-decoration: none;
   font-weight: 500; 
}
.search-bar { 
   margin: 2rem auto;
   max-width: 600px;
   display: flex; 
}
.search-bar input { 
   flex: 1; 
   padding: 0.75rem; 
   border: 1px solid #ccc; 
   border-radius: 4px 0 0 4px;
   font-size: 1rem; 
}
.search-bar button {
   padding: 0.75rem 1.5rem;
   border: none; 
   background: #0078d7; 
   color: #fff;
   border-radius: 0 4px 4px 0;
   cursor: pointer; 
}
.container {
   height: calc(100vh - var(--header-height) - 10px);
   border-spacing: 10px;
   border-radius: 10px;
   right: 10px;
   left: 10px;
   padding: 10px 10px; /* Ajoute du "rempourage" horizontal */
}
.app-grid {
   display: grid;
   grid-template-columns: repeat(
      auto-fit,
      minmax(220px, 1fr)
   );
   gap: 2rem; 
   padding: 2rem; 
}
.app-card { 
   background: #fff;
   border-radius: 8px; 
   box-shadow: 0 2px 8px rgba(0,0,0,0.06);
   padding: 1.5rem;
   display: flex;
   flex-direction: column;
   align-items: center; 
   background-size: cover; 
   background-position: center;
}
.app-card img { 
   width: 64px;
   height: 64px;
   border-radius: 12px;
   margin-bottom: 1rem; 
}
.app-card h2 { 
   font-size: 1.1rem;
   margin: 0.5rem 0; 
}
.app-card p {
   color: #555;
   font-size: 0.95rem;
   margin: 0.5rem 0 1rem 0;
   text-align: center; 
}
button {
   background: #0078d7;
   color: #fff;
   border: none;
   padding: 0.5rem 1.2rem;
   border-radius: 4px;
   cursor: pointer;
   font-weight: 500; 
}
@media (max-width: 600px) {
   .app-grid {
      padding: 1rem; gap: 1rem; 
   }
   .search-bar {
      margin: 1rem;
   }
}

@media (orientation: portrait) {
   .search-bar, nav {
      display: none;
   }
   #sidenav {
      display: block;
      height: 100%; 
      width: 0; 
      position: fixed; 
      z-index: 1; 
      top: 0; 
      left: 0;
      background-color: #fff; 
      overflow-x: hidden; 
      padding-top: 60px; 
      transition: 0.5s; 
      opacity: 1;
   }
   #sidenav a {
      padding: 8px 8px 8px 32px;
      text-decoration: none;
      font-size: 25px;
      color: #818181;
      display: block;
      transition: 0.3s;
   }

   #sidenav a:hover {
      color: #f1f1f1;
   }

   #sidenav .closebtn {
      position: absolute;
      top: 0;
      right: 25px;
      font-size: 36px;
      margin-left: 50px;
   }
   header nav {
      display: none;
      opacity: 1;
   }
}
@media (orientation: landscape) {
   #sidenav, navbutton {
      display: none;
   }
   header {
      opacity: 0.8;
   }
   header nav {
      flex-shrink: 1;
      min-width: 0;
      overflow-x: auto;
      white-space: nowrap;
   }
   nav a { 
      color: #fff; 
      margin-left: 2rem;
      text-decoration: none;
      font-weight: 500; 
   }
}