 
/* =====================================================
   1. Base
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f3ee;
  color: #2f2f2f;
  font-family: Arial, sans-serif;
}

button,
input,
select,
textarea {
  font-family: inherit;
}
/* =====================================================
   2. Header / navigation
===================================================== */
.header {
  background: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #c96d42;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a,
.lang-btn {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.lang-btn {
  padding: 8px 12px;
  border-radius: 8px;
  background: #333;
  color: white;
  min-width: 105px;
  text-align: center;
}

/* =====================================================
   3. Layout général
===================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

.hero {
  display: block;
  margin-top: 20px;
}

.hero-text {
  width: 100%;
  max-width: 100%;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 18px;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.features,
.page-header {
  margin-top: 40px;
}

.features h2,
.page-header h1,
.premium-box h1 {
  margin-bottom: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cards > .card {
  display: flex;
  flex-direction: column;
}

.cards > .card > .form-actions {
  margin-top: auto;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================
   4. Boutons
===================================================== */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.primary {
  background: #c96d42;
  color: white;
}

.secondary {
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.clickable-card,
.clickable-refuge-action,
.clickable-refuge-tile,
.action-coins-tile {
  cursor: pointer;
}

.clickable-card:hover,
.clickable-refuge-action:hover,
.clickable-refuge-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: 0.2s ease;
}

 

.form-actions .btn:hover {
  transform: translateY(-2px);
}

.back-page-btn {
  margin-bottom: 18px;
  width: fit-content;
}

.forgot-password-link {
  margin-top: 8px;
  padding: 0;
  background: none;
  border: none;
  color: #c96d42;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  width: fit-content;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* =====================================================
   5. Cards / formulaires génériques
===================================================== */
.hero-card,
.card,
.premium-box {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.hero-card {
  overflow: hidden;
}

.hero-card h3,
.card h3 {
  margin-bottom: 12px;
  color: #c96d42;
}

.hero-card p,
.card p {
  margin: 8px 0;
  line-height: 1.5;
}

.form-card,
.saved-profile {
  margin-top: 24px;
}

.form-card {
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%);
  border: 1px solid rgba(226, 168, 125, 0.22);
  border-radius: 22px !important;
  padding: 16px !important;
  box-shadow: 0 18px 40px rgba(35, 25, 22, 0.08), 0 4px 14px rgba(213, 128, 64, 0.08);
}

.form-card h2 {
  font-size: 1.9rem !important;
  line-height: 1.25;
  margin-bottom: 10px !important;
  color: #2f2f2f;
}

.form-card > p {
  font-size: 0.95rem !important;
  margin-bottom: 14px !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background: white;
}

.form-group textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #c96d42;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.form-actions .btn {
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.form-actions .btn:hover {
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  filter: saturate(1.05);
}

/* =====================================================
   6. Profil / galerie / mémoire
===================================================== */
.profile-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-image-box img,
.home-profile-image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.home-profile-image {
  max-width: 100%;
  height: 350px;
  margin: 12px 0 18px;
}

.profile-info h2 {
  margin-bottom: 14px;
  color: #c96d42;
}

.profile-info p {
  margin: 10px 0;
  line-height: 1.5;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
}

.gallery-image,
.memory-media {
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.gallery-image {
  height: 160px;
}

.memory-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.memory-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.memory-media {
  height: 220px;
  border-radius: 14px;
}

.delete-photo-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(201, 109, 66, 0.95);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.delete-photo-btn:hover {
  background: #b95f37;
}

/* =====================================================
   7. Auth / Premium / Paiement
===================================================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 520px;
}

.auth-card h1 {
  margin-bottom: 12px;
}

.auth-card p {
  margin-bottom: 20px;
  color: #555;
}

.premium-box {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
}

.premium-box p {
  margin-top: 12px;
  line-height: 1.6;
}

.price {
  font-size: 42px;
  color: #c96d42;
  font-weight: bold;
  margin: 22px 0;
}

.premium-list {
  list-style: none;
  margin: 20px 0 30px;
}

.premium-list li {
  margin: 10px 0;
  font-size: 17px;
}

.premium-card {
  position: relative;
  border: 1px solid #f0d2bf;
}

.premium-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #c96d42;
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 999px;
}

.premium-box .form-actions,
.premium-payment-box .form-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.premium-box .form-actions {
  margin-top: 35px !important;
}

.premium-box .form-actions .btn,
.premium-payment-box .btn,
.premium-payment-box button {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.premium-payment-modal,
.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 10px;
}

.premium-payment-modal {
  display: flex;
  padding: 20px;
  z-index: 3000;
}

.payment-modal {
  display: none;
}

.premium-payment-box {
  background: white;
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.premium-payment-box h2 {
  margin-bottom: 12px;
  color: #2f2f2f;
}

.premium-payment-box p {
  margin-bottom: 18px;
  line-height: 1.5;
}

.animated-recharge-modal {
  position: relative;
  animation: popRechargeModal 0.35s ease;
  border-radius: 24px;
  overflow: hidden;
}

.payment-modal-content {
  background: #fff;
  border-radius: 28px;
  padding: 12px;
  width: min(86%, 380px);
  max-height: 82vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.payment-modal-content::-webkit-scrollbar {
  display: none;
}

/* =====================================================
   8. Chat / messages
===================================================== */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.chat-message {
  background: #fcfcfc;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px;
}

.chat-message p {
  margin: 6px 0;
}

.chat-form {
  display: flex;
  gap: 12px;
}

.chat-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
}

/* =====================================================
   9. Santé / carte / messages trouvés
===================================================== */
#healthForm .form-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

#healthForm .form-group label {
  font-size: 14px;
  line-height: 1.3;
}

#healthForm input {
  min-height: 50px;
  font-size: 16px;
}

#healthForm .form-actions {
  margin-top: 20px;
}

#mapPlaceDetails {
  margin-bottom: 20px;
}

#mapPlaceDetails h2 {
  margin-bottom: 14px;
  color: #c96d42;
}

#mapPlaceDetails p {
  margin: 8px 0;
  line-height: 1.5;
}

.form-actions #mapCityButton,
.form-actions #mapVisibleButton {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px !important;
  border-radius: 18px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#mapCityButton {
  background: linear-gradient(180deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: 2px solid #8f421f !important;
  box-shadow: 0 7px 0 #7a3519, 0 14px 24px rgba(120, 53, 25, 0.28) !important;
}

#mapCityButton:hover {
  background: linear-gradient(180deg, #e1834d 0%, #c46335 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 9px 0 #7a3519, 0 18px 28px rgba(120, 53, 25, 0.32) !important;
}

#mapCityButton:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 #7a3519, 0 8px 14px rgba(120, 53, 25, 0.22) !important;
}

#mapVisibleButton {
  background: linear-gradient(180deg, #ffffff 0%, #f6eee7 100%) !important;
  color: #3a2a22 !important;
  border: 2px solid #d8bba7 !important;
  box-shadow: 0 6px 0 #c2a18a, 0 12px 20px rgba(70, 45, 30, 0.12) !important;
}

#mapVisibleButton:hover {
  background: linear-gradient(180deg, #fffaf6 0%, #f0dfd2 100%) !important;
  transform: translateY(-2px);
}

#mapVisibleButton:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #c2a18a, 0 7px 12px rgba(70, 45, 30, 0.12) !important;
}

#foundMessagesList {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#foundReplyBox h3 {
  margin-bottom: 14px;
}

.found-message-card {
  background: #fffaf7;
  border: 1px solid #ead7cb;
  border-radius: 16px;
  padding: 14px;
}

.found-message-card p {
  margin: 6px 0;
  line-height: 1.5;
}

.found-message-card .form-actions {
  margin-top: 14px;
}

/* =====================================================
   10. Refuge interactif / jeu
===================================================== */
#homeRescuedCats,
#homeGameMood {
  font-weight: 200;
}

.mini-stat {
  margin: 12px 0;
}

.mini-stat span {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.mini-bar,
.stat-bar {
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
}

.mini-bar {
  height: 10px;
  background: #ece5dd;
}

.mini-bar-fill {
  height: 100%;
  width: 50%;
  background: #c96d42;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.stat-bar-group {
  margin-top: 10px;
}

.stat-bar-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.stat-bar {
  height: 10px;
  background: #eee4d8;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  background: #d47f4a;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.interactive-refuge-layout,
.game-dashboard,
.game-dashboard-card,
#interactiveMissionPanel,
#interactiveMissionStatsPanel,
#dailySuggestedCatBox .card,
.form-card,
.saved-profile {
  box-sizing: border-box;
}

.interactive-refuge-layout {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.interactive-refuge-board-wrapper {
  margin-top: 40px;
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

.refuge-game-board {
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.refuge-tile {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  max-width: 58px;
  max-height: 58px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.refuge-tile div,
.refuge-cat-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 2px;
}

.refuge-tile small {
  display: block;
  font-size: 10px;
  line-height: 1.05;
  text-align: center;
  margin: 0;
}

.refuge-tile:hover {
  transform: translateY(-2px);
  border-color: #c96d42;
}

.refuge-tile.player-tile,
.player-tile {
  box-shadow: 0 0 0 3px rgba(208, 116, 60, 0.25);
}

.player-tile {
  animation: playerPulse 1.2s infinite ease-in-out;
}

.refuge-tile.player-tile {
  background: #fff0e8;
  border-color: #c96d42;
  transform: scale(1.03);
}

.refuge-tile.cat-tile {
  background: #fffaf0;
}

.refuge-tile.goal-tile {
  background: #f4fbf4;
}

.obstacle-tile {
  background: #f3e4d7;
  border: 1px solid #d8b79d;
}

.rare-cat-tile {
  background: #fff4d9;
  border: 1px solid #f0c66a;
}

.rare-cat-tile small {
  font-weight: 600;
}

.cat-image-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  gap: 4px;
}

.refuge-cat-image {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto 4px;
}

.game-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.game-dashboard-card {
  position: relative;
  text-align: center;
  background: #fffaf7;
  border: 1px solid #ead7cb;
  border-radius: 18px;
  padding: 18px;
}

.game-dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(46, 28, 17, 0.12), 0 4px 10px rgba(224, 145, 82, 0.10);
  border-color: rgba(214, 129, 62, 0.5);
}

.game-dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f0b35a, #df7b3d, #f6d18f);
  opacity: 0.9;
}

.game-dashboard-card h3,
#interactiveMissionTitle {
  text-align: center;
}

.game-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.game-controls-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-controls .btn {
  min-width: 70px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.game-virtual-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  width: 100%;
}

.refuge-action-tile {
  min-height: 110px;
  border-radius: 16px;
  border: 1px solid #ead7cb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.refuge-action-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.action-food,
.action-food-tile {
  background: #fffaf0;
  border-color: #e8d8bf;
}

.action-play,
.action-play-tile {
  background: #f8f3ff;
  border-color: #d9c8f0;
}

.action-decor,
.action-decor-tile {
  background: #fff5f8;
  border-color: #efced8;
}

.action-sleep,
.action-sleep-tile {
  background: #eef7f3;
  border-color: #cfe1d7;
}

.action-clean,
.action-clean-tile {
  background: #f2fbff;
  border-color: #cfe6ef;
}

.action-heal,
.action-heal-tile {
  background: #fff6f2;
  border-color: #f0d5c9;
}

.action-coins,
.action-coins-tile {
  background: #fff8e8;
  border-color: #e8d39a;
}

.interactive-cat-preview {
  font-size: 96px;
  line-height: 1;
  text-align: center;
  margin: 12px 0 18px;
  background: #fffaf7;
  border: 1px solid #ead7cb;
  border-radius: 18px;
  padding: 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refuge-quick-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  animation: fadePop 0.25s ease-out;
}

.refuge-quick-feedback.success {
  background: #edf9ee;
  border: 1px solid #b8dfbd;
}

.refuge-quick-feedback.error {
  background: #fff0f0;
  border: 1px solid #efb7b7;
}

.refuge-quick-feedback.combo {
  background: #fff8e8;
  border: 1px solid #efd18a;
}

.temporary-injured-cat {
  animation: injuredCatBlink 0.7s infinite alternate;
  border-color: #e06666 !important;
  box-shadow: 0 0 0 2px rgba(224, 102, 102, 0.18);
}

.refuge-thumb-feedback {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e6c8b0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  animation: thumbPopIn 0.25s ease;
}

.coins-wallet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff7ef;
  border: 2px solid #d17945;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.coins-wallet-icon {
  font-size: 22px;
  line-height: 1;
}

.coins-wallet-label {
  color: #b86a3f;
  font-size: 15px;
}

.coins-wallet-value {
  min-width: 28px;
  text-align: center;
  color: #7a3f1f;
  background: white;
  border-radius: 999px;
  padding: 4px 10px;
}

.combo-time-bonus-btn {
  margin-left: 10px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f0b457 0%, #e69539 100%);
  box-shadow: 0 8px 18px rgba(230, 149, 57, 0.28);
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.combo-time-bonus-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.03);
}

.combo-time-bonus-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.time-bonus-feedback {
  position: fixed;
  top: 110px;
  right: 30px;
  background: #ffd966;
  color: #5b3b00;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: timeBonusPop 0.8s ease;
}

#missionFireworks {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 9999;
  pointer-events: none;
  font-size: 52px;
}

.fireworks-burst {
  animation: fireworks-pop 0.9s ease-in-out infinite alternate;
}

/* =====================================================
   11. Chat virtuel / collection rare
===================================================== */
.virtual-cat-image-wrapper {
  position: relative;
  display: inline-block;
}

.virtual-cat-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.virtual-cat-badges {
  margin-top: 6px;
  text-align: center;
  font-size: 18px;
  min-height: 24px;
}

.virtual-cat-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  --cat-scale: 1;
  animation: catIdleFloat 2.2s ease-in-out infinite;
}

.virtual-cat-main-emoji {
  font-size: 72px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#virtualCatCard {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 10px;
}

#virtualCatTitle {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

#virtualCatCard .interactive-cat-preview {
  width: 145px;
  height: 145px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6c8b0;
  border-radius: 18px;
  background: #f7f1eb;
  font-size: 2.4rem;
  padding: 16px;
}

.virtual-stats-grid,
.virtual-info-grid,
.virtual-power-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px !important;
  margin: 6px 0 !important;
  width: 100%;
}

.virtual-stat-box,
.virtual-info-box,
.virtual-power-box {
  background: #f7f1eb;
  border: 1px solid #e6c8b0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px !important;
  padding: 4px 8px !important;
  border-radius: 10px !important;
}

.virtual-stat-box label,
.virtual-info-box label,
.virtual-power-box label {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 4px;
  line-height: 1.2;
}

.virtual-stat-box .stat-bar {
  width: 100%;
  height: 6px !important;
  background: #ddd3c7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px !important;
}

.virtual-stat-box .stat-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
}

.virtual-stat-value,
.virtual-info-value,
.virtual-power-box .virtual-info-value {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.pet-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.pet-action-btn {
  background: #cc733f;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 6px 8px;
  min-height: 34px;
  max-height: 34px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pet-action-btn:hover {
  opacity: 0.92;
}

.pet-action-btn:active {
  transform: scale(0.98);
}

.virtual-cat-reaction {
  margin: 8px 0 10px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff7f2;
  border: 1px solid #efd5c4;
  color: #9b5b36;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.virtual-cat-reaction.show {
  opacity: 1;
  transform: translateY(0);
}

.cat-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.cat-editor .btn,
.cat-editor label.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.avatar-btn {
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  min-height: 56px;
  max-height: 56px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 0;
  font-size: 28px;
  line-height: 1;
}

.avatar-btn span,
.avatar-btn small,
.avatar-btn br {
  display: none !important;
}

.avatar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.avatar-btn:active {
  transform: scale(0.97);
}

.avatar-btn.selected {
  border-color: #cf7540;
  box-shadow: 0 0 0 2px rgba(207, 117, 64, 0.15);
  background: #fff8f4;
}

.rare-cat-card {
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rare-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.rare-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rare-cat-emoji {
  font-size: 32px;
  line-height: 1;
}

.rare-items-list,
.collection-items-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.rare-item-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4efe8;
  font-size: 14px;
  font-weight: 600;
}

#rareCollectionCard {
  padding: 16px;
  min-height: auto;
  height: auto;
  align-self: start;
}

#rareCollectionCard h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

#rareCollectionCard p {
  margin: 8px 0;
}

#rareCollectionCard .btn {
  width: auto;
  min-width: 160px;
  padding: 10px 14px;
}

.collection-cat-image {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
  border-radius: 14px;
}

.selected-cat-inline-image {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 8px;
}

/* =====================================================
   12. Boutique / inventaire / missions / quiz
===================================================== */
.shop-section,
.inventory-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf6 0%, #fdf6f1 100%);
  border: 2px solid #f0d7c8;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 22px rgba(180, 120, 70, 0.08);
}

.shop-section::before,
.shop-section::after,
.inventory-section::before,
.inventory-section::after {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

.shop-section::before {
  content: "🐾";
  top: 10px;
  left: 16px;
  font-size: 56px;
}

.shop-section::after {
  content: "🐱";
  right: 18px;
  bottom: 8px;
  font-size: 72px;
}

.inventory-section::before {
  content: "🧺";
  top: 12px;
  left: 16px;
  font-size: 50px;
}

.inventory-section::after {
  content: "🐾";
  right: 20px;
  bottom: 12px;
  font-size: 58px;
}

.shop-section h2,
.inventory-section h2 {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.shop-section h2::after {
  content: " 🐾";
  font-size: 0.8em;
}

.inventory-section h2::after {
  content: " 📦";
  font-size: 0.8em;
}

.shop-section > p,
.inventory-section > p {
  color: #6e5a50;
  font-size: 0.95rem;
}

.shop-section > p {
  margin-bottom: 14px;
}

.inventory-section > p {
  margin-bottom: 16px;
}

.shop-shop-banner,
.inventory-banner,
.daily-missions-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.shop-shop-banner span,
.inventory-banner span,
.daily-missions-banner span {
  background: #fff1e7;
  border: 1px solid #f3d8c6;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #a06542;
}

.shop-section .cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.shop-section .card,
.inventory-section #inventoryBox .card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffdfb;
  border: 1px solid #f1dfd3;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-section .card {
  justify-content: flex-start;
  min-height: 150px;
  height: 150px;
  padding: 10px;
  border-radius: 16px;
  align-self: stretch;
}

.inventory-section #inventoryBox .card {
  justify-content: space-between;
  min-height: 125px;
  padding: 10px;
  border-radius: 14px;
}

.shop-section .card:hover,
.inventory-section #inventoryBox .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(180, 120, 70, 0.1);
}

.shop-section .card::before,
.inventory-section #inventoryBox .card::before {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  background: #fff3ea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-section .card::before {
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.inventory-section #inventoryBox .card::before {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.shop-section .card:nth-child(1)::before,
.inventory-section #inventoryBox .card:nth-child(1)::before { content: "🍗"; }
.shop-section .card:nth-child(2)::before,
.inventory-section #inventoryBox .card:nth-child(2)::before { content: "🧶"; }
.shop-section .card:nth-child(3)::before,
.inventory-section #inventoryBox .card:nth-child(3)::before { content: "🩺"; }
.shop-section .card:nth-child(4)::before,
.inventory-section #inventoryBox .card:nth-child(4)::before { content: "🫧"; }
.inventory-section #inventoryBox .card:nth-child(5)::before { content: "❤️"; }
.inventory-section #inventoryBox .card:nth-child(6)::before { content: "⚡"; }

.shop-section .card h3,
.inventory-section #inventoryBox .card h3 {
  color: #cf7340;
  line-height: 1.15;
  margin-bottom: 8px;
  max-width: 78%;
}

.shop-section .card h3 {
  min-height: 38px;
  font-size: 0.82rem;
  line-height: 1.1;
}

.inventory-section #inventoryBox .card h3 {
  font-size: 0.9rem;
}

.shop-section .card p,
.inventory-section #inventoryBox .card p {
  margin: 4px 0;
  font-size: 0.85rem;
}

.shop-section .card p {
  font-size: 0.8rem;
}

.shop-section .card p:nth-of-type(1),
.shop-section .card p:nth-of-type(2) {
  min-height: 24px;
}

.shop-section .card p:last-of-type {
  margin-bottom: 14px;
  font-weight: 700;
  color: #3a2d27;
}

.inventory-section #inventoryBox .card p {
  margin-bottom: 10px;
  color: #2f2723;
}

.shop-section .btn.primary,
.shop-section .btn,
.inventory-section #inventoryBox .btn.secondary,
.inventory-section #inventoryBox .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 14px;
}

.shop-section .btn.primary,
.shop-section .btn {
  padding: 8px 12px;
  font-size: 0.82rem;
  box-shadow: 0 6px 14px rgba(207, 115, 64, 0.16);
}

.inventory-section #inventoryBox .btn.secondary,
.inventory-section #inventoryBox .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  border: 1px solid #e7cdbd;
  background: #fff7f2;
  color: #7b4b2d;
  font-weight: 600;
}

.inventory-section #inventoryBox .btn.secondary:hover {
  background: #fcebdd;
}

.inventory-section #inventoryBox .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.daily-missions-section,
.cat-quiz-section {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.daily-missions-section {
  border: 1px solid #f1d5c4;
  background: radial-gradient(circle at top right, rgba(205, 121, 64, 0.08), transparent 28%), linear-gradient(180deg, #fffaf7 0%, #fffdfb 100%);
  box-shadow: 0 14px 34px rgba(120, 70, 30, 0.08);
}

.daily-missions-section h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.daily-missions-section h2::after {
  content: "✨";
  font-size: 18px;
}

.daily-missions-banner {
  gap: 10px;
  margin: 14px 0 22px;
}

.daily-missions-banner span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-color: #f1d5c4;
  color: #a85d2a;
  font-size: 0.95rem;
}

#dailyMissionsBox .cards {
  gap: 18px;
}

#dailyMissionsBox .card {
  position: relative;
  border: 1px solid #f3dfd2;
  background: #fffdfa;
  box-shadow: 0 10px 24px rgba(120, 70, 30, 0.06);
  min-height: 135px;
  padding: 16px;
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#dailyMissionsBox .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(120, 70, 30, 0.1);
}

#dailyMissionsBox .card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #cd7940;
}

#dailyMissionsBox .card p {
  margin: 8px 0;
}

#dailyMissionsBox .card::before {
  content: "🐾";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  background: #fff3eb;
}

.cat-quiz-section {
  border: 1px solid #efd6c6;
  background: radial-gradient(circle at top right, rgba(207, 116, 62, 0.05), transparent 220px), radial-gradient(circle at bottom left, rgba(207, 116, 62, 0.04), transparent 220px), #fffdfa;
  box-shadow: 0 14px 30px rgba(60, 30, 10, 0.05);
}

.cat-quiz-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.cat-quiz-section h2::after {
  content: "🐾";
  margin-left: 10px;
  font-size: 18px;
  opacity: 0.75;
}

.cat-quiz-section > p {
  color: #5b4a42;
  margin-bottom: 22px;
}

.cat-quiz-section::before,
.cat-quiz-section::after {
  content: "🐾";
  position: absolute;
  font-size: 22px;
  opacity: 0.08;
  pointer-events: none;
}

.cat-quiz-section::before {
  top: 28px;
  right: 36px;
  transform: rotate(-12deg);
}

.cat-quiz-section::after {
  bottom: 28px;
  left: 34px;
  transform: rotate(14deg);
}

.cat-quiz-section #catPuzzleCards {
  position: relative;
  gap: 18px;
}

.cat-quiz-section #catPuzzleCards::before,
.cat-quiz-section #catPuzzleCards::after {
  content: "🐾 🐾";
  position: absolute;
  font-size: 18px;
  opacity: 0.07;
  letter-spacing: 8px;
  pointer-events: none;
}

.cat-quiz-section #catPuzzleCards::before {
  top: -10px;
  left: 24px;
  transform: rotate(-10deg);
}

.cat-quiz-section #catPuzzleCards::after {
  right: 30px;
  bottom: -10px;
  transform: rotate(10deg);
}

.cat-quiz-section #catPuzzleCards .card {
  position: relative;
  border: 1px solid #f2e3d9;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffefe 0%, #fff9f5 100%);
  box-shadow: 0 10px 24px rgba(70, 35, 15, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-quiz-section #catPuzzleCards .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(70, 35, 15, 0.08);
}

.cat-quiz-section #catPuzzleCards .card h3 {
  width: 44px;
  height: 44px;
  margin: 0 0 14px 0;
  border-radius: 50%;
  background: rgba(207, 116, 62, 0.12);
  color: #cf743e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}

.cat-quiz-section #catPuzzleCards .card p {
  line-height: 1.45;
}

.cat-hint-text {
  margin-top: 10px;
  font-size: 14px;
  font-style: italic;
}

.cat-answer-input,
.cat-quiz-section .cat-answer-input {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e4d4c8;
  border-radius: 16px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cat-quiz-section .cat-answer-input:focus {
  outline: none;
  border-color: #cf743e;
  box-shadow: 0 0 0 3px rgba(207, 116, 62, 0.12);
}

.cat-quiz-section .cat-hint-text {
  min-height: 20px;
  margin-top: 8px;
  color: #9c6b4f;
  font-size: 14px;
}

.cat-quiz-section .form-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cat-quiz-section .btn.primary {
  box-shadow: 0 8px 18px rgba(207, 116, 62, 0.22);
}

.cat-quiz-section #catPuzzleResult {
  margin-top: 22px;
  border-radius: 22px;
  border: 1px solid #f0ddd0;
  background: linear-gradient(180deg, #fffefd 0%, #fff8f4 100%);
}

.cat-result-good {
  color: #2d8a57;
  font-weight: 600;
}

.cat-result-bad {
  color: #b45454;
  font-weight: 600;
}

.cat-emoji-card {
  text-align: center;
}

.cat-choice-emoji {
  font-size: 72px;
  line-height: 1;
  margin: 10px 0 14px;
}

.cat-preview-box {
  text-align: center;
  background: #fffaf7;
  border: 1px solid #ead7cb;
  border-radius: 18px;
  padding: 20px;
}

.cat-preview-emoji {
  font-size: 84px;
  line-height: 1;
  margin-bottom: 12px;
}

/* =====================================================
   13. Missions haut de page / collection
===================================================== */
#dailySuggestedCatBox .card {
  border: none;
  padding: 16px 18px !important;
  border-radius: 20px !important;
  background: radial-gradient(circle at top right, rgba(255, 197, 143, 0.28), transparent 35%), linear-gradient(135deg, #fff6ee 0%, #fffdfb 100%);
  box-shadow: 0 12px 28px rgba(224, 145, 82, 0.12);
  animation: refugeFadeUp 0.6s ease;
}

#dailySuggestedCatBox .card h3 {
  color: #cc6b2c;
  font-size: 1.1rem !important;
  margin-bottom: 6px !important;
}

#dailySuggestedCatBox .card p {
  font-size: 0.92rem !important;
}

.mission-top-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px !important;
  align-items: stretch;
  width: 100%;
}

.mission-top-row > .game-dashboard-card {
  position: relative;
  min-width: 0;
  min-height: 250px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 16px 14px !important;
  border-radius: 20px !important;
  background: #fffdfb;
  border: 1px solid rgba(226, 168, 125, 0.55);
  box-shadow: 0 10px 30px rgba(46, 28, 17, 0.08);
  overflow: hidden;
}

.mission-top-row > .game-dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f0b35a, #df7b3d, #f6d18f);
}

.mission-top-row > .game-dashboard-card h3 {
  margin: 0 0 12px !important;
  font-size: 1rem !important;
  line-height: 1.2;
  text-align: center;
  color: #2f2f2f;
}

.mission-top-row > .game-dashboard-card p {
  margin: 4px 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  text-align: center;
}

.mission-top-row #interactiveMissionPanel,
.mission-top-row #interactiveMissionStatsPanel,
.mission-top-row .saved-profile {
  width: 100%;
  margin: 0 !important;
}

#interactiveMissionPanel,
#interactiveMissionStatsPanel {
  background: #fffaf6 !important;
  border: 1px solid #efd8c8 !important;
  border-radius: 18px !important;
  padding: 16px 14px !important;
  box-shadow: 0 6px 16px rgba(120, 70, 30, 0.06) !important;
  position: relative;
  text-align: center;
}

#interactiveMissionPanel::before,
#interactiveMissionStatsPanel::before,
#interactiveMissionPanel::after,
#interactiveMissionStatsPanel::after {
  content: none !important;
}

#interactiveMissionPanel:hover {
  transform: translateY(-2px);
}

#interactiveMissionTitle {
  color: #2f241f;
  font-size: 1.05rem !important;
  line-height: 1.25;
  margin-bottom: 10px !important;
}

.mission-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.mission-action-buttons .btn {
  border-radius: 14px !important;
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  border: 1px solid rgba(213, 167, 129, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f0 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mission-action-buttons .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(214, 129, 62, 0.12);
  background: linear-gradient(180deg, #fffaf5 0%, #ffeeda 100%);
}

#interactiveMissionProgress,
#interactiveMissionReward,
#interactiveMissionStatsPanel p,
#refugeLevelText,
#refugeDaysText,
#refugeNextUnlockText,
#refugeLevelDisplay,
#refugeLevelLabel {
  margin: 6px 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.25;
  text-align: center;
}

#selectedPlayerLabel {
  font-size: 52px !important;
  line-height: 1;
  margin: 10px auto 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px !important;
  height: 64px !important;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8f2, #ffe8d5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: floatMini 2.8s ease-in-out infinite;
}

#selectedShelterCatLabel {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c7642a;
  margin-bottom: 14px;
}

.mission-validate-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}

.mission-validate-actions .btn {
  min-width: 140px;
}

#validateMissionButton {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  max-width: 220px;
  width: 100%;
  animation: pulseMission 1.6s infinite;
}

.collection-modal-card {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 18px !important;
  border-radius: 22px !important;
}

.collection-modal-card h2 {
  font-size: 1.8rem !important;
  margin-bottom: 12px !important;
}

