body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header nav {
    margin-top: 15px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #e0e0e0;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cineaste-category {
    margin-bottom: 40px;
}

.cineaste-category h2 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.cineaste-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive grid */
    gap: 25px;
    justify-content: center;
}

.cineaste-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cineaste-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cineaste-card h3 {
    color: #2196F3;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.cineaste-card p {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #555;
}

.cineaste-card p strong {
    color: #333;
}

.cineaste-card .roles {
    margin-top: 10px;
    font-size: 0.85em;
    color: #777;
    font-style: italic;
}

.no-cineaste-message {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px;
    grid-column: 1 / -1; /* Permet au message de prendre toute la largeur de la grille */
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #333;
    color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        margin: 20px 15px;
        padding: 20px;
    }
    header h1 {
        font-size: 2em;
    }
    .cineaste-category h2 {
        font-size: 1.8em;
    }
    .cineaste-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    .cineaste-list {
        grid-template-columns: 1fr; /* Une seule colonne sur très petits écrans */
        gap: 15px;
    }
    .cineaste-card {
        padding: 15px;
    }
}
/*code css de profil, partage et notification*/
.top-right-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 10px 10px 0 0;
}

.icon-btn {
  background: linear-gradient(to bottom right, #222, #000);
  border: none;
  padding: 10px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.icon-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(100%) invert(1); /* rend l’icône blanche */
}
/*fin code partage......*/

/*code css pour navigation de bas*/
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #222;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 5px 0;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.nav-item {
  text-align: center;
  color: white;
  text-decoration: none;
  font-size: 12px;
  flex: 1;
}

.nav-item img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto 2px;
  filter: invert(1); /* rend l’icône blanche */
}

.nav-item:hover {
  background-color: #333;
  border-radius: 10px;
}
/*fin du code navigation de ba*/

/*code pour les rubrques cinéaste*/
.categories-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-button {
  background-color: #1c1c1e;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 14px;
  min-width: 90px;
  transition: background-color 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.category-button i {
  font-size: 20px;
  margin-bottom: 6px;
}

.category-button:hover {
  background-color: #333;
}

.category-button.selected {
  border: 2px solid rgb(109, 108, 106);
}

nav {
  background: #000;
  padding: 10px;
  text-align: center;
}

nav a {
  color: #f1f1f1; /* blanc doux */
  margin: 0 15px;
  font-size: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.3s;
}

nav a:hover {
  transform: scale(1.2); /* zoom discret */
  color: #ddd; /* gris clair au survol */
}

nav a:active {
  color: #aaa; /* couleur plus douce au clic */
}

nav i {
  pointer-events: none;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #222;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 5px 0;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.nav-item {
  text-align: center;
  color: rgb(233, 232, 232);
  text-decoration: none;
  font-size: 12px;
  flex: 1;
}

.nav-item img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto 2px;
  filter: invert(1); /* rend l’icône blanche */
}

.nav-item:hover {
  background-color: #333;
  border-radius: 10px;
}
/*fin du code pour ces rubriques*/