:root {
  --bg: linear-gradient(160deg, #111827 0%, #064e52 100%);
  --surface: #ffffff;
  --primary: #09b1ba;
  --primary-dark: #078a91;
  --text: #1a1a1a;
  --text-soft: #6b7280;
  --border: #e8e8e3;
  --accent: black;
  --radius: 14px;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.woff2");
  font-weight: normal;
  font-style: normal;
}

@import url("https://fonts.googleapis.com/css?family=Open+Sans&display=swap");

* {
  font-family: "Montserrat", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", serif;
  background: #eee;
}

main {
  max-width: 1200px;
  margin: auto;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content {
  width: 420px;
  margin-top: 100px;
}

.contenu {
  display: flex;
  gap: 24px;
}

.gauche {
  flex: 3;
}

aside {
  flex: 1;
}

footer {
  border-top: 1px solid #2e2e3e;
  margin-top: 0;
}

header {
  background-color: white;
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo h2 {
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  color: var(--primary);
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: 10px 18px;
  gap: 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.search:focus-within {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(9, 177, 186, 0.15);
}

.search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.search-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.icons img {
  height: 28px;
  width: 28px;
}

.icone-msg {
  position: relative;
  display: inline-block;
}

.badge-msg {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #dc3545;
  color: white;
  font-size: 0.7em;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px white;
  line-height: 1;
}

.nav-bar {
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 6px;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #09b1ba;
  border: 1px solid #aaa;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.nav-links a:hover {
  background-color: #eee;
  border-color: #888;
}

.nav-item {
  position: relative;
}

.nav-select {
  color: #555;
  background: white;
  border: 1px solid #aaa;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.nav-select:hover {
  background-color: #eee;
  border-color: #888;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  z-index: 100;
  min-width: 280px;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown-inner {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.nav-links .dropdown a {
  display: block;
  padding: 12px 22px;
  color: #333;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-links .dropdown a:hover {
  background: #f5f5f5;
  border: none;
  color: #000;
}

.btn-primary,
.btn-info,
.btn-outline,
.btn-warning,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

.btn-primary {
  background-color: #09b1ba;
  color: white;
}

.btn-info {
  background-color: #09b1ba;
  color: white;
}

.btn-warning {
  background-color: #ffc107;
  color: white;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  padding: 10px 20px;
}

.btn-outline {
  background: white;
  border: 1px solid #aaa;
  color: #333;
}

.btn-outline-primary {
  background: #09b1ba;
  border: 1px solid #aaa;
  color: white;
}

.btn-auth {
  width: 100%;
  padding: 14px;
  background-color: #09b1ba;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  cursor: pointer;
}

.btn-auth:hover {
  background-color: #09b1ba;
}

.promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #09b1ba;
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.astuces {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  gap: 16px;
  margin-top: 20px;
  background: white;
}

.astuces p {
  color: #666;
  font-size: 0.9em;
  margin: 8px 0;
}

.voir-plus {
  display: flex;
  align-items: center;
  text-align: center;
  color: #09b1ba;
  margin: 12px 0;
  text-decoration: none;
}

.voir-plus::before,
.voir-plus::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #09b1ba;
}

.voir-plus::before {
  margin-right: 16px;
}

.voir-plus::after {
  margin-left: 16px;
}

.section-titre {
  font-size: 18px;
  color: #333;
  margin: 20px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.section-titre + .annonces {
  margin-bottom: 8px;
}

.annonces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  width: 100%;
  margin-top: 10px;
}

.card {
  transition: transform 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: none;
}

.card:hover {
  transform: scale(1.03);
}

.carte {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: none;
  display: flex;
  flex-direction: column;
}

.carte:hover {
  transform: scale(1.03);
}

.carte a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.carte-body {
  display: flex;
  color: #333;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  flex: 1;
}

.carte-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: #09b1ba;
  font-weight: 600;
}

.carte-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
  font-size: 0.85em;
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.product-title {
  font-weight: 600;
  font-size: 0.88em;
  text-align: left;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-rating {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.rating-text {
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 4px;
}

.mini-annonces {
  display: flex;
  gap: 8px;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: none;
}

.mini-annonces a {
  flex: 1;
  text-decoration: none;
  border-radius: 6px;
  padding: 4px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.mini-annonces img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.mini-annonces p {
  color: #333;
  font-size: 0.8em;
  margin-top: 4px;
}

.profil-carte {
  background: white;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profil-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.profil-card h1 {
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 600;
}

.profil-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.profil-icon img {
  border-radius: 100%;
  width: 200px;
  height: 200px;
}

.profil-texte {
  color: #7f8c8d;
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.avatar {
  height: 24px;
  width: 24px;
  border-radius: 50%;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.badge {
  background-color: #28a745;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
}

.badge-vendue {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8em;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  z-index: 2;
}

.etoiles {
  color: orange;
  font-size: 0.9em;
}

.etoiles span {
  color: #666;
}

.etoiles-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 18px;
}

.etoiles-input input {
  display: none;
}

.etoiles-input label {
  font-size: 36px;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s;
}

.etoiles-input label:hover {
  color: orange;
}

.etoiles-input label:hover ~ label {
  color: orange;
}

.etoiles-input input:checked ~ label {
  color: orange;
}

.stars {
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 3px;
  margin: 6px 0;
}

.stars .bi-star {
  color: var(--border);
}

.avis-liste {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.avis-carte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.avis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.avis-auteur {
  font-weight: 600;
  font-size: 14px;
}

.avis-note {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1px;
}

.avis-texte {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.avis-moyenne {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.avis-moyenne .etoiles {
  color: var(--accent);
  letter-spacing: 1px;
}

.messagerie {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  min-height: 500px;
  align-items: start;
}

.messagerie-liste {
  flex: 1;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  max-width: 280px;
}

.messagerie-liste h3 {
  margin-top: 0;
  font-size: 16px;
  color: #555;
}

.messagerie-fil {
  flex: 2;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.messagerie-fil h3 {
  margin-top: 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.conv-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 4px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.conv-item:hover {
  background: #f5f5f5;
}

.conv-active {
  background: #eaf7f8;
  font-weight: 500;
}

.conv-non-lu span {
  font-weight: 700;
  color: #111;
}

.conv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc3545;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px white;
}

.messages-liste {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  margin-bottom: 12px;
  max-height: 400px;
}

.message-bulle {
  max-width: 70%;
  min-width: 120px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message-bulle p {
  margin: 0;
}

.message-envoye {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.message-recu {
  background: #f0f0f0;
  color: #333;
  margin-right: auto;
  border-bottom-left-radius: 2px;
}

.message-systeme {
  background: #fff8e1 !important;
  color: #333 !important;
  border: 1px solid #ffd54f;
  font-style: italic;
}

.message-date {
  display: block;
  font-size: 0.7em;
  margin-top: 4px;
  opacity: 0.7;
}

.message-form {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.message-form textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

.message-form button {
  align-self: flex-end;
}

.offre-boutons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.offre-boutons form {
  margin: 0;
}

.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.message-erreur {
  background-color: #ffe0e0;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.message-succes {
  background-color: #e0f2e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.auth-card {
  background-color: #fff;
  max-width: 400px;
  width: 100%;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-titre {
  text-align: center;
  font-size: 16px;
  color: #333;
  margin-bottom: 25px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}

.auth-form input:focus {
  border-color: #3498db;
}

.auth-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.auth-form textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}

.auth-lien {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}

.auth-lien a {
  color: #09b1ba;
  text-decoration: none;
}

.input-group {
  color: orange;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-select {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  background: white;
  color: #333;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
}

.input-select:focus {
  border-color: #3498db;
}

.captcha-container {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

.captcha-titre {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.puzzle-grille {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  grid-template-rows: repeat(2, 73px);
  gap: 3px;
  justify-content: center;
  background: #ddd;
  padding: 3px;
  border-radius: 6px;
  transition: transform 0.3s;
}

.puzzle-grille.shake {
  animation: puzzle-shake 0.4s;
}

@keyframes puzzle-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

.puzzle-piece-grid {
  width: 110px;
  height: 73px;
  background-image: url("images/captcha_puzzle.jpg");
  background-size: 330px 146px;
  cursor: grab;
  border: 1px solid #fff;
  transition:
    transform 0.25s ease,
    opacity 0.2s;
  border-radius: 2px;
}

.puzzle-piece-grid:hover {
  transform: scale(1.02);
}

.puzzle-piece-grid.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.puzzle-piece-grid.drag-over {
  transform: scale(0.95);
  box-shadow: inset 0 0 0 3px #4a90e2;
}

.puzzle-piece-grid.valide {
  cursor: default;
  pointer-events: none;
  animation: puzzle-flash 0.6s;
}

@keyframes puzzle-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.8);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
}

.puzzle-infos {
  display: flex;
  justify-content: space-between;
  max-width: 336px;
  margin: 10px auto 0 auto;
  font-size: 13px;
  color: #666;
  padding: 0 5px;
}

#puzzleMessage.succes {
  color: #4caf50;
  font-weight: bold;
}

#puzzleMessage.erreur {
  color: #e53935;
}

.resultats-recherche {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.resultat-carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  width: 140px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.resultat-carte:hover {
  background: #f5f5f5;
  border-color: var(--primary);
}

.resultat-carte span {
  font-weight: 500;
  text-align: center;
  word-break: break-word;
}

.evt-hero {
  background: linear-gradient(135deg, #09b1ba, #064e52);
  border-radius: 14px;
  padding: 36px 30px;
  margin-bottom: 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.evt-hero-texte {
  flex: 1;
  min-width: 0;
}

.evt-hero-texte h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
}

.evt-hero-texte p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.btn-evt-ajouter {
  background: white;
  color: #09b1ba;
  border: none;
  border-radius: 25px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-evt-ajouter:hover {
  background: #e6f9fa;
}

.evt-filtres {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.evt-filtre {
  background: white;
  border: 1px solid #aaa;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.evt-filtre:hover {
  background: #eee;
  border-color: #888;
}

.evt-filtre.actif {
  background: #09b1ba;
  border-color: #09b1ba;
  color: white;
}

.evt-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.evt-carte {
  background: white;
  border: 1px solid #e8e8e3;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #1a1a1a;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.evt-carte:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.evt-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.evt-img-lettre {
  font-size: 52px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.evt-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 14px 14px 0 0;
}

.evt-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  z-index: 2;
}

.evt-badge.soiree {
  background: #e74c3c;
}
.evt-badge.conference {
  background: #09b1ba;
}
.evt-badge.vente {
  background: #27ae60;
}
.evt-badge.bde {
  background: #8e44ad;
}
.evt-badge.sport {
  background: #e67e22;
}
.evt-badge.cdi {
  background: #2980b9;
}
.evt-badge.cdd {
  background: #e67e22;
}
.evt-badge.stage {
  background: #8e44ad;
}
.evt-badge.alternance {
  background: #27ae60;
}

.evt-badge-contrat {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.evt-badge-contrat.cdi {
  background: #2980b9;
}
.evt-badge-contrat.cdd {
  background: #e67e22;
}
.evt-badge-contrat.stage {
  background: #8e44ad;
}
.evt-badge-contrat.alternance {
  background: #27ae60;
}

.evt-body {
  display: flex;
  gap: 12px;
  padding: 14px;
  flex: 1;
}

.evt-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
  padding-top: 2px;
}

.evt-jour {
  font-size: 22px;
  font-weight: 700;
  color: #09b1ba;
  line-height: 1;
}

.evt-mois {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.5px;
}

.evt-info {
  flex: 1;
}

.evt-titre {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.evt-lieu {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 6px 0;
}

.evt-desc {
  font-size: 12px;
  color: #888;
  margin: 0 0 10px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.evt-prix {
  font-size: 13px;
  font-weight: 700;
  color: #09b1ba;
}

.evt-prix.gratuit {
  color: #27ae60;
}

.evt-vide {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 15px;
}

.evt-retour {
  display: inline-block;
  margin-bottom: 20px;
  color: #09b1ba;
  text-decoration: none;
  font-size: 14px;
}

.evt-retour:hover {
  text-decoration: underline;
}

.evt-detail-hero {
  border-radius: 14px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
}

.evt-detail-img-lettre {
  font-size: 100px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
}

.evt-detail-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 14px;
}

.evt-detail-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.evt-detail-badge.soiree {
  background: #e74c3c;
}
.evt-detail-badge.conference {
  background: #2980b9;
}
.evt-detail-badge.vente {
  background: #27ae60;
}
.evt-detail-badge.bde {
  background: #8e44ad;
}
.evt-detail-badge.sport {
  background: #e67e22;
}
.evt-detail-badge.cdi {
  background: #2980b9;
}
.evt-detail-badge.cdd {
  background: #e67e22;
}
.evt-detail-badge.stage {
  background: #8e44ad;
}
.evt-detail-badge.alternance {
  background: #27ae60;
}

.evt-detail-body {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.evt-detail-gauche {
  flex: 2;
}

.evt-detail-droite {
  flex: 1;
}

.evt-detail-titre {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.evt-detail-organisateur {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
}

.evt-detail-infos {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evt-detail-info-ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
}

.evt-detail-icone {
  font-size: 18px;
  min-width: 24px;
}

.evt-detail-section {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e3;
}

.evt-detail-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.evt-detail-carte-prix {
  background: white;
  border: 1px solid #e8e8e3;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  position: sticky;
  top: 20px;
}

.evt-detail-prix-label {
  font-size: 13px;
  color: #888;
  margin: 0 0 4px 0;
}

.evt-detail-prix-valeur {
  font-size: 28px;
  font-weight: 700;
  color: #09b1ba;
  margin: 0 0 20px 0;
}

.evt-detail-prix-valeur.gratuit {
  color: #27ae60;
}

/* Mode sombre (Laissez le commentaire svp) */
body.dark {
  background-color: #2d2d4e;
  color: #ffffff;
}

body.dark .card,
body.dark .carte-body,
body.dark
  div:not(.promo):not(.evt-img-lettre):not(.evt-hero-texte):not(
    .message-bulle
  ) {
  background-color: #2d2d4e;
  color: white;
}

body.dark .carte-body {
  border-color: white;
}

body.dark .navbar {
  background-color: #2d2d4e;
}

body.dark .table,
body.dark .section-titre {
  color: white;
}

body.dark .form-control {
  background-color: #2d2d4e;
  color: white;
  border-color: white;
}

header.dark,
header.dark .search,
header.dark .search input::placeholder {
  background-color: #2d2d4e;
  color: white;
}

body.dark
  a:not(.btn-outline):not(.btn-primary):not(.btn-info):not(.btn.btn-danger):not(
    .btn-danger
  ) {
  background-color: #2d2d4e;
  color: white;
  border-color: #09b1ba;
}

body.dark .sombre {
  color: white;
}

#search_input::placeholder {
  color: white;
}

/*Fin mode sombre*/

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  .card {
    width: 100%;
  }
}

.notif-wrapper {
  position: relative;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 380px;
  max-height: 480px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e8e8e3);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
  flex-direction: column;
}

.notif-dropdown-open {
  display: flex;
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e8e8e3);
  font-weight: 600;
  font-size: 0.95em;
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--primary, #09b1ba);
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.notif-mark-all:hover {
  background: rgba(9, 177, 186, 0.08);
}

.notif-dropdown-list {
  overflow-y: auto;
  max-height: 360px;
  flex: 1;
}

.notif-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text, #1a1a1a);
  border-bottom: 1px solid var(--border, #e8e8e3);
  transition: background 0.15s;
}

.notif-dropdown-item:hover {
  background: rgba(9, 177, 186, 0.04);
  text-decoration: none;
  color: var(--text, #1a1a1a);
}

.notif-dropdown-item.non-lu {
  background: rgba(9, 177, 186, 0.06);
}

.notif-dropdown-item.non-lu::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary, #09b1ba);
  border-radius: 50%;
}

.notif-dropdown-item {
  position: relative;
  padding-left: 22px;
}

.notif-dropdown-icon {
  font-size: 1.2em;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-dropdown-content {
  flex: 1;
  min-width: 0;
}

.notif-dropdown-msg {
  margin: 0;
  font-size: 0.84em;
  line-height: 1.4;
  color: var(--text, #1a1a1a);
  word-wrap: break-word;
}

.notif-dropdown-time {
  font-size: 0.72em;
  color: var(--text-soft, #6b7280);
  margin-top: 3px;
  display: block;
}

.notif-dropdown-footer {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 0.84em;
  font-weight: 600;
  color: var(--primary, #09b1ba);
  text-decoration: none;
  border-top: 1px solid var(--border, #e8e8e3);
}

.notif-dropdown-footer:hover {
  background: rgba(9, 177, 186, 0.04);
  text-decoration: none;
  color: var(--primary-dark, #078a91);
}

.notif-dropdown-empty,
.notif-dropdown-loading {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-soft, #6b7280);
  font-size: 0.88em;
}

.notif-page-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e8e8e3);
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text, #1a1a1a);
  transition: all 0.15s;
  position: relative;
}

.notif-page-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--text, #1a1a1a);
}

.notif-page-item.non-lu {
  border-left: 4px solid var(--primary, #09b1ba);
  background: rgba(9, 177, 186, 0.03);
}

.notif-page-icon {
  font-size: 1.5em;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 177, 186, 0.08);
  border-radius: 50%;
}

.notif-page-content {
  flex: 1;
}

.notif-page-msg {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.4;
}

.notif-page-time {
  font-size: 0.78em;
  color: var(--text-soft, #6b7280);
  margin-top: 4px;
  display: block;
}

.type-card {
  background: var(--surface, #fff);
  border: 2px solid var(--border, #e8e8e3);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 100%;
  user-select: none;
}

.type-card:hover {
  border-color: var(--primary, #09b1ba);
  box-shadow: 0 4px 12px rgba(9, 177, 186, 0.1);
  transform: translateY(-2px);
}

.type-card.selected {
  border-color: var(--primary, #09b1ba);
  background: rgba(9, 177, 186, 0.05);
  box-shadow: 0 4px 16px rgba(9, 177, 186, 0.15);
}

.type-card .type-icon {
  font-size: 2.5em;
  margin-bottom: 8px;
  line-height: 1;
}

.type-card h5 {
  margin: 8px 0 4px;
  color: var(--text, #1a1a1a);
  font-weight: 600;
  font-size: 1.05em;
}

.type-card p {
  margin: 0;
  font-size: 0.82em;
  color: var(--text-soft, #6b7280);
}

.type-form {
  background: var(--surface, #fff);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--border, #e8e8e3);
  margin-top: 16px;
  margin-bottom: 40px;
}

.type-form h3 {
  color: var(--text, #1a1a1a);
  margin-bottom: 20px;
}

.messagerie-pad {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e8e8e3);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
  flex: 1;
}

.messagerie-pad h3 {
  margin: 0;
  font-size: 1.05em;
}

.pad-info {
  font-size: 0.78em;
  color: var(--text-soft, #6b7280);
  margin: 0;
}

#pad-textarea {
  flex: 1;
  min-height: 300px;
  resize: vertical;
  border: 1px solid var(--border, #e8e8e3);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.92em;
  line-height: 1.5;
  background: rgba(9, 177, 186, 0.02);
}

#pad-textarea:focus {
  outline: 2px solid var(--primary, #09b1ba);
  outline-offset: -2px;
  border-color: transparent;
}

.pad-indicateur {
  font-size: 0.8em;
  color: var(--primary, #09b1ba);
  font-style: italic;
}

.pad-statut {
  font-size: 0.8em;
  color: var(--text-soft, #6b7280);
  min-height: 1.2em;
}
