/* Reset basique */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2e4d2c;
}

body {
  background: linear-gradient(135deg, #d6eadf, #a3c9a8);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #3a6e3a;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-weight: 700;
  font-size: 1.8rem;
}

nav button {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: #4a6a4a;
}

.infos .info {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
  overflow: hidden;
  align-items: center;
  padding: 1rem;
  transition: box-shadow 0.3s ease;
}

.infos .info:hover {
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.15);
}

.infos .info img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.infos .info.reverse {
  flex-direction: row-reverse;
}

.infos .info.reverse div {
  text-align: right;
}

.info div h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.3rem;
}

.info div p {
  color: #587158;
  font-size: 1rem;
}

.logo {
  height: 50px; /* taille du logo */
  vertical-align: middle; /* alignement avec le texte */
  margin-right: 10px;
}

.header-logo {
  width: 50px; /* taille du logo */
  height: 50px;
  border-radius: 12px; /* bords arrondis */
  margin-right: 12px;
  vertical-align: middle;
  /* léger dégradé avec filtre */
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3)) brightness(1.05);
}

/* Side Panel */
.side-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #f0f7f1;
  box-shadow: -3px 0 8px rgba(0,0,0,0.15);
  padding: 1.5rem 1rem;
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-panel.open {
  right: 0;
}

.side-panel button#close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #3a6e3a;
  align-self: flex-end;
  cursor: pointer;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.side-panel h3 {
  font-weight: 600;
  color: #3a6e3a;
  margin-bottom: 0.8rem;
}

.side-panel nav a {
  display: block;
  margin: 0.4rem 0;
  color: #3a6e3a;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 1px solid #3a6e3a;
  border-radius: 3px;
}

.side-panel nav a:hover {
  background: #a3c9a8;
  color: white;
}

.login-btn {
  display: inline-block;
  background: #7289da;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.btn {
  background: #3a6e3a;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  margin-top: 1rem;
  cursor: pointer;
}

.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Profile Section */
.profile-section {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
  text-align: center;
}

.blocked-section {
  max-width: 500px;
  margin: auto;
  background: #f7d6d6;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
  text-align: center;
  color: #900;
}