.collection-modal-card .profile-info,
.collection-modal-card .full-info {
  width: 100% !important;
}

.collection-modal-card .form-actions {
  margin-top: 14px !important;
}

.collection-modal-card .btn {
  padding: 8px 14px !important;
  font-size: 0.9rem !important;
  border-radius: 12px !important;
}

.collection-section {
  margin-top: 12px !important;
}

.collection-section p {
  margin: 6px 0 !important;
  font-size: 0.95rem !important;
}

.collection-cats-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 18px !important;
  width: 100% !important;
  margin-top: 12px !important;
}

.collection-cats-grid .card {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
  flex: 0 0 190px !important;
  margin: 0 !important;
  padding: 12px;
}

.collection-accessory-day {
  margin-top: 14px !important;
  padding: 10px 12px !important;
  background: #fffaf6;
  border: 1px solid #f0d4bf;
  border-radius: 12px !important;
}

.reset-game-btn {
  margin-top: 12px;
}

/* =====================================================
   14. Histoires / studio
===================================================== */
.home-story-box {
  margin-top: 18px;
}

.mini-story-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ead7cb;
  border-radius: 16px;
  background: #fffaf7;
}

.mini-story-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.mini-story-content p {
  margin: 6px 0;
}

.mini-story-empty {
  margin-top: 12px;
  color: #666;
  font-size: 14px;
}

.home-story-comments-box {
  margin-top: 12px;
}

.mini-story-comments-card {
  padding: 12px;
  border: 1px solid #ead7cb;
  border-radius: 16px;
  background: #fff;
}

.mini-story-comments-card h4 {
  margin: 0 0 10px 0;
}

.mini-story-comments-list p {
  margin: 6px 0;
  font-size: 14px;
}

.story-like-box {
  margin: 12px 0;
}

.story-like-box .btn {
  margin-top: 8px;
}

#studioResult {
  margin-top: 20px;
}

.studio-creation-card {
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #ead7cb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.studio-creation-image-wrap {
  position: relative;
  background: #fff3eb;
}

.studio-creation-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.studio-creation-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #c96d42;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.studio-creation-content {
  padding: 24px;
  text-align: center;
}

.studio-creation-content h2 {
  color: #c96d42;
  margin-bottom: 12px;
  font-size: 28px;
}

.studio-creation-content p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.studio-creation-content small {
  color: #777;
  font-weight: 700;
}

.studio-creation-actions {
  justify-content: center;
  margin-top: 20px;
}

.studio-style-meme .studio-creation-content {
  background: #fff8f2;
}

.studio-style-avatar .studio-creation-image {
  border-radius: 50%;
  width: 360px;
  height: 360px;
  margin: 28px auto;
}

.studio-style-avatar .studio-creation-image-wrap {
  padding: 10px;
}

.studio-style-comic {
  border: 3px solid #2f2f2f;
}

.studio-style-birthday .studio-creation-content h2::before {
  content: "🎉 ";
}

.studio-style-birthday .studio-creation-content h2::after {
  content: " 🎂";
}

.studio-style-poster .studio-creation-content h2 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ads-photo-preview {
  width: 100%;
  max-width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-top: 12px;
}

/* =====================================================
   15. Communauté
===================================================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.community-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ead5c7;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.community-avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 4px solid #f3e4da;
}

.community-card-content {
  flex: 1;
}

.community-card-content h3 {
  margin: 0 0 10px;
  color: #c96f3d;
}

.community-groups-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  width: 100%;
}

.community-groups-section > .form-card,
.community-groups-section > .saved-profile {
  width: 100%;
  max-width: 100%;
}

.community-groups-section .form-grid {
  align-items: start;
}

.community-card-with-notif,
.lost-card-with-notif {
  position: relative;
}

.community-message-badge,
.lost-message-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3eb;
  border: 1px solid #e7c2ad;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  z-index: 2;
}

.form-group.theme-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.form-group.theme-group label {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}

.form-group.theme-group select {
  width: 100%;
  max-width: 100%;
  text-align: center;
  text-align-last: center;
}

#communityGroupDetail .form-card {
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%);
  border: 1px solid #efd8c8;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

#communityGroupDetail h2 {
  color: #c96d42;
  font-size: 2rem;
  margin-bottom: 10px;
}

#communityGroupDetail h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #2f2f2f;
}

#communityGroupDetail p {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 1.05rem;
}

#communityGroupDetail ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}

#communityGroupDetail li {
  background: #fff;
  border: 1px solid #ead7cb;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

#communityGroupDetail li.empty-member {
  background: #fffaf7;
  color: #666;
  font-style: italic;
}

#communityGroupDetail .form-grid {
  margin-top: 10px;
}

#communityGroupDetail .form-group label {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2f2f2f;
}

#communityGroupDetail select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  background: white;
  font-size: 16px;
}

#communityGroupDetail .form-actions {
  margin-top: 18px;
}

#communityGroupDetail .btn.primary {
  min-width: 220px;
}

.community-group-messages-list {
  margin-top: 18px;
}

.community-chat-history {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff7f2;
  border: 1px solid #ead7cb;
  border-radius: 20px;
  scroll-behavior: smooth;
}

.community-chat-line {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #ead7cb;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.community-chat-line.mine {
  align-self: flex-end;
  background: #ffefe4;
  border-color: #efc9b5;
  text-align: right;
  border-bottom-right-radius: 6px;
}

.community-chat-line.theirs {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 6px;
}

.community-chat-line strong {
  display: block;
  margin-bottom: 5px;
  color: #c96d42;
  font-size: 0.9rem;
}

.community-chat-line p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.95rem;
}

.community-chat-line small {
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 0.75rem;
}

#communityGroupMessageForm {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ead7cb;
}

#communityGroupMessageText {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #ffffff;
  font-size: 16px;
  outline: none;
}

#communityGroupMessageText:focus {
  border-color: #c96d42;
  box-shadow: 0 0 0 3px rgba(201, 109, 66, 0.12);
}

#communityGroupMessagesList .card {
  background: #fffaf7;
  border: 1px solid #ead7cb;
  border-radius: 18px;
  padding: 16px;
}

.community-lists-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 30px 0;
}

.community-list-panel {
  width: 100%;
  min-width: 0;
}

.community-list-panel h2 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.community-list-panel .card {
  height: auto;
  margin-bottom: 14px;
}

.community-list-panel .user-list-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-list-panel .form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

#favoritesList .card,
#blockedUsersList .card,
#reportedUsersList .card {
  padding: 16px 20px;
  margin-bottom: 12px;
  min-height: auto;
}

#favoritesList .card h3,
#blockedUsersList .card h3,
#reportedUsersList .card h3 {
  margin: 0;
  font-size: 1.1rem;
}

#favoritesList .btn,
#blockedUsersList .btn,
#reportedUsersList .btn {
  padding: 10px 16px;
}

/* =====================================================
   16. Adoption / animaux perdus / assurances
===================================================== */
.lost-poster-card {
  background: #fff;
  border: 1px solid #ead7cb;
  border-radius: 24px;
  padding: 28px;
  margin-top: 20px;
}

.lost-poster-info.full-width {
  width: 100%;
}

.lost-poster-info h2 {
  margin: 0 0 20px;
  color: #c96d42;
  font-size: 2rem;
}

.lost-poster-info p {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.offer-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  height: 100%;
}

.offer-card .card-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offer-card .card-actions button {
  width: 100%;
}

.insurance-offers {
  margin-top: 40px;
}

.insurance-offers .cards,
.form-card .cards {
  align-items: stretch;
}

.insurance-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 360px;
}

.insurance-card h3 {
  margin-bottom: 14px;
}

.insurance-card p {
  margin: 8px 0;
}

.insurance-card .form-actions {
  margin-top: auto !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.insurance-card .form-actions .btn,
.insurance-card .form-actions a {
  width: 100%;
  text-align: center;
  justify-content: center;
}

#adoptionAdsList .card,
#adoptionRequestsList .card {
  position: relative;
  border: 1px solid #ead7cb;
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%);
}

#adoptionAdsList .card h3,
#adoptionRequestsList .card h3 {
  color: #c96d42;
}

#adoptionAdsList .form-actions,
#adoptionRequestsList .form-actions {
  margin-top: 14px;
}

#adoptionAdsList .btn,
#adoptionRequestsList .btn {
  border-radius: 14px;
}

#adPhotosPreview {
  margin-top: 14px;
}

#adPhotosPreview img,
.adoption-photo,
.adoption-ad-photo {
  width: 100%;
  max-width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.adoption-photos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.adoption-photos-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #ead7cb;
}

.status-pending,
.status-accepted,
.status-refused {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.status-pending {
  background: #fff8e8;
  color: #b7791f;
}

.status-accepted {
  background: #edf9ee;
  color: #2f855a;
}

.status-refused {
  background: #fff0f0;
  color: #c53030;
}

#adoptionFilterType,
#adoptionFilterCity,
#adType,
#adCity,
#adAge,
#adTemperament,
#adSpecial,
#adContact {
  width: 100%;
}

#adoptionRequestsList .card > div:first-child {
  width: 100%;
}

#adoptionRequestsList small,
#adoptionAdsList small {
  color: #777;
  display: block;
  margin-top: 8px;
}

#adoptionAdsList .card:hover,
#adoptionRequestsList .card:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
  box-shadow: 0 12px 26px rgba(120, 70, 30, 0.08);
}

.adoption-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
  gap: 14px;
  margin-top: 14px;
}

.adoption-photo-box {
  position: relative;
  border: 1px solid #ead7cb;
  border-radius: 16px;
  overflow: hidden;
  background: #fffaf7;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.adoption-photo-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.adoption-photo-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #c96d42;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 999px;
}

.delete-adoption-photo-btn {
  width: 100%;
  border: none;
  background: #c96d42;
  color: white;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.delete-adoption-photo-btn:hover {
  background: #b95f37;
}

.cards .card input[type="file"] {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

.cards .card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#animalPreview1,
#animalPreview2 {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

#animalPreview1 img,
#animalPreview2 img,
#animalPreview1 video,
#animalPreview2 video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #f3f3f3;
}

.custom-file-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =====================================================
   17. Animations
===================================================== */
@keyframes playerPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes fadePop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes injuredCatBlink {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0.35;
    transform: scale(1.04);
  }
}

@keyframes thumbPopIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes popRechargeModal {
  0% {
    transform: scale(0.85) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes bannerPulse {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

@keyframes timeBonusPop {
  0% {
    transform: scale(0.6) translateY(10px);
    opacity: 0;
  }
  40% {
    transform: scale(1.08) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(-8px);
    opacity: 0;
  }
}

@keyframes fireworks-pop {
  from {
    transform: scale(0.8) translateY(0);
    opacity: 0.5;
  }
  to {
    transform: scale(1.25) translateY(-16px);
    opacity: 1;
  }
}

@keyframes catReactionPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes catReactionShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

@keyframes catReactionHappy {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-6px) scale(1.05); }
  60% { transform: translateY(0) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes catIdleFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes catAvatarPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes catAvatarShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

@keyframes catAvatarHappy {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-8px) scale(1.08); }
  60% { transform: translateY(0) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes pulseMission {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(223, 123, 61, 0.30);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 14px rgba(223, 123, 61, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(223, 123, 61, 0);
  }
}

@keyframes refugeFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatMini {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* =====================================================
   18. Responsive
===================================================== */
@media (max-width: 1200px) {
  .community-lists-row {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 1100px) {
  .shop-section .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-dashboard {
    grid-template-columns: 1fr;
  }

  .mission-top-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .community-groups-section {
    grid-template-columns: 1fr;
  }

  .community-card {
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  .community-lists-row {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px;
    right: 20px;
    background: white;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    width: 220px;
  }

  .nav.show {
    display: flex;
  }

  .hero,
  .form-grid,
  .profile-card,
  .profile-gallery {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .chat-form {
    flex-direction: column;
  }

  #healthForm .form-grid {
    grid-template-columns: 1fr;
  }

  .refuge-game-board {
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
  }

  .refuge-tile {
    min-height: 62px;
    font-size: 12px;
    padding: 4px;
  }

  .refuge-cat-image {
    width: 34px;
    height: 34px;
  }

  .collection-cat-image {
    width: 56px;
    height: 56px;
  }

  .virtual-cat-image {
    width: 110px;
    height: 110px;
  }

  .shop-section,
  .inventory-section {
    padding: 16px;
  }

  .shop-section .cards,
  .inventory-section #inventoryBox .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-section .card h3,
  .inventory-section #inventoryBox .card h3 {
    font-size: 0.85rem;
  }

  .daily-missions-section {
    border-radius: 22px;
  }

  #dailyMissionsBox .card {
    min-height: auto;
    padding: 18px;
  }

  #dailyMissionsBox .card h3 {
    font-size: 1rem;
  }

  #communityGroupDetail .form-card {
    padding: 20px;
    border-radius: 18px;
  }

  #communityGroupDetail h2 {
    font-size: 1.6rem;
  }

  #communityGroupDetail h3 {
    font-size: 1.25rem;
  }

  #communityGroupDetail .btn.primary {
    width: 100%;
    min-width: unset;
  }

  .community-chat-history {
    max-height: 320px;
    padding: 12px;
  }

  .community-chat-line {
    max-width: 90%;
    padding: 10px 12px;
  }

  .community-chat-line p {
    font-size: 0.9rem;
  }

  #communityGroupMessageForm .form-actions {
    justify-content: center;
  }

  #communityGroupMessageForm .btn,
  #adoptionRequestsList .form-actions .btn,
  #adoptionAdsList .form-actions .btn {
    width: 100%;
  }

  .adoption-photos-gallery,
  .adoption-photo-preview {
    grid-template-columns: 1fr;
  }

  #adPhotosPreview img,
  .adoption-photo,
  .adoption-ad-photo {
    max-width: 100%;
    height: 180px;
  }

  .adoption-photo-box img {
    height: 190px;
  }
}

@media (max-width: 700px) {
  .virtual-stats-grid,
  .virtual-info-grid,
  .virtual-power-grid {
    grid-template-columns: 1fr;
  }

  .mission-top-row {
    grid-template-columns: 1fr;
  }

  .mission-validate-actions {
    margin-top: 12px;
  }

  .mission-validate-actions .btn,
  #validateMissionButton {
    width: 100%;
    max-width: 200px;
  }

  .studio-creation-image {
    height: 280px;
  }

  .studio-style-avatar .studio-creation-image {
    width: 240px;
    height: 240px;
  }

  .studio-creation-content h2 {
    font-size: 22px;
  }

  .studio-creation-content p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .premium-box .form-actions {
    flex-direction: column !important;
  }

  .premium-box .form-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .global-back-button {
    padding: 8px 13px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .community-lists-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shop-section .cards,
  .pet-actions {
    grid-template-columns: 1fr;
  }
}


.community-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.community-detail-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.community-detail-photo-wrap {
  width: 100%;
}

.community-detail-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
}

.community-detail-info p {
  margin: 8px 0;
}

.community-detail-stories {
  display: grid;
  gap: 16px;
}

.community-detail-story-card img {
  max-height: 280px;
  object-fit: cover;
  border-radius: 18px;
}

@media (max-width: 700px) {
  .community-detail-main {
    grid-template-columns: 1fr;
  }

  .community-detail-photo {
    max-width: 100%;
  }
}

 
/* =====================================================
   BOUTON RETOUR GLOBAL
===================================================== */

.global-back-button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #4a2d22;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.global-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

 
/* =====================================================
   ACCUEIL - HERO
===================================================== */

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffaf6;
  border: 1px solid #ead7cb;
  color: #5b4a42;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.hero-highlights strong {
  color: #c96d42;
}

.access-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  max-width: 720px;
}

.access-pill {
  background: white;
  border: 1px solid #ead7cb;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.access-pill span {
  grid-row: 1 / 3;
  font-size: 24px;
}

.access-pill strong {
  color: #2f2f2f;
  font-size: 15px;
}

.access-pill small {
  color: #6b5f58;
  line-height: 1.4;
  font-size: 13px;
}

.free-pill {
  border-color: #cde8d3;
  background: #f6fff8;
}

.premium-pill {
  border-color: #f0d2bf;
  background: #fffaf6;
}

/* =====================================================
   ACCUEIL - RÉSUMÉ DES CATÉGORIES
===================================================== */

.features {
  margin-top: 50px;
}

.features > h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: #2f2f2f;
}

.features-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.summary-item {
  background: white;
  border: 1px solid #ead7cb;
  border-radius: 18px;
  padding: 16px 12px;
  text-decoration: none;
  color: #2f2f2f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-item span {
  font-size: 26px;
  line-height: 1;
}

.summary-item strong {
  font-size: 15px;
  text-align: center;
}

.summary-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

/* =====================================================
   ACCUEIL - CATÉGORIES
===================================================== */

.feature-category {
  scroll-margin-top: 95px;
  margin-top: 42px;
  padding: 26px;
  border-radius: 26px;
  background: #fffaf6;
  border: 1px solid #ead7cb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.feature-category > h3 {
  font-size: 27px;
  color: #c96d42;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#careCategory > h3::before {
  content: "🩺";
}

#protectCategory > h3::before {
  content: "🛡️";
}

#shareCategory > h3::before {
  content: "🤝";
}

#funCategory > h3::before {
  content: "🎮";
}

.category-intro {
  color: #6b5f58;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 820px;
  font-size: 16px;
}

.feature-category .cards {
  margin-top: 18px;
}

.feature-category .card {
  height: 100%;
}

.feature-category .card h3 {
  padding-right: 60px;
}

.feature-category .clickable-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-category .clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   ACCUEIL - BADGES ET BÉNÉFICES
===================================================== */

.free-card {
  position: relative;
  border: 1px solid #cde8d3;
  background: #fbfffc;
}

.free-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #2f9e5b;
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 999px;
}

.free-benefit,
.premium-benefit {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.free-benefit {
  background: #f3fff6;
  border: 1px solid #cde8d3;
  color: #2f6f45;
}

.premium-benefit {
  background: #fff6f0;
  border: 1px solid #f0d2bf;
  color: #7a4a33;
}

/* =====================================================
   ACCUEIL - CTA PREMIUM FINAL
===================================================== */

.premium-home-cta {
  margin-top: 44px;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fffaf6, #fff0e6);
  border: 1px solid #f0d2bf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.premium-home-cta > div {
  flex: 1;
}

.premium-home-cta h3 {
  color: #c96d42;
  margin-bottom: 8px;
  font-size: 24px;
}

.premium-home-cta p {
  color: #6b5f58;
  line-height: 1.5;
  max-width: 760px;
}

.premium-home-cta .btn {
  white-space: nowrap;
}

.premium-cta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.premium-cta-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid #f0d2bf;
  color: #5b4a42;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.premium-cta-tags strong {
  color: #c96d42;
}
 

/* =====================================================
   RESPONSIVE ACCUEIL
===================================================== */

@media (max-width: 768px) {
  .features {
    margin-top: 36px;
  }

  .features > h2 {
    font-size: 26px;
  }

  .features-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item {
    min-height: 88px;
    padding: 14px 10px;
  }

  .feature-category {
    padding: 18px;
    border-radius: 20px;
    margin-top: 30px;
  }

  .feature-category > h3 {
    font-size: 22px;
  }

  .category-intro {
    font-size: 15px;
  }

  .hero-highlights {
    gap: 8px;
  }

  .hero-highlights span {
    font-size: 13px;
    padding: 8px 10px;
  }

  .access-summary {
    grid-template-columns: 1fr;
  }

  .premium-home-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .premium-home-cta .btn {
    width: 100%;
    text-align: center;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fffaf6;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .nav-actions .lang-btn {
    width: 100%;
    text-align: center;
  }

  body {
    padding-bottom: 78px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2500;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #ead7cb;
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  }

  .mobile-bottom-nav a {
    text-decoration: none;
    color: #2f2f2f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-bottom-nav a span {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-bottom-nav a strong {
    font-size: 11px;
    line-height: 1.1;
  }

  .mobile-bottom-nav a:hover {
    background: #fff3eb;
    color: #c96d42;
  }
}

/* =====================================================
   BADGES DE VISIBILITÉ STORY
===================================================== */

.story-visibility-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-left: 6px;
  border: 1px solid transparent;
}

.story-visibility-badge.public,
.story-visibility-public {
  background: #e8f7ee;
  color: #207a3a;
  border-color: #bde6cb;
}

.story-visibility-badge.private,
.story-visibility-private {
  background: #fff1e6;
  color: #b45309;
  border-color: #f3d0ad;
}

/* =====================================================
   PAGE MON CHAT - ZONE STORIES
===================================================== */

.story-zone {
  margin-top: 28px;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  border: 1px solid #ead7cb;
  border-radius: 30px;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08);
}

.story-zone-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.story-zone-header h2 {
  margin: 0 0 8px;
  color: #2f2f2f;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.story-help-text {
  margin: 0;
  max-width: 680px;
  color: #6b5f58;
  font-size: 1rem;
  line-height: 1.55;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0e6;
  color: #b85a2f;
  border: 1px solid #f0d2bf;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Formulaire story */
.story-zone #storyForm {
  margin-top: 0;
}

.story-zone #storyForm .form-grid {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}

.story-zone #storyForm .form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.story-zone #storyForm label {
  margin: 0;
  color: #2f2f2f;
  font-size: 0.95rem;
  font-weight: 900;
}

.story-zone #storyForm input,
.story-zone #storyForm select {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid #ded3ca;
  border-radius: 18px;
  background: #ffffff;
  color: #2f2f2f;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-zone #storyForm input:focus,
.story-zone #storyForm select:focus {
  border-color: #c96d42;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14);
}

.story-zone #storyForm input[type="file"] {
  height: auto;
  padding: 12px;
  cursor: pointer;
}

.story-zone #storyForm input[type="file"]::file-selector-button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  margin-right: 14px;
  background: #fff0e6;
  color: #b85a2f;
  font-weight: 900;
  cursor: pointer;
}

.story-zone #storyForm input[type="file"]::file-selector-button:hover {
  background: #f8ddca;
}

.story-zone .form-actions {
  margin-top: 24px;
}

.story-zone #storyPublishButton {
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

.story-zone #storyPublishButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(201, 109, 66, 0.32) !important;
}

/* Liste des stories */
.story-list-zone {
  background: #ffffff;
}

.story-list-zone #storiesList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

.story-list-zone #storiesList:empty::before {
  content: "Aucune story pour le moment.";
  grid-column: 1 / -1;
  display: block;
  padding: 26px;
  border-radius: 22px;
  background: #fffaf7;
  border: 1px dashed #d9c7b9;
  color: #6b5f58;
  font-size: 1rem;
}

.story-list-zone #storiesList .card,
.story-list-zone #storiesList .story-card,
.story-list-zone #storiesList .home-story-card,
.story-list-zone #storiesList .mini-story-card,
.story-list-zone #storiesList > div {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border: 1px solid #ead7cb;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(60, 38, 22, 0.08);
  overflow: hidden;
}

.story-list-zone #storiesList img,
.story-list-zone #storiesList .story-photo,
.story-list-zone #storiesList .story-only-image,
.story-list-zone #storiesList .mini-story-image {
  width: 100%;
  height: 230px;
  max-height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  margin: 12px 0;
}

.story-list-zone #storiesList h3 {
  color: #c96d42;
  margin-bottom: 8px;
}

.story-list-zone #storiesList p {
  margin: 8px 0;
  color: #3f332e;
  line-height: 1.5;
}

.story-list-zone #storiesList small {
  color: #776960;
}

/* Mobile */
@media (max-width: 768px) {
  .story-zone {
    padding: 22px;
    border-radius: 24px;
  }

  .story-zone-header {
    flex-direction: column;
  }

  .story-zone .form-actions {
    flex-direction: column;
  }

  .story-zone .form-actions .btn {
    width: 100%;
  }

  .story-list-zone #storiesList {
    grid-template-columns: 1fr;
  }

  .story-list-zone #storiesList .card,
  .story-list-zone #storiesList .story-card,
  .story-list-zone #storiesList .home-story-card,
  .story-list-zone #storiesList .mini-story-card,
  .story-list-zone #storiesList > div {
    max-width: 100%;
  }
}

/* =====================================================
   CORRECTION FINALE - STORIES DANS CAT-PROFILE
===================================================== */

main.container .story-zone {
  margin-top: 28px !important;
  padding: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  border-radius: 30px !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

main.container .story-zone-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 24px !important;
}

main.container .story-zone-header h2 {
  margin: 0 0 8px !important;
  color: #2f2f2f !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.04em !important;
}

main.container .story-help-text {
  margin: 0 !important;
  color: #6b5f58 !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

main.container .story-zone .form-grid {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}

main.container .story-zone .form-group label {
  margin-bottom: 8px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

main.container .story-zone input,
main.container .story-zone select {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
}

main.container .story-zone input:focus,
main.container .story-zone select:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

main.container .story-zone input[type="file"] {
  height: auto !important;
  padding: 12px !important;
}

main.container .story-zone input[type="file"]::file-selector-button {
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-right: 14px !important;
  background: #fff0e6 !important;
  color: #b85a2f !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

main.container .story-zone .form-actions {
  margin-top: 24px !important;
}

main.container .story-zone #storyPublishButton {
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

/* Liste des stories : empêche les images géantes */
main.container #storiesList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px)) !important;
  gap: 22px !important;
  align-items: start !important;
  justify-content: start !important;
  margin-top: 18px !important;
}

main.container #storiesList > div,
main.container #storiesList .card,
main.container #storiesList .story-card,
main.container #storiesList .home-story-card,
main.container #storiesList .mini-story-card {
  width: 100% !important;
  max-width: 340px !important;
  background: #ffffff !important;
  border: 1px solid #ead7cb !important;
  border-radius: 24px !important;
  padding: 16px !important;
  box-shadow: 0 12px 28px rgba(60, 38, 22, 0.08) !important;
  overflow: hidden !important;
}

main.container #storiesList img {
  width: 100% !important;
  height: 230px !important;
  max-height: 230px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 18px !important;
  margin: 12px 0 !important;
}

 

@media (max-width: 768px) {
  main.container .story-zone {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  main.container #storiesList {
    grid-template-columns: 1fr !important;
  }

  main.container #storiesList > div,
  main.container #storiesList .card,
  main.container #storiesList .story-card,
  main.container #storiesList .home-story-card,
  main.container #storiesList .mini-story-card {
    max-width: 100% !important;
  }
}

/* =====================================================
   CORRECTION FINALE - PROFIL DU CHAT
===================================================== */

.cat-profile-card {
  margin-top: 28px !important;
  padding: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  border-radius: 30px !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.cat-profile-card h2 {
  margin: 0 0 24px !important;
  color: #2f2f2f !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.04em !important;
}

#catForm .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

#catForm .form-group {
  display: flex !important;
  flex-direction: column !important;
}

#catForm .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

#catForm input,
#catForm select {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease !important;
}

#catForm input:focus,
#catForm select:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

#catForm input[type="file"] {
  height: auto !important;
  padding: 12px !important;
  cursor: pointer !important;
}

#catForm input[type="file"]::file-selector-button {
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-right: 14px !important;
  background: #fff0e6 !important;
  color: #b85a2f !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

#catForm input[type="file"]::file-selector-button:hover {
  background: #f8ddca !important;
}

#catForm small {
  margin-top: 8px !important;
  color: #6b5f58 !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

#catForm input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  accent-color: #c96d42 !important;
  box-shadow: none !important;
}

#catForm label:has(input[type="checkbox"]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: fit-content !important;
  padding: 12px 16px !important;
  border-radius: 18px !important;
  background: #fff7f1 !important;
  border: 1px solid #ead7cb !important;
  color: #3f332e !important;
  font-weight: 900 !important;
}

#catForm .form-actions {
  margin-top: 28px !important;
  gap: 14px !important;
}

#catForm .btn {
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-weight: 900 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

#catForm .btn:hover {
  transform: translateY(-2px) !important;
}

#catForm .btn.primary {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

#catForm .btn.secondary {
  background: #fff8f3 !important;
  color: #4a2d22 !important;
  border: 1px solid #ead7cb !important;
}

/* PROFIL ENREGISTRÉ */
#savedProfileSection {
  margin-top: 30px !important;
}

#savedProfileSection .profile-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  border-radius: 30px !important;
  padding: 30px !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

#savedProfileSection .profile-info h2 {
  color: #c96d42 !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 18px !important;
}

#savedProfileSection .profile-info p {
  margin: 10px 0 !important;
  color: #3f332e !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

#savedProfileSection .profile-info strong {
  color: #2f2f2f !important;
  font-weight: 900 !important;
}

.profile-section-label {
  display: inline-flex !important;
  width: fit-content !important;
  margin-bottom: 12px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #fff0e6 !important;
  color: #b85a2f !important;
  border: 1px solid #f0d2bf !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

#profileGallery {
  gap: 14px !important;
}

#profileGallery img,
#savedProfileSection .gallery-image {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 20px !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 10px 24px rgba(60, 38, 22, 0.08) !important;
}

 

/* MOBILE */
@media (max-width: 768px) {
  .cat-profile-card,
  #savedProfileSection .profile-card {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  #catForm .form-grid {
    grid-template-columns: 1fr !important;
  }

  #catForm .form-actions {
    flex-direction: column !important;
  }

  #catForm .btn {
    width: 100% !important;
    text-align: center !important;
  }

  #savedProfileSection .profile-card {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================
   PAGE SUIVI SANTÉ - VERSION PROPRE
===================================================== */

.health-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px !important;
}

/* EN-TÊTE */
.health-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.health-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.health-page .page-header p {
  max-width: 760px;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* CARTES RÉSUMÉ SANTÉ */
.health-page > .cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 28px 0 32px !important;
}

.health-page > .cards > .card {
  min-height: 180px !important;
  padding: 30px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(234, 215, 203, 0.85) !important;
  box-shadow: 0 16px 34px rgba(60, 38, 22, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.health-page > .cards > .card h3 {
  color: #c96d42 !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.02em !important;
}

.health-page > .cards > .card p {
  color: #2f2f2f !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* BLOCS FORMULAIRE + MUTUELLES */
.health-page .form-card {
  margin-top: 30px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.health-page .form-card h2 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

.health-page .form-card > p {
  color: #5f514a !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

/* FORMULAIRE SANTÉ */
#healthForm .form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

#healthForm .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

#healthForm input,
#healthForm select,
#healthForm textarea {
  width: 100% !important;
  min-height: 62px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#healthForm input:focus,
#healthForm select:focus,
#healthForm textarea:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

#healthForm .form-actions {
  margin-top: 26px !important;
}

/* BOUTON SANTÉ */
#healthForm .btn,
#healthForm button {
  border-radius: 999px !important;
  padding: 15px 24px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

#healthForm .btn:hover,
#healthForm button:hover {
  transform: translateY(-2px) !important;
}

#healthForm .btn.primary,
#healthForm button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

/* MUTUELLES */
.health-page .insurance-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin-top: 24px !important;
}

.health-page .insurance-card {
  min-height: 360px !important;
  padding: 24px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(234, 215, 203, 0.9) !important;
  box-shadow: 0 12px 28px rgba(60, 38, 22, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
}

.health-page .insurance-card h3 {
  color: #c96d42 !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  margin-bottom: 16px !important;
}

.health-page .insurance-card p {
  color: #3d302b !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
  margin: 8px 0 !important;
}

.health-page .insurance-card .form-actions {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.health-page .insurance-card .btn {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 13px 18px !important;
  font-weight: 900 !important;
}

.health-page .insurance-card .btn.primary {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(201, 109, 66, 0.24) !important;
}

.health-page .insurance-card .btn.secondary {
  background: #fff8f3 !important;
  color: #4a2d22 !important;
  border: 1px solid #ead7cb !important;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .health-page > .cards,
  .health-page .insurance-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .health-page {
    padding: 28px 14px 70px !important;
  }

  .health-page > .cards,
  .health-page .insurance-cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .health-page > .cards > .card,
  .health-page .form-card,
  .health-page .insurance-card {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  #healthForm .btn,
  #healthForm button,
  .health-page .insurance-card .btn {
    width: 100% !important;
  }
}

/* =====================================================
   PAGE ASSISTANT ET CONSEILS - VERSION PROPRE
===================================================== */

.assistant-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px !important;
}

/* EN-TÊTE */
.assistant-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.assistant-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.assistant-page .page-header p {
  max-width: 820px;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* BLOC ASSISTANT */
.assistant-page .form-card {
  margin-top: 30px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.assistant-page .form-card h2 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

.assistant-page .form-card > p {
  color: #5f514a !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

/* FORMULAIRE ASSISTANT */
.assistant-page .form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

.assistant-page .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

.assistant-page input,
.assistant-page select,
.assistant-page textarea {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.assistant-page input:focus,
.assistant-page select:focus,
.assistant-page textarea:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

/* BOUTONS */
.assistant-page .btn,
.assistant-page button {
  border-radius: 999px !important;
  padding: 15px 24px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.assistant-page .btn:hover,
.assistant-page button:hover {
  transform: translateY(-2px) !important;
}

.assistant-page .btn.primary,
.assistant-page button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

/* RÉPONSE ASSISTANT */
.assistant-page #assistantAnswer,
.assistant-page #assistantResponse,
.assistant-page .assistant-answer,
.assistant-page .assistant-response {
  margin-top: 22px !important;
  padding: 20px !important;
  border-radius: 22px !important;
  background: #fff8f3 !important;
  border: 1px solid #ead7cb !important;
  color: #3d302b !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* SECTION CONSEILS */
.assistant-page .section-title,
.assistant-page > h2,
.assistant-page .advice-title {
  margin-top: 40px !important;
  margin-bottom: 8px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.3rem) !important;
  font-weight: 950 !important;
  letter-spacing: -0.05em !important;
}

.assistant-page .section-text,
.assistant-page .advice-text {
  color: #5f514a !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

/* CARTES CONSEILS */
.assistant-page .cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 28px !important;
}

.assistant-page .cards > .card {
  min-height: 180px !important;
  padding: 28px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(234, 215, 203, 0.85) !important;
  box-shadow: 0 16px 34px rgba(60, 38, 22, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.assistant-page .cards > .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(60, 38, 22, 0.11) !important;
}

.assistant-page .cards > .card h3 {
  color: #c96d42 !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.02em !important;
}

.assistant-page .cards > .card p {
  color: #2f2f2f !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .assistant-page .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .assistant-page {
    padding: 28px 14px 70px !important;
  }

  .assistant-page .form-card,
  .assistant-page .cards > .card {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .assistant-page .cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .assistant-page .btn,
  .assistant-page button {
    width: 100% !important;
  }
}

.advice-header {
  margin-top: 40px !important;
  margin-bottom: 18px !important;
}

.advice-header h2 {
  margin: 0 0 10px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

.advice-header p {
  max-width: 820px !important;
  color: #5f514a !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

/* =====================================================
   PAGE ALERTE PERTE - VERSION PROPRE
===================================================== */

.lost-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px !important;
}

/* EN-TÊTE */
.lost-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.lost-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.lost-page .page-header h2 {
  margin: 0 0 10px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

.lost-page .page-header p {
  max-width: 820px !important;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* BLOCS FORMULAIRES */
.lost-page .form-card {
  margin-top: 30px !important;
  margin-bottom: 34px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.lost-page .form-card h2 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

.lost-page .form-card > p {
  color: #5f514a !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

/* FORMULAIRE ALERTE */
.lost-page .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.lost-page .form-group {
  display: flex !important;
  flex-direction: column !important;
}

.lost-page .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

.lost-page input,
.lost-page select,
.lost-page textarea {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.lost-page textarea {
  min-height: 120px !important;
  padding: 16px 18px !important;
  resize: vertical !important;
}

.lost-page input:focus,
.lost-page select:focus,
.lost-page textarea:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

.lost-page input[type="file"] {
  height: auto !important;
  padding: 12px !important;
  cursor: pointer !important;
}

.lost-page input[type="file"]::file-selector-button {
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-right: 14px !important;
  background: #fff0e6 !important;
  color: #b85a2f !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.lost-page input[type="file"]::file-selector-button:hover {
  background: #f8ddca !important;
}

.lost-page .full-width {
  grid-column: 1 / -1 !important;
}

/* BOUTONS */
.lost-page .form-actions {
  display: flex !important;
  gap: 14px !important;
  margin-top: 26px !important;
  flex-wrap: wrap !important;
}

.lost-page .btn,
.lost-page button {
  border-radius: 999px !important;
  padding: 15px 24px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.lost-page .btn:hover,
.lost-page button:hover {
  transform: translateY(-2px) !important;
}

.lost-page .btn.primary,
.lost-page button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

.lost-page .btn.secondary {
  background: #fff8f3 !important;
  color: #4a2d22 !important;
  border: 1px solid #ead7cb !important;
}

/* TITRES DE SECTIONS */
.lost-section-title {
  margin-top: 44px !important;
  margin-bottom: 18px !important;
}

.lost-section-title h2 {
  margin: 0 0 10px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

.lost-section-title p {
  max-width: 820px !important;
  color: #5f514a !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

/* FICHE ALERTE GÉNÉRÉE */
.lost-poster-zone {
  margin-top: 18px !important;
  margin-bottom: 34px !important;
}

.lost-poster-card,
.lost-alert-card {
  margin-top: 20px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
  overflow: hidden !important;
}

.lost-poster-card h2,
.lost-alert-card h2 {
  margin: 0 0 20px !important;
  color: #c53030 !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 950 !important;
  text-align: center !important;
  letter-spacing: -0.04em !important;
}

.lost-poster-card h3,
.lost-alert-card h3 {
  margin: 18px 0 12px !important;
  color: #c96d42 !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
}

.lost-poster-card p,
.lost-alert-card p {
  margin: 10px 0 !important;
  color: #3f332e !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

.lost-poster-card strong,
.lost-alert-card strong {
  color: #2f2f2f !important;
  font-weight: 900 !important;
}

.lost-poster-card img,
.lost-alert-card img,
.lost-poster-card .memory-media,
.lost-alert-card .memory-media {
  width: 100% !important;
  max-height: 420px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 24px !important;
  border: 1px solid #ead7cb !important;
  margin: 18px 0 !important;
  background: #fff3eb !important;
}

/* LISTES D’ALERTES ET MESSAGES */
.lost-page .cards,
#lostAlertsList,
#foundCatMessagesList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 24px !important;
}

.lost-page .card,
#lostAlertsList .card,
#foundCatMessagesList .card {
  position: relative !important;
  min-height: 180px !important;
  padding: 28px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(234, 215, 203, 0.85) !important;
  box-shadow: 0 16px 34px rgba(60, 38, 22, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.lost-page .card:hover,
#lostAlertsList .card:hover,
#foundCatMessagesList .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(60, 38, 22, 0.11) !important;
}

.lost-page .card h3,
#lostAlertsList .card h3,
#foundCatMessagesList .card h3 {
  color: #c96d42 !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.02em !important;
}

.lost-page .card p,
#lostAlertsList .card p,
#foundCatMessagesList .card p {
  color: #2f2f2f !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
}

#lostAlertsList img,
#foundCatMessagesList img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  margin: 12px 0 !important;
  border: 1px solid #ead7cb !important;
}

/* BADGE MESSAGE */
.lost-card-with-notif {
  position: relative !important;
}

.lost-message-badge {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff3eb !important;
  border: 1px solid #e7c2ad !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08) !important;
  font-size: 18px !important;
  z-index: 2 !important;
}

/* MOBILE */
@media (max-width: 768px) {
  .lost-page {
    padding: 28px 14px 70px !important;
  }

  .lost-page .form-card,
  .lost-poster-card,
  .lost-alert-card,
  .lost-page .card,
  #lostAlertsList .card,
  #foundCatMessagesList .card {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .lost-page .form-grid {
    grid-template-columns: 1fr !important;
  }

  .lost-page .form-actions {
    flex-direction: column !important;
  }

  .lost-page .btn,
  .lost-page button {
    width: 100% !important;
    text-align: center !important;
  }

  .lost-page .cards,
  #lostAlertsList,
  #foundCatMessagesList {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #lostAlertsList img,
  #foundCatMessagesList img {
    height: 190px !important;
  }
}

/* =====================================================
   PAGE COMMUNAUTÉ - VERSION PROPRE
===================================================== */

.community-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px !important;
}

/* EN-TÊTE */
.community-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.community-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.community-page .page-header p {
  max-width: 820px !important;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* GRILLE DES PROFILS */
.community-page .community-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 28px !important;
  margin-bottom: 34px !important;
}

.community-page .community-card,
.community-page .community-grid .card {
  display: flex !important;
  gap: 18px !important;
  align-items: flex-start !important;
  background: #ffffff !important;
  border: 1px solid rgba(234, 215, 203, 0.85) !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 16px 34px rgba(60, 38, 22, 0.07) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.community-page .community-card:hover,
.community-page .community-grid .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(60, 38, 22, 0.11) !important;
}

.community-page .community-avatar {
  width: 90px !important;
  height: 90px !important;
  object-fit: cover !important;
  border-radius: 24px !important;
  flex-shrink: 0 !important;
  border: 1px solid #ead7cb !important;
  background: #fff3eb !important;
}

.community-page .community-card-content h3,
.community-page .community-grid .card h3 {
  color: #c96d42 !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
  margin-bottom: 12px !important;
}

.community-page .community-card-content p,
.community-page .community-grid .card p {
  color: #2f2f2f !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin: 0 0 10px !important;
}

/* DÉTAIL PROFIL */
.community-page #communityProfileDetailSection {
  margin-top: 30px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.community-page #communityProfileDetail h2 {
  color: #c96d42 !important;
  font-size: 2rem !important;
  font-weight: 950 !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.05em !important;
}

.community-page #communityProfileDetail p {
  color: #3f332e !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin: 10px 0 !important;
}

/* LIGNES FAVORIS / AMIS / BLOQUÉS */
.community-page .community-lists-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 34px 0 !important;
  align-items: stretch !important;
}

.community-page .community-list-panel {
  width: 100% !important;
  min-width: 0 !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(234, 215, 203, 0.85) !important;
  box-shadow: 0 14px 30px rgba(60, 38, 22, 0.06) !important;
}

.community-page .community-list-panel h2 {
  margin: 0 0 16px !important;
  color: #2f2f2f !important;
  font-size: 1.25rem !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
}

.community-page .community-list-panel .card,
.community-page #favoritesList .card,
.community-page #friendRequestsList .card,
.community-page #friendsList .card,
.community-page #blockedUsersList .card,
.community-page #reportedUsersList .card {
  padding: 16px !important;
  border-radius: 18px !important;
  background: #fffaf7 !important;
  border: 1px solid #ead7cb !important;
  box-shadow: none !important;
  margin-bottom: 12px !important;
}

.community-page .community-list-panel h3 {
  color: #c96d42 !important;
  font-size: 1.05rem !important;
  margin-bottom: 8px !important;
}

.community-page .community-list-panel p {
  color: #3f332e !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
}

/* SECTION GROUPES */
.community-page .community-groups-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
  margin-top: 34px !important;
  width: 100% !important;
}

/* CARTES FORMULAIRE / GROUPES */
.community-page .form-card,
.community-page .community-groups-section > .saved-profile {
  margin-top: 0 !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.community-page .form-card h2,
.community-page .community-groups-section > .saved-profile h2 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

/* FORMULAIRE GROUPE */
.community-page .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.community-page .form-group {
  display: flex !important;
  flex-direction: column !important;
}

.community-page .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

.community-page input,
.community-page select,
.community-page textarea {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.community-page input:focus,
.community-page select:focus,
.community-page textarea:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

.community-page .full-width {
  grid-column: 1 / -1 !important;
}

/* BOUTONS */
.community-page .form-actions {
  display: flex !important;
  gap: 14px !important;
  margin-top: 26px !important;
  flex-wrap: wrap !important;
}

.community-page .btn,
.community-page button {
  border-radius: 999px !important;
  padding: 15px 24px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.community-page .btn:hover,
.community-page button:hover {
  transform: translateY(-2px) !important;
}

.community-page .btn.primary,
.community-page button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

.community-page .btn.secondary {
  background: #fff8f3 !important;
  color: #4a2d22 !important;
  border: 1px solid #ead7cb !important;
}

/* LISTE DES GROUPES */
.community-page #communityGroupsList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 24px !important;
}

.community-page #communityGroupsList .card {
  min-height: 180px !important;
  padding: 28px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(234, 215, 203, 0.85) !important;
  box-shadow: 0 16px 34px rgba(60, 38, 22, 0.07) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.community-page #communityGroupsList .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(60, 38, 22, 0.11) !important;
}

.community-page #communityGroupsList .card h3 {
  color: #c96d42 !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
  margin-bottom: 16px !important;
}

.community-page #communityGroupsList .card p {
  color: #2f2f2f !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
}

/* DÉTAIL GROUPE */
.community-page #communityGroupDetail .form-card {
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.community-page #communityGroupDetail h2 {
  color: #c96d42 !important;
  font-size: 2rem !important;
  font-weight: 950 !important;
  margin-bottom: 14px !important;
}

.community-page #communityGroupDetail h3 {
  color: #2f2f2f !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
}

.community-page #communityGroupDetail p,
.community-page #communityGroupDetail li {
  color: #3f332e !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

/* CHAT GROUPE */
.community-page .community-chat-history {
  max-height: 380px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 18px !important;
  background: #fff7f2 !important;
  border: 1px solid #ead7cb !important;
  border-radius: 24px !important;
}

.community-page .community-chat-line {
  max-width: 78% !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05) !important;
}

.community-page .community-chat-line.mine {
  align-self: flex-end !important;
  background: #ffefe4 !important;
  border-color: #efc9b5 !important;
  text-align: right !important;
}

.community-page .community-chat-line.theirs {
  align-self: flex-start !important;
  background: #ffffff !important;
}

/* MOBILE */
@media (max-width: 1100px) {
  .community-page .community-lists-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .community-page {
    padding: 28px 14px 70px !important;
  }

  .community-page .community-grid,
  .community-page #communityGroupsList,
  .community-page .community-lists-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .community-page .community-card {
    flex-direction: column !important;
  }

  .community-page .community-avatar {
    width: 100% !important;
    height: 220px !important;
  }

  .community-page .form-card,
  .community-page .community-groups-section > .saved-profile,
  .community-page #communityProfileDetailSection,
  .community-page .community-list-panel,
  .community-page #communityGroupsList .card {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .community-page .form-grid {
    grid-template-columns: 1fr !important;
  }

  .community-page .form-actions {
    flex-direction: column !important;
  }

  .community-page .btn,
  .community-page button {
    width: 100% !important;
    text-align: center !important;
  }

  .community-page .community-chat-line {
    max-width: 92% !important;
  }
}

/* =====================================================
   PAGE ADOPTION - VERSION PROPRE
===================================================== */

.adoption-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px !important;
}

/* EN-TÊTE */
.adoption-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.adoption-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.adoption-page .page-header p {
  max-width: 820px !important;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* BLOCS FORMULAIRES + SECTIONS */
.adoption-page .form-card,
.adoption-page .saved-profile {
  margin-top: 30px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.adoption-page .form-card h2,
.adoption-page .saved-profile h2 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

.adoption-page .form-card > p,
.adoption-page .saved-profile > p {
  color: #5f514a !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

/* FORMULAIRES */
.adoption-page .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.adoption-page .form-group {
  display: flex !important;
  flex-direction: column !important;
}

.adoption-page .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

.adoption-page input,
.adoption-page select,
.adoption-page textarea {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.adoption-page input:focus,
.adoption-page select:focus,
.adoption-page textarea:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

.adoption-page input[type="file"] {
  height: auto !important;
  padding: 12px !important;
  cursor: pointer !important;
}

.adoption-page input[type="file"]::file-selector-button {
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-right: 14px !important;
  background: #fff0e6 !important;
  color: #b85a2f !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.adoption-page input[type="file"]::file-selector-button:hover {
  background: #f8ddca !important;
}

.adoption-page small {
  margin-top: 8px !important;
  color: #6b5f58 !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

.adoption-page .full-width {
  grid-column: 1 / -1 !important;
}

/* BOUTONS */
.adoption-page .form-actions {
  display: flex !important;
  gap: 14px !important;
  margin-top: 26px !important;
  flex-wrap: wrap !important;
}

.adoption-page .btn,
.adoption-page button {
  border-radius: 999px !important;
  padding: 15px 24px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.adoption-page .btn:hover,
.adoption-page button:hover {
  transform: translateY(-2px) !important;
}

.adoption-page .btn.primary,
.adoption-page button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

.adoption-page .btn.secondary {
  background: #fff8f3 !important;
  color: #4a2d22 !important;
  border: 1px solid #ead7cb !important;
}

/* LISTES DES ANNONCES */
.adoption-page #adoptionAdsList,
.adoption-page #adoptionRequestsList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 24px !important;
}

.adoption-page #adoptionAdsList .card,
.adoption-page #adoptionRequestsList .card {
  position: relative !important;
  min-height: 220px !important;
  padding: 28px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(234, 215, 203, 0.85) !important;
  box-shadow: 0 16px 34px rgba(60, 38, 22, 0.07) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.adoption-page #adoptionAdsList .card:hover,
.adoption-page #adoptionRequestsList .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(60, 38, 22, 0.11) !important;
}

.adoption-page #adoptionAdsList .card h3,
.adoption-page #adoptionRequestsList .card h3 {
  color: #c96d42 !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.02em !important;
}

.adoption-page #adoptionAdsList .card p,
.adoption-page #adoptionRequestsList .card p {
  color: #2f2f2f !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
}

.adoption-page #adoptionAdsList small,
.adoption-page #adoptionRequestsList small {
  color: #777 !important;
  display: block !important;
  margin-top: 8px !important;
}

/* PHOTOS */
.adoption-page .adoption-photo-preview {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px)) !important;
  gap: 14px !important;
  margin-top: 14px !important;
}

.adoption-page .adoption-photo-box {
  position: relative !important;
  border: 1px solid #ead7cb !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fffaf7 !important;
  box-shadow: 0 8px 18px rgba(60, 38, 22, 0.06) !important;
}

.adoption-page .adoption-photo-box img,
.adoption-page .adoption-photo,
.adoption-page .adoption-ad-photo,
.adoption-page #adPhotosPreview img {
  width: 100% !important;
  height: 170px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 16px !important;
}

.adoption-page .adoption-photos-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  margin: 14px 0 !important;
}

.adoption-page .adoption-photos-gallery img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  border: 1px solid #ead7cb !important;
}

/* STATUTS */
.adoption-page .status-pending,
.adoption-page .status-accepted,
.adoption-page .status-refused {
  display: inline-block !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  font-size: 0.85rem !important;
  margin-top: 8px !important;
}

.adoption-page .status-pending {
  background: #fff8e8 !important;
  color: #b7791f !important;
}

.adoption-page .status-accepted {
  background: #edf9ee !important;
  color: #2f855a !important;
}

.adoption-page .status-refused {
  background: #fff0f0 !important;
  color: #c53030 !important;
}

/* MOBILE */
@media (max-width: 768px) {
  .adoption-page {
    padding: 28px 14px 70px !important;
  }

  .adoption-page .form-card,
  .adoption-page .saved-profile,
  .adoption-page #adoptionAdsList .card,
  .adoption-page #adoptionRequestsList .card {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .adoption-page .form-grid,
  .adoption-page #adoptionAdsList,
  .adoption-page #adoptionRequestsList {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .adoption-page .form-actions {
    flex-direction: column !important;
  }

  .adoption-page .btn,
  .adoption-page button {
    width: 100% !important;
    text-align: center !important;
  }

  .adoption-page .adoption-photo-preview {
    grid-template-columns: 1fr !important;
  }

  .adoption-page .adoption-photo-box img,
  .adoption-page .adoption-photo,
  .adoption-page .adoption-ad-photo,
  .adoption-page #adPhotosPreview img {
    height: 190px !important;
  }
}

/* =====================================================
   PAGE ANNONCES - VERSION PROPRE
===================================================== */

.ads-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px !important;
}

.ads-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.ads-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.ads-page .page-header p {
  max-width: 820px;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* Bloc formulaire */
.ads-page .form-card {
  margin-top: 30px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.ads-page .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.ads-page .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

.ads-page input,
.ads-page select {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ads-page input:focus,
.ads-page select:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

.ads-page input[type="file"] {
  height: auto !important;
  padding: 12px !important;
  cursor: pointer !important;
}

.ads-page input[type="file"]::file-selector-button {
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-right: 14px !important;
  background: #fff0e6 !important;
  color: #b85a2f !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.ads-page input[type="file"]::file-selector-button:hover {
  background: #f8ddca !important;
}

.ads-page .form-actions {
  margin-top: 28px !important;
  gap: 14px !important;
}

.ads-page .btn,
.ads-page button {
  border-radius: 999px !important;
  padding: 15px 24px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.ads-page .btn:hover,
.ads-page button:hover {
  transform: translateY(-2px) !important;
}

.ads-page .btn.primary,
.ads-page button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

/* Liste des annonces */
.ads-page .saved-profile {
  margin-top: 34px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.ads-page #adsPostsList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 22px !important;
  margin-top: 18px !important;
}

.ads-page #adsPostsList .card {
  background: #ffffff !important;
  border: 1px solid #ead7cb !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 14px 34px rgba(60, 38, 22, 0.07) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.ads-page #adsPostsList .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(60, 38, 22, 0.11) !important;
}

.ads-page #adsPostsList .card h3 {
  color: #c96d42 !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  margin-bottom: 12px !important;
}

.ads-page #adsPostsList .card p {
  color: #3d302b !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

.ads-page #adsPostsList img,
.ads-page .ads-photo-preview {
  width: 100% !important;
  max-width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  display: block !important;
  margin-top: 14px !important;
}

/* Mobile */
@media (max-width: 768px) {
  .ads-page {
    padding: 28px 14px 70px !important;
  }

  .ads-page .form-card,
  .ads-page .saved-profile {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .ads-page .form-grid {
    grid-template-columns: 1fr !important;
  }

  .ads-page .btn,
  .ads-page button {
    width: 100% !important;
  }
}
/* =====================================================
   ANNONCES PUBLIÉES - PLUS LARGE ET MOINS LONG
===================================================== */

#adsPostsList,
#adsPostsList.cards,
#publishedAdsList,
#publishedAdsList.cards {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 18px auto !important;
  gap: 12px !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

#adsPostsList .card,
#publishedAdsList .card {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;

  padding: 18px 24px !important;
  border-radius: 22px !important;
}

#adsPostsList .card h3,
#publishedAdsList .card h3 {
  margin: 0 0 10px !important;
  font-size: 22px !important;
}

#adsPostsList .card p,
#publishedAdsList .card p {
  margin: 6px 0 !important;
  line-height: 1.35 !important;
}

#adsPostsList .ads-photo-preview,
#publishedAdsList .ads-photo-preview,
#adsPostsList .default-ad-image,
#publishedAdsList .default-ad-image {
  width: 100% !important;
  max-width: 520px !important;
  height: 150px !important;
  max-height: 150px !important;

  object-fit: contain !important;
  object-position: center !important;

  margin: 12px 0 !important;
  border-radius: 16px !important;
}

#adsPostsList .card .form-actions,
#publishedAdsList .card .form-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
  align-items: center !important;
}

#adsPostsList .card .form-actions .btn,
#adsPostsList .card .form-actions button,
#publishedAdsList .card .form-actions .btn,
#publishedAdsList .card .form-actions button {
  width: auto !important;
  min-width: 140px !important;
  padding: 10px 16px !important;
}
/* =====================================================
   PAGE STUDIO FUN - VERSION PROPRE
===================================================== */

.studio-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px !important;
}

/* EN-TÊTE */
.studio-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.studio-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.studio-page .page-header p {
  max-width: 820px;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* BLOC FORMULAIRE */
.studio-page .form-card {
  margin-top: 30px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.studio-page .form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
}

.studio-page .form-group {
  display: flex !important;
  flex-direction: column !important;
}

.studio-page .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

/* INPUTS */
.studio-page input,
.studio-page select {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.studio-page input:focus,
.studio-page select:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

.studio-page input[type="file"] {
  height: auto !important;
  padding: 12px !important;
  cursor: pointer !important;
}

.studio-page input[type="file"]::file-selector-button {
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-right: 14px !important;
  background: #fff0e6 !important;
  color: #b85a2f !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.studio-page input[type="file"]::file-selector-button:hover {
  background: #f8ddca !important;
}

/* BOUTON */
.studio-page .form-actions {
  margin-top: 28px !important;
}

.studio-page .btn,
.studio-page button {
  border-radius: 999px !important;
  padding: 15px 28px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.studio-page .btn:hover,
.studio-page button:hover {
  transform: translateY(-2px) !important;
}

.studio-page .btn.primary,
.studio-page button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

/* ZONE RÉSULTAT */
.studio-page .saved-profile {
  margin-top: 32px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.studio-page #studioResult {
  margin-top: 0 !important;
}

/* CARTE GÉNÉRÉE */
.studio-page .studio-creation-card {
  max-width: 620px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.1) !important;
}

.studio-page .studio-creation-image-wrap {
  position: relative !important;
  background: #fff3eb !important;
}

.studio-page .studio-creation-image {
  width: 100% !important;
  height: 380px !important;
  object-fit: cover !important;
  display: block !important;
}

.studio-page .studio-creation-badge {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  background: #c96d42 !important;
  color: white !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.studio-page .studio-creation-content {
  padding: 26px !important;
  text-align: center !important;
}

.studio-page .studio-creation-content h2 {
  color: #c96d42 !important;
  margin-bottom: 12px !important;
  font-size: 28px !important;
  font-weight: 950 !important;
}

.studio-page .studio-creation-content p {
  color: #3d302b !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  margin-bottom: 12px !important;
}

.studio-page .studio-creation-content small {
  color: #777 !important;
  font-weight: 800 !important;
}

.studio-page .studio-creation-actions {
  justify-content: center !important;
  margin-top: 20px !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .studio-page {
    padding: 28px 14px 70px !important;
  }

  .studio-page .form-card,
  .studio-page .saved-profile {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .studio-page .btn,
  .studio-page button {
    width: 100% !important;
  }

  .studio-page .studio-creation-image {
    height: 280px !important;
  }

  .studio-page .studio-creation-content h2 {
    font-size: 22px !important;
  }

  .studio-page .studio-creation-content p {
    font-size: 16px !important;
  }
}

/* =====================================================
   PAGE SOUVENIRS - VERSION PROPRE
===================================================== */

.memories-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 80px !important;
}

/* EN-TÊTE */
.memories-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.memories-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.memories-page .page-header p {
  max-width: 820px !important;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* BLOC FORMULAIRE */
.memories-page .form-card {
  margin-top: 30px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.memories-page .form-card h2 {
  margin: 0 0 22px !important;
  color: #2f2f2f !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.05em !important;
}

.memories-page .form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
}

.memories-page .form-group {
  display: flex !important;
  flex-direction: column !important;
}

.memories-page .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

/* CHAMPS */
.memories-page input,
.memories-page select,
.memories-page textarea {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.memories-page input:focus,
.memories-page select:focus,
.memories-page textarea:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

.memories-page input[type="file"] {
  height: auto !important;
  padding: 12px !important;
  cursor: pointer !important;
}

.memories-page input[type="file"]::file-selector-button {
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-right: 14px !important;
  background: #fff0e6 !important;
  color: #b85a2f !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.memories-page input[type="file"]::file-selector-button:hover {
  background: #f8ddca !important;
}

/* BOUTON */
.memories-page .form-actions {
  margin-top: 28px !important;
}

.memories-page .btn,
.memories-page button {
  border-radius: 999px !important;
  padding: 15px 28px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.memories-page .btn:hover,
.memories-page button:hover {
  transform: translateY(-2px) !important;
}

.memories-page .btn.primary,
.memories-page button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

/* SECTION LISTE DES SOUVENIRS */
.memories-page .saved-profile {
  margin-top: 32px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}



/* =====================================================
   LIKES + COMMENTAIRES DES STORIES
===================================================== */

.story-social-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ead7cb;
}

.story-like-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.story-like-count {
  font-weight: 800;
  color: #c96d42;
}

.story-comments-title {
  font-weight: 900;
  color: #2f2f2f;
  margin-bottom: 10px;
}

.story-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.story-comment-line {
  background: #fff8f3;
  border: 1px solid #ead7cb;
  border-radius: 16px;
  padding: 12px 14px;
}

.story-comment-line strong {
  color: #c96d42;
  display: block;
  margin-bottom: 4px;
}

.story-comment-line p {
  margin: 0;
  color: #2f2f2f;
  line-height: 1.4;
}

.story-comment-empty {
  color: #777;
  font-style: italic;
}

.story-comment-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.story-comment-form input {
  flex: 1;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #ded3ca;
  border-radius: 18px;
  font-size: 1rem;
  outline: none;
}

.story-comment-form input:focus {
  border-color: #c96d42;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14);
}

.story-comment-form .btn {
  border-radius: 18px;
}

@media (max-width: 768px) {
  .story-comment-form {
    flex-direction: column;
  }

  .story-comment-form .btn {
    width: 100%;
  }
}

 

/* =====================================================
   BARRE NAVIGANTE BAS - MONCHAT+
===================================================== */

.has-bottom-nav {
  padding-bottom: 95px;
}

.bottom-category-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 999;
  width: min(920px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 10px;
  background: rgba(255, 250, 246, 0.96);
  border: 1px solid #ead2c3;
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(89, 54, 35, 0.16);
  backdrop-filter: blur(12px);
}

.bottom-nav-item {
  border: 1px solid transparent;
  background: #ffffff;
  color: #1f1f1f;
  border-radius: 20px;
  padding: 11px 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: 0.2s ease;
}

.bottom-nav-item:hover {
  border-color: #d06d43;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(208, 109, 67, 0.16);
}

.bottom-nav-icon {
  font-size: 24px;
  line-height: 1;
}

.bottom-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.bottom-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 14, 0.28);
}

.bottom-nav-sheet {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 28px));
  background: #ffffff;
  border: 1px solid #ead2c3;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 20px 55px rgba(89, 54, 35, 0.22);
}

.bottom-nav-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.bottom-nav-sheet-header h3 {
  margin: 6px 0 0;
  font-size: 24px;
}

.bottom-nav-sheet-icon {
  font-size: 34px;
}

.bottom-nav-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #fff3eb;
  color: #c96d42;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav-links {
  display: grid;
  gap: 10px;
}

.bottom-nav-links a {
  display: block;
  text-decoration: none;
  color: #1f1f1f;
  background: #fff8f3;
  border: 1px solid #f0d8c9;
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 800;
  transition: 0.2s ease;
}

.bottom-nav-links a:hover {
  background: #d06d43;
  color: #ffffff;
  border-color: #d06d43;
}

@media (max-width: 650px) {
  .bottom-category-nav {
    bottom: 8px;
    width: calc(100% - 14px);
    gap: 6px;
    padding: 8px;
    border-radius: 22px;
  }

  .bottom-nav-item {
    font-size: 11px;
    padding: 9px 4px;
    border-radius: 16px;
  }

  .bottom-nav-icon {
    font-size: 21px;
  }

  .bottom-nav-sheet {
    bottom: 82px;
    padding: 18px;
    border-radius: 24px;
  }

  .bottom-nav-sheet-header h3 {
    font-size: 21px;
  }
}

  

/* =====================================================
   PREMIUM - ESSAI GRATUIT
===================================================== */

.premium-trial {
  margin: 12px auto 24px;
  padding: 12px 18px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: #fff3eb;
  color: #9b4f2c;
  border: 1px solid #f0d2bf;
  font-weight: 900;
  text-align: center;
}
 
/* =====================================================
   BARRE MOBILE BAS - ACCUEIL / MON CHAT / MES CHATS / PREMIUM
===================================================== */

/* Cachée par défaut sur ordinateur */
.mobile-bottom-nav {
  display: none !important;
}

/* Visible seulement sur mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: 88px !important;
  }

  .mobile-bottom-nav {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 3000 !important;

    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;

    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #ead7cb !important;
    border-radius: 22px !important;
    padding: 8px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16) !important;
  }

  .mobile-bottom-nav a {
    text-decoration: none !important;
    color: #2f2f2f !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 4px !important;
    min-height: 48px !important;
    border-radius: 16px !important;

    font-size: 12px !important;
    font-weight: 700 !important;
  }

  .mobile-bottom-nav a span {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .mobile-bottom-nav a strong {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    background: #fff3eb !important;
    color: #c96d42 !important;
  }
}

/* =====================================================
   BARRE CATÉGORIES FIXE - MOBILE / TABLETTE / PC
===================================================== */

/* On garde de la place en bas pour ne pas cacher le contenu */
body {
  padding-bottom: 120px !important;
}

/* Barre visible partout */
.bottom-category-nav {
  position: fixed !important;
  left: 50% !important;
  bottom: 14px !important;
  transform: translateX(-50%) !important;
  z-index: 3000 !important;

  width: min(1150px, calc(100% - 32px)) !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr); !important;
  gap: 12px !important;

  padding: 14px !important;
  background: rgba(255, 250, 246, 0.96) !important;
  border: 1px solid #ead2c3 !important;
  border-radius: 30px !important;
  box-shadow: 0 14px 40px rgba(89, 54, 35, 0.18) !important;
  backdrop-filter: blur(12px) !important;
}

/* Boutons */
.bottom-nav-item {
  border: none !important;
  background: #ffffff !important;
  color: #1f1f1f !important;
  border-radius: 22px !important;
  padding: 14px 10px !important;

  font-weight: 900 !important;
  font-size: 15px !important;
  cursor: pointer !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;

  min-height: 74px !important;
  transition: 0.2s ease !important;
}

.bottom-nav-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(208, 109, 67, 0.16) !important;
  color: #c96d42 !important;
}

.bottom-nav-icon {
  font-size: 26px !important;
  line-height: 1 !important;
}

/* Tablette */
@media (max-width: 900px) {
  body {
    padding-bottom: 110px !important;
  }

  .bottom-category-nav {
    width: calc(100% - 24px) !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 24px !important;
  }

  .bottom-nav-item {
    min-height: 62px !important;
    font-size: 13px !important;
    padding: 10px 6px !important;
    border-radius: 18px !important;
  }

  .bottom-nav-icon {
    font-size: 22px !important;
  }
}

/* Mobile */
@media (max-width: 520px) {
  body {
    padding-bottom: 100px !important;
  }

  .bottom-category-nav {
    bottom: 8px !important;
    width: calc(100% - 14px) !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 22px !important;
  }

  .bottom-nav-item {
    min-height: 56px !important;
    font-size: 11px !important;
    padding: 8px 4px !important;
    border-radius: 16px !important;
  }

  .bottom-nav-icon {
    font-size: 21px !important;
  }
}

/* Messagerie privée communauté */

.direct-messaging-section {
  margin-bottom: 28px;
}

.direct-messaging-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.direct-inbox-panel,
.direct-chat-panel {
  min-width: 0;
}

.direct-inbox-card {
  position: relative;
}

.direct-inbox-card.unread {
  border: 2px solid #ff8a5c;
}

.direct-unread-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ff8a5c;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.direct-chat-card {
  background: white;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.direct-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid #f1e5df;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.direct-messages-list {
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  background: #fff8f4;
  border-radius: 18px;
}

.direct-message-line {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.direct-message-line.mine {
  align-self: flex-end;
  background: #ffe8dc;
}

.direct-message-line.theirs {
  align-self: flex-start;
}

.direct-message-line p {
  margin: 6px 0;
}

.direct-message-line small {
  opacity: 0.65;
}

.direct-message-delete {
  border: none;
  background: transparent;
  color: #b24a32;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0 0;
}

.direct-message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.direct-message-form input {
  width: 100%;
  border: 1px solid #f1d6c8;
  border-radius: 14px;
  padding: 12px 14px;
}

@media (max-width: 800px) {
  .direct-messaging-layout {
    grid-template-columns: 1fr;
  }

  .direct-message-line {
    max-width: 92%;
  }

  .direct-message-form {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   MESSAGERIE PRIVÉE COMMUNAUTÉ
================================ */

.private-messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.private-conversations-panel,
.private-chat-panel {
  min-width: 0;
}

.private-conversation-card {
  cursor: pointer;
}

.private-chat-box {
  width: 100%;
}

.private-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.private-messages-history {
  min-height: 260px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 18px;
  background: #fff8f4;
  border: 1px solid #f1d5c7;
  margin-bottom: 16px;
}

.private-chat-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.private-message-line {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(80, 45, 25, 0.08);
}

.private-message-line.mine {
  align-self: flex-end;
  background: #ffe1d2;
}

.private-message-line.theirs {
  align-self: flex-start;
  background: #ffffff;
}

.private-message-line strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.private-message-line p {
  margin: 0;
  line-height: 1.4;
}

.private-message-line small {
  display: block;
  margin-top: 6px;
  opacity: 0.65;
  font-size: 0.78rem;
}

@media (max-width: 850px) {
  .private-messages-layout {
    grid-template-columns: 1fr;
  }

  .private-message-line {
    max-width: 92%;
  }
}

.private-messages-section {
  margin-top: 32px;
}

.private-messages-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.private-conversations-panel,
.private-chat-panel {
  min-width: 0;
}

.private-conversation-card {
  cursor: pointer;
}

.private-chat-card {
  width: 100%;
}

.private-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.private-messages-list {
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 18px;
  background: #fff7f1;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.private-chat-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.private-message-line {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.private-message-line.mine {
  align-self: flex-end;
  background: #ffe1cf;
}

.private-message-line.theirs {
  align-self: flex-start;
}

.private-message-line p {
  margin: 6px 0;
}

.private-message-line small {
  opacity: 0.7;
}

@media (max-width: 850px) {
  .private-messages-layout {
    grid-template-columns: 1fr;
  }

  .private-message-line {
    max-width: 92%;
  }
}

 

/* =====================================================
   PAGE MES ANIMAUX - STYLE ALIGNÉ MONCHAT+
===================================================== */

body.animals-page {
  background: #f8f1ea;
  color: #162033;
}

body.animals-page main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 110px;
}

body.animals-page h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #162033;
  font-weight: 800;
}

body.animals-page main > p {
  font-size: 20px;
  margin: 0 0 30px;
  color: #162033;
}

body.animals-page section,
body.animals-page .card,
body.animals-page .form-card,
body.animals-page .profile-card {
  background: #fffaf7;
  border: 1px solid #f0dfd3;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(80, 45, 20, 0.08);
}

body.animals-page section {
  padding: 28px 22px;
  margin-bottom: 26px;
}

body.animals-page section h2,
body.animals-page .form-card h2,
body.animals-page .card h2 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: #162033;
  font-weight: 800;
}

body.animals-page label {
  display: block;
  margin-bottom: 10px;
  color: #162033;
  font-weight: 700;
  font-size: 18px;
}

body.animals-page input,
body.animals-page select,
body.animals-page textarea {
  width: 100%;
  border: 1px solid #ddd1c8;
  background: #ffffff;
  border-radius: 15px;
  padding: 15px 18px;
  font-size: 18px;
  color: #162033;
  outline: none;
}

body.animals-page input:focus,
body.animals-page select:focus,
body.animals-page textarea:focus {
  border-color: #d98f62;
  box-shadow: 0 0 0 4px rgba(217, 143, 98, 0.16);
}

body.animals-page input[type="file"] {
  padding: 12px;
  cursor: pointer;
}

body.animals-page input[type="file"]::file-selector-button {
  border: 1px solid #ddd1c8;
  background: #ffffff;
  color: #162033;
  border-radius: 14px;
  padding: 12px 22px;
  margin-right: 16px;
  font-weight: 700;
  cursor: pointer;
}

body.animals-page input[type="file"]::file-selector-button:hover {
  background: #fff1e7;
  border-color: #d98f62;
}

body.animals-page button,
body.animals-page .btn {
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

body.animals-page .btn.primary,
body.animals-page button.primary {
  background: #d98f62;
  color: #ffffff;
}

body.animals-page .btn.secondary,
body.animals-page button.secondary {
  background: #ffffff;
  color: #162033;
  border: 1px solid #ead8ca;
}

body.animals-page .cards,
body.animals-page .animals-grid,
body.animals-page .photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.animals-page .cards > *,
body.animals-page .animals-grid > *,
body.animals-page .photo-grid > * {
  min-width: 0;
}

@media (max-width: 800px) {
  body.animals-page main {
    padding: 24px 16px 100px;
  }

  body.animals-page h1 {
    font-size: 34px;
  }

  body.animals-page main > p {
    font-size: 17px;
  }

  body.animals-page section h2,
  body.animals-page .form-card h2,
  body.animals-page .card h2 {
    font-size: 28px;
  }

  body.animals-page .cards,
  body.animals-page .animals-grid,
  body.animals-page .photo-grid {
    grid-template-columns: 1fr;
  }
}
 
 
.story-photo-zone {
  display: block;
}

.story-info-zone h3 {
  margin-top: 0;
}

.story-comments-area {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #ead7cb;
}

.story-comments-area h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

 

/* =====================================================
   ACCUEIL - PROFIL DU CHAT : PHOTO GRANDE + TEXTE À DROITE
===================================================== */

.home-cat-card {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 28px !important;
  text-align: left !important;
}

.home-cat-card #homeProfileImage,
.home-cat-card .home-profile-image {
  width: 300px !important;
  height: 300px !important;
  min-width: 300px !important;
  min-height: 300px !important;
  max-width: 300px !important;
  max-height: 300px !important;

  display: block !important;
  margin: 0 !important;

  object-fit: cover !important;
  object-position: center !important;

  border-radius: 24px !important;
  border: 1px solid #ead7cb !important;
  background: #fffaf6 !important;
}

.home-cat-card h3 {
  margin-top: 0 !important;
}

.home-cat-card p {
  text-align: left !important;
} 

/* =====================================================
   ACCUEIL - CARTES GRATUIT / PREMIUM CENTRÉES ET PLUS PETITES
===================================================== */

.access-summary {
  display: grid !important;
  grid-template-columns: repeat(2, 150px) !important;
  gap: 12px !important;

  width: fit-content !important;
  max-width: 100% !important;

  margin-top: 14px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.access-pill {
  width: 150px !important;
  min-height: 110px !important;
  padding: 12px 10px !important;
  border-radius: 18px !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.access-pill span {
  font-size: 22px !important;
  margin-bottom: 6px !important;
}

.access-pill strong {
  font-size: 15px !important;
  line-height: 1.05 !important;
}

.access-pill small {
  font-size: 13px !important;
  line-height: 1.25 !important;
  margin-top: 7px !important;
}

/* Mobile */
@media (max-width: 480px) {
  .access-summary {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .access-pill {
    width: 100% !important;
    max-width: 230px !important;
    margin: 0 auto !important;
  }
}

/* =====================================================
   PAGE ENTRAIDE - STYLE MONCHAT+
===================================================== */

.help-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 120px !important;
}

/* En-tête */
.help-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.help-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #2f2f2f !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.help-page .page-header p {
  max-width: 820px !important;
  color: #5f514a !important;
  font-size: 1.12rem !important;
  line-height: 1.6 !important;
}

/* Bloc formulaire */
.help-page .form-card {
  margin-top: 30px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.help-page .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.help-page .form-group {
  display: flex !important;
  flex-direction: column !important;
}

.help-page .form-group label {
  margin-bottom: 9px !important;
  color: #2f2f2f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

/* Champs */
.help-page input,
.help-page select,
.help-page textarea {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #2f2f2f !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(60, 38, 22, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.help-page textarea {
  min-height: 150px !important;
  padding: 16px 18px !important;
  resize: vertical !important;
}

.help-page input:focus,
.help-page select:focus,
.help-page textarea:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

.help-page .full-width {
  grid-column: 1 / -1 !important;
}

/* Boutons */
.help-page .form-actions {
  display: flex !important;
  gap: 14px !important;
  margin-top: 26px !important;
  flex-wrap: wrap !important;
}

.help-page .btn,
.help-page button {
  border-radius: 999px !important;
  padding: 15px 24px !important;
  font-weight: 900 !important;
  font-size: 0.95rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.help-page .btn:hover,
.help-page button:hover {
  transform: translateY(-2px) !important;
}

.help-page .btn.primary,
.help-page button[type="submit"] {
  background: linear-gradient(135deg, #d87945 0%, #b85a2f 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(201, 109, 66, 0.26) !important;
}

/* Liste des messages */
.help-page .saved-profile {
  margin-top: 32px !important;
  padding: 30px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%) !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 16px 38px rgba(60, 38, 22, 0.08) !important;
}

.help-page #helpPostsList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 22px !important;
  margin-top: 0 !important;
}

.help-page #helpPostsList .card {
  background: #ffffff !important;
  border: 1px solid #ead7cb !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 14px 34px rgba(60, 38, 22, 0.07) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.help-page #helpPostsList .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(60, 38, 22, 0.11) !important;
}

.help-page #helpPostsList .card h3 {
  color: #c96d42 !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  margin-bottom: 12px !important;
}

.help-page #helpPostsList .card p {
  color: #3d302b !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

/* =====================================================
   BARRE DU BAS POUR TA CLASSE .bottom-nav
   Ton HTML utilise bottom-nav, pas bottom-category-nav
===================================================== */

.bottom-nav {
  position: fixed !important;
  left: 50% !important;
  bottom: 14px !important;
  transform: translateX(-50%) !important;
  z-index: 3000 !important;

  width: min(1150px, calc(100% - 32px)) !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;

  padding: 12px !important;
  background: rgba(255, 250, 246, 0.96) !important;
  border: 1px solid #ead2c3 !important;
  border-radius: 30px !important;
  box-shadow: 0 14px 40px rgba(89, 54, 35, 0.18) !important;
  backdrop-filter: blur(12px) !important;
}

.bottom-nav .bottom-nav-item {
  text-decoration: none !important;
  border: none !important;
  background: #ffffff !important;
  color: #1f1f1f !important;
  border-radius: 22px !important;
  padding: 12px 8px !important;

  font-weight: 900 !important;
  font-size: 14px !important;
  cursor: pointer !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;

  min-height: 68px !important;
  transition: 0.2s ease !important;
}

.bottom-nav .bottom-nav-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(208, 109, 67, 0.16) !important;
  color: #c96d42 !important;
}

.bottom-nav .bottom-nav-item span {
  font-size: 24px !important;
  line-height: 1 !important;
}

.bottom-nav .bottom-nav-item small {
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .help-page {
    padding: 28px 14px 110px !important;
  }

  .help-page .form-card,
  .help-page .saved-profile,
  .help-page #helpPostsList .card {
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .help-page .form-grid,
  .help-page #helpPostsList {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .help-page .form-actions {
    flex-direction: column !important;
  }

  .help-page .btn,
  .help-page button {
    width: 100% !important;
    text-align: center !important;
  }

  .bottom-nav {
    bottom: 8px !important;
    width: calc(100% - 14px) !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 22px !important;
  }

  .bottom-nav .bottom-nav-item {
    min-height: 56px !important;
    font-size: 11px !important;
    padding: 8px 4px !important;
    border-radius: 16px !important;
  }

  .bottom-nav .bottom-nav-item span {
    font-size: 20px !important;
  }

  .bottom-nav .bottom-nav-item small {
    font-size: 10px !important;
  }
}

/* =====================================================
   FIX ACCUEIL - AFFICHER J'AIME + COMMENTAIRES STORIES
===================================================== */

.home-story-box,
.home-story-card,
.mini-story-card,
.story-card,
.story-social-box,
.story-comments-area {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.home-story-box,
.home-story-card,
.mini-story-card {
  max-width: 100% !important;
  padding: 16px !important;
}

/* Annule le style trop compact qui coupe la story */
.home-story-box .story-social-box,
.home-story-card .story-social-box,
.mini-story-card .story-social-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #ead7cb !important;
}

/* Ligne J'aime */
.story-like-row,
.story-like-box {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 10px 0 !important;
}

.story-like-row .btn,
.story-like-box .btn,
.story-like-btn {
  width: auto !important;
  min-height: 38px !important;
  height: auto !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
}

.story-like-count {
  color: #c96d42 !important;
  font-weight: 900 !important;
}

/* Commentaires */
.story-comments-area {
  display: block !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
}

.story-comments-area h3,
.story-comments-title {
  margin: 0 0 10px !important;
  font-size: 1rem !important;
  color: #2f2f2f !important;
}

.story-comments-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

.story-comment-line {
  background: #fff8f3 !important;
  border: 1px solid #ead7cb !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
}

.story-comment-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.story-comment-form input {
  flex: 1 !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid #ded3ca !important;
  border-radius: 14px !important;
}

.story-comment-form button,
.story-comment-form .btn {
  width: auto !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
}

@media (max-width: 768px) {
  .story-comment-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .story-comment-form button,
  .story-comment-form .btn {
    width: 100% !important;
  }
}
 
/* =====================================================
   PHOTOS DES ANIMAUX - PETITES CARTES
===================================================== */

.animal-photos-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.animal-photo-card {
  padding: 14px;
  border-radius: 18px;
  background: #fffaf7;
  border: 1px solid #efd8c8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.animal-photo-card .memory-media {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 12px;
}

.animal-photo-card h3 {
  font-size: 1.1rem;
  margin: 8px 0 6px;
}

.animal-photo-card p {
  font-size: 0.95rem;
  margin: 6px 0;
  line-height: 1.4;
}

.animal-photo-card small {
  font-size: 0.8rem;
}

.animal-photo-card .form-actions {
  margin-top: 10px;
}

.animal-photo-card .btn {
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* =====================================================
   PROFIL DU CHAT + STORIES - PHOTOS PETITES
===================================================== */

/* Photo du profil enregistré */
.saved-profile img,
.profile-card img,
.cat-profile-photo,
.profile-photo,
#catProfilePhoto,
#savedCatPhoto,
#profilePhotoPreview img {
  width: 140px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* Bloc profil enregistré plus compact */
.saved-profile .profile-card,
.saved-profile-card,
.cat-profile-saved-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

/* Zone photo du profil */
.profile-photo-zone,
.saved-profile-photo,
.cat-profile-photo-zone {
  width: 160px;
  max-width: 160px;
}

/* Bouton supprimer sur la photo */
.profile-photo-zone .btn,
.saved-profile-photo .btn,
.cat-profile-photo-zone .btn {
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* Stories du chat */
.story-photo,
.mini-story-image,
.story-only-image,
.home-story-card img {
  width: 140px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* Carte story plus petite et propre */
.story-display-grid,
.mini-story-card,
.home-story-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

/* Zone image story */
.story-photo-zone,
.mini-story-card .story-photo-zone {
  width: 160px;
  max-width: 160px;
}

/* Empêche les stories de prendre toute la largeur avec une image géante */
.story-card .story-photo-zone img {
  width: 140px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
}

/* Responsive mobile */
@media (max-width: 700px) {
  .saved-profile .profile-card,
  .saved-profile-card,
  .cat-profile-saved-card,
  .story-display-grid,
  .mini-story-card,
  .home-story-card {
    flex-direction: column;
  }

  .saved-profile img,
  .profile-card img,
  .story-photo,
  .mini-story-image,
  .story-only-image,
  .home-story-card img {
    width: 100%;
    max-width: 220px;
    height: 150px;
  }
}


.delete-account-nav-btn {
  background: #b3261e !important;
  color: white !important;
  width: 44px;
  min-width: 44px;
  padding: 10px 0 !important;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
}

.delete-account-nav-btn:hover {
  background: #8f1d17 !important;
}

/* =====================================================
   FIX ALERTE PERTE - PHOTO ENTIÈRE MAIS CARTE COMPACTE
===================================================== */

.lost-alert-card img,
.lost-alert-card .memory-media,
.lost-poster-card img,
.lost-poster-card .memory-media,
#lostAlertsList img {
  width: 100% !important;
  height: 320px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  border-radius: 24px !important;
  background: #fff3eb !important;
}



/* FIX CARTES DU JEU UNIQUEMENT */

.shop-section .cards {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
}

.shop-section .card {
  height: auto !important;
  min-height: 145px !important;
  padding: 10px !important;
}

.shop-section .card h3 {
  font-size: 0.85rem !important;
  line-height: 1.15 !important;
}

.shop-section .card p {
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

.shop-section .card .btn,
.shop-section .card button {
  margin-top: auto !important;
  padding: 8px 10px !important;
  font-size: 0.8rem !important;
}

/* Inventaire */
.inventory-section #inventoryBox .cards {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
}

.inventory-section #inventoryBox .card {
  height: auto !important;
  min-height: 120px !important;
}

/* Mobile */
@media (max-width: 480px) {
  .shop-section .cards,
  .inventory-section #inventoryBox .cards {
    grid-template-columns: 1fr !important;
  }
}

.auth-legal-text {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #7a5b4a;
  text-align: center;
}

.auth-legal-text a {
  color: #cf6b3f;
  font-weight: 700;
  text-decoration: none;
}

.auth-legal-text a:hover {
  text-decoration: underline;
}

/* Enlève le bouton retour uniquement sur connexion / inscription */
body.auth-page .global-back-button,
body.auth-page .back-page-btn {
  display: none !important;
}

.cat-profile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cat-profile-title-row h2 {
  margin: 0;
}

.cat-city-field {
  width: 260px;
  margin: 0;
}

.cat-city-field input {
  width: 100%;
}

@media (max-width: 600px) {
  .cat-profile-title-row {
    flex-direction: column;
  }

  .cat-city-field {
    width: 100%;
  }
}

 
 /* =====================================================
   POPUP PROFIL COMMUNAUTÉ - VERSION FINALE PROPRE
   Carte réduite + scroll invisible + photo sans contour
   Actions gardées : Favoris + Ajouter ami
===================================================== */

.community-page #communityProfileDetailSection.community-profile-popup {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;

  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 12px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(30, 20, 14, 0.42) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  overflow: hidden !important;
}

body.community-popup-open {
  overflow: hidden !important;
}

/* CONTENEUR RÉDUIT ET SCROLLABLE */
.community-page #communityProfileDetailSection.community-profile-popup #communityProfileDetail {
  width: min(480px, calc(100vw - 24px)) !important;
  max-height: 72vh !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;

  border: none !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

.community-page #communityProfileDetailSection.community-profile-popup #communityProfileDetail::-webkit-scrollbar {
  display: none !important;
}

/* CARTE INTERNE RÉDUITE */
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-card,
.community-page #communityProfileDetailSection.community-profile-popup .community-open-profile-card,
.community-page #communityProfileDetailSection.community-profile-popup #communityProfileDetail > div {
  width: 100% !important;
  max-height: none !important;

  display: block !important;

  padding: 14px !important;
  border-radius: 20px !important;

  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 14px 38px rgba(30, 20, 14, 0.22) !important;

  overflow: visible !important;
}

/* HEADER NORMAL */
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-header,
.community-page #communityProfileDetailSection.community-profile-popup .community-detail-header {
  display: block !important;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid #ead7cb !important;
}

.community-page #communityProfileDetailSection.community-profile-popup h2 {
  margin: 0 0 5px !important;
  color: #c96d42 !important;
  font-size: 1.45rem !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
}

.community-page #communityProfileDetailSection.community-profile-popup p {
  margin: 5px 0 !important;
  color: #3f332e !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
}

/* CONTENU COMPACT */
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-content,
.community-page #communityProfileDetailSection.community-profile-popup .community-detail-main {
  display: grid !important;
  grid-template-columns: 150px 1fr !important;
  gap: 14px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
}

/* PHOTO SANS CONTOUR */
.community-page #communityProfileDetailSection.community-profile-popup img,
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-photo,
.community-page #communityProfileDetailSection.community-profile-popup .community-detail-photo,
.community-page #communityProfileDetailSection.community-profile-popup .community-avatar {
  width: 150px !important;
  height: 150px !important;
  max-width: 150px !important;
  max-height: 150px !important;

  object-fit: cover !important;
  object-position: center !important;

  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 18px !important;
  display: block !important;
}

/* INFOS */
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-info,
.community-page #communityProfileDetailSection.community-profile-popup .community-detail-info,
.community-page #communityProfileDetailSection.community-profile-popup .profile-info {
  min-width: 0 !important;
  width: 100% !important;
}

.community-page #communityProfileDetailSection.community-profile-popup h3 {
  margin: 0 0 8px !important;
  color: #2f2f2f !important;
  font-size: 1.1rem !important;
  line-height: 1.2 !important;
}

/* ACTIONS */
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-actions,
.community-page #communityProfileDetailSection.community-profile-popup .form-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;

  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #ead7cb !important;
}

/* Cache toutes les actions */
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-actions > *,
.community-page #communityProfileDetailSection.community-profile-popup .form-actions > * {
  display: none !important;
}

/* Garde uniquement Favoris + Ajouter ami */
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-actions > *:nth-child(1),
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-actions > *:nth-child(2),
.community-page #communityProfileDetailSection.community-profile-popup .form-actions > *:nth-child(1),
.community-page #communityProfileDetailSection.community-profile-popup .form-actions > *:nth-child(2) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 120px !important;
  padding: 9px 14px !important;

  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
}

/* BOUTON FERMER SI ZONE SÉPARÉE */
.community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-close-zone {
  display: flex !important;
  justify-content: center !important;

  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #ead7cb !important;
}

.community-page #communityProfileDetailSection.community-profile-popup .community-profile-close-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 130px !important;
  padding: 9px 16px !important;

  border-radius: 999px !important;
  font-weight: 900 !important;
}

/* MOBILE */
@media (max-width: 700px) {
  .community-page #communityProfileDetailSection.community-profile-popup #communityProfileDetail {
    width: calc(100vw - 24px) !important;
    max-height: 78vh !important;
  }

  .community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-card,
  .community-page #communityProfileDetailSection.community-profile-popup .community-open-profile-card,
  .community-page #communityProfileDetailSection.community-profile-popup #communityProfileDetail > div {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-content,
  .community-page #communityProfileDetailSection.community-profile-popup .community-detail-main {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .community-page #communityProfileDetailSection.community-profile-popup img,
  .community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-photo,
  .community-page #communityProfileDetailSection.community-profile-popup .community-detail-photo,
  .community-page #communityProfileDetailSection.community-profile-popup .community-avatar {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
  }

  .community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-actions,
  .community-page #communityProfileDetailSection.community-profile-popup .form-actions {
    flex-direction: column !important;
  }

  .community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-actions > *:nth-child(1),
  .community-page #communityProfileDetailSection.community-profile-popup .community-profile-modal-actions > *:nth-child(2),
  .community-page #communityProfileDetailSection.community-profile-popup .form-actions > *:nth-child(1),
  .community-page #communityProfileDetailSection.community-profile-popup .form-actions > *:nth-child(2),
  .community-page #communityProfileDetailSection.community-profile-popup .community-profile-close-btn {
    width: 100% !important;
  }
}

/* =====================================================
   COMMUNAUTÉ - CARTES AVANT "VOIR PROFIL"
   Retire Favoris + Ajouter ami
   Garde Voir profil + les autres boutons
===================================================== */

/* On cible uniquement les cartes de la page communauté,
   pas la popup du profil */
.community-page .community-grid .community-card .form-actions .favorite-btn,
.community-page .community-grid .community-card .form-actions .add-favorite-btn,
.community-page .community-grid .community-card .form-actions .friend-btn,
.community-page .community-grid .community-card .form-actions .add-friend-btn,
.community-page .community-grid .community-card .form-actions [data-action="favorite"],
.community-page .community-grid .community-card .form-actions [data-action="add-friend"],
.community-page .community-grid .community-card .form-actions [onclick*="favorite"],
.community-page .community-grid .community-card .form-actions [onclick*="Favorite"],
.community-page .community-grid .community-card .form-actions [onclick*="favori"],
.community-page .community-grid .community-card .form-actions [onclick*="Favori"],
.community-page .community-grid .community-card .form-actions [onclick*="friend"],
.community-page .community-grid .community-card .form-actions [onclick*="Friend"],
.community-page .community-grid .community-card .form-actions [onclick*="ami"],
.community-page .community-grid .community-card .form-actions [onclick*="Ami"],

.community-page .community-grid .card .form-actions .favorite-btn,
.community-page .community-grid .card .form-actions .add-favorite-btn,
.community-page .community-grid .card .form-actions .friend-btn,
.community-page .community-grid .card .form-actions .add-friend-btn,
.community-page .community-grid .card .form-actions [data-action="favorite"],
.community-page .community-grid .card .form-actions [data-action="add-friend"],
.community-page .community-grid .card .form-actions [onclick*="favorite"],
.community-page .community-grid .card .form-actions [onclick*="Favorite"],
.community-page .community-grid .card .form-actions [onclick*="favori"],
.community-page .community-grid .card .form-actions [onclick*="Favori"],
.community-page .community-grid .card .form-actions [onclick*="friend"],
.community-page .community-grid .card .form-actions [onclick*="Friend"],
.community-page .community-grid .card .form-actions [onclick*="ami"],
.community-page .community-grid .card .form-actions [onclick*="Ami"] {
  display: none !important;
}

/* Sécurité : Voir profil reste visible */
.community-page .community-grid .community-card .form-actions .view-profile-btn,
.community-page .community-grid .community-card .form-actions [data-action="view-profile"],
.community-page .community-grid .community-card .form-actions [onclick*="Profile"],
.community-page .community-grid .community-card .form-actions [onclick*="profile"],
.community-page .community-grid .community-card .form-actions [onclick*="Profil"],
.community-page .community-grid .community-card .form-actions [onclick*="profil"],

.community-page .community-grid .card .form-actions .view-profile-btn,
.community-page .community-grid .card .form-actions [data-action="view-profile"],
.community-page .community-grid .card .form-actions [onclick*="Profile"],
.community-page .community-grid .card .form-actions [onclick*="profile"],
.community-page .community-grid .card .form-actions [onclick*="Profil"],
.community-page .community-grid .card .form-actions [onclick*="profil"] {
  display: inline-flex !important;
}

/* Notifications MonChat+ */

.mcp-notification-box {
  position: sticky;
  top: 12px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  margin: 12px auto 18px;
  width: min(920px, calc(100% - 24px));
}

.mcp-notification-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mcp-notification-content {
  flex: 1;
}

.mcp-notification-content p {
  margin: 4px 0 0;
}

.mcp-notification-close {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.notification-kitten-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.notification-kitten-alert {
  background: #ffe1e1;
  border-color: #ff6b6b;
  color: #c40000;
}

.notification-kitten-chat {
  background: #fff3bd;
  border-color: #ffd447;
  color: #9a6b00;
}

@media (max-width: 640px) {
  .mcp-notification-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mcp-notification-content {
    min-width: 180px;
  }
}

/* =====================================================
   GAME.HTML PLEIN ÉCRAN FORCÉ
===================================================== */

html.game-fullscreen,
html.game-fullscreen body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
}

body.game-page {
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  background: #fff8f1;
}

body.game-page .header,
body.game-page #bottomCategoryNav,
body.game-page #bottomNavPanel {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.game-page.has-bottom-nav {
  padding-bottom: 0 !important;
}

body.game-page .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

body.game-page .form-card {
  margin: 0 !important;
  min-height: calc(100vh - 24px) !important;
  min-height: calc(100dvh - 24px) !important;
  border-radius: 0 !important;
}

/* =====================================================
   GAMEPLAY - CACHER UNIQUEMENT LES BARRES HAUT/BAS
===================================================== */

body.gameplay-page .header {
  display: none !important;
}

body.gameplay-page #bottomCategoryNav,
body.gameplay-page #bottomNavPanel {
  display: none !important;
}

body.gameplay-page.has-bottom-nav {
  padding-bottom: 0 !important;
}

/* =====================================================
   JEU - AFFICHAGE COMPACT PC / TABLETTE / MOBILE
===================================================== */

body.gameplay-page .gameplay-container {
  max-width: 1100px;
  padding: 16px;
}

body.gameplay-page .form-card,
body.gameplay-page .card,
body.gameplay-page .saved-profile {
  padding: 16px !important;
  border-radius: 18px !important;
}

body.gameplay-page .interactive-refuge-board-wrapper {
  max-width: 100%;
  overflow-x: auto;
  justify-content: center;
}

body.gameplay-page #refugeGameBoard.refuge-game-board {
  gap: 6px !important;
  max-width: 100%;
}

body.gameplay-page .refuge-tile {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  padding: 4px !important;
  font-size: 1.1rem !important;
}

body.gameplay-page .refuge-tile small {
  font-size: 0.58rem !important;
}

body.gameplay-page .refuge-cat-image {
  width: 26px !important;
  height: 26px !important;
}

body.gameplay-page #virtualCatCard .interactive-cat-preview {
  width: 130px !important;
  height: 130px !important;
  min-height: 130px !important;
  font-size: 2.2rem !important;
}

body.gameplay-page .pet-action-btn,
body.gameplay-page .btn {
  padding: 8px 12px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  body.gameplay-page .refuge-tile {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    font-size: 1rem !important;
  }

  body.gameplay-page .refuge-cat-image {
    width: 23px !important;
    height: 23px !important;
  }
}

@media (max-width: 600px) {
  body.gameplay-page .gameplay-container {
    padding: 10px;
  }

  body.gameplay-page .form-card,
  body.gameplay-page .card,
  body.gameplay-page .saved-profile {
    padding: 12px !important;
  }

  body.gameplay-page #refugeGameBoard.refuge-game-board {
    gap: 4px !important;
  }

  body.gameplay-page .refuge-tile {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    font-size: 0.85rem !important;
  }

  body.gameplay-page .refuge-tile small {
    font-size: 0.48rem !important;
  }

  body.gameplay-page .refuge-cat-image {
    width: 20px !important;
    height: 20px !important;
  }

  body.gameplay-page #virtualCatCard .interactive-cat-preview {
    width: 115px !important;
    height: 115px !important;
    min-height: 115px !important;
    font-size: 2rem !important;
  }
}

.cat-page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cat-page-title-row h1 {
  margin-bottom: 10px;
}

.cat-page-title-row p {
  margin-bottom: 0;
}

.cat-public-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 270px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ead7cb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  user-select: none;
}

.cat-public-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-public-toggle-ui {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 52px;
  border-radius: 999px;
  background: #ded7cf;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cat-public-toggle-ui::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.cat-public-toggle input:checked + .cat-public-toggle-ui {
  background: #c96d42;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14);
}

.cat-public-toggle input:checked + .cat-public-toggle-ui::before {
  transform: translateX(22px);
}

.cat-public-toggle-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cat-public-toggle-content strong {
  font-size: 15px;
  color: #2f2f2f;
}

.cat-public-toggle-content small {
  margin-top: 3px;
  color: #777;
  font-size: 12px;
}

@media (max-width: 700px) {
  .cat-public-toggle {
    width: 100%;
    min-width: 0;
  }
}

.ads-mobile-search-action {
  display: none;
}

.ads-mobile-search-popup {
  display: none;
}

@media (max-width: 700px) {
  .ads-mobile-search-action {
    display: block;
  }

  .ads-mobile-search-popup.show {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(30, 20, 14, 0.48);
  }

  .ads-mobile-search-modal {
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    overflow-y: auto;
    background: #fffaf6;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  }

  .ads-mobile-search-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    background: #fffaf6;
    border-bottom: 1px solid #ead7cb;
  }

  .ads-mobile-search-header h2 {
    margin: 0;
    font-size: 1.1rem;
  }

  body.ads-mobile-popup-open {
    overflow: hidden;
  }
}

/* =====================================================
   MOBILE UX - ANNONCES / ENTRAIDE
===================================================== */

.mobile-floating-actions {
  display: none !important;
}

.mobile-collapse-toggle {
  display: none;
}

.ads-mobile-search-action {
  display: none;
}

.ads-mobile-search-popup {
  display: none;
}

@media (max-width: 700px) {
  .ads-page,
  .help-page {
    padding-bottom: 120px;
  }

  .ads-page .btn,
  .help-page .btn,
  .ads-page button,
  .help-page button {
    min-height: 48px;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 999px;
  }

  .ads-post-card,
  .help-post-card {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .ads-post-card h3,
  .help-post-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .ads-post-card > p,
  .help-post-card > p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ads-post-actions,
  .help-post-actions,
  .form-actions {
    gap: 10px;
  }

  .ads-post-actions .btn,
  .help-post-actions .btn,
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-collapse {
    margin-top: 14px;
    border-top: 1px solid #ead7cb;
    padding-top: 12px;
  }

  .mobile-collapse-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #fff3eb;
    border: 1px solid #ead7cb;
    color: #2f2f2f;
    font-weight: 800;
    border-radius: 16px;
    padding: 13px 14px;
    cursor: pointer;
  }

  .mobile-collapse-toggle small {
    color: #8a6d5c;
    font-weight: 700;
  }

  .mobile-collapse-content {
    display: none;
    margin-top: 12px;
  }

  .mobile-collapse.is-open .mobile-collapse-content {
    display: block;
  }

 .ads-page ~ .mobile-floating-actions,
.help-page ~ .mobile-floating-actions {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 78px;
  z-index: 99998;
  display: flex !important;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.94);
  border: 1px solid #ead7cb;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

  .mobile-floating-actions .btn {
    flex: 1;
    min-height: 46px;
    padding: 12px 14px;
  }

  .ads-mobile-search-action {
    display: block;
  }

  .ads-mobile-search-popup.show {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(30, 20, 14, 0.52);
  }

  .ads-mobile-search-modal {
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    overflow-y: auto;
    background: #fffaf6;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  }

  .ads-mobile-search-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    background: #fffaf6;
    border-bottom: 1px solid #ead7cb;
  }

  .ads-mobile-search-header h2 {
    margin: 0;
    font-size: 1.1rem;
  }

  body.ads-mobile-popup-open {
    overflow: hidden;
  }
}

@media (min-width: 701px) {
  .mobile-collapse-content {
    display: block;
  }

  .ads-mobile-search-action {
    display: none;
  }
}

.image-upload-help {
  margin-top: 8px;
  color: #777;
  font-size: 13px;
}

.image-preview-box {
  margin-top: 12px;
}

.image-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #ead7cb;
  border-radius: 16px;
  background: #fffaf7;
}

.image-preview-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  flex: 0 0 92px;
}

.image-preview-info {
  flex: 1;
}

.image-preview-info p {
  margin: 0 0 6px;
  font-weight: 700;
}

.image-preview-info small {
  color: #777;
}

.image-preview-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.default-ad-image {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  background: #fff3eb;
  border: 1px dashed #e3b99f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a7643e;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .image-preview-card {
    align-items: flex-start;
  }

  .image-preview-card img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .image-preview-actions .btn {
    width: 100%;
  }
}

/* =====================================================
   UX - CHARGEMENT / VIDE / BADGES
===================================================== */

.ux-state-card {
  text-align: center;
  padding: 28px;
  border: 1px dashed #ead7cb;
  background: #fffaf7;
}

.ux-state-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.ux-state-card h3 {
  color: #c96d42;
  margin-bottom: 8px;
}

.ux-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.ux-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.ux-badge-new {
  background: #fff3d8;
  color: #8a5a00;
  border: 1px solid #efcf7a;
}

.ux-badge-done {
  background: #edf7ee;
  color: #2f7a45;
  border: 1px solid #b8dfbd;
}

.ux-badge-reported {
  background: #fff0f0;
  color: #a33a3a;
  border: 1px solid #efb7b7;
}

/* =====================================================
   JEU - PLATEAU TACTILE MOBILE
===================================================== */

body.gameplay-page .refuge-game-board {
  touch-action: manipulation;
}

body.gameplay-page .refuge-tile {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.gameplay-page .refuge-tile:active {
  transform: scale(0.96);
}

/* =====================================================
   RECHARGE PIÈCES - MODALE PLUS JOLIE
===================================================== */

#coinsRechargeModal {
  padding: 18px;
  backdrop-filter: blur(4px);
}

#coinsRechargeModal .recharge-modal-content {
  width: min(94vw, 720px) !important;
  max-height: 88vh;
  padding: 26px !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 219, 169, 0.55), transparent 240px),
    linear-gradient(180deg, #fffdfb 0%, #fff7ef 100%);
  border: 1px solid rgba(216, 143, 86, 0.25);
  box-shadow: 0 24px 70px rgba(40, 25, 15, 0.28);
}

#coinsRechargeModal .special-offer-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff0df;
  color: #a85a2f;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1px solid #f1cfb4;
}

#coinsRechargeModal h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: #2f2f2f;
}

#coinsRechargeModal > .payment-modal-content > p {
  margin: 0 0 18px;
  color: #5f524b;
  font-size: 1rem;
}

#coinsRechargeModal .recharge-purse-box {
  width: 54px;
  height: 54px;
  margin: 12px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff2d9 0%, #ffe0a8 100%);
  border: 1px solid #f0c778;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(198, 122, 45, 0.16);
}

#coinsRechargeModal .recharge-offers-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

#coinsRechargeModal .recharge-offer-card {
  position: relative;
  overflow: hidden;
  padding: 18px 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #f0d7c5;
  box-shadow: 0 12px 26px rgba(80, 45, 25, 0.08);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#coinsRechargeModal .recharge-offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(80, 45, 25, 0.13);
}

#coinsRechargeModal .recharge-offer-card::before {
  content: "🪙";
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff6df;
  border: 1px solid #f2d898;
  font-size: 1.35rem;
}

#coinsRechargeModal .recharge-offer-card:nth-child(2)::before {
  content: "💰";
}

#coinsRechargeModal .recharge-offer-card:nth-child(3)::before {
  content: "🏆";
}

#coinsRechargeModal .recharge-offer-card h3 {
  margin: 0 0 8px;
  color: #2f2f2f;
  font-size: 1.25rem;
}

#coinsRechargeModal .recharge-offer-card p {
  margin: 0 0 14px;
  color: #c96d42;
  font-size: 1.15rem;
  font-weight: 800;
}

#coinsRechargeModal .recharge-offer-card .form-actions {
  margin-top: 12px;
  justify-content: center;
}

#coinsRechargeModal .recharge-offer-card .btn.primary {
  width: 100%;
  max-width: 130px;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 8px 18px rgba(201, 109, 66, 0.22);
}

#coinsRechargeModal #coinsPaymentChoiceBox {
  margin-top: 22px !important;
  padding: 16px;
  border-radius: 22px;
  background: #fffaf6;
  border: 1px solid #efd6c4;
  text-align: center;
}

#coinsRechargeModal #coinsPaymentChoiceBox h3 {
  margin: 0 0 12px;
  color: #2f2f2f;
}

#coinsRechargeModal #coinsPaymentChoiceBox .form-actions {
  justify-content: center;
  margin-top: 0;
}

#coinsRechargeModal > .payment-modal-content > .form-actions {
  justify-content: center;
}

#coinsRechargeModal > .payment-modal-content > .form-actions .btn.secondary {
  border-radius: 999px;
  padding: 10px 22px;
}

@media (max-width: 700px) {
  #coinsRechargeModal .recharge-modal-content {
    width: min(94vw, 440px) !important;
    padding: 22px !important;
  }

  #coinsRechargeModal .recharge-offers-list {
    grid-template-columns: 1fr;
  }

  #coinsRechargeModal .recharge-offer-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 14px;
  }

  #coinsRechargeModal .recharge-offer-card::before {
    margin: 0;
  }

  #coinsRechargeModal .recharge-offer-card h3 {
    margin: 0;
    font-size: 1.05rem;
  }

  #coinsRechargeModal .recharge-offer-card p {
    margin: 4px 0 0;
    font-size: 1rem;
  }

  #coinsRechargeModal .recharge-offer-card .form-actions {
    margin: 0;
  }

  #coinsRechargeModal .recharge-offer-card .btn.primary {
    width: auto;
    min-width: 90px;
    padding: 9px 14px;
  }
}

@media (max-width: 430px) {
  #coinsRechargeModal .recharge-offer-card {
    grid-template-columns: 44px 1fr;
  }

  #coinsRechargeModal .recharge-offer-card .form-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  #coinsRechargeModal .recharge-offer-card .btn.primary {
    width: 100%;
    max-width: none;
  }
}

/* =====================================================
   ACCUEIL - BLOC NOTIFICATIONS
===================================================== */

.notifications-home-section h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notifications-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.notification-summary-item {
  position: relative;
  border: 1px solid #ead7cb;
  background: #ffffff;
  min-height: 118px;
  cursor: pointer;
  text-align: center;
  font: inherit;
}

.notification-summary-item small {
  display: block;
  margin-top: 6px;
  color: #6b5b52;
  font-size: 0.82rem;
  line-height: 1.2;
}

.notification-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 8px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-count-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #c62828;
  color: #ffffff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  align-items: center;
  justify-content: center;
}

.notification-summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(60, 35, 20, 0.1);
}

@media (max-width: 600px) {
  .notifications-summary {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

  .notification-summary-item {
    min-height: 112px;
    padding: 14px 10px;
  }

  .notification-summary-item strong {
    font-size: 0.9rem;
  }

  .notification-summary-item small {
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .notifications-summary {
    grid-template-columns: 1fr;
  }
}

.cat-public-toggle {
  min-width: 290px;
}

.cat-public-toggle-content {
  min-width: 130px;
}

.cat-public-toggle-content strong,
.cat-public-toggle-content small {
  display: block;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .cat-public-toggle {
    width: 100%;
    min-width: 0;
  }

  .cat-public-toggle-content {
    min-width: 0;
  }
}

.community-page #communityGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

.community-page #communityGrid .community-card {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* CORRECTION PHOTO PROFIL CHAT - NE PAS COUPER L'IMAGE */
#savedProfileSection .profile-image-box,
#savedProfileSection .profile-gallery,
#savedProfileSection .gallery-item {
  width: 260px !important;
  max-width: 260px !important;
}

#savedProfileSection img,
#savedProfileSection .gallery-image,
.profile-card img,
.saved-profile img,
.home-profile-image {
  width: 260px !important;
  height: 260px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fffaf7 !important;
  border-radius: 22px !important;
}

/* FIX PHOTO ACCUEIL PROFIL CHAT */
.home-cat-card #homeProfileImage {
  width: 300px !important;
  height: 300px !important;
  max-width: 300px !important;
  max-height: 300px !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #fffaf7 !important;
  border-radius: 24px !important;
  display: block !important;
  margin: 0 !important;
}

/* Si la photo est dans une carte */
.home-cat-card.card #homeProfileImage,
.card.home-cat-card #homeProfileImage {
  width: 300px !important;
  height: 300px !important;
  object-fit: cover !important;
}

/* =====================================================
   COMMUNAUTÉ - OUVRIR / FERMER CARTES
===================================================== */

.community-page .community-list-panel > h2 {
  cursor: pointer !important;
  user-select: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.community-page .community-list-panel > h2::after {
  content: "−";
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 1px solid #ead7cb;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #c96d42;
  background: #fffaf7;
}

.community-page .community-list-panel.is-collapsed > h2::after {
  content: "+";
}

.community-page .community-list-panel.is-collapsed > div {
  display: none !important;
}

.community-page .user-list-card.is-collapsed .form-actions {
  display: none !important;
}

.community-page .user-list-card.is-collapsed > div:first-child p,
.community-page .user-list-card.is-collapsed > div:first-child small {
  display: none !important;
}

.community-page .user-list-card.is-collapsed {
  gap: 0 !important;
  padding-bottom: 16px !important;
}

/* Membres du groupe côte à côte */
#communityGroupDetail h3 + ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}

#communityGroupDetail h3 + ul li {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #ead7cb;
  border-radius: 999px;
  background: #fffaf6;
  color: #2b211c;
  font-weight: 600;
}

/* Adoption : mettre "Mes demandes envoyées" sous "Demandes reçues" */
#adoptionRequestsList.cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px;
}

#adoptionRequestsList .card {
  width: 100%;
  max-width: 900px;
}

/* Souvenirs : afficher les photos en entier */
#memoriesList .card img,
#memoriesList .memory-media,
.memories-page .memory-media {
  width: 100% !important;
  max-width: 520px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
  border-radius: 18px;
}

/* Galerie souvenir propre */
#memoriesList .memory-gallery,
.memories-page .memory-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

/* Annonces publiées : cartes plus petites */
#adsPostsList.cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

#adsPostsList .card {
  padding: 20px !important;
  min-height: auto !important;
  max-width: 360px;
}

#adsPostsList .card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

#adsPostsList .card p {
  margin: 8px 0;
  font-size: 15px;
}

#adsPostsList .default-ad-image,
#adsPostsList .ad-image,
#adsPostsList img {
  width: 100%;
  height: 150px !important;
  object-fit: contain !important;
  border-radius: 18px;
}

#adsPostsList .form-actions,
#adsPostsList .card-actions {
  gap: 10px;
  margin-top: 14px;
}

#adsPostsList .btn {
  padding: 10px 16px;
  font-size: 15px;
}

/* Annonces : boutons Modifier / Supprimer côte à côte */
#adsPostsList .card .form-actions,
#adsPostsList .card .card-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#adsPostsList .card button {
  width: auto !important;
}

#adsPostsList .card button[onclick*="edit"],
#adsPostsList .card button[onclick*="delete"],
#adsPostsList .card button[onclick*="remove"],
#adsPostsList .card button[onclick*="AdsEdit"],
#adsPostsList .card button[onclick*="AdsDelete"] {
  flex: 0 0 auto;
}

#adsPostsList .card button {
  order: 2;
}

#adsPostsList .card button[onclick*="edit"],
#adsPostsList .card button[onclick*="AdsEdit"] {
  order: 1;
}

#adsPostsList .card button[onclick*="delete"],
#adsPostsList .card button[onclick*="remove"],
#adsPostsList .card button[onclick*="AdsDelete"] {
  order: 1;
}

/* =====================================================
   PAGE STORIES - TITRES COMME LES AUTRES PAGES
===================================================== */

.stories-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.stories-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #171c2b !important;
  font-size: clamp(3rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.stories-page .page-header p {
  max-width: 900px !important;
  color: #171c2b !important;
  font-size: 1.25rem !important;
  line-height: 1.55 !important;
}

.stories-page .form-card h2 {
  margin: 0 0 18px !important;
  color: #171c2b !important;
  font-size: clamp(2.3rem, 4vw, 3.2rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.06em !important;
}

.stories-page .saved-profile h2 {
  margin: 0 0 18px !important;
  color: #171c2b !important;
  font-size: clamp(2.3rem, 4vw, 3.2rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.06em !important;
}

/* =====================================================
   PAGE PROFIL DU CHAT - TITRES COMME LES AUTRES PAGES
===================================================== */

.cat-profile-page .page-header {
  margin-top: 20px !important;
  margin-bottom: 34px !important;
}

.cat-profile-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #171c2b !important;
  font-size: clamp(3rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.cat-profile-page .page-header p {
  max-width: 900px !important;
  color: #171c2b !important;
  font-size: 1.25rem !important;
  line-height: 1.55 !important;
}

.cat-profile-page .form-card h2 {
  margin: 0 0 18px !important;
  color: #171c2b !important;
  font-size: clamp(2.3rem, 4vw, 3.2rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.06em !important;
}

.cat-profile-page .saved-profile h2 {
  margin: 0 0 18px !important;
  color: #171c2b !important;
  font-size: clamp(2.3rem, 4vw, 3.2rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.06em !important;
}

/* =====================================================
   COMMUNAUTÉ - BOUTON GROUPES
===================================================== */

.community-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.community-header-actions .btn {
  white-space: nowrap !important;
}

/* =====================================================
   PAGE GROUPES DE DISCUSSION
===================================================== */

.community-groups-page .page-header h1 {
  margin: 0 0 18px !important;
  color: #171c2b !important;
  font-size: clamp(3rem, 6vw, 4.8rem) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.07em !important;
}

.community-groups-page .form-card h2,
.community-groups-page .saved-profile h2 {
  margin: 0 0 18px !important;
  color: #171c2b !important;
  font-size: clamp(2.3rem, 4vw, 3.2rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.06em !important;
}

@media (max-width: 700px) {
  .community-header-actions {
    align-items: flex-start !important;
  }

  .community-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* =====================================================
   ANNONCES - BOUTON ANNONCES PUBLIÉES
===================================================== */

.ads-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.ads-header-actions .btn {
  white-space: nowrap !important;
}

@media (max-width: 700px) {
  .ads-header-actions {
    align-items: flex-start !important;
  }

  .ads-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* =====================================================
   ENTRAIDE - BOUTON PUBLICATIONS + MOBILE
===================================================== */

.help-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.help-header-actions .btn {
  white-space: nowrap !important;
}

.mobile-floating-actions {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.mobile-floating-actions .btn {
  min-width: 120px !important;
  text-align: center !important;
}

@media (max-width: 700px) {
  .help-header-actions {
    align-items: flex-start !important;
  }

  .help-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }

  .mobile-floating-actions {
    left: 12px !important;
    right: 12px !important;
    bottom: 76px !important;
  }

  .mobile-floating-actions .btn {
    flex: 1 !important;
  }
}

/* =====================================================
   ADOPTION - BOUTON ANNONCES
===================================================== */

.adoption-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.adoption-header-actions .btn {
  white-space: nowrap !important;
}

@media (max-width: 700px) {
  .adoption-header-actions {
    align-items: flex-start !important;
  }

  .adoption-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* =====================================================
   BONS PLANS - BOUTON LISTE
===================================================== */

.deals-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.deals-header-actions .btn {
  white-space: nowrap !important;
}

@media (max-width: 700px) {
  .deals-header-actions {
    align-items: flex-start !important;
  }

  .deals-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* =====================================================
   STUDIO FUN - BOUTON CRÉATIONS
===================================================== */

.studio-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.studio-header-actions .btn {
  white-space: nowrap !important;
}

@media (max-width: 700px) {
  .studio-header-actions {
    align-items: flex-start !important;
  }

  .studio-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* =====================================================
   SOUVENIRS - BOUTON LISTE
===================================================== */

.memories-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.memories-header-actions .btn {
  white-space: nowrap !important;
}

@media (max-width: 700px) {
  .memories-header-actions {
    align-items: flex-start !important;
  }

  .memories-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ALERTE PERTE - BOUTON MESSAGERIE */

.lost-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.lost-header-actions .btn {
  white-space: nowrap !important;
}

@media (max-width: 700px) {
  .lost-header-actions {
    align-items: flex-start !important;
  }

  .lost-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

.page-header-buttons {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

@media (max-width: 700px) {
  .page-header-buttons {
    width: 100% !important;
  }

  .page-header-buttons .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* =====================================================
   PATCH PC + MOBILE
   Notifications, popups messages, scroll vers formulaires
===================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

input,
textarea,
select,
button,
.btn {
  font-size: 16px;
}

button,
.btn {
  min-height: 44px;
  touch-action: manipulation;
}

input,
textarea,
select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Évite que le header sticky cache les zones quand on scroll */
#lostMessagingBox,
#foundMessageBox,
#lostMessageForm,
#finderMessageForm,
#foundMessagesList,
#lostMessagesList,
#adoptionRequestsList,
#adoptionAdsList,
#privateConversationDetail,
#privateMessagesPanel,
#communityGroupDetail,
#communityGroupsList,
#adsPostsList,
#publishedAdsList,
#helpPostsList,
#dealPostsList {
  scroll-margin-top: 110px;
  scroll-margin-bottom: 110px;
}

/* Notifications toast */
#mcpNotificationToastBox {
  max-width: calc(100vw - 24px);
  pointer-events: auto;
}

/* Popups messagerie privée / groupe */
#mcpPrivateChatOverlay,
.mcp-private-chat-overlay,
#mcpPrivateMessagePopupFixOverlay,
#mcpGroupChatOverlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mcp-private-chat-popup,
.mcp-private-message-popup-fix-card,
.mcp-group-chat-popup {
  max-height: min(90vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sécurité images / vidéos */
img,
video {
  max-width: 100%;
  height: auto;
}

/* Priorité des couches */
.header {
  z-index: 5000;
}

.bottom-nav-panel {
  z-index: 8000;
}

.premium-payment-modal,
.payment-modal {
  z-index: 9000;
}

.community-page #communityProfileDetailSection.community-profile-popup {
  z-index: 99999 !important;
}

/* Mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .form-actions .btn,
  .form-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  #mcpNotificationToastBox {
    right: 10px !important;
    left: 10px !important;
    bottom: 76px !important;
    width: auto !important;
  }

  #mcpNotificationToastBox > div {
    max-width: none !important;
    width: 100% !important;
  }

  #mcpPrivateChatOverlay,
  .mcp-private-chat-overlay,
  #mcpPrivateMessagePopupFixOverlay,
  #mcpGroupChatOverlay {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 10px !important;
  }

  .mcp-private-chat-popup,
  .mcp-private-message-popup-fix-card,
  .mcp-group-chat-popup {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 14px !important;
  }

  .private-message-line,
  .community-chat-line {
    max-width: 92% !important;
    overflow-wrap: anywhere;
  }

  .card,
  .memory-card,
  .lost-alert-card,
  .animal-photo-card,
  .studio-feed-card,
  .adoption-card {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .chat-form,
  .direct-message-form {
    display: flex;
    flex-direction: column;
  }

  .chat-form input,
  .direct-message-form input,
  textarea {
    width: 100%;
  }
}

/* STORIES - SÉPARATION CRÉER / LISTE */

.stories-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.stories-header-actions .btn {
  white-space: nowrap !important;
}

.stories-page #storiesList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
}

.stories-page #storiesList .card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

@media (max-width: 700px) {
  .stories-header-actions {
    align-items: flex-start !important;
  }

  .stories-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }

  .stories-page #storiesList {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================
   FIX AFFICHAGE STORIES DU CHAT
   PC + mobile : carte propre, bouton commenter non coupé
===================================================== */

main.container #storiesList,
.stories-page #storiesList,
.story-list-zone #storiesList {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
  justify-content: stretch !important;
  width: 100% !important;
}

/* Carte story : ne coupe plus le bas ni le bouton */
main.container #storiesList .story-card,
.stories-page #storiesList .story-card,
.story-list-zone #storiesList .story-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 20px !important;
  border-radius: 26px !important;
}

/* Corrige le bloc image + texte */
main.container #storiesList .story-display-grid,
.stories-page #storiesList .story-display-grid,
.story-list-zone #storiesList .story-display-grid {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
}

main.container #storiesList .story-photo-zone,
.stories-page #storiesList .story-photo-zone,
.story-list-zone #storiesList .story-photo-zone {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

main.container #storiesList .story-photo,
.stories-page #storiesList .story-photo,
.story-list-zone #storiesList .story-photo {
  width: 150px !important;
  height: 160px !important;
  max-width: 150px !important;
  max-height: 160px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  margin: 0 !important;
}

/* Le texte peut se réduire sans casser la carte */
main.container #storiesList .story-info-zone,
.stories-page #storiesList .story-info-zone,
.story-list-zone #storiesList .story-info-zone {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

main.container #storiesList .story-info-zone h3,
.stories-page #storiesList .story-info-zone h3,
.story-list-zone #storiesList .story-info-zone h3 {
  margin-top: 0 !important;
  line-height: 1.25 !important;
}

/* Boutons de la story */
main.container #storiesList .story-card .form-actions,
.stories-page #storiesList .story-card .form-actions,
.story-list-zone #storiesList .story-card .form-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: 100% !important;
}

main.container #storiesList .story-card .form-actions .btn,
.stories-page #storiesList .story-card .form-actions .btn,
.story-list-zone #storiesList .story-card .form-actions .btn {
  width: auto !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

/* Zone commentaires */
main.container #storiesList .story-comments-area,
.stories-page #storiesList .story-comments-area,
.story-list-zone #storiesList .story-comments-area {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid #ead7cb !important;
}

/* Formulaire commentaire : input + bouton restent dans la carte */
main.container #storiesList .story-comment-form,
.stories-page #storiesList .story-comment-form,
.story-list-zone #storiesList .story-comment-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

main.container #storiesList .story-comment-form input,
.stories-page #storiesList .story-comment-form input,
.story-list-zone #storiesList .story-comment-form input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

main.container #storiesList .story-comment-form button,
main.container #storiesList .story-comment-form .btn,
.stories-page #storiesList .story-comment-form button,
.stories-page #storiesList .story-comment-form .btn,
.story-list-zone #storiesList .story-comment-form button,
.story-list-zone #storiesList .story-comment-form .btn {
  width: auto !important;
  min-width: 118px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border-radius: 16px !important;
  white-space: nowrap !important;
}

/* Mobile : tout passe proprement en colonne */
@media (max-width: 700px) {
  main.container #storiesList,
  .stories-page #storiesList,
  .story-list-zone #storiesList {
    grid-template-columns: 1fr !important;
  }

  main.container #storiesList .story-card,
  .stories-page #storiesList .story-card,
  .story-list-zone #storiesList .story-card {
    padding: 16px !important;
  }

  main.container #storiesList .story-display-grid,
  .stories-page #storiesList .story-display-grid,
  .story-list-zone #storiesList .story-display-grid {
    grid-template-columns: 1fr !important;
  }

  main.container #storiesList .story-photo-zone,
  .stories-page #storiesList .story-photo-zone,
  .story-list-zone #storiesList .story-photo-zone {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  main.container #storiesList .story-photo,
  .stories-page #storiesList .story-photo,
  .story-list-zone #storiesList .story-photo {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
  }

  main.container #storiesList .story-comment-form,
  .stories-page #storiesList .story-comment-form,
  .story-list-zone #storiesList .story-comment-form {
    grid-template-columns: 1fr !important;
  }

  main.container #storiesList .story-comment-form button,
  main.container #storiesList .story-comment-form .btn,
  .stories-page #storiesList .story-comment-form button,
  .stories-page #storiesList .story-comment-form .btn,
  .story-list-zone #storiesList .story-comment-form button,
  .story-list-zone #storiesList .story-comment-form .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =====================================================
   POPUP DEMANDE D'ADOPTION
===================================================== */

.mcp-adoption-request-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.45);
}

.mcp-adoption-request-popup {
  width: min(420px, 94vw);
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  border: 1px solid #ead7cb;
}

.mcp-adoption-request-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3eb;
  font-size: 30px;
}

.mcp-adoption-request-popup h3 {
  margin: 0 0 10px;
  color: #c96d42;
}

.mcp-adoption-request-popup p {
  margin: 0;
  line-height: 1.5;
}

.mcp-adoption-request-popup .form-actions {
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .mcp-adoption-request-popup-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .mcp-adoption-request-popup {
    width: 100%;
    border-radius: 22px 22px 0 0;
  }

  .mcp-adoption-request-popup .form-actions .btn {
    width: 100%;
  }
}

/* =====================================================
   BOUTON ACTIVER / DÉSACTIVER NOTIFICATIONS
===================================================== */

.mcp-notification-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-bottom: 18px;
}

.mcp-notification-title-row h1,
.mcp-notification-title-row h2,
.mcp-notification-title-row h3 {
  margin: 0 !important;
}

.mcp-notification-toggle-btn {
  min-width: 210px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  border: 2px solid #c96d42;
  box-shadow: 0 10px 24px rgba(201, 109, 66, 0.18);
}

.mcp-notification-toggle-btn[data-enabled="true"] {
  background: #c96d42;
  color: #ffffff;
}

.mcp-notification-toggle-btn[data-enabled="false"] {
  background: #ffffff;
  color: #7a3f1f;
}

@media (max-width: 700px) {
  .mcp-notification-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .mcp-notification-toggle-btn {
    width: 100%;
    min-width: 0;
  }
}

/* MES ANIMAUX / PHOTOS DES ANIMAUX */

.animals-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.animals-header-actions .btn {
  white-space: nowrap !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.animal-photos-feed {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
  margin-top: 24px !important;
}

.animal-photos-feed .card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.animal-photos-feed img {
  width: 100% !important;
  max-height: 320px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  display: block !important;
}

@media (max-width: 700px) {
  .animals-header-actions {
    align-items: flex-start !important;
  }

  .animals-header-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }

  .animal-photos-feed {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================
   STORIES PC - CARTE HORIZONTALE COMME PHOTO 1
   Photo à gauche / texte au milieu / boutons à droite
===================================================== */

@media (min-width: 901px) {
  main.container #storiesList,
  .stories-page #storiesList,
  .story-list-zone #storiesList {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  main.container #storiesList .story-card,
  .stories-page #storiesList .story-card,
  .story-list-zone #storiesList .story-card {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) 180px !important;
    gap: 18px !important;
    align-items: start !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    padding: 12px 16px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #ead7cb !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    overflow: visible !important;
  }

  main.container #storiesList .story-display-grid,
  .stories-page #storiesList .story-display-grid,
  .story-list-zone #storiesList .story-display-grid {
    display: contents !important;
  }

  main.container #storiesList .story-photo-zone,
  .stories-page #storiesList .story-photo-zone,
  .story-list-zone #storiesList .story-photo-zone {
    grid-column: 1 !important;
    grid-row: 1 / span 10 !important;

    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
  }

  main.container #storiesList .story-photo,
  .stories-page #storiesList .story-photo,
  .story-list-zone #storiesList .story-photo {
    width: 240px !important;
    height: 130px !important;
    max-width: 240px !important;
    max-height: 130px !important;

    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 !important;
  }

  main.container #storiesList .story-info-zone,
  .stories-page #storiesList .story-info-zone,
  .story-list-zone #storiesList .story-info-zone {
    display: contents !important;
  }

  main.container #storiesList .story-info-zone > h3,
  .stories-page #storiesList .story-info-zone > h3,
  .story-list-zone #storiesList .story-info-zone > h3 {
    grid-column: 2 !important;
    grid-row: 1 !important;

    margin: 4px 0 8px !important;
    color: #2f2f2f !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  main.container #storiesList .story-info-zone > p,
  .stories-page #storiesList .story-info-zone > p,
  .story-list-zone #storiesList .story-info-zone > p {
    grid-column: 2 !important;

    margin: 0 0 8px !important;
    line-height: 1.45 !important;
    color: #333 !important;
    overflow-wrap: anywhere !important;
  }

  main.container #storiesList .story-info-zone > p:nth-of-type(1),
  .stories-page #storiesList .story-info-zone > p:nth-of-type(1),
  .story-list-zone #storiesList .story-info-zone > p:nth-of-type(1) {
    grid-row: 2 !important;
    font-size: 15px !important;
  }

  main.container #storiesList .story-info-zone > p:nth-of-type(2),
  .stories-page #storiesList .story-info-zone > p:nth-of-type(2),
  .story-list-zone #storiesList .story-info-zone > p:nth-of-type(2) {
    grid-row: 3 !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    color: #6b5f58 !important;
  }

  /* Cache les infos en trop pour avoir le style compact de ta photo */
  main.container #storiesList .story-info-zone > p:nth-of-type(n + 3),
  .stories-page #storiesList .story-info-zone > p:nth-of-type(n + 3),
  .story-list-zone #storiesList .story-info-zone > p:nth-of-type(n + 3) {
    display: none !important;
  }

  main.container #storiesList .story-info-zone > .form-actions,
  .stories-page #storiesList .story-info-zone > .form-actions,
  .story-list-zone #storiesList .story-info-zone > .form-actions {
    grid-column: 3 !important;
    grid-row: 1 / span 3 !important;

    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;

    width: 100% !important;
    margin: 0 !important;
    align-self: start !important;
  }

  main.container #storiesList .story-info-zone > .form-actions .btn,
  .stories-page #storiesList .story-info-zone > .form-actions .btn,
  .story-list-zone #storiesList .story-info-zone > .form-actions .btn {
    width: 100% !important;
    min-height: 34px !important;
    padding: 8px 12px !important;

    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  main.container #storiesList .story-comments-area,
  .stories-page #storiesList .story-comments-area,
  .story-list-zone #storiesList .story-comments-area {
    grid-column: 3 !important;
    grid-row: 4 !important;

    width: 100% !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border-top: none !important;
  }

  main.container #storiesList .story-comments-area .mobile-collapse-toggle,
  .stories-page #storiesList .story-comments-area .mobile-collapse-toggle,
  .story-list-zone #storiesList .story-comments-area .mobile-collapse-toggle {
    width: 100% !important;
    min-height: 34px !important;
    padding: 8px 12px !important;

    border: 1px solid #ead7cb !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #c96d42 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  main.container #storiesList .story-comments-area .mobile-collapse-toggle small,
  .stories-page #storiesList .story-comments-area .mobile-collapse-toggle small,
  .story-list-zone #storiesList .story-comments-area .mobile-collapse-toggle small {
    display: none !important;
  }

  main.container #storiesList .story-comments-area:not(.is-open) .mobile-collapse-content,
  .stories-page #storiesList .story-comments-area:not(.is-open) .mobile-collapse-content,
  .story-list-zone #storiesList .story-comments-area:not(.is-open) .mobile-collapse-content {
    display: none !important;
  }
}

/* =====================================================
   MOBILE - on garde l’affichage vertical propre
===================================================== */

@media (max-width: 900px) {
  main.container #storiesList,
  .stories-page #storiesList,
  .story-list-zone #storiesList {
    grid-template-columns: 1fr !important;
  }

  main.container #storiesList .story-card,
  .stories-page #storiesList .story-card,
  .story-list-zone #storiesList .story-card {
    display: block !important;
  }

  main.container #storiesList .story-display-grid,
  .stories-page #storiesList .story-display-grid,
  .story-list-zone #storiesList .story-display-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  main.container #storiesList .story-photo-zone,
  .stories-page #storiesList .story-photo-zone,
  .story-list-zone #storiesList .story-photo-zone {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  main.container #storiesList .story-photo,
  .stories-page #storiesList .story-photo,
  .story-list-zone #storiesList .story-photo {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
  }
}

/* =====================================================
   CORRECTION STORIES PC
   Moins d'espace + photos non coupées
===================================================== */

@media (min-width: 901px) {
  main.container #storiesList,
  .stories-page #storiesList,
  .story-list-zone #storiesList {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
  }

  main.container #storiesList .story-card,
  .stories-page #storiesList .story-card,
  .story-list-zone #storiesList .story-card {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    min-height: 220px !important;

    padding: 14px 230px 14px 14px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid #ead7cb !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    overflow: visible !important;
  }

  main.container #storiesList .story-display-grid,
  .stories-page #storiesList .story-display-grid,
  .story-list-zone #storiesList .story-display-grid {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
    width: 100% !important;
  }

  main.container #storiesList .story-photo-zone,
  .stories-page #storiesList .story-photo-zone,
  .story-list-zone #storiesList .story-photo-zone {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
  }

  main.container #storiesList .story-photo,
  .stories-page #storiesList .story-photo,
  .story-list-zone #storiesList .story-photo,
  main.container #storiesList .story-card .story-photo-zone img,
  .stories-page #storiesList .story-card .story-photo-zone img,
  .story-list-zone #storiesList .story-card .story-photo-zone img {
    width: 300px !important;
    height: 165px !important;
    max-width: 300px !important;
    max-height: 165px !important;

    object-fit: contain !important;
    object-position: center !important;

    background: #f7f3ee !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 !important;
  }

  main.container #storiesList .story-info-zone,
  .stories-page #storiesList .story-info-zone,
  .story-list-zone #storiesList .story-info-zone {
    min-width: 0 !important;
    width: 100% !important;
  }

  main.container #storiesList .story-info-zone h3,
  .stories-page #storiesList .story-info-zone h3,
  .story-list-zone #storiesList .story-info-zone h3 {
    margin: 4px 0 18px !important;
    color: #2f2f2f !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
  }

  main.container #storiesList .story-info-zone p,
  .stories-page #storiesList .story-info-zone p,
  .story-list-zone #storiesList .story-info-zone p {
    margin: 0 0 18px !important;
    line-height: 1.45 !important;
    color: #2f2f2f !important;
    overflow-wrap: anywhere !important;
  }

  main.container #storiesList .story-info-zone p small,
  .stories-page #storiesList .story-info-zone p small,
  .story-list-zone #storiesList .story-info-zone p small {
    color: #555 !important;
  }

  main.container #storiesList .story-card .form-actions,
  .stories-page #storiesList .story-card .form-actions,
  .story-list-zone #storiesList .story-card .form-actions {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;

    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;

    width: 180px !important;
    margin: 0 !important;
  }

  main.container #storiesList .story-card .form-actions .btn,
  .stories-page #storiesList .story-card .form-actions .btn,
  .story-list-zone #storiesList .story-card .form-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  main.container #storiesList .story-comments-area,
  .stories-page #storiesList .story-comments-area,
  .story-list-zone #storiesList .story-comments-area {
    position: absolute !important;
    top: 184px !important;
    right: 16px !important;

    width: 180px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    overflow: visible !important;
  }

  main.container #storiesList .story-comments-area .mobile-collapse-toggle,
  .stories-page #storiesList .story-comments-area .mobile-collapse-toggle,
  .story-list-zone #storiesList .story-comments-area .mobile-collapse-toggle {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;

    border: 1px solid #ead7cb !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #c96d42 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
  }

  main.container #storiesList .story-comments-area .mobile-collapse-toggle small,
  .stories-page #storiesList .story-comments-area .mobile-collapse-toggle small,
  .story-list-zone #storiesList .story-comments-area .mobile-collapse-toggle small {
    display: none !important;
  }

  main.container #storiesList .story-comments-area:not(.is-open) .mobile-collapse-content,
  .stories-page #storiesList .story-comments-area:not(.is-open) .mobile-collapse-content,
  .story-list-zone #storiesList .story-comments-area:not(.is-open) .mobile-collapse-content {
    display: none !important;
  }

  main.container #storiesList .story-comments-area.is-open,
  .stories-page #storiesList .story-comments-area.is-open,
  .story-list-zone #storiesList .story-comments-area.is-open {
    position: static !important;
    width: 100% !important;
    margin-top: 18px !important;
    padding-top: 16px !important;
    border-top: 1px solid #ead7cb !important;
  }
}

/* =====================================================
   COMMUNAUTÉ - AFFICHAGE TYPE STORIES
   PC + TABLETTE UNIQUEMENT
   À coller tout en bas du CSS
===================================================== */

@media (min-width: 701px) {
  .community-page #communityGrid,
  #communityGrid.community-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 18px !important;
    margin-bottom: 34px !important;
    width: 100% !important;
  }

  .community-page #communityGrid .community-card,
  #communityGrid .community-card {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) 180px !important;
    gap: 18px !important;
    align-items: start !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    padding: 12px 16px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #ead7cb !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    overflow: visible !important;
  }

  .community-page #communityGrid .community-avatar,
  #communityGrid .community-avatar {
    grid-column: 1 !important;
    grid-row: 1 / span 10 !important;

    width: 240px !important;
    height: 130px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    min-height: 130px !important;
    max-height: 130px !important;

    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 !important;
    border: none !important;
  }

  .community-page #communityGrid .community-card-content,
  #communityGrid .community-card-content {
    display: contents !important;
  }

  .community-page #communityGrid .community-card-content > h3,
  #communityGrid .community-card-content > h3 {
    grid-column: 2 !important;
    grid-row: 1 !important;

    margin: 4px 0 8px !important;
    color: #c96d42 !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .community-page #communityGrid .community-card-content > p,
  #communityGrid .community-card-content > p {
    grid-column: 2 !important;

    margin: 0 0 8px !important;
    line-height: 1.45 !important;
    color: #333 !important;
    overflow-wrap: anywhere !important;
  }

  .community-page #communityGrid .community-card-content > .form-actions,
  #communityGrid .community-card-content > .form-actions {
    grid-column: 3 !important;
    grid-row: 1 / span 10 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    width: 100% !important;
  }

  .community-page #communityGrid .community-card-content > .form-actions .btn,
  .community-page #communityGrid .community-card-content > .form-actions button,
  #communityGrid .community-card-content > .form-actions .btn,
  #communityGrid .community-card-content > .form-actions button {
    width: 100% !important;
    min-height: 24px !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

/* =====================================================
   FIX COMMUNAUTÉ - PHOTOS PLUS GRANDES NON COUPÉES
   PC + TABLETTE UNIQUEMENT
===================================================== */

@media (min-width: 701px) {
  .community-page #communityGrid .community-card,
  #communityGrid .community-card {
    grid-template-columns: 300px minmax(0, 1fr) 180px !important;
    min-height: 220px !important;
  }

  .community-page #communityGrid .community-avatar,
  #communityGrid .community-avatar {
    grid-column: 1 !important;
    grid-row: 1 / span 10 !important;

    width: 300px !important;
    height: 190px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    min-height: 190px !important;
    max-height: 190px !important;

    object-fit: contain !important;
    object-position: center !important;

    background: #fffaf7 !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
  }
}

/* =====================================================
   COMMUNAUTÉ - BLOCS FAVORIS / AMIS EN VERTICAL
===================================================== */

.community-page .community-lists-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;

  width: 100% !important;
 max-width: 100% !important;
  margin: 34px auto !important;

  align-items: stretch !important;
}

.community-page .community-list-panel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: auto !important;

  padding: 22px !important;
  border-radius: 24px !important;
}

.community-page .community-list-panel .card,
.community-page #favoritesList .card,
.community-page #friendRequestsList .card,
.community-page #friendsList .card,
.community-page #blockedUsersList .card,
.community-page #reportedUsersList .card {
  width: 100% !important;
  margin-bottom: 12px !important;
}

.community-page .community-list-panel .form-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.community-page .community-list-panel .form-actions .btn,
.community-page .community-list-panel .form-actions button {
  width: 100% !important;
}

/* =====================================================
   ANNONCES PUBLIÉES - AFFICHAGE VERTICAL
===================================================== */

#adsPostsList,
#adsPostsList.cards,
#publishedAdsList,
#publishedAdsList.cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;

  width: 100% !important;
  max-width: 760px !important;
 margin: 24px auto !important;
  align-items: stretch !important;
}

#adsPostsList .card,
#publishedAdsList .card {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;

  padding: 28px !important;
  border-radius: 24px !important;
}

#adsPostsList .card .form-actions,
#publishedAdsList .card .form-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
}

#adsPostsList .card .form-actions .btn,
#adsPostsList .card .form-actions button,
#publishedAdsList .card .form-actions .btn,
#publishedAdsList .card .form-actions button {
  width: 100% !important;
}



  /* SI LA CRÉATION EST DANS UN BLOC .studio-creation */
  #studioCreationsFeed > .studio-feed-card > .studio-creation,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation {
    grid-column: 1 !important;
    grid-row: 1 / span 30 !important;

    width: 460px !important;
    max-width: 460px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-align: center !important;
  }

  #studioCreationsFeed > .studio-feed-card > .studio-creation .studio-image-frame,
  #studioCreationsFeed > .studio-feed-card > .studio-creation .studio-creation-image-wrap,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation .studio-image-frame,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation .studio-creation-image-wrap {
    width: 460px !important;
    height: 320px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fffaf7 !important;
  }

  #studioCreationsFeed > .studio-feed-card > .studio-creation img,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation img {
    width: 460px !important;
    height: 320px !important;
    max-width: 460px !important;
    max-height: 320px !important;

    object-fit: cover !important;
    object-position: center !important;

    display: block !important;
    margin: 0 !important;
    border-radius: 14px !important;
  }

  /* TITRE SOUS LA PHOTO : MÊME LARGEUR QUE LA PHOTO */
  #studioCreationsFeed > .studio-feed-card > .studio-creation .studio-caption,
  #studioCreationsFeed > .studio-feed-card > .studio-creation .studio-creation-content,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation .studio-caption,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation .studio-creation-content {
    width: 460px !important;
    max-width: 460px !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #studioCreationsFeed > .studio-feed-card > .studio-creation h2,
  #studioCreationsFeed > .studio-feed-card > .studio-creation h3,
  #studioCreationsFeed > .studio-feed-card > .studio-creation p,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation h2,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation h3,
  .studio-page #studioCreationsFeed > .studio-feed-card > .studio-creation p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* TEXTE AU MILIEU */
  #studioCreationsFeed > .studio-feed-card > :not(img):not(.studio-creation):not(.form-actions),
  .studio-page #studioCreationsFeed > .studio-feed-card > :not(img):not(.studio-creation):not(.form-actions) {
    grid-column: 2 !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  #studioCreationsFeed > .studio-feed-card > h3,
  .studio-page #studioCreationsFeed > .studio-feed-card > h3 {
    margin: 0 0 10px !important;
    color: #c96d42 !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  #studioCreationsFeed > .studio-feed-card > p,
  .studio-page #studioCreationsFeed > .studio-feed-card > p {
    margin: 6px 0 !important;
    line-height: 1.45 !important;
    color: #333 !important;
  }

  /* BOUTONS À DROITE */
  #studioCreationsFeed > .studio-feed-card > .form-actions,
  .studio-page #studioCreationsFeed > .studio-feed-card > .form-actions {
    grid-column: 3 !important;
    grid-row: 1 / span 30 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;

    width: 100% !important;
    margin: 0 !important;
  }

  #studioCreationsFeed > .studio-feed-card > .form-actions .btn,
  #studioCreationsFeed > .studio-feed-card > .form-actions button,
  .studio-page #studioCreationsFeed > .studio-feed-card > .form-actions .btn,
  .studio-page #studioCreationsFeed > .studio-feed-card > .form-actions button {
    width: 100% !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 701px) {
  #studioCreationsFeed .studio-creation,
  #studioCreationsFeed .studio-image-frame,
  #studioCreationsFeed .studio-caption {
    width: 420px !important;
    max-width: 420px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  #studioCreationsFeed .studio-image-frame img,
  #studioCreationsFeed .studio-feed-image,
  #studioCreationsFeed .memory-media {
    width: 420px !important;
    max-width: 420px !important;
    display: block !important;
    margin: 0 auto 16px auto !important;
  }

  #studioCreationsFeed .studio-caption h3,
  #studioCreationsFeed .studio-caption p,
  #studioCreationsFeed .studio-caption small {
    width: 420px !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}


@media (min-width: 701px) {
  #studioCreationsFeed .studio-creation {
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  #studioCreationsFeed .studio-image-frame {
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }

  #studioCreationsFeed .studio-caption {
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  #studioCreationsFeed .studio-caption h3,
  #studioCreationsFeed .studio-caption p {
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 701px) {
  #studioCreationsFeed .studio-creation {
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  #studioCreationsFeed .studio-image-frame {
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }

  #studioCreationsFeed .studio-caption {
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  #studioCreationsFeed .studio-caption h3,
  #studioCreationsFeed .studio-caption p {
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 701px) {
  #studioCreationsFeed > .studio-feed-card > h2,
  #studioCreationsFeed > .studio-feed-card > h3,
  #studioCreationsFeed > .studio-feed-card > p,
  .studio-page #studioCreationsFeed > .studio-feed-card > h2,
  .studio-page #studioCreationsFeed > .studio-feed-card > h3,
  .studio-page #studioCreationsFeed > .studio-feed-card > p {
    grid-column: 1 !important;
    width: 460px !important;
    max-width: 460px !important;
    text-align: center !important;
    justify-self: start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #studioCreationsFeed > .studio-feed-card > h2,
  #studioCreationsFeed > .studio-feed-card > h3,
  .studio-page #studioCreationsFeed > .studio-feed-card > h2,
  .studio-page #studioCreationsFeed > .studio-feed-card > h3 {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
  }
}

/* =====================================================
   BONS PLANS PARTAGÉS - AFFICHAGE VERTICAL
===================================================== */

.deals-page #dealPostsList,
#dealPostsList,
#dealPostsList.cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;

  width: 100% !important;
  max-width: 760px !important;
  margin: 24px auto !important;
  align-items: stretch !important;
}

.deals-page #dealPostsList .card,
.deals-page #dealPostsList .deal-card,
#dealPostsList .card,
#dealPostsList .deal-card {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;

  padding: 28px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

.deals-page #dealPostsList h3,
#dealPostsList h3 {
  margin-top: 0 !important;
  color: #c96d42 !important;
}

.deals-page #dealPostsList p,
#dealPostsList p {
  margin: 10px 0 !important;
  line-height: 1.5 !important;
}

.deals-page #dealPostsList .form-actions,
#dealPostsList .form-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin-top: 18px !important;
}

.deals-page #dealPostsList .form-actions .btn,
.deals-page #dealPostsList .form-actions button,
#dealPostsList .form-actions .btn,
#dealPostsList .form-actions button {
  width: 100% !important;
}

/* =====================================================
   BONS PLANS PARTAGÉS - PLUS LARGE ET MOINS LONG
===================================================== */

.deals-page #dealPostsList,
#dealPostsList,
#dealPostsList.cards {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 18px auto !important;
  gap: 12px !important;
}

.deals-page #dealPostsList .card,
.deals-page #dealPostsList .deal-card,
#dealPostsList .card,
#dealPostsList .deal-card {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;

  padding: 18px 24px !important;
  border-radius: 22px !important;
}

.deals-page #dealPostsList h3,
#dealPostsList h3 {
  margin: 0 0 10px !important;
  font-size: 22px !important;
}

.deals-page #dealPostsList p,
#dealPostsList p {
  margin: 6px 0 !important;
  line-height: 1.35 !important;
}

.deals-page #dealPostsList .form-actions,
#dealPostsList .form-actions {
  margin-top: 12px !important;
  flex-direction: row !important;
  gap: 10px !important;
}

.deals-page #dealPostsList .form-actions .btn,
.deals-page #dealPostsList .form-actions button,
#dealPostsList .form-actions .btn,
#dealPostsList .form-actions button {
  width: auto !important;
  min-width: 140px !important;
  padding: 10px 16px !important;
}

.map-source-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #6f625c;
  line-height: 1.5;
}

/* =====================================================
   FIX FINAL - BONS PLANS À L’HORIZONTAL
   Comme les cartes communauté
===================================================== */

.deals-page #dealPostsList,
#dealPostsList,
#dealPostsList.cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 24px auto !important;
}

.deals-page #dealPostsList .deal-post-card,
#dealPostsList .deal-post-card {
  width: 100% !important;
  max-width: 100% !important;

  display: grid !important;
  grid-template-columns: 1fr 230px !important;
  gap: 18px 28px !important;
  align-items: start !important;

  padding: 24px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

#dealPostsList .deal-post-card > h3,
#dealPostsList .deal-post-card > p,
#dealPostsList .deal-post-card > small,
#dealPostsList .deal-post-card > strong,
#dealPostsList .deal-post-card > div:not(.form-actions):not(.deal-comments-area) {
  grid-column: 1 !important;
}

#dealPostsList .deal-post-card h3 {
  margin: 0 0 10px !important;
  color: #c96d42 !important;
  font-size: 26px !important;
}

#dealPostsList .deal-post-card p {
  margin: 6px 0 !important;
  line-height: 1.45 !important;
}

#dealPostsList .deal-post-card .form-actions {
  grid-column: 2 !important;
  grid-row: 1 / span 8 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;

  margin-top: 0 !important;
  width: 100% !important;
}

#dealPostsList .deal-post-card .form-actions .btn,
#dealPostsList .deal-post-card .form-actions button {
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
}

#dealPostsList .deal-post-card .deal-comments-area {
  grid-column: 1 / -1 !important;
  margin-top: 14px !important;
  padding-top: 16px !important;
  border-top: 1px solid #ead7cb !important;
}

#dealPostsList .deal-comments-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#dealPostsList .deal-comment-line {
  background: #fff8f3 !important;
  border: 1px solid #ead7cb !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

#dealPostsList .deal-comment-form {
  display: flex !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

#dealPostsList .deal-comment-form input {
  flex: 1 !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1px solid #ddd !important;
  padding: 12px 14px !important;
}

#dealPostsList .deal-comment-form button {
  min-width: 150px !important;
}

/* Mobile : on repasse en vertical pour éviter que ça soit écrasé */
@media (max-width: 760px) {
  #dealPostsList .deal-post-card {
    display: flex !important;
    flex-direction: column !important;
  }

  #dealPostsList .deal-post-card .form-actions {
    width: 100% !important;
  }

  #dealPostsList .deal-comment-form {
    flex-direction: column !important;
  }

  #dealPostsList .deal-comment-form button {
    width: 100% !important;
  }
}


/* =====================================================
   FIX FINAL RESPONSIVE - BONS PLANS
   Mobile vertical / Tablette-PC horizontal
===================================================== */

/* PAR DÉFAUT = TÉLÉPHONE PORTABLE : vertical propre */
#dealPostsList,
#dealPostsList.cards,
.deals-page #dealPostsList {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px auto !important;
}

#dealPostsList .deal-post-card,
.deals-page #dealPostsList .deal-post-card {
  width: 100% !important;
  max-width: 100% !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;

  padding: 20px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid #ead7cb !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

#dealPostsList .deal-post-card .form-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 16px !important;
}

#dealPostsList .deal-post-card .form-actions .btn,
#dealPostsList .deal-post-card .form-actions button {
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
  border-radius: 999px !important;
}

#dealPostsList .deal-post-card .deal-comments-area {
  width: 100% !important;
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #ead7cb !important;
}

#dealPostsList .deal-comment-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#dealPostsList .deal-comment-form input,
#dealPostsList .deal-comment-form button {
  width: 100% !important;
}


/* TABLETTE + PC = horizontal comme communauté */
@media (min-width: 768px) {
  #dealPostsList,
  #dealPostsList.cards,
  .deals-page #dealPostsList {
    max-width: 1100px !important;
    margin: 24px auto !important;
  }

  #dealPostsList .deal-post-card,
  .deals-page #dealPostsList .deal-post-card {
    display: grid !important;
    grid-template-columns: 1fr 230px !important;
    gap: 18px 28px !important;
    align-items: start !important;
    padding: 24px !important;
  }

  #dealPostsList .deal-post-card > h3,
  #dealPostsList .deal-post-card > p,
  #dealPostsList .deal-post-card > small,
  #dealPostsList .deal-post-card > strong,
  #dealPostsList .deal-post-card > div:not(.form-actions):not(.deal-comments-area) {
    grid-column: 1 !important;
  }

  #dealPostsList .deal-post-card .form-actions {
    grid-column: 2 !important;
    grid-row: 1 / span 8 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;

    width: 100% !important;
    margin-top: 0 !important;
  }

  #dealPostsList .deal-post-card .deal-comments-area {
    grid-column: 1 / -1 !important;
  }

  #dealPostsList .deal-comment-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
  }

  #dealPostsList .deal-comment-form input {
    flex: 1 !important;
    width: auto !important;
  }

  #dealPostsList .deal-comment-form button {
    width: auto !important;
    min-width: 150px !important;
  }
}

/* COMMUNITY - ACTIONS SOUS VOIR PROFIL */

.community-page #communityGrid .mcp-community-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.community-page #communityGrid .mcp-community-actions > .btn.primary {
  width: 100% !important;
}

.community-page #communityGrid .mcp-community-actions-toggle {
  width: 54px !important;
  height: 54px !important;
  margin: 0 auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 999px !important;
  border: 1px solid #ead7cb !important;
  background: #fffaf6 !important;
  color: #c96d42 !important;

  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.community-page #communityGrid .mcp-community-hidden-actions {
  display: none !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

.community-page #communityGrid .mcp-community-hidden-actions.is-open {
  display: flex !important;
}

.community-page #communityGrid .mcp-community-hidden-actions .btn {
  width: 100% !important;
}





/* =====================================================
   COMMENTAIRES FERMÉS PAR DÉFAUT
   Clic = ouvre / clic = ferme
   Garde le scroll notification vers le bon commentaire
===================================================== */

#memoriesList .story-comments-inside-card.mobile-collapse,
#studioCreationsFeed .story-comments-inside-card.mobile-collapse {
  margin-top: 16px !important;
  border-top: 1px solid #ead7cb !important;
  padding-top: 12px !important;
}

#memoriesList .story-comments-inside-card.mobile-collapse .mobile-collapse-toggle,
#studioCreationsFeed .story-comments-inside-card.mobile-collapse .mobile-collapse-toggle {
  display: flex !important;
  width: 100% !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;

  background: #fff3eb !important;
  border: 1px solid #ead7cb !important;
  color: #2f2f2f !important;
  font-weight: 800 !important;
  border-radius: 16px !important;
  padding: 13px 14px !important;
  cursor: pointer !important;
}

#memoriesList .story-comments-inside-card.mobile-collapse:not(.is-open) .mobile-collapse-content,
#studioCreationsFeed .story-comments-inside-card.mobile-collapse:not(.is-open) .mobile-collapse-content {
  display: none !important;
}

#memoriesList .story-comments-inside-card.mobile-collapse.is-open .mobile-collapse-content,
#studioCreationsFeed .story-comments-inside-card.mobile-collapse.is-open .mobile-collapse-content {
  display: block !important;
}

/* =====================================================
   COMMUNITY - CARTE FERMÉE AVEC PHOTO + NOM DU CHAT
===================================================== */

@media (min-width: 701px) {
  #communityGrid .mcp-community-collapse-summary {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    cursor: pointer !important;
  }

  #communityGrid .mcp-community-collapse-photo {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
    border: 3px solid #f3e4da !important;
  }

  #communityGrid .mcp-community-collapse-text {
    display: block !important;
    flex: 1 !important;
  }

  #communityGrid .mcp-community-collapse-text strong {
    display: block !important;
    color: #c96d42 !important;
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }

  #communityGrid .mcp-community-collapse-text small {
    display: block !important;
    color: #4b3327 !important;
    font-size: 15px !important;
  }

  #communityGrid .community-card.mcp-community-card-collapsed .mcp-community-collapse-summary,
  #communityGrid .card.mcp-community-card-collapsed .mcp-community-collapse-summary {
    display: flex !important;
  }
}

/* =====================================================
   FIX FINAL - COMMUNAUTÉ PHOTOS PLUS PETITES
   PC + TABLETTE uniquement
===================================================== */

@media (min-width: 701px) {
  .community-page #communityGrid .community-card,
  #communityGrid .community-card {
    grid-template-columns: 150px minmax(0, 1fr) 180px !important;
    min-height: auto !important;
  }

  .community-page #communityGrid .community-avatar,
  #communityGrid .community-avatar {
    width: 150px !important;
    height: 110px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    min-height: 110px !important;
    max-height: 110px !important;

    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px !important;
  }

  #communityGrid .mcp-community-collapse-photo {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }
}

/* =====================================================
   COMMUNITY MOBILE + PC - CARTE FERMÉE PHOTO + NOM
===================================================== */

#communityGrid .mcp-community-collapse-summary {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
  cursor: pointer !important;
}

#communityGrid .mcp-community-collapse-photo {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  border: 2px solid #f3e4da !important;
}

#communityGrid .mcp-community-collapse-text {
  min-width: 0 !important;
  flex: 1 !important;
}

#communityGrid .mcp-community-collapse-text strong {
  display: block !important;
  color: #c96d42 !important;
  font-size: 16px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#communityGrid .mcp-community-collapse-text small {
  display: block !important;
  color: #4b3327 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#communityGrid .mcp-community-collapse-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 999px !important;
  border: 1px solid #ead7cb !important;
  background: #fffaf6 !important;
  color: #c96d42 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

/* =====================================================
   FIX ENTRAIDE MOBILE - TEXTE QUESTION NON COUPÉ
===================================================== */

@media (max-width: 700px) {
  #helpPostsList .help-post-card,
  #helpList .help-post-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #helpPostsList .help-post-card > p,
  #helpList .help-post-card > p {
    display: block !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
    text-overflow: clip !important;

    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }

  #helpPostsList .help-post-card p,
  #helpList .help-post-card p {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

/* =====================================================
   COMMUNITY - PAGE MES RELATIONS
===================================================== */

.community-top-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.community-relations-page .page-header {
  margin-bottom: 22px;
}

.community-relations-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 12px;
  border-radius: 22px;
  background: #fffaf6;
  border: 1px solid #ead7cb;
}

.community-relations-tab {
  flex: 1;
  min-width: 150px;
  border: 1px solid #ead7cb;
  background: white;
  color: #3a2a22;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
}

.community-relations-tab.active {
  background: #c96d42;
  color: white;
  border-color: #c96d42;
}

.community-relations-panel {
  display: none;
  background: white;
  border: 1px solid #ead7cb;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(60, 38, 22, 0.06);
}

.community-relations-panel.active {
  display: block;
}

.community-relations-panel h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 28px;
  color: #2f2f2f;
}

.community-relations-page .cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.community-relations-page .user-list-card,
.community-relations-page .cards > .card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  border: 1px solid #ead7cb !important;
  background: #fffaf7 !important;
}

.community-relations-page .form-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.community-relations-page .form-actions .btn,
.community-relations-page .form-actions button {
  width: 100% !important;
}

@media (max-width: 700px) {
  .community-top-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .community-top-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .community-relations-tabs {
    flex-direction: column;
  }

  .community-relations-tab {
    width: 100%;
  }

  .community-relations-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .community-relations-panel h2 {
    font-size: 24px;
  }
}

/* =====================================================
   PAGE NOTIFICATIONS MONCHAT+
===================================================== */

.notifications-page {
  padding-bottom: 130px;
}

.notifications-page-card {
  display: grid;
  gap: 18px;
}

.notifications-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notifications-page-actions .btn.is-active {
  background: #fff3eb;
  color: #c96d42;
  border: 1px solid #f0d2bf;
}

.notifications-page-list {
  display: grid;
  gap: 12px;
}

.notification-page-item {
  position: relative;
  width: 100%;
  border: 1px solid #ead7cb;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(89, 54, 35, 0.08);
  transition: 0.2s ease;
}

.notification-page-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(89, 54, 35, 0.14);
}

.notification-page-item.is-unread {
  border-color: #c96d42;
  background:
    radial-gradient(circle at top right, rgba(201, 109, 66, 0.12), transparent 38%),
    #fffaf6;
}

.notification-page-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff3eb;
  border: 1px solid #f0d2bf;
  font-size: 1.6rem;
}

.notification-page-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.notification-page-content strong {
  color: #2f2f2f;
  font-size: 1rem;
}

.notification-page-content small {
  color: #555;
  line-height: 1.35;
  font-weight: 700;
}

.notification-page-content em {
  color: #c96d42;
  font-style: normal;
  font-weight: 800;
  font-size: 0.85rem;
}

.notification-page-open {
  color: #c96d42;
  font-weight: 900;
  white-space: nowrap;
}

.notification-page-empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed #ead7cb;
  border-radius: 20px;
  background: #fffaf6;
  color: #555;
  font-weight: 800;
}

.bottom-nav-notifications {
  position: relative;
}

.bottom-main-notification-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c96d42;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  box-shadow: 0 0 0 3px rgba(201, 109, 66, 0.16);
}

.bottom-category-nav {
  grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 768px) {
  .notifications-page {
    padding-bottom: 115px;
  }

  .notifications-page-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .notification-page-item {
    grid-template-columns: auto 1fr;
  }

  .notification-page-open {
    grid-column: 2;
  }

  .bottom-category-nav {
    width: calc(100% - 14px) !important;
    gap: 5px !important;
    padding: 7px !important;
  }

  .bottom-nav-item {
    font-size: 10.5px !important;
    padding: 8px 3px !important;
  }

  .bottom-nav-icon {
    font-size: 20px !important;
  }

  .bottom-main-notification-badge {
    top: 3px;
    right: 5px;
  }
}

.notification-page-open.is-read-label {
  color: #777;
  background: #f3f3f3;
  border: 1px solid #dddddd;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.notification-page-item.is-read {
  opacity: 0.82;
}


/* =====================================================
   NOTIFICATIONS - CROIX SUPPRESSION DÉFINITIVE
===================================================== */

.notification-page-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.notification-delete-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0 !important;

  border: 1px solid rgba(198, 40, 40, 0.28);
  border-radius: 999px;

  background: #ffffff;
  color: #c62828;

  font-size: 20px;
  font-weight: 900;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 5px 12px rgba(198, 40, 40, 0.08);
}

.notification-delete-btn:hover {
  background: #c62828;
  color: #ffffff;
  transform: translateY(-1px);
}

.notification-page-item.is-read .notification-delete-btn {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .notification-page-actions {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .notification-delete-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }
}

/* Badge notification menu - version propre */
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#notificationBadgeMain {
  display: none;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  border-radius: 999px;
  background: #c96d42;
  color: #ffffff;

  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;

  box-shadow: 0 4px 10px rgba(201, 109, 66, 0.28);
  transform: translateY(-1px);
}

/* =====================================================
   ACCUEIL PRINCIPALE - PROFIL DU CHAT
   TEXTE À GAUCHE / PHOTO À DROITE / CARTE COMPACTE
===================================================== */

.home-cat-card {
  position: relative !important;

  display: block !important;

  width: 700px !important;
  max-width: 100% !important;

  min-height: 360px !important;
  height: auto !important;

  padding: 28px 340px 28px 28px !important;
  margin: 20px auto !important;

  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;

  text-align: left !important;
  overflow: hidden !important;
}

.home-cat-card h3 {
  margin: 0 0 14px 0 !important;

  color: #c96d42 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;

  text-align: left !important;
}

.home-cat-card p {
  margin: 8px 0 !important;

  font-size: 16px !important;
  line-height: 1.25 !important;

  text-align: left !important;
}

.home-cat-card #homeProfileImage,
.home-cat-card .home-profile-image {
  position: absolute !important;
  top: 28px !important;
  right: 28px !important;

  width: 300px !important;
  height: 300px !important;

  min-width: 300px !important;
  min-height: 300px !important;
  max-width: 300px !important;
  max-height: 300px !important;

  margin: 0 !important;
  display: block !important;

  object-fit: cover !important;
  object-position: center !important;

  border-radius: 24px !important;
  border: 1px solid #ead7cb !important;
  background: #fffaf7 !important;
}

/* MOBILE */
@media (max-width: 700px) {
  .home-cat-card {
    width: auto !important;
    min-height: 0 !important;

    padding: 22px !important;
    text-align: center !important;
    overflow: visible !important;
  }

  .home-cat-card #homeProfileImage,
  .home-cat-card .home-profile-image {
    position: static !important;

    width: 260px !important;
    height: 260px !important;

    min-width: 260px !important;
    min-height: 260px !important;
    max-width: 260px !important;
    max-height: 260px !important;

    margin: 18px auto 0 !important;
  }

  .home-cat-card h3,
  .home-cat-card p {
    text-align: center !important;
  }
}

/* Photo entière, non coupée */
.home-cat-card #homeProfileImage,
.home-cat-card .home-profile-image {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fffaf7 !important;
}

/* MES ANIMAUX - PHOTO ENTIÈRE NON COUPÉE */
#animalPhotosFeed img,
.animal-photos-feed img,
.animal-photo-card img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fffaf7 !important;
  border-radius: 18px !important;
}

/* =====================================================
   LOUPE + POPUP SUR TOUTES LES PHOTOS
===================================================== */

.mcp-zoomable-photo {
  cursor: zoom-in !important;
}



.mcp-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.mcp-photo-lightbox.is-open {
  display: flex;
}

.mcp-photo-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  background: #fffaf7;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.mcp-photo-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: white;
  color: #2f2f2f;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  z-index: 100000;
}


.mcp-zoomable-photo {
  cursor: zoom-in !important;
}

/* =====================================================
   STUDIO FUN - AMBIANCE CRÉATIVE PROPRE
   Fond doux, étoiles, pattes, badges, carte créative
===================================================== */

.studio-page {
  position: relative !important;
  max-width: 1180px !important;
  padding-top: 38px !important;
  padding-bottom: 60px !important;

  background:
    radial-gradient(circle at top left, rgba(201, 109, 66, 0.10), transparent 260px),
    radial-gradient(circle at top right, rgba(255, 195, 120, 0.18), transparent 300px),
    linear-gradient(180deg, #fffaf6 0%, #f7f3ee 100%) !important;

  border-radius: 34px !important;
  overflow: hidden !important;
}

/* petites décorations discrètes */
.studio-page::before {
  content: "✨ 🐾 ✨";
  position: absolute;
  top: 18px;
  right: 34px;

  font-size: 28px;
  opacity: 0.22;
  pointer-events: none;
}

.studio-page::after {
  content: "🐾";
  position: absolute;
  bottom: 28px;
  left: 34px;

  font-size: 52px;
  opacity: 0.08;
  transform: rotate(-18deg);
  pointer-events: none;
}

/* haut de page Studio Fun */
.studio-header-actions {
  position: relative !important;
  z-index: 1 !important;

  padding: 26px 28px !important;
  margin-bottom: 26px !important;

  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(234, 215, 203, 0.9) !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 30px rgba(70, 35, 15, 0.07) !important;
}

.studio-header-actions h1 {
  margin: 0 0 10px 0 !important;
  color: #c96d42 !important;
  font-size: 42px !important;
  line-height: 1.1 !important;
}

.studio-header-actions h1::after {
  content: " ✨";
}

.studio-header-actions p {
  max-width: 720px !important;
  margin: 0 !important;

  color: #4a3a32 !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
}

/* carte formulaire plus fun mais propre */
.studio-page .form-card {
  position: relative !important;
  z-index: 1 !important;

  padding: 30px !important;

  background:
    radial-gradient(circle at top right, rgba(255, 214, 166, 0.32), transparent 190px),
    linear-gradient(180deg, #ffffff 0%, #fff8f2 100%) !important;

  border: 1px solid #ead7cb !important;
  border-radius: 30px !important;
  box-shadow: 0 18px 44px rgba(70, 35, 15, 0.10) !important;
  overflow: hidden !important;
}

/* badge décoratif dans la carte */
.studio-page .form-card::before {
  content: "🎨 Studio créatif";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;
  padding: 8px 14px;

  background: #fff1e7;
  color: #b85f32;
  border: 1px solid #efd2bf;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 900;
}

/* mini badges styles */
.studio-page .form-card::after {
  content: "😹 Mème   🐱 Avatar   💬 BD   🎉 Anniversaire   ⭐ Poster";
  display: block;

  margin-top: 24px;
  padding: 12px 16px;

  background: #fffaf7;
  border: 1px dashed #e5c5b0;
  border-radius: 18px;

  color: #8a5032;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

/* titre dans la carte */
.studio-page .form-card h2 {
  margin-top: 0 !important;
  margin-bottom: 18px !important;

  color: #2f2f2f !important;
  font-size: 30px !important;
  line-height: 1.15 !important;
}

.studio-page .form-card h2::before {
  content: "✨ ";
}

/* champs plus doux */
.studio-page .form-group label {
  color: #3a2d27 !important;
  font-weight: 900 !important;
}

.studio-page input,
.studio-page select {
  background: #fffdfb !important;
  border: 1px solid #ead7cb !important;
  border-radius: 16px !important;
  min-height: 52px !important;
}

.studio-page input:focus,
.studio-page select:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.12) !important;
}

/* boutons plus créatifs */
.studio-page .btn.primary {
  background: linear-gradient(135deg, #d57945 0%, #b85b31 100%) !important;
  color: white !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 20px rgba(184, 91, 49, 0.22) !important;
}

.studio-page .btn.primary::after {
  content: " ✨";
}

.studio-page .btn.secondary {
  border-radius: 18px !important;
  background: #fffaf7 !important;
  border: 1px solid #ead7cb !important;
}


/* =====================================================
   STUDIO FUN - FORMULAIRE À GAUCHE / APERÇU À DROITE
===================================================== */

.studio-live-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 390px !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100% !important;
}

.studio-form-panel {
  margin-top: 0 !important;
}

.studio-preview-panel {
  width: 100% !important;
}

.studio-preview-sticky {
  position: sticky !important;
  top: 100px !important;
}

.studio-preview-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.studio-preview-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 8px 14px !important;
  border-radius: 999px !important;

  background: #fff1e7 !important;
  color: #b85f32 !important;
  border: 1px solid #efd2bf !important;

  font-size: 14px !important;
  font-weight: 900 !important;
}

#studioPreviewVisibility {
  padding: 7px 12px !important;
  border-radius: 999px !important;

  background: #ffffff !important;
  border: 1px solid #ead7cb !important;
  color: #4a3a32 !important;

  font-weight: 800 !important;
}

.studio-preview-card {
  position: relative !important;
  overflow: hidden !important;

  background:
    radial-gradient(circle at top right, rgba(255, 202, 145, 0.26), transparent 190px),
    linear-gradient(180deg, #ffffff 0%, #fff8f2 100%) !important;

  border: 1px solid #ead7cb !important;
  border-radius: 30px !important;
  padding: 18px !important;

  box-shadow: 0 18px 44px rgba(70, 35, 15, 0.12) !important;
}

.studio-preview-card::before {
  content: "✨";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 26px;
  opacity: 0.55;
  z-index: 2;
}

.studio-preview-image-box {
  position: relative !important;

  width: 100% !important;
  height: 280px !important;

  border-radius: 24px !important;
  overflow: hidden !important;

  background: #fffaf7 !important;
  border: 1px solid #ead7cb !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#studioLivePreviewImage {
  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center center !important;

  display: none;
  background: #fffaf7 !important;
}

.studio-preview-placeholder {
  color: #c96d42 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

.studio-preview-content {
  padding: 18px 4px 4px !important;
  text-align: left !important;
}

.studio-preview-style {
  display: inline-flex !important;
  margin-bottom: 12px !important;
  padding: 7px 12px !important;

  border-radius: 999px !important;
  background: #fff1e7 !important;
  border: 1px solid #efd2bf !important;

  color: #b85f32 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

#studioPreviewTitle {
  margin: 0 0 10px 0 !important;

  color: #c96d42 !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

#studioPreviewText {
  margin: 0 !important;
  padding: 12px 14px !important;

  background: rgba(255, 250, 247, 0.95) !important;
  border-left: 4px solid #c96d42 !important;
  border-radius: 14px !important;

  color: #2f2f2f !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

/* VARIANTES VISUELLES */
.studio-preview-card.preview-style-meme #studioPreviewText {
  font-size: 18px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.studio-preview-card.preview-style-avatar .studio-preview-image-box {
  border-radius: 999px !important;
  height: 320px !important;
}

.studio-preview-card.preview-style-comic {
  border: 3px solid #2f2f2f !important;
}

.studio-preview-card.preview-style-comic #studioPreviewText {
  border: 2px solid #2f2f2f !important;
  border-left: 2px solid #2f2f2f !important;
  background: white !important;
  border-radius: 22px !important;
}

.studio-preview-card.preview-style-birthday {
  background:
    radial-gradient(circle at top left, rgba(255, 218, 110, 0.28), transparent 160px),
    linear-gradient(180deg, #fffaf0 0%, #fff7f2 100%) !important;
}

.studio-preview-card.preview-style-birthday #studioPreviewTitle::before {
  content: "🎉 ";
}

.studio-preview-card.preview-style-birthday #studioPreviewTitle::after {
  content: " 🎂";
}

.studio-preview-card.preview-style-poster #studioPreviewTitle {
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* MOBILE */
@media (max-width: 900px) {
  .studio-live-layout {
    grid-template-columns: 1fr !important;
  }

  .studio-preview-sticky {
    position: static !important;
  }

  .studio-preview-panel {
    order: -1 !important;
  }
}


/* Centrer la photo dans la carte Studio */
.studio-creation .studio-image-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 380px !important;
  padding: 22px !important;
  overflow: hidden !important;
}

.studio-creation .studio-image-frame img {
  display: block !important;
  max-width: 100% !important;
  max-height: 340px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}

/* =====================================================
   STUDIO CRÉATIONS - CARTE PROPRE HORIZONTALE
===================================================== */

body.studio-creations-page #studioCreationsFeed {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-top: 18px !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card {
  display: grid !important;
  grid-template-columns: 420px 1fr !important;
  column-gap: 55px !important;
  align-items: start !important;

  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;

  padding: 26px 34px !important;
  margin: 0 !important;

  background: #fffaf7 !important;
  border: 1px solid #ead7cb !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card > img.studio-feed-image,
body.studio-creations-page #studioCreationsFeed .studio-feed-card > img.memory-media {
  grid-column: 1 !important;
  grid-row: 1 / span 10 !important;

  width: 390px !important;
  height: 390px !important;
  max-width: 390px !important;
  max-height: 390px !important;

  object-fit: cover !important;
  object-position: center !important;
  border-radius: 24px !important;

  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card > h3,
body.studio-creations-page #studioCreationsFeed .studio-feed-card > p,
body.studio-creations-page #studioCreationsFeed .studio-feed-card .studio-side-actions,
body.studio-creations-page #studioCreationsFeed .studio-feed-card .story-like-box,
body.studio-creations-page #studioCreationsFeed .studio-feed-card .studio-social-area {
  grid-column: 2 !important;
  text-align: left !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card > h3 {
  margin: 0 0 16px 0 !important;
  padding: 0 !important;

  font-size: 1.45rem !important;
  line-height: 1.2 !important;
  color: #c96d42 !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card > p {
  margin: 8px 0 !important;
  padding: 0 !important;

  font-size: 0.95rem !important;
  line-height: 1.35 !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card .studio-side-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;

  width: 100% !important;
  margin: 22px 0 0 0 !important;
  padding: 0 !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card .studio-side-actions .btn {
  width: auto !important;
  min-width: 170px !important;
  min-height: 48px !important;

  padding: 10px 20px !important;
  border-radius: 999px !important;

  font-size: 0.95rem !important;
  font-weight: 800 !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card .story-like-box {
  margin: 26px 0 0 0 !important;
  padding: 0 !important;
}

body.studio-creations-page #studioCreationsFeed .studio-feed-card .story-like-box .btn {
  width: auto !important;
  min-width: 180px !important;
}

/* mobile */
@media (max-width: 700px) {
  body.studio-creations-page #studioCreationsFeed .studio-feed-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-feed-card > img.studio-feed-image,
  body.studio-creations-page #studioCreationsFeed .studio-feed-card > img.memory-media {
    width: 100% !important;
    height: 320px !important;
    max-width: 100% !important;
    max-height: 320px !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-feed-card .studio-side-actions {
    flex-direction: column !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-feed-card .studio-side-actions .btn,
  body.studio-creations-page #studioCreationsFeed .studio-feed-card .story-like-box .btn {
    width: 100% !important;
  }
}


/* =====================================================
   FIX - CARTES STUDIO LES UNES EN DESSOUS DES AUTRES
===================================================== */

#studioCreationsFeed,
#studioCreationsFeed.cards,
body.studio-creations-page #studioCreationsFeed {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;

  width: 100% !important;
  max-width: 100% !important;

  gap: 22px !important;
  margin: 24px 0 0 0 !important;
  padding: 0 !important;
}

/* chaque carte prend toute la ligne */
#studioCreationsFeed > .studio-feed-card,
#studioCreationsFeed.cards > .studio-feed-card,
body.studio-creations-page #studioCreationsFeed > .studio-feed-card {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;

  margin: 0 !important;
  box-sizing: border-box !important;
}

/* empêche les cartes de se coller côte à côte */
#studioCreationsFeed > * {
  flex-shrink: 0 !important;
}

/* =====================================================
   SOUVENIRS - PHOTO GAUCHE / TEXTE DROITE
===================================================== */

#memoriesList {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  width: 100% !important;
}

/* CARTE */
#memoriesList .memory-card,
#memoriesList .card.memory-card {
  position: relative !important;
  display: block !important;

  width: 100% !important;
  min-height: 448px !important;

  padding: 24px 24px 24px 458px !important;
  box-sizing: border-box !important;

  background: #fff !important;
  border: 1px solid #ead7cb !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;

  overflow: hidden !important;
}

/* PHOTO À GAUCHE */
#memoriesList .memory-card > .memory-gallery {
  position: absolute !important;
  top: 24px !important;
  left: 24px !important;

  width: 400px !important;
  max-width: 400px !important;

  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* IMAGE */
#memoriesList .memory-card > .memory-gallery img,
#memoriesList .memory-card > .memory-gallery .memory-media {
  width: 400px !important;
  height: 400px !important;

  object-fit: cover !important;
  object-position: center !important;

  display: block !important;
  margin: 0 !important;
  border-radius: 18px !important;
}

/* TOUS LES TEXTES À DROITE */
#memoriesList .memory-card > *:not(.memory-gallery) {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  text-align: left !important;
  box-sizing: border-box !important;
}

/* TITRE */
#memoriesList .memory-card > h3 {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;

  color: #c96d42 !important;
  font-size: 2.2rem !important;
  line-height: 1.1 !important;
  text-align: left !important;
}

/* PARAGRAPHES */
#memoriesList .memory-card > p {
  margin: 8px 0 !important;
  padding: 0 !important;

  font-size: 1rem !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

/* LIKES / COMMENTAIRES / SUPPRIMER */
#memoriesList .memory-card > .story-like-box,
#memoriesList .memory-card > .story-social-box,
#memoriesList .memory-card > .story-comments-inside-card,
#memoriesList .memory-card > .form-actions {
  width: 100% !important;
  max-width: 100% !important;

  margin-top: 14px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;

  text-align: left !important;
}

/* BOUTONS */
#memoriesList .memory-card > .form-actions {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

/* TABLETTE */
@media (min-width: 761px) and (max-width: 1000px) {
  #memoriesList .memory-card,
  #memoriesList .card.memory-card {
    min-height: 358px !important;
    padding: 20px 20px 20px 360px !important;
  }

  #memoriesList .memory-card > .memory-gallery {
    top: 20px !important;
    left: 20px !important;

    width: 310px !important;
    max-width: 310px !important;
  }

  #memoriesList .memory-card > .memory-gallery img,
  #memoriesList .memory-card > .memory-gallery .memory-media {
    width: 310px !important;
    height: 310px !important;
  }

  #memoriesList .memory-card > h3 {
    font-size: 1.8rem !important;
  }
}

/* MOBILE */
@media (max-width: 760px) {
  #memoriesList .memory-card,
  #memoriesList .card.memory-card {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;

    min-height: 0 !important;
    padding: 16px !important;
  }

  #memoriesList .memory-card > .memory-gallery {
    position: static !important;
    order: 1 !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 16px 0 !important;
  }

  #memoriesList .memory-card > .memory-gallery img,
  #memoriesList .memory-card > .memory-gallery .memory-media {
    width: 100% !important;
    height: 300px !important;
  }

  #memoriesList .memory-card > *:not(.memory-gallery) {
    order: 2 !important;
  }

  #memoriesList .memory-card > h3 {
    font-size: 1.55rem !important;
  }
}

/* =====================================================
   COMMUNAUTÉ - AGRANDIR UNIQUEMENT LA ZONE VISIBLE
===================================================== */

#communityGrid {
  width: min(1380px, calc(100vw - 40px)) !important;
  max-width: none !important;

  margin-left: 50% !important;
  margin-right: 0 !important;

  transform: translateX(-50%) !important;

  gap: 26px !important;
}

/* FIX MOBILE - Studio Fun bien centré */
@media (max-width: 700px) {
  .studio-page,
  .studio-page .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    overflow-x: hidden !important;
  }

  .studio-live-layout {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .studio-form-panel,
  .studio-preview-panel,
  .studio-preview-sticky,
  .studio-preview-card,
  #studioLivePreviewCard {
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .studio-preview-card {
    padding: 16px !important;
  }

  .studio-preview-card .studio-preview-image-box {
    width: 100% !important;
    max-width: 320px !important;
    height: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .studio-preview-content {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .studio-preview-style {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #studioPreviewTitle,
  #studioPreviewText {
    text-align: center !important;
  }

  #studioPreviewText {
    border-left: 0 !important;
    border-top: 4px solid #c96d42 !important;
  }

  .studio-form-panel .form-grid {
    grid-template-columns: 1fr !important;
  }

  .studio-form-panel .form-actions {
    justify-content: center !important;
  }

  .studio-form-panel .form-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* FIX CARTE STUDIO - photo vraiment centrée */
#studioResult .studio-creation,
#studioCreationPreview {
  width: 100% !important;
  max-width: 490px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

#studioResult .studio-image-frame,
#studioCreationPreview .studio-image-frame {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 18px auto !important;
  padding: 0 !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#studioResult .studio-image-frame img,
#studioCreationPreview .studio-image-frame img {
  display: block !important;
  width: 265px !important;
  max-width: 100% !important;
  height: 270px !important;

  object-fit: cover !important;
  object-position: center center !important;

  margin-left: auto !important;
  margin-right: auto !important;

  border-radius: 18px !important;
}

#studioResult .studio-caption,
#studioCreationPreview .studio-caption {
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Centre uniquement la photo dans la carte Studio */
#studioCreationPreview .studio-image-frame {
  margin-left: auto !important;
  margin-right: auto !important;
}

#studioCreationPreview .studio-image-frame img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =====================================================
   CRÉATIONS STUDIO - MÊME RENDU VISUEL QUE STORY DU CHAT
===================================================== */

@media (min-width: 901px) {
  body.studio-creations-page #studioCreationsFeed {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    min-height: 220px !important;

    padding: 14px 230px 14px 14px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid #ead7cb !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    overflow: visible !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-grid {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
    width: 100% !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-photo-zone {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    height: 165px !important;

    background: #f7f3ee !important;
    border-radius: 8px !important;
    overflow: hidden !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-feed-image {
    width: 300px !important;
    height: 165px !important;
    max-width: 300px !important;
    max-height: 165px !important;

    object-fit: contain !important;
    object-position: center center !important;

    background: #f7f3ee !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-info-zone {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-info-zone h3 {
    margin: 4px 0 18px !important;
    color: #2f2f2f !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-info-zone p {
    margin: 0 0 18px !important;
    color: #2f2f2f !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-info-zone p small {
    color: #555 !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .form-actions {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;

    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;

    width: 180px !important;
    margin: 0 !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .form-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .story-comments-area {
    position: absolute !important;
    top: 184px !important;
    right: 16px !important;

    width: 180px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    overflow: visible !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .story-comments-area .mobile-collapse-toggle {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;

    border: 1px solid #ead7cb !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #c96d42 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .story-comments-area .mobile-collapse-toggle small {
    display: none !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .story-comments-area:not(.is-open) .mobile-collapse-content {
    display: none !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .story-comments-area.is-open {
    position: static !important;
    width: 100% !important;
    margin-top: 18px !important;
    padding-top: 16px !important;
    border-top: 1px solid #ead7cb !important;
  }
}

@media (max-width: 900px) {
  body.studio-creations-page #studioCreationsFeed .studio-story-look {
    display: block !important;
    padding: 14px !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-photo-zone {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 220px !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-feed-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    object-fit: contain !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .form-actions {
    position: static !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  body.studio-creations-page #studioCreationsFeed .studio-story-look > .story-comments-area {
    position: static !important;
    width: 100% !important;
    margin-top: 14px !important;
  }
}

/* =====================================================
   FIX FINAL - STYLE STORY DE LOULOU
   Image à gauche | texte au milieu | boutons à droite
===================================================== */

@media (min-width: 701px) {
  #studioCreationsFeed .studio-feed-card {
    display: grid !important;
    grid-template-columns: 360px 1fr 225px !important;
    column-gap: 28px !important;
    align-items: start !important;

    width: 100% !important;
    min-height: 320px !important;
    padding: 18px 20px !important;
    position: relative !important;
  }

  /* IMAGE / CARTE À GAUCHE */
  #studioCreationsFeed .studio-feed-card .studio-creation-card,
  #studioCreationsFeed .studio-feed-card .mini-story-card,
  #studioCreationsFeed .studio-feed-card > img {
    grid-column: 1 !important;
    grid-row: 1 / span 10 !important;

    width: 100% !important;
    max-width: 360px !important;
    margin: 0 !important;
  }

  /* TEXTE AU MILIEU */
  #studioCreationsFeed .studio-feed-card > h2,
  #studioCreationsFeed .studio-feed-card > h3 {
    grid-column: 2 !important;
    grid-row: auto !important;

    margin: 4px 0 28px 0 !important;
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-align: left !important;
    color: #202020 !important;
  }

  #studioCreationsFeed .studio-feed-card > p {
    grid-column: 2 !important;

    margin: 0 0 26px 0 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    color: #202020 !important;
    max-width: 520px !important;
  }

  #studioCreationsFeed .studio-feed-card > p strong,
  #studioCreationsFeed .studio-feed-card > p b {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  /* BOUTONS TÉLÉCHARGER / SUPPRIMER À DROITE */
  #studioCreationsFeed .studio-feed-card > .form-actions,
  #studioCreationsFeed .studio-feed-card .studio-side-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;

    width: 225px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  #studioCreationsFeed .studio-feed-card > .form-actions .btn,
  #studioCreationsFeed .studio-feed-card > .form-actions button,
  #studioCreationsFeed .studio-feed-card .studio-side-actions .btn,
  #studioCreationsFeed .studio-feed-card .studio-side-actions button {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* BOUTON J'AIME À DROITE */
  #studioCreationsFeed .studio-feed-card .story-like-box {
    grid-column: 3 !important;
    grid-row: 2 !important;

    width: 225px !important;
    margin: 14px 0 0 auto !important;
    padding: 0 !important;
  }

  #studioCreationsFeed .studio-feed-card .story-like-box .btn,
  #studioCreationsFeed .studio-feed-card .story-like-box button {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* BOUTON COMMENTAIRES À DROITE */
  #studioCreationsFeed .studio-feed-card .story-comments-area,
  #studioCreationsFeed .studio-feed-card .studio-social-area,
  #studioCreationsFeed .studio-feed-card .home-story-comments-box {
    grid-column: 3 !important;
    grid-row: 3 !important;

    width: 225px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 30px 0 0 auto !important;
    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid #ead7cb !important;
    border-radius: 12px !important;
    background: #fffaf7 !important;
    box-shadow: none !important;
  }

  #studioCreationsFeed .studio-feed-card .story-comments-title,
  #studioCreationsFeed .studio-feed-card .story-comments-area h3,
  #studioCreationsFeed .studio-feed-card .studio-social-area h3,
  #studioCreationsFeed .studio-feed-card .home-story-comments-box h4 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #c96d42 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  #studioCreationsFeed .studio-feed-card .story-comments-area button,
  #studioCreationsFeed .studio-feed-card .studio-social-area button,
  #studioCreationsFeed .studio-feed-card .home-story-comments-box button {
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;

    color: #c96d42 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  /* Évite que les commentaires internes créent une grosse boîte */
  #studioCreationsFeed .studio-feed-card .mini-story-comments-card {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  #studioCreationsFeed .studio-feed-card .mini-story-comments-list {
    display: none !important;
  }
}

/* MOBILE : tout reste en colonne propre */
@media (max-width: 700px) {
  #studioCreationsFeed .studio-feed-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  #studioCreationsFeed .studio-feed-card > .form-actions,
  #studioCreationsFeed .studio-feed-card .studio-side-actions,
  #studioCreationsFeed .studio-feed-card .story-like-box,
  #studioCreationsFeed .studio-feed-card .story-comments-area,
  #studioCreationsFeed .studio-feed-card .studio-social-area,
  #studioCreationsFeed .studio-feed-card .home-story-comments-box {
    width: 100% !important;
  }
}

/* =====================================================
   FIX FINAL - Créations Studio : image entière non coupée
===================================================== */

body.studio-creations-page #studioCreationsFeed .studio-feed-card,
body.studio-creations-page #studioCreationsFeed .animal-photo-card {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Image enregistrée Studio : ne jamais couper le haut */
body.studio-creations-page #studioCreationsFeed img.studio-feed-image,
body.studio-creations-page #studioCreationsFeed img.memory-media.studio-feed-image {
  display: block !important;

  width: 100% !important;
  max-width: 490px !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  object-fit: contain !important;
  object-position: center top !important;

  margin: 0 auto 18px auto !important;
  padding: 0 !important;

  border-radius: 18px !important;
  background: #ffffff !important;
}

/* Sécurité mobile */
@media (max-width: 700px) {
  body.studio-creations-page #studioCreationsFeed img.studio-feed-image,
  body.studio-creations-page #studioCreationsFeed img.memory-media.studio-feed-image {
    width: 100% !important;
    max-width: 490px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
  }
}}}

/* =====================================================
   FIX PROPRE - Studio Fun aperçu live bien cadré
===================================================== */

.studio-live-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
  gap: 28px !important;
  align-items: start !important;
}

.studio-preview-panel,
.studio-preview-sticky,
#studioLivePreviewCard,
.studio-preview-card {
  width: 100% !important;
  max-width: 420px !important;
  box-sizing: border-box !important;
}

.studio-preview-card,
#studioLivePreviewCard {
  padding: 18px !important;
  overflow: hidden !important;
}

/* La zone photo ne dépasse plus jamais la carte */
#studioLivePreviewCard .studio-preview-image-box,
.studio-preview-card .studio-preview-image-box {
  width: 100% !important;
  max-width: 100% !important;
  height: 340px !important;

  margin: 0 auto !important;
  box-sizing: border-box !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;
  border-radius: 24px !important;
}

/* Image bien centrée */
#studioLivePreviewImage {
  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center center !important;

  margin: 0 auto !important;
  display: none;
}

/* Placeholder bien au centre */
#studioPreviewPlaceholder,
.studio-preview-placeholder {
  width: 100% !important;
  height: 100% !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Header Aperçu live / Privée aligné avec la carte */
.studio-preview-header {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto 12px auto !important;
  box-sizing: border-box !important;
}

/* Mobile */
@media (max-width: 900px) {
  .studio-live-layout {
    grid-template-columns: 1fr !important;
  }

  .studio-preview-panel,
  .studio-preview-sticky,
  #studioLivePreviewCard,
  .studio-preview-card,
  .studio-preview-header {
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #studioLivePreviewCard .studio-preview-image-box,
  .studio-preview-card .studio-preview-image-box {
    height: 320px !important;
  }
}
/* =====================================================
   COMMUNAUTÉ - agrandir les photos partout, mobile inclus
===================================================== */

/* Version desktop / carte fermée */
body.community-page #communityGrid .mcp-community-collapse-photo {
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;

  border-radius: 999px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Version mobile / tablette */
body.community-page #communityGrid .community-card.mcp-mobile-tablet-community-collapsed .mcp-mobile-tablet-community-photo,
body.community-page #communityGrid .card.mcp-mobile-tablet-community-collapsed .mcp-mobile-tablet-community-photo,
body.community-page #communityGrid .mcp-mobile-tablet-community-photo {
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;

  border-radius: 999px !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 2px solid #f3e4da !important;
}

/* Garde le même alignement, juste un peu plus d’air */
body.community-page #communityGrid .mcp-community-collapse-summary,
body.community-page #communityGrid .mcp-mobile-tablet-community-summary {
  gap: 14px !important;
}

/* =====================================================
   COMMUNAUTÉ - bouton + propre
===================================================== */

body.community-page #communityGrid .mcp-community-collapse-btn,
body.community-page #communityGrid .mcp-mobile-tablet-community-open-btn,
body.community-page #communityGrid .mcp-community-actions-toggle,
body.community-page #communityGrid .mcp-community-collapse-inline-btn {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 50% !important;
  border: 1px solid #ead7cb !important;

  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;

  display: inline-block !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  cursor: pointer !important;

  background-color: #fffaf7 !important;
  background-image:
    linear-gradient(#c96d42, #c96d42),
    linear-gradient(#c96d42, #c96d42) !important;
  background-size:
  11px 3px,
  3px 11px !important;

}

body.community-page #communityGrid .mcp-community-collapse-btn::before,
body.community-page #communityGrid .mcp-community-collapse-btn::after,
body.community-page #communityGrid .mcp-mobile-tablet-community-open-btn::before,
body.community-page #communityGrid .mcp-mobile-tablet-community-open-btn::after,
body.community-page #communityGrid .mcp-community-actions-toggle::before,
body.community-page #communityGrid .mcp-community-actions-toggle::after,
body.community-page #communityGrid .mcp-community-collapse-inline-btn::before,
body.community-page #communityGrid .mcp-community-collapse-inline-btn::after {
  content: none !important;
  display: none !important;
}

/* =====================================================
   VERSION PLUS JOLIE - CHEVRON AU LIEU DU +
===================================================== */

body.community-page #communityGrid .mcp-community-collapse-btn,
body.community-page #communityGrid .mcp-mobile-tablet-community-open-btn,
body.community-page #communityGrid .mcp-community-actions-toggle,
body.community-page #communityGrid .mcp-community-collapse-inline-btn {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  margin: 0 auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 999px !important;
  border: 1px solid #ead7cb !important;
  background: #fffaf7 !important;
  color: transparent !important;

  font-size: 0 !important;
  line-height: 0 !important;
  background-image: none !important;
  position: relative !important;
  cursor: pointer !important;
}

/* chevron bas */
body.community-page #communityGrid .mcp-community-collapse-btn::before,
body.community-page #communityGrid .mcp-mobile-tablet-community-open-btn::before,
body.community-page #communityGrid .mcp-community-actions-toggle::before,
body.community-page #communityGrid .mcp-community-collapse-inline-btn::before {
  content: "" !important;
  width: 12px !important;
  height: 12px !important;
  border-right: 3px solid #c96d42 !important;
  border-bottom: 3px solid #c96d42 !important;
  transform: translateY(-3px) rotate(45deg) !important;
  border-radius: 2px !important;
}

body.community-page #communityGrid .mcp-community-collapse-btn::after,
body.community-page #communityGrid .mcp-mobile-tablet-community-open-btn::after,
body.community-page #communityGrid .mcp-community-actions-toggle::after,
body.community-page #communityGrid .mcp-community-collapse-inline-btn::after {
  content: none !important;
}

/* =====================================================
   COMMUNAUTÉ - BOUTONS DÉPLIER PROPRES ET CENTRÉS
===================================================== */

#communityGrid .mcp-community-collapse-btn,
#communityGrid .mcp-mobile-tablet-community-open-btn,
#communityGrid .mcp-community-actions-toggle {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  padding: 0 !important;
  margin: 0 auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  position: relative !important;
  box-sizing: border-box !important;
  overflow: hidden !important;

  border-radius: 999px !important;
  border: 1px solid #ead7cb !important;
  background: #fffaf7 !important;
  background-image: none !important;

  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;

  cursor: pointer !important;
}

/* barre horizontale du + */
#communityGrid .mcp-community-collapse-btn::before,
#communityGrid .mcp-mobile-tablet-community-open-btn::before,
#communityGrid .mcp-community-actions-toggle::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;

  width: 16px !important;
  height: 3px !important;

  background: #c96d42 !important;
  border-radius: 999px !important;

  transform: translate(-50%, -50%) !important;
}

/* barre verticale du + */
#communityGrid .mcp-community-collapse-btn::after,
#communityGrid .mcp-mobile-tablet-community-open-btn::after,
#communityGrid .mcp-community-actions-toggle::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;

  width: 3px !important;
  height: 16px !important;

  background: #c96d42 !important;
  border-radius: 999px !important;

  transform: translate(-50%, -50%) !important;
}

/* =====================================================
   BONS PLANS PARTAGÉS - BOUTON OUVRIR / FERMER COMMENTAIRES
===================================================== */

.deals-page #dealPostsList .deal-comments-area.mobile-collapse {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #ead7cb !important;
}

/* On affiche le bouton aussi sur PC */
.deals-page #dealPostsList .deal-comments-area .mobile-collapse-toggle {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  padding: 12px 16px !important;
  border-radius: 999px !important;
  border: 1px solid #ead7cb !important;
  background: #fff3eb !important;
  color: #2f2f2f !important;

  font-weight: 800 !important;
  cursor: pointer !important;
}

.deals-page #dealPostsList .deal-comments-area .mobile-collapse-toggle span {
  font-size: 15px !important;
}

.deals-page #dealPostsList .deal-comments-area .mobile-collapse-toggle small {
  color: #c96d42 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* Fermé par défaut */
.deals-page #dealPostsList .deal-comments-area .mobile-collapse-content {
  display: none !important;
  margin-top: 14px !important;
}

/* Ouvert au clic */
.deals-page #dealPostsList .deal-comments-area.is-open .mobile-collapse-content {
  display: block !important;
}

/* =====================================================
   BONS PLANS PARTAGÉS - COMMENTAIRES OUVRIR / FERMER
   MOBILE + TABLETTE + PC
===================================================== */

.deals-page #dealPostsList .deal-comments-area.mobile-collapse {
  width: 100% !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #ead7cb !important;
}

/* bouton visible partout : mobile, tablette, ordinateur */
.deals-page #dealPostsList .deal-comments-area.mobile-collapse .mobile-collapse-toggle {
  display: flex !important;
  width: 100% !important;
  min-height: 46px !important;

  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  padding: 12px 16px !important;
  border-radius: 999px !important;
  border: 1px solid #ead7cb !important;
  background: #fff3eb !important;
  color: #2f2f2f !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.deals-page #dealPostsList .deal-comments-area.mobile-collapse .mobile-collapse-toggle small {
  display: inline !important;
  color: #c96d42 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* fermé par défaut, même sur tablette et PC */
.deals-page #dealPostsList .deal-comments-area.mobile-collapse .mobile-collapse-content {
  display: none !important;
  margin-top: 14px !important;
}

/* ouvert seulement quand on clique */
.deals-page #dealPostsList .deal-comments-area.mobile-collapse.is-open .mobile-collapse-content {
  display: block !important;
}

/* mobile : formulaire propre en colonne */
@media (max-width: 767px) {
  .deals-page #dealPostsList .deal-comment-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .deals-page #dealPostsList .deal-comment-form input,
  .deals-page #dealPostsList .deal-comment-form button {
    width: 100% !important;
  }
}

/* tablette : on garde le bouton, et les commentaires restent fermés par défaut */
@media (min-width: 768px) and (max-width: 1024px) {
  .deals-page #dealPostsList .deal-comments-area.mobile-collapse {
    grid-column: 1 / -1 !important;
  }

  .deals-page #dealPostsList .deal-comments-area.mobile-collapse .mobile-collapse-content {
    display: none !important;
  }

  .deals-page #dealPostsList .deal-comments-area.mobile-collapse.is-open .mobile-collapse-content {
    display: block !important;
  }
}

/* =====================================================
   ENTRAIDE - RÉPONSES / COMMENTAIRES FERMÉS PAR DÉFAUT
   MOBILE + TABLETTE + ORDINATEUR
===================================================== */

.help-publications-page #helpPostsList .help-replies-box.mobile-collapse,
.help-publications-page #helpPostsList .help-comments-box.mobile-collapse,
.help-page #helpPostsList .help-replies-box.mobile-collapse,
.help-page #helpPostsList .help-comments-box.mobile-collapse {
  width: 100% !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #ead7cb !important;
}

/* bouton visible partout */
.help-publications-page #helpPostsList .mobile-collapse-toggle,
.help-page #helpPostsList .mobile-collapse-toggle {
  display: flex !important;
  width: 100% !important;
  min-height: 46px !important;

  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  padding: 12px 16px !important;
  border-radius: 999px !important;
  border: 1px solid #ead7cb !important;
  background: #fff3eb !important;
  color: #2f2f2f !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.help-publications-page #helpPostsList .mobile-collapse-toggle small,
.help-page #helpPostsList .mobile-collapse-toggle small {
  display: inline !important;
  color: #c96d42 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* fermé par défaut */
.help-publications-page #helpPostsList .mobile-collapse-content,
.help-page #helpPostsList .mobile-collapse-content {
  display: none !important;
  margin-top: 14px !important;
}

/* ouvert seulement au clic */
.help-publications-page #helpPostsList .mobile-collapse.is-open .mobile-collapse-content,
.help-page #helpPostsList .mobile-collapse.is-open .mobile-collapse-content {
  display: block !important;
}

/* =====================================================
   ANNONCES PUBLIÉES - COMMENTAIRES OUVRIR / FERMER
   MOBILE + TABLETTE + ORDINATEUR
===================================================== */

.ads-published-page #adsPostsList .help-comments-box.mobile-collapse,
.ads-page #adsPostsList .help-comments-box.mobile-collapse,
.ads-published-page #adsMobileSearchResults .help-comments-box.mobile-collapse,
.ads-page #adsMobileSearchResults .help-comments-box.mobile-collapse {
  width: 100% !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #ead7cb !important;
}

/* bouton visible partout */
.ads-published-page #adsPostsList .help-comments-box.mobile-collapse .mobile-collapse-toggle,
.ads-page #adsPostsList .help-comments-box.mobile-collapse .mobile-collapse-toggle,
.ads-published-page #adsMobileSearchResults .help-comments-box.mobile-collapse .mobile-collapse-toggle,
.ads-page #adsMobileSearchResults .help-comments-box.mobile-collapse .mobile-collapse-toggle {
  display: flex !important;
  width: 100% !important;
  min-height: 46px !important;

  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  padding: 12px 16px !important;
  border-radius: 999px !important;
  border: 1px solid #ead7cb !important;
  background: #fff3eb !important;
  color: #2f2f2f !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.ads-published-page #adsPostsList .help-comments-box.mobile-collapse .mobile-collapse-toggle small,
.ads-page #adsPostsList .help-comments-box.mobile-collapse .mobile-collapse-toggle small,
.ads-published-page #adsMobileSearchResults .help-comments-box.mobile-collapse .mobile-collapse-toggle small,
.ads-page #adsMobileSearchResults .help-comments-box.mobile-collapse .mobile-collapse-toggle small {
  display: inline !important;
  color: #c96d42 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* fermé par défaut */
.ads-published-page #adsPostsList .help-comments-box.mobile-collapse .mobile-collapse-content,
.ads-page #adsPostsList .help-comments-box.mobile-collapse .mobile-collapse-content,
.ads-published-page #adsMobileSearchResults .help-comments-box.mobile-collapse .mobile-collapse-content,
.ads-page #adsMobileSearchResults .help-comments-box.mobile-collapse .mobile-collapse-content {
  display: none !important;
  margin-top: 14px !important;
}

/* ouvert au clic */
.ads-published-page #adsPostsList .help-comments-box.mobile-collapse.is-open .mobile-collapse-content,
.ads-page #adsPostsList .help-comments-box.mobile-collapse.is-open .mobile-collapse-content,
.ads-published-page #adsMobileSearchResults .help-comments-box.mobile-collapse.is-open .mobile-collapse-content,
.ads-page #adsMobileSearchResults .help-comments-box.mobile-collapse.is-open .mobile-collapse-content {
  display: block !important;
}

/* =====================================================
   ANNONCES - POPUP CONTACT PROPRIÉTAIRE
===================================================== */

.mcp-ads-contact-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  display: none;
  align-items: center !important;
  justify-content: center !important;

  padding: 18px !important;
  background: rgba(47, 37, 31, 0.52) !important;
  backdrop-filter: blur(5px) !important;
}

.mcp-ads-contact-popup {
  position: relative !important;
  width: min(94vw, 520px) !important;

  padding: 28px 24px 24px !important;
  border-radius: 28px !important;
  border: 1px solid #ead7cb !important;

  background:
    radial-gradient(circle at top right, rgba(201, 109, 66, 0.14), transparent 34%),
    linear-gradient(180deg, #fffdfb 0%, #fff7f1 100%) !important;

  box-shadow:
    0 24px 60px rgba(35, 25, 22, 0.24),
    0 6px 18px rgba(201, 109, 66, 0.12) !important;

  animation: mcpAdsContactPopupIn 0.22s ease-out !important;
}

.mcp-ads-contact-popup-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;

  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;

  border: 1px solid #ead7cb !important;
  background: #fffaf6 !important;
  color: #c96d42 !important;

  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.mcp-ads-contact-popup-icon {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 999px !important;
  background: #fff3eb !important;
  border: 1px solid #ead7cb !important;

  font-size: 28px !important;
}

.mcp-ads-contact-popup h3 {
  margin: 0 0 8px !important;
  text-align: center !important;
  color: #c96d42 !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
}

.mcp-ads-contact-popup p {
  margin: 0 0 16px !important;
  text-align: center !important;
  color: #3a2a22 !important;
  line-height: 1.45 !important;
}

.mcp-ads-contact-popup-textarea {
  width: 100% !important;
  min-height: 132px !important;

  padding: 14px 16px !important;
  border-radius: 18px !important;
  border: 1px solid #ead7cb !important;

  background: #ffffff !important;
  color: #2f2f2f !important;

  font-size: 16px !important;
  line-height: 1.45 !important;
  resize: vertical !important;
  outline: none !important;
}

.mcp-ads-contact-popup-textarea:focus {
  border-color: #c96d42 !important;
  box-shadow: 0 0 0 4px rgba(201, 109, 66, 0.14) !important;
}

.mcp-ads-contact-popup-error {
  min-height: 20px !important;
  margin: 8px 0 0 !important;
  color: #b45454 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-align: left !important;
}

.mcp-ads-contact-popup-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
  flex-wrap: wrap !important;
}

.mcp-ads-contact-popup-actions .btn {
  min-width: 130px !important;
  border-radius: 999px !important;
  text-align: center !important;
}

@keyframes mcpAdsContactPopupIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .mcp-ads-contact-popup {
    padding: 26px 18px 20px !important;
    border-radius: 24px !important;
  }

  .mcp-ads-contact-popup-actions {
    flex-direction: column-reverse !important;
  }

  .mcp-ads-contact-popup-actions .btn {
    width: 100% !important;
  }
}
