@import url(https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Inter:wght@100..900&family=Instrument+Serif:ital@0;1&family=Outfit:wght@100..900&display=swap);
/* Variables globales */
/*
 * Lexend Deca = police principale (aussi préchargée dans public/index.html).
 * Lexend en premier dans l’@import pour réduire la course avec le rendu (FOUT).
 * Inter / Instrument Serif / Outfit : pages marketing & blog.
 */

:root {
  --primary-color: #A5765C;
  --primary-hover: #8b5e48;
  --secondary-color: #393E46;
  --text-color: #1a1a1a;
  --text-secondary: #64748b;
  --background: #fafaf9;
  --surface: #ffffff;
  --border-color: rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Police principale + pile sans-serif explicite (évite Times si Lexend est encore en vol ou si var() est invalide). */
  --font-family: 'Lexend Deca', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Instrument Serif', serif; /* Elegant title font, conservé pour usage ponctuel (Lupi). */
}

/* Support iOS Safe Area + police dès la racine (héritage cohérent avant/après hydratation). */
html {
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  font-family: 'Lexend Deca', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family);
}

#root {
  font-family: 'Lexend Deca', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family);
}

body {
  /* Force le body à utiliser toute la hauteur */
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Reset et base */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Lexend Deca', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fafaf9;
  background: var(--background);
  color: #1a1a1a;
  color: var(--text-color);
  overflow-x: hidden;
  /* Support pour les safe areas */
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Typography mobile-first */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* Buttons mobile-friendly */
button,
.button {
  font-family: inherit;
  font-size: 16px;
  /* Évite le zoom sur iOS */
  padding: 12px 24px;
  border-radius: 12px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  /* Taille minimum pour touch targets */
  text-decoration: none;
  -webkit-user-select: none;
          user-select: none;
}

button:active,
.button:active {
  transform: scale(0.95);
}

.button-primary {
  background: #A5765C;
  background: var(--primary-color);
  color: white;
}

.button-primary:hover {
  background: #8b5e48;
  background: var(--primary-hover);
}

.button-secondary {
  background: #ffffff;
  background: var(--surface);
  color: #1a1a1a;
  color: var(--text-color);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
}

.button-secondary:hover {
  background: #fafaf9;
  background: var(--background);
}

/* Inputs mobile-friendly */
input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
  /* Évite le zoom sur iOS */
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  background: var(--surface);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition);
  width: 100%;
  min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #A5765C;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(246, 198, 116, 0.1);
}

/* Cards et surfaces */
.card {
  background: #ffffff;
  background: var(--surface);
  border-radius: 20px;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-md);
}

/* Listes mobile-friendly */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--transition);
  cursor: pointer;
}

.list-item:hover {
  background: #fafaf9;
  background: var(--background);
}

.list-item:active {
  background: rgba(0, 0, 0, 0.05);
}

/* Grilles responsive */
.grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

/* Spacing utilities */
.p-1 {
  padding: 8px;
}

.p-2 {
  padding: 16px;
}

.p-3 {
  padding: 24px;
}

.m-1 {
  margin: 8px;
}

.m-2 {
  margin: 16px;
}

.m-3 {
  margin: 24px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* Toast notifications mobile */
.Toastify__toast-container {
  top: calc(env(safe-area-inset-top, 0) + 16px) !important;
  padding: 0 16px;
}

@media (max-width: 480px) {
  .Toastify__toast-container {
    width: 100vw;
    left: 0;
    right: 0;
  }

  .Toastify__toast {
    margin-bottom: 8px;
    border-radius: 12px;
    border-radius: var(--radius-sm);
  }
}

/* Modals mobile */
.ant-modal-wrap {
  padding: 16px;
}

@media (max-width: 480px) {
  .ant-modal {
    margin: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 32px 32px 0 0 !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  }

  .ant-modal-content {
    border-radius: 32px 32px 0 0 !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  }
}

/* Loading states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #A5765C;
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  .no-print {
    display: none !important;
  }
}

/* Dark mode ready */
@media (prefers-color-scheme: dark) {
  /* Les styles dark mode peuvent être ajoutés ici si nécessaire */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: #e74c3c;
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
  --toastify-toast-background: #fff;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-toast-bd-radius: 6px;
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;
  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(
    to right,
    #4cd964,
    #5ac8fa,
    #007aff,
    #34aadc,
    #5856d6,
    #ff2d55
  );
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
  --toastify-color-progress-bgo: 0.2;
}

.Toastify__toast-container {
  z-index: 9999;
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, 9999);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
  position: fixed;
  padding: 4px;
  width: 320px;
  width: var(--toastify-toast-width);
  box-sizing: border-box;
  color: #fff;
}
.Toastify__toast-container--top-left {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--top-center {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: 50%;
  transform: translateX(-50%);
}
.Toastify__toast-container--top-right {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
}
.Toastify__toast-container--bottom-left {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--bottom-center {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: 50%;
  transform: translateX(-50%);
}
.Toastify__toast-container--bottom-right {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
}

@media only screen and (max-width : 480px) {
  .Toastify__toast-container {
    width: 100vw;
    padding: 0;
    left: env(safe-area-inset-left);
    margin: 0;
  }
  .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {
    top: env(safe-area-inset-top);
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {
    bottom: env(safe-area-inset-bottom);
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: env(safe-area-inset-right);
    left: auto;
    left: initial;
  }
}
.Toastify__toast {
  --y: 0;
  position: relative;
  touch-action: none;
  min-height: 64px;
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 8px;
  border-radius: 6px;
  border-radius: var(--toastify-toast-bd-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  max-height: 800px;
  max-height: var(--toastify-toast-max-height);
  font-family: sans-serif;
  font-family: var(--toastify-font-family);
  cursor: default;
  direction: ltr;
  /* webkit only issue #791 */
  z-index: 0;
  overflow: hidden;
}
.Toastify__toast--stacked {
  position: absolute;
  width: 100%;
  transform: translate3d(0, var(--y), 0) scale(var(--s));
  transition: transform 0.3s;
}
.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body, .Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
  transition: opacity 0.1s;
}
.Toastify__toast--stacked[data-collapsed=false] {
  overflow: visible;
}
.Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > * {
  opacity: 0;
}
.Toastify__toast--stacked:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--g) * 1px);
  bottom: 100%;
}
.Toastify__toast--stacked[data-pos=top] {
  top: 0;
}
.Toastify__toast--stacked[data-pos=bot] {
  bottom: 0;
}
.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before {
  transform-origin: top;
}
.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before {
  transform-origin: bottom;
}
.Toastify__toast--stacked:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  transform: scaleY(3);
  z-index: -1;
}
.Toastify__toast--rtl {
  direction: rtl;
}
.Toastify__toast--close-on-click {
  cursor: pointer;
}
.Toastify__toast-body {
  margin: auto 0;
  flex: 1 1 auto;
  padding: 6px;
  display: flex;
  align-items: center;
}
.Toastify__toast-body > div:last-child {
  word-break: break-word;
  flex: 1 1;
}
.Toastify__toast-icon {
  -webkit-margin-end: 10px;
          margin-inline-end: 10px;
  width: 20px;
  flex-shrink: 0;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.5s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

@media only screen and (max-width : 480px) {
  .Toastify__toast {
    margin-bottom: 0;
    border-radius: 0;
  }
}
.Toastify__toast-theme--dark {
  background: #121212;
  background: var(--toastify-color-dark);
  color: #fff;
  color: var(--toastify-text-color-dark);
}
.Toastify__toast-theme--light {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}
.Toastify__toast-theme--colored.Toastify__toast--default {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}
.Toastify__toast-theme--colored.Toastify__toast--info {
  color: #fff;
  color: var(--toastify-text-color-info);
  background: #3498db;
  background: var(--toastify-color-info);
}
.Toastify__toast-theme--colored.Toastify__toast--success {
  color: #fff;
  color: var(--toastify-text-color-success);
  background: #07bc0c;
  background: var(--toastify-color-success);
}
.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: #fff;
  color: var(--toastify-text-color-warning);
  background: #f1c40f;
  background: var(--toastify-color-warning);
}
.Toastify__toast-theme--colored.Toastify__toast--error {
  color: #fff;
  color: var(--toastify-text-color-error);
  background: #e74c3c;
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: linear-gradient(
    to right,
    #4cd964,
    #5ac8fa,
    #007aff,
    #34aadc,
    #5856d6,
    #ff2d55
  );
  background: var(--toastify-color-progress-light);
}
.Toastify__progress-bar-theme--dark {
  background: #bb86fc;
  background: var(--toastify-color-progress-dark);
}
.Toastify__progress-bar--info {
  background: #3498db;
  background: var(--toastify-color-progress-info);
}
.Toastify__progress-bar--success {
  background: #07bc0c;
  background: var(--toastify-color-progress-success);
}
.Toastify__progress-bar--warning {
  background: #f1c40f;
  background: var(--toastify-color-progress-warning);
}
.Toastify__progress-bar--error {
  background: #e74c3c;
  background: var(--toastify-color-progress-error);
}
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: rgba(255, 255, 255, 0.7);
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  align-self: flex-start;
  z-index: 1;
}
.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}
.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}
.Toastify__close-button:hover, .Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  z-index: var(--toastify-z-index);
  opacity: 0.7;
  transform-origin: left;
  border-bottom-left-radius: 6px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
}
.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}
.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}
.Toastify__progress-bar--rtl {
  right: 0;
  left: auto;
  left: initial;
  transform-origin: right;
  border-bottom-left-radius: 0;
  border-bottom-left-radius: initial;
  border-bottom-right-radius: 6px;
  border-bottom-right-radius: var(--toastify-toast-bd-radius);
}
.Toastify__progress-bar--wrp {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-bottom-left-radius: 6px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
}
.Toastify__progress-bar--wrp[data-hidden=true] {
  opacity: 0;
}
.Toastify__progress-bar--bg {
  opacity: 0.2;
  opacity: var(--toastify-color-progress-bgo);
  width: 100%;
  height: 100%;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: #e0e0e0;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: #616161;
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, var(--y), 0);
  }
}
@keyframes Toastify__bounceInLeft {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, var(--y), 0);
  }
}
@keyframes Toastify__bounceInUp {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%, 45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}
@keyframes Toastify__bounceInDown {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%, 45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}
.Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}
.Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}
.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}
.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}
.Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}
.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}
.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}
@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}
.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}
@keyframes Toastify__flipOut {
  from {
    transform: translate3d(0, var(--y), 0) perspective(400px);
  }
  30% {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}
.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}
@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}
@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}
@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}
@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, var(--y), 0);
  }
}
@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, var(--y), 0);
  }
}
@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}
@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}
.Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}
.Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}
.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}
.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}
.Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}
.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}
.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

@keyframes Toastify__spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  background: #ffffff;
  border: 1px solid rgba(246, 198, 116, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1000;
}

.cookie-banner__bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width=%27100%27 height=%27100%27 viewBox=%270 0 100 100%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M30,50 C35,40 40,35 50,35 C60,35 65,40 70,50 C75,60 80,65 90,65 M30,50 C25,60 20,65 10,65 M30,50 C35,60 40,65 50,65 C60,65 65,60 70,50%27 stroke=%27rgba%28246, 198, 116, 0.12%29%27 fill=%27none%27 stroke-width=%275%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.9;
  pointer-events: none;
}

.cookie-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.cookie-banner__text {
  flex: 1 1;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner__text a {
  color: #A5765C;
  text-decoration: none;
  border-bottom: 1px dashed rgba(165, 118, 92, 0.5);
}

.cookie-banner__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.cookie-btn:active { transform: translateY(1px); }

.cookie-btn--decline {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
}

.cookie-btn--accept {
  background: linear-gradient(135deg, #F6C674, #FFA351);
  color: #000;
  border: none;
  box-shadow: 0 4px 14px rgba(246, 198, 116, 0.35);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner__buttons {
    justify-content: flex-end;
  }
}



/* 
 * Styles globaux pour les inputs HTML5 natifs
 * Assure une apparence cohérente sur tous les navigateurs
 */

/* Styles de base pour tous les inputs natifs */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  min-height: 40px;
  box-sizing: border-box;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  
  /* Améliorer l'interaction tactile */
  touch-action: manipulation;
}

/* États de focus */
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  outline: none;
}

/* États hover */
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover {
  border-color: #40a9ff;
}

/* États disabled */
input[type="date"]:disabled,
input[type="time"]:disabled,
input[type="datetime-local"]:disabled,
input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="number"]:disabled {
  background-color: #f5f5f5;
  border-color: #d9d9d9;
  color: #00000040;
  cursor: not-allowed;
}

/* Amélioration pour mobile */
@media (max-width: 768px) {
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"] {
    font-size: 16px; /* Éviter le zoom sur iOS */
    min-height: 44px; /* Taille minimale recommandée pour le tactile */
  }
}

/* Correction pour les icônes de calendrier et horloge */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  margin-left: 4px;
  opacity: 0.6;
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Styles pour les conteneurs flexibles */
.input-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.input-group > div {
  flex: 1 1;
}

.input-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Styles responsive pour les conteneurs flexibles */
@media (max-width: 768px) {
  .input-group {
    flex-direction: column;
    gap: 16px;
  }
}
.rintintin-logo-container {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Lato', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    -webkit-user-select: none;
            user-select: none;
}

.logo-text-main {
    color: #1a1a1a;
}

/* Contrast version for dark backgrounds */
.rintintin-logo--contrast .logo-text-main {
    color: #ffffff;
}

.logo-text-pro {
    background: linear-gradient(90deg, #A5765C, #F6C674);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.logo-dot {
    color: #F6C674; /* Gold Dot */
    font-weight: 900;
    font-size: 1.25em;
    line-height: 0;
    margin-left: 0px;
}
.magic-loader-container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
    background: #fdfaf7;
    color: #3d2c1e;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Force la police Rintintin (Lexend Deca) sur tout le splash.
       Sans cela, le rendu peut tomber sur un fallback serif système
       avant le chargement complet de la webfont. */
    font-family: var(--font-family);
}

.magic-loader-container.exit {
    opacity: 0;
    pointer-events: none;
}

.magic-loader-container::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(194, 119, 62, 0.05), transparent);
    animation: scan-line 3s linear infinite;
    z-index: 5;
}

@keyframes scan-line {
    0% {
        top: -100%;
    }

    100% {
        top: 200%;
    }
}

/* Light Mesh Gradient Background */
.mesh-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    filter: blur(60px);
    opacity: 0.8;
}

.mesh-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 200 200%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27noiseFilter%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.65%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23noiseFilter%29%27/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
}

.mesh-blob {
    position: absolute;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    mix-blend-mode: multiply;
    animation: blob-float 25s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 {
    background: radial-gradient(circle, rgba(246, 198, 116, 0.4) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.blob-2 {
    background: radial-gradient(circle, rgba(194, 119, 62, 0.2) 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
}

.blob-3 {
    background: radial-gradient(circle, rgba(246, 198, 116, 0.3) 0%, transparent 70%);
    top: 40%;
    left: 20%;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(5vw, 10vh) scale(1.1) rotate(180deg);
    }

    100% {
        transform: translate(-5vw, -5vh) scale(1) rotate(360deg);
    }
}

/* Glass Branding */
.glass-loader-card {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.loading-logo-reveal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Même wordmark que la sidebar : Logo.tsx + Logo.css (Lato / Inter, graisses, point or). */
.magic-loader-logo.rintintin-logo-container {
    line-height: 1;
}

.loader-status-bar {
    width: 200px;
    height: 2px;
    background: rgba(194, 119, 62, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.loader-status-progress {
    position: absolute;
    height: 100%;
    width: 30%;
    background: #c2773e;
    animation: load-slide 2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

.loader-info-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 400px;
    animation: tips-reveal 1s ease-out forwards;
}

.loader-tip-box {
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid rgba(194, 119, 62, 0.1);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(194, 119, 62, 0.05);
    position: relative;
}

.tip-title {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c2773e;
    font-weight: 700;
    margin-bottom: 12px;
}

.tip-content {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #3d2c1e;
    font-weight: 500;
}

@keyframes tips-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-subtitle {
    font-size: 15px;
    letter-spacing: 0.05em;
    color: #6b5a4e;
    font-weight: 500;
    opacity: 0.8;
    animation: pulse-text 2s infinite ease-in-out;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}
.footer {
  background-color: var(--black);
  color: #fff;
  padding: 70px 50px 40px;
  font-family: var(--font-family);
}

@media (min-width: 768px) {
  .footer.footer-with-sidebar {
    padding-left: calc(50px + 240px);
    /* 50px base padding + 220px sidebar + 20px gap */
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-section {
  flex: 1 1;
  min-width: 200px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo-img {
  height: 40px;
  margin-right: 10px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.footer-brand-dot {
  color: var(--gold);
  font-size: 2rem;
  position: relative;
}

.footer-tagline {
  color: #ccc;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold);
  position: relative;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
  display: flex;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--gold);
  transform: translateY(-3px);
}

.social-icon {
  font-size: 1.2rem;
}

/* Styles pour les boutons qui ressemblent à des liens */
.footer-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-text-decoration-color: transparent;
          text-decoration-color: transparent;
  transition: -webkit-text-decoration-color 0.3s ease;
  transition: text-decoration-color 0.3s ease;
  transition: text-decoration-color 0.3s ease, -webkit-text-decoration-color 0.3s ease;
}

.footer-button:hover {
  -webkit-text-decoration-color: var(--gold);
          text-decoration-color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 50px 30px 30px;
  }

  .footer-sections {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }

  .footer-section {
    min-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 20px 30px;
  }

  .footer-sections {
    gap: 25px;
    margin-bottom: 30px;
  }
}
/* Variables de couleurs Rintintin */
:root {
  --chat-brown: #A5765C;
  --chat-gold: #F6C674;
  --chat-peach: #EE9F99;
  --chat-orange: #FFA351;
  --chat-light-gray: #F6F2EF;
  --chat-black: #000000;
  --chat-text-color: #333333;
}

/* Bulle de chat moderne */
.chat-bubble-modern {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A5765C 0%, #F6C674 50%, #EE9F99 100%);
  background: linear-gradient(135deg, var(--chat-brown) 0%, var(--chat-gold) 50%, var(--chat-peach) 100%);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(165, 118, 92, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: visible;
}

/* Bouton de fermeture sur la bulle */
.chat-bubble-close {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff4d4f;
  border: 2px solid white;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-bubble-modern:hover .chat-bubble-close {
  opacity: 1;
  transform: scale(1);
}

.chat-bubble-close:hover {
  background: #ff3838;
  transform: scale(1.1);
}

.chat-bubble-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.chat-bubble-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bubble-pulse-ring {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F6C674;
  background: var(--chat-gold);
  opacity: 0.75;
  animation: pulse-ring 2s infinite;
}

.chat-bubble-pulse-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F6C674;
  background: var(--chat-gold);
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0.75;
  }
}

.chat-bubble-pulse-effect {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #A5765C 0%, #F6C674 50%, #EE9F99 100%);
  background: linear-gradient(135deg, var(--chat-brown) 0%, var(--chat-gold) 50%, var(--chat-peach) 100%);
  z-index: 0;
}

/* Fenêtre de chat moderne */
.chat-window-modern {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 400px;
  height: 600px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 242, 239, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(165, 118, 92, 0.2);
  border: 1px solid rgba(246, 198, 116, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  min-width: 350px;
  min-height: 400px;
  max-width: 90vw;
  max-height: 90vh;
}

/* État de redimensionnement */
.chat-window-modern.resizing {
  box-shadow: 0 25px 70px rgba(165, 118, 92, 0.3);
  transition: box-shadow 0.2s ease;
}

/* En-tête moderne */
.chat-header-modern {
  background: linear-gradient(135deg, #A5765C 0%, #F6C674 100%);
  background: linear-gradient(135deg, var(--chat-brown) 0%, var(--chat-gold) 100%);
  padding: 16px 20px;
  padding-left: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chat-avatar-emoji {
  font-size: 24px;
}

.chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #A5765C;
  border: 2px solid var(--chat-brown);
}

.chat-header-title {
  font-weight: 700;
  font-size: 16px;
  color: white;
  margin: 0;
}

.chat-header-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Annule index.css (button { padding 12px 24px; min-height 44px }) qui écrasait les icônes Lucide */
.chat-close-button {
  background: rgba(45, 28, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.chat-close-button:hover {
  background: rgba(45, 28, 18, 0.58);
  color: #ffffff;
}

.chat-action-button {
  background: rgba(45, 28, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.chat-action-button:hover {
  background: rgba(45, 28, 18, 0.58);
  color: #ffffff;
}

.chat-header-modern .chat-action-button svg,
.chat-header-modern .chat-close-button svg {
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* Messages */
.chat-messages-modern {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #F6F2EF;
  background: var(--chat-light-gray);
}

.chat-message-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-message-wrapper.user {
  align-items: flex-end;
}

.chat-message-wrapper.bot {
  align-items: flex-start;
}

.chat-message-modern {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-message-modern.user {
  background: linear-gradient(135deg, #A5765C 0%, #8e6651 100%);
  background: linear-gradient(135deg, var(--chat-brown) 0%, #8e6651 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message-modern.bot {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246, 198, 116, 0.2);
  color: #333333;
  color: var(--chat-text-color);
  border-bottom-left-radius: 4px;
  position: relative;
  /* Pour le positionnement des pills */
}

.chat-message-time {
  font-size: 11px;
  color: #6b7280;
  padding: 0 8px;
}

/* Indicateur de frappe */
.chat-typing-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.chat-typing {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246, 198, 116, 0.2);
  padding: 12px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.chat-typing-dot {
  width: 8px;
  height: 8px;
  background: #F6C674;
  background: var(--chat-gold);
  border-radius: 50%;
}

/* Suggestions */
.chat-suggestions {
  padding: 12px 16px;
  border-top: 1px solid rgba(246, 198, 116, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: white;
}

.chat-suggestion-button {
  padding: 6px 12px;
  background: rgba(246, 198, 116, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #F6C674;
  border: 1px solid var(--chat-gold);
  border-radius: 20px;
  font-size: 13px;
  color: #A5765C;
  color: var(--chat-brown);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
}

.chat-suggestion-button:hover {
  background: #F6C674;
  background: var(--chat-gold);
  color: white;
  transform: translateY(-1px);
}

/* Zone de saisie */
.chat-input-modern {
  padding: 16px;
  border-top: 1px solid rgba(246, 198, 116, 0.2);
  background: white;
}

.chat-form {
  display: flex;
  gap: 12px;
}

.chat-input-field {
  flex: 1 1;
  padding: 12px 20px;
  background: #F6F2EF;
  background: var(--chat-light-gray);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246, 198, 116, 0.3);
  border-radius: 24px;
  color: #333333;
  color: var(--chat-text-color);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input-field::placeholder {
  color: #9ca3af;
}

.chat-input-field:focus {
  border-color: #F6C674;
  border-color: var(--chat-gold);
  background: white;
  box-shadow: 0 0 0 3px rgba(246, 198, 116, 0.1);
}

.chat-send-button-modern {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #5c3d2a 0%, #A5765C 50%, #c49a6c 100%);
  background: linear-gradient(135deg, #5c3d2a 0%, var(--chat-brown) 50%, #c49a6c 100%);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(45, 28, 18, 0.25);
}

.chat-send-button-modern svg {
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.chat-send-button-modern:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(246, 198, 116, 0.4);
  transform: translateY(-2px);
}

.chat-send-button-modern:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive - Ajustements pour mobile */
@media (max-width: 767px) {

  /* Décaler la bulle pour éviter le footer mobile */
  .chat-bubble-modern {
    bottom: 80px;
    /* Au-dessus du footer mobile (56px + marge) */
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .chat-bubble-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Fenêtre de chat en plein écran sur mobile */
  .chat-window-modern {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
    max-width: 100%;
    max-height: 100%;
  }

  /* Désactiver le redimensionnement sur mobile */
  .chat-resize-handle {
    display: none;
  }

  /* Cacher le bouton fullscreen sur mobile car déjà en plein écran */
  .chat-action-button[title="Plein écran"] {
    display: none;
  }

  /* Ajuster les suggestions pour mobile */
  .chat-suggestions {
    padding: 8px 12px;
    gap: 6px;
  }

  .chat-suggestion-button {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* Ajuster le padding des messages */
  .chat-messages-modern {
    padding: 16px;
    gap: 12px;
  }

  /* Ajuster la zone de saisie */
  .chat-input-modern {
    padding: 12px;
  }

  .chat-input-field {
    padding: 10px 16px;
    font-size: 16px;
    /* Éviter le zoom sur iOS */
  }
}

/* Scrollbar personnalisée */
.chat-messages-modern::-webkit-scrollbar {
  width: 6px;
}

.chat-messages-modern::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-modern::-webkit-scrollbar-thumb {
  background: rgba(246, 198, 116, 0.3);
  border-radius: 3px;
}

.chat-messages-modern::-webkit-scrollbar-thumb:hover {
  background: rgba(246, 198, 116, 0.5);
}

/* Animations supplémentaires */
@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Poignée de redimensionnement */
.chat-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  cursor: nwse-resize;
  color: #F6C674;
  color: var(--chat-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  z-index: 100;
  background: rgba(246, 198, 116, 0.1);
  border-bottom-right-radius: 8px;
  border-top-left-radius: 20px;
}

.chat-resize-handle:hover {
  opacity: 1;
  background: rgba(246, 198, 116, 0.2);
}

.chat-resize-handle svg {
  transform: rotate(180deg);
}

.chat-resize-handle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 4px;
  height: 4px;
  background: #F6C674;
  background: var(--chat-gold);
  border-radius: 50%;
  box-shadow: 4px 0 0 #F6C674, 8px 0 0 #F6C674,
    0 4px 0 #F6C674, 4px 4px 0 #F6C674,
    0 8px 0 #F6C674;
  box-shadow: 4px 0 0 var(--chat-gold), 8px 0 0 var(--chat-gold),
    0 4px 0 var(--chat-gold), 4px 4px 0 var(--chat-gold),
    0 8px 0 var(--chat-gold);
}

/* Mode fullscreen */
.chat-window-modern.fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  max-width: 100%;
  max-height: 100%;
}

.chat-window-modern:not(.fullscreen) {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-window-modern.fullscreen {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Désactiver les transitions pendant le redimensionnement */
.chat-window-modern.resizing {
  transition: none !important;
}

.chat-window-modern.resizing * {
  transition: none !important;
}

/* Ajout styles pour les sources */
.chat-message-sources {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.sources-label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
}

.source-tag {
  background: rgba(246, 198, 116, 0.2);
  color: #A5765C;
  color: var(--chat-brown);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

/* Style spécifique pour les sources dans messages utilisateur (bien que rare) */
.user .source-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.user .sources-label {
  color: rgba(255, 255, 255, 0.7);
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   STYLES MARKDOWN POUR LES MESSAGES BOT
   ============================================ */

.chat-message-modern.bot .markdown-p {
  margin: 0 0 0.5em 0;
  line-height: 1.5;
}

.chat-message-modern.bot .markdown-p:last-child {
  margin-bottom: 0;
}

.chat-message-modern.bot .markdown-strong {
  font-weight: 600;
  color: #A5765C;
  color: var(--chat-brown);
}

.chat-message-modern.bot .markdown-em {
  font-style: italic;
  color: #555;
}

.chat-message-modern.bot .markdown-ul,
.chat-message-modern.bot .markdown-ol {
  margin: 0.5em 0;
  padding-left: 1.2em;
}

.chat-message-modern.bot .markdown-li {
  margin-bottom: 0.25em;
  line-height: 1.4;
}

.chat-message-modern.bot .markdown-code {
  background: rgba(165, 118, 92, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.9em;
  color: #A5765C;
  color: var(--chat-brown);
}

/* Amélioration globale des messages bot */
.chat-message-modern.bot {
  line-height: 1.5;
}

.laika-consent-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 242, 239, 0.92) 100%);
  border: 1px solid rgba(165, 118, 92, 0.16);
  border-radius: 18px;
  padding: 20px;
  color: #3d291c;
  box-shadow: 0 12px 30px rgba(165, 118, 92, 0.12);
}

.laika-consent-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
  color: #3d291c;
}

.laika-consent-card p {
  margin: 0 0 12px;
  color: #5f4738;
  font-size: 14px;
  line-height: 1.55;
}

.laika-consent-card p:last-child {
  margin-bottom: 0;
}

.laika-consent-eyebrow {
  color: #A5765C !important;
  color: var(--chat-brown) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================
   Boutons d'action - Style Pills moderne
   ============================================ */

/* Conteneur externe - prend toute la largeur */
.chat-action-buttons-container {
  width: 100%;
  padding: 0 8px;
  /* Petit padding pour alignement visuel */
  margin-top: 8px;
}

.chat-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  /* Les boutons passent à la ligne si nécessaire */
  padding: 2px 0;
  /* Masquer la scrollbar mais garder la fonctionnalité */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.chat-action-buttons::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.chat-action-btn {
  /* Style pill compact */
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Animation d'apparition progressive */
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  animation: pillFadeIn 0.3s ease forwards;
}

/* Animation progressive pour chaque bouton */
.chat-action-btn:nth-child(1) {
  animation-delay: 0.05s;
}

.chat-action-btn:nth-child(2) {
  animation-delay: 0.1s;
}

.chat-action-btn:nth-child(3) {
  animation-delay: 0.15s;
}

.chat-action-btn:nth-child(4) {
  animation-delay: 0.2s;
}

.chat-action-btn:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes pillFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Style par défaut - Outline discret */
.chat-action-btn-default {
  background: rgba(165, 118, 92, 0.05);
  color: #A5765C;
  color: var(--chat-brown);
  border-color: rgba(165, 118, 92, 0.25);
}

.chat-action-btn-default:hover {
  background: rgba(165, 118, 92, 0.12);
  border-color: #A5765C;
  border-color: var(--chat-brown);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 8px rgba(165, 118, 92, 0.15);
}

.chat-action-btn-default:active {
  transform: translateY(0) scale(0.98);
}

/* Style success (vert) - Outline */
.chat-action-btn-success {
  background: rgba(82, 196, 26, 0.08);
  color: #52c41a;
  border-color: rgba(82, 196, 26, 0.4);
}

.chat-action-btn-success:hover {
  background: rgba(82, 196, 26, 0.15);
  border-color: #52c41a;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 10px rgba(82, 196, 26, 0.2);
}

.chat-action-btn-success:active {
  transform: translateY(0) scale(0.98);
}

/* Style danger (rouge) - Outline */
.chat-action-btn-danger {
  background: rgba(255, 77, 79, 0.08);
  color: #ff4d4f;
  border-color: rgba(255, 77, 79, 0.4);
}

.chat-action-btn-danger:hover {
  background: rgba(255, 77, 79, 0.15);
  border-color: #ff4d4f;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 10px rgba(255, 77, 79, 0.2);
}

.chat-action-btn-danger:active {
  transform: translateY(0) scale(0.98);
}

/* Effet de "tap" visuel au clic */
.chat-action-btn:active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
  animation: ripple 0.4s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Indicateur de scroll horizontal si nécessaire */
.chat-action-buttons::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, transparent, rgba(246, 242, 239, 0.8));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-action-buttons:hover::after {
  opacity: 1;
}

/* Responsive - Boutons plus petits sur mobile */
@media (max-width: 767px) {
  .chat-action-btn {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 14px;
  }

  .chat-action-buttons {
    gap: 6px;
  }
}
:root {
  --brown: #A5765C;
  --gold: #F6C674;
  --peach: #EE9F99;
  --orange: #FFA351;
  --light-gray: #F6F2EF;
  --black: #000000;
  --text-color: #333333;
  /* --font-family : index.css (Lexend Deca) */
  --border-radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

.rintintin-header {
  background: linear-gradient(to right, #F6F2EF, #ffffff);
  background: linear-gradient(to right, var(--light-gray), #ffffff);
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid rgba(246, 198, 116, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeIn 0.5s ease-out;
}

/* Ajustement du header quand le bandeau promo est présent */
:root {
  --promo-banner-height: 48px;
}

body.has-promo-banner .rintintin-header {
  top: 48px !important;
  top: var(--promo-banner-height) !important;
}

.header-transparent {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246, 198, 116, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.rintintin-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width=%27100%27 height=%27100%27 viewBox=%270 0 100 100%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M30,50 C35,40 40,35 50,35 C60,35 65,40 70,50 C75,60 80,65 90,65 M30,50 C25,60 20,65 10,65 M30,50 C35,60 40,65 50,65 C60,65 65,60 70,50%27 stroke=%27rgba%28246, 198, 116, 0.1%29%27 fill=%27none%27 stroke-width=%275%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.5;
  z-index: -1;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.header-logo-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  justify-self: start;
  animation: slideInLeft 0.5s ease-out;
}

.header-logo-button:focus-visible {
  outline: 2px solid #F6C674;
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

.header-logo-button:hover {
  transform: translateY(-2px);
}

/* Navigation Links */
.header-nav-links {
  display: flex;
  gap: 30px;
  justify-self: center;
  animation: fadeIn 0.7s ease-out;
}

.header-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  font-family: var(--font-family);
  padding: 5px 0;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #F6C674, #EE9F99);
  background: linear-gradient(to right, var(--gold), var(--peach));
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 4px;
}

.header-nav-link:hover {
  color: #A5765C;
  color: var(--brown);
  transform: translateY(-2px);
}

.header-nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.header-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: end;
  animation: slideInRight 0.5s ease-out;
}

.header-login-button,
.header-signup-button {
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

.header-primary-button {
  background: linear-gradient(135deg, #A5765C, #8e6651);
  background: linear-gradient(135deg, var(--brown), #8e6651);
  color: #fff;
  box-shadow: 0 4px 12px rgba(165, 118, 92, 0.3);
}

.header-primary-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease-out;
  pointer-events: none;
}

.header-primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(165, 118, 92, 0.4);
}

.header-primary-button:hover::before {
  opacity: 1;
  transform: scale(1);
}

.header-primary-button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(165, 118, 92, 0.3);
}

.header-secondary-button {
  background: transparent;
  color: #A5765C;
  color: var(--brown);
  border: 2px solid #A5765C;
  border: 2px solid var(--brown);
  position: relative;
  z-index: 1;
}

.header-secondary-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(165, 118, 92, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.header-secondary-button:hover {
  transform: translateY(-2px);
}

.header-secondary-button:hover::before {
  width: 100%;
}

@media (max-width: 1024px) {
  .header-nav-links {
    gap: 20px;
  }
}

@media (max-width: 920px) {
  .header-content {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 15px;
  }

  .header-logo-button {
    grid-column: 1;
    grid-row: 1;
  }

  .header-buttons {
    grid-column: 2;
    grid-row: 1;
  }

  .header-nav-links {
    grid-column: 1 / span 2;
    grid-row: 2;
    justify-self: start;
  }
}

@media (max-width: 768px) {
  :root {
    --promo-banner-height: 44px;
  }

  .rintintin-header {
    padding: 1rem 1.5rem;
  }

  .header-content {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
  }

  .header-logo-button {
    grid-column: 1;
    grid-row: 1;
  }

  .header-logo-wordmark.rintintin-logo-container {
    font-size: 1.5rem !important;
  }

  .header-buttons {
    grid-column: 2;
    grid-row: 1;
  }

  .header-nav-links {
    display: none;
  }

  .header-login-button,
  .header-signup-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  :root {
    --promo-banner-height: 40px;
  }

  .header-buttons {
    gap: 10px;
  }

  .header-login-button,
  .header-signup-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Préférence pour la réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================
   Marketing Header
   ============================================ */

.mk-header-container {
  display: flex;
  flex-direction: column;
}

.mk-header {
  width: 100%;
  z-index: 1000;
  z-index: var(--mk-z-header, 1000);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  height: 90px;
}

.mk-header--transparent {
  background: transparent;
}

.mk-header--solid {
  background: rgba(253, 251, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(165, 118, 92, 0.08);
  box-shadow: 0 2px 16px rgba(165, 118, 92, 0.04);
}

.mk-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo Wrapper */
.mk-header__logo-wrapper {
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mk-header--transparent .mk-header__logo-wrapper {
  opacity: 1;
}

/* Desktop nav */
.mk-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mk-header__nav-link,
.mk-header__nav-button {
  font-family: sans-serif;
  font-family: var(--mk-font-heading, sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: #6b5b50;
  color: var(--mk-text-secondary, #6b5b50);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.mk-header--transparent.mk-header--light-text .mk-header__nav-link,
.mk-header--transparent.mk-header--light-text .mk-header__nav-button {
  color: rgba(255, 255, 255, 0.9);
}

.mk-header--transparent.mk-header--light-text .mk-header__nav-link:hover,
.mk-header--transparent.mk-header--light-text .mk-header__nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mk-header__nav-link:hover,
.mk-header__nav-button:hover {
  color: var(--mk-brown);
  background: rgba(165, 118, 92, 0.04);
}

.mk-header--transparent .mk-header__nav-link:hover,
.mk-header--transparent .mk-header__nav-button:hover {
  color: var(--mk-brown);
  background: rgba(165, 118, 92, 0.04);
}

/* Actions */
.mk-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mk-header__login {
  font-family: sans-serif;
  font-family: var(--mk-font-heading, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #6b5b50;
  color: var(--mk-text-secondary, #6b5b50);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 150ms ease;
  white-space: nowrap;
}

.mk-header--transparent.mk-header--light-text .mk-header__login {
  color: #ffffff;
}

.mk-header--transparent .mk-header__login {
  color: var(--mk-text-secondary);
}

.mk-header__login:hover {
  color: var(--mk-brown);
  background: rgba(165, 118, 92, 0.04);
}

.mk-header--transparent .mk-header__login:hover {
  color: var(--mk-brown);
  background: rgba(165, 118, 92, 0.04);
}

.mk-header__cta {
  /* smaller CTA in header */
  padding: 10px 22px !important;
  font-size: 14px !important;
}

/* Hamburger */
.mk-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #3e2723;
  color: var(--mk-text-primary, #3e2723);
  border-radius: 8px;
}

.mk-header--transparent.mk-header--light-text .mk-header__hamburger {
  color: #fff;
}

.mk-header--transparent .mk-header__hamburger {
  color: #fff;
}

/* Mobile menu */
.mk-header__mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #fdfbf9;
  background: var(--mk-bg-primary, #fdfbf9);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

.mk-header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mk-header__mobile-link,
.mk-header__mobile-button {
  font-family: sans-serif;
  font-family: var(--mk-font-heading, sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: #3e2723;
  color: var(--mk-text-primary, #3e2723);
  text-decoration: none;
  padding: 16px 12px;
  border-radius: 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
  width: 100%;
}

.mk-header__mobile-link:hover,
.mk-header__mobile-button:hover {
  background: rgba(165, 118, 92, 0.06);
}

.mk-header__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 24px;
}

.mk-header__mobile-login {
  width: 100%;
  padding: 16px;
  background: none;
  border: 2px solid #A5765C;
  border: 2px solid var(--mk-brown, #A5765C);
  color: #A5765C;
  color: var(--mk-brown, #A5765C);
  border-radius: 50px;
  font-family: sans-serif;
  font-family: var(--mk-font-heading, sans-serif);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
}

/* Responsive */
@media (max-width: 768px) {
  .mk-header__nav,
  .mk-header__actions {
    display: none;
  }

  .mk-header__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mk-header {
    height: 64px;
  }

  .mk-header__mobile-menu {
    top: 64px;
  }
}

/* ============================================
   Marketing Footer
   ============================================ */

.mk-footer {
  background: #3e2723;
  background: var(--mk-bg-dark, #3e2723);
  color: #fdfbf9;
  color: var(--mk-text-on-dark, #fdfbf9);
  padding: 80px 24px 32px;
}

.mk-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.mk-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  grid-gap: 48px;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(253, 251, 249, 0.1);
}

/* Brand column */
.mk-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mk-footer__brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-family: var(--mk-font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mk-footer__brand-pro {
  color: #F6C674;
  color: var(--mk-gold, #F6C674);
}

.mk-footer__tagline {
  font-family: sans-serif;
  font-family: var(--mk-font-body, sans-serif);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(253, 251, 249, 0.7);
  color: var(--mk-text-on-dark-muted, rgba(253, 251, 249, 0.7));
  margin: 0;
  max-width: 280px;
}

.mk-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.mk-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(253, 251, 249, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253, 251, 249, 0.7);
  color: var(--mk-text-on-dark-muted, rgba(253, 251, 249, 0.7));
  transition: all 150ms ease;
  text-decoration: none;
}

.mk-footer__social-link:hover {
  background: rgba(253, 251, 249, 0.15);
  color: #fff;
}

/* Link columns */
.mk-footer__col-title {
  font-family: sans-serif;
  font-family: var(--mk-font-heading, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(253, 251, 249, 0.7);
  color: var(--mk-text-on-dark-muted, rgba(253, 251, 249, 0.7));
  margin: 0 0 20px;
}

.mk-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mk-footer__links a {
  font-family: sans-serif;
  font-family: var(--mk-font-body, sans-serif);
  font-size: 14px;
  color: rgba(253, 251, 249, 0.6);
  text-decoration: none;
  transition: color 150ms ease;
}

.mk-footer__links a:hover {
  color: #fff;
}

/* Bottom */
.mk-footer__bottom {
  padding-top: 24px;
  text-align: center;
}

.mk-footer__bottom p {
  font-family: sans-serif;
  font-family: var(--mk-font-body, sans-serif);
  font-size: 13px;
  color: rgba(253, 251, 249, 0.4);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .mk-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .mk-footer__brand-col {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .mk-footer__tagline {
    max-width: none;
  }
}

@media (max-width: 576px) {
  .mk-footer {
    padding: 48px 16px 24px;
  }

  .mk-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .mk-footer__brand-col {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
  }
}

.public-layout-content {
  width: 100%;
}

.public-layout-content.with-header-space {
  padding-top: 80px;
  padding-top: var(--header-height, 80px); /* Utilise la variable CSS si disponible, sinon 80px */
}

@media (max-width: 768px) {
  .public-layout-content.with-header-space {
    padding-top: 60px; /* Hauteur réduite du header sur mobile */
  }
} 
/* Variables de la charte graphique */
:root {
  --brown: #A5765C;
  --gold: #F6C674;
  --peach: #EE9F99;
  --orange: #FFA351;
  --light-gray: #F6F2EF;
  --black: #000000;
  --text-color: #333333;
  /* --font-family : défini dans index.css (Lexend Deca) — ne pas réécraser :root */
  --border-radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --sidebar-width: 220px;
}

/* ======================= */
/*  Desktop >= 768px       */
/* ======================= */

/* Sidebar toujours visible en desktop */
.sidebar {
  position: fixed;
  top: 10px;
  /* Slight offset from top */
  left: 10px;
  /* Slight offset from left */
  width: 220px;
  width: var(--sidebar-width);
  height: calc(100vh - 20px);
  /* Floating look */
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  /* Slightly stronger shadow */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-family: var(--font-family) !important;
  line-height: normal !important;
  border-radius: 24px;
  /* Fully rounded island look */
  z-index: 100;
}

/* Scrollbar personnalisée pour la sidebar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(246, 198, 116, 0.3);
  border-radius: 2px;
}

/* Titre en haut */
.sidebar-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  padding: 1.7rem 0;
  margin-bottom: 12px;
  /* Adjusted to approximate 80px total height */
  border-bottom: 1px solid rgba(246, 198, 116, 0.3);
  color: #000000;
  color: var(--black);
  letter-spacing: 0.5px;
  position: relative;
  background: linear-gradient(to right, rgba(246, 198, 116, 0.1), rgba(255, 255, 255, 0));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-title:hover {
  background: linear-gradient(to right, rgba(246, 198, 116, 0.15), rgba(255, 255, 255, 0));
}

/* .sidebar-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--gold);
  border-radius: 3px;
} */

/* Bouton premium flashy */
.premium-button-container {
  position: relative;
  overflow: hidden;
  margin: 8px 0 4px 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profile-dropdown .premium-button-container {
  margin-top: 12px;
}

.premium-button {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(45deg, #FFB347, #FFCC33, #FFD700, #FFC125);
  background-size: 300% 300%;
  color: #793e00;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  animation: gradientMove 5s ease infinite;
  box-shadow: 0 0 15px rgba(255, 204, 51, 0.5);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.premium-button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20%,
  100% {
    left: 200%;
  }
}

.premium-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 25px rgba(255, 204, 51, 0.6);
}

.premium-button:active {
  transform: translateY(-1px) scale(1.01);
}

.premium-icon {
  font-size: 1.2rem;
  color: #793e00;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Liste + liens */
.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0px 0;
  /* espacement vertical uniforme */
  flex: 0 0 auto;
}

/* Ne pas pousser les dernières sections vers le bas */
.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  /* Reduced padding */
  margin: 2px 8px !important;
  color: #333333;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  /* Slight scale down */
}

.sidebar-link .anticon {
  color: #A5765C;
  color: var(--brown);
  font-size: 16px;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background-color: rgba(246, 198, 116, 0.1);
}

.sidebar-link:hover .anticon {
  color: #F6C674;
  color: var(--gold);
}

.sidebar-link.active {
  background: linear-gradient(to right, #A5765C, rgba(165, 118, 92, 0.8));
  background: linear-gradient(to right, var(--brown), rgba(165, 118, 92, 0.8));
  color: #fff;
  font-weight: 700;
}

.sidebar-link.active .anticon {
  color: #F6C674;
  color: var(--gold);
}

.sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #F6C674;
  background-color: var(--gold);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Styles pour le menu déroulant des services */
.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  /* Reduced to match sidebar-link */
  margin: 2px 8px !important;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #333333;
  color: var(--text-color);
  font-size: 0.95rem;
  /* Slight scale down */
}

.dropdown-header:hover {
  background-color: rgba(246, 198, 116, 0.1);
}

.dropdown-title {
  display: flex;
  align-items: center;
}

.dropdown-title .anticon {
  color: #A5765C;
  color: var(--brown);
  font-size: 16px;
  transition: all 0.3s ease;
}

.dropdown-header:hover .dropdown-title .anticon {
  color: #F6C674;
  color: var(--gold);
}

.dropdown-caret {
  font-size: 12px;
  color: #A5765C;
  color: var(--brown);
  transition: all 0.3s ease;
}

.dropdown-header:hover .dropdown-caret {
  color: #F6C674;
  color: var(--gold);
}

.sidebar-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 16px 0 32px;
}

.sidebar-dropdown.open {
  max-height: 1000px;
  /* assez grand pour tout */
  opacity: 1;
  padding: 4px 12px 6px 28px;
  /* un peu plus d'air interne */
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  /* plus grand */
  margin: 2px 0 !important;
  color: #333333;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.dropdown-link .anticon {
  color: #A5765C;
  color: var(--brown);
  font-size: 15px;
  transition: all 0.3s ease;
}

.dropdown-link:hover {
  background-color: rgba(246, 198, 116, 0.1);
}

.dropdown-link:hover .anticon {
  color: #F6C674;
  color: var(--gold);
}

.dropdown-link.active {
  background: linear-gradient(to right, #A5765C, rgba(165, 118, 92, 0.8));
  background: linear-gradient(to right, var(--brown), rgba(165, 118, 92, 0.8));
  color: #fff;
}

.dropdown-link.active .anticon {
  color: #F6C674;
  color: var(--gold);
}

.dropdown-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #F6C674;
  background-color: var(--gold);
  border-radius: 2px;
}

/* Suppression des séparateurs visuels */
.separator {
  display: none;
}

/* Section de profil */
.profile-section {
  padding: 16px;
  margin-top: auto;
  margin-bottom: 16px;
  position: relative;
}

.profile-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(to right, rgba(246, 198, 116, 0), rgba(246, 198, 116, 0.3), rgba(246, 198, 116, 0));
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: rgba(246, 198, 116, 0.05);
  border: 1px solid rgba(246, 198, 116, 0.1);
}

.profile-header:hover {
  background-color: rgba(246, 198, 116, 0.1);
}

.profile-info {
  display: flex;
  align-items: center;
}

.profile-pic-wrap {
  position: relative;
  display: inline-block;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #F6C674;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Badge unifié */
.notif-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

.notif-dot--on-avatar {
  position: absolute;
  top: -2px;
  right: 6px;
  animation: badgePulse 1.4s infinite ease-in-out;
}

.notif-dot--inline {
  vertical-align: middle;
  margin-left: 6px;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.25);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.pro-name {
  font-weight: 600;
  color: #A5765C;
  color: var(--brown);
  margin-right: 8px;
}

.profile-caret {
  font-size: 12px;
  color: #A5765C;
  color: var(--brown);
  transition: transform 0.3s ease;
}

/* Petit point rouge aligné au nom (visible menu ouvert/fermé) */
/* (remplacé par .notif-dot--inline) */

/* Menu déroulant du profil */
.profile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 8px;
  margin-top: 0;
}

.profile-dropdown.open {
  /* Augmente la hauteur max pour éviter de couper le bouton "Devenir Premium" */
  max-height: 1000px;
  /* suffisamment grand pour tout le contenu */
  opacity: 1;
  padding: 8px;
  margin-top: 8px;
}

/* Petit badge rouge pour l'onboarding incomplet sur le lien Profil */
/* (remplacé par .notif-dot) */

/* Le bouton bulle est caché en desktop */
.bubble-hamburger {
  display: none;
}

/* L'overlay n'est pas affiché en desktop */
.sidebar-overlay {
  display: none;
}

/* ======================= */
/*  Mobile < 768px         */
/* ======================= */
@media screen and (max-width: 767px) {

  /* Dans le drawer mobile, adapter la sidebar façon "île flottante" */
  .ant-drawer .sidebar {
    position: relative;
    width: auto;
    height: calc(100vh - 32px);
    /* Marges haut/bas */
    margin: 16px;
    transform: translateX(0) !important;
    border-right: none;
    background: #ffffff;
    color: #333333;
    color: var(--text-color);
    border-radius: 24px;
    /* Arrondi complet */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Ombre plus douce pour fond blanc */
    overflow-y: auto;
    /* Respecter le scrolling */
    overflow-x: hidden;
  }

  /* Force le logo en noir/gold sur mobile (couleurs standards) */
  .ant-drawer .sidebar .logo-text-main {
    color: #000000 !important;
    color: var(--black) !important;
  }

  .ant-drawer .sidebar .logo-text-pro {
    color: #F6C674 !important;
    color: var(--gold) !important;
  }

  /* Adaptation des couleurs pour le mode clair mobile */
  .ant-drawer .sidebar-title {
    color: #000000;
    color: var(--black);
    background: linear-gradient(to right, rgba(246, 198, 116, 0.1), transparent);
    border-bottom-color: rgba(246, 198, 116, 0.3);
  }

  .ant-drawer .sidebar-link {
    color: #333333;
    color: var(--text-color);
    margin: 4px 12px;
    padding: 12px 16px;
  }

  .ant-drawer .sidebar-link .anticon {
    color: #A5765C;
    color: var(--brown);
    font-size: 18px;
  }

  .ant-drawer .sidebar-link:hover {
    background-color: rgba(246, 198, 116, 0.1);
  }

  .ant-drawer .sidebar-link.active {
    background: linear-gradient(to right, #A5765C, rgba(165, 118, 92, 0.8));
    background: linear-gradient(to right, var(--brown), rgba(165, 118, 92, 0.8));
    color: #fff;
    font-weight: 700;
  }

  .ant-drawer .sidebar-link.active .anticon {
    color: #F6C674;
    color: var(--gold);
  }

  .ant-drawer .dropdown-header {
    color: #333333;
    color: var(--text-color);
  }

  .ant-drawer .dropdown-link {
    color: #333333;
    color: var(--text-color);
  }

  .ant-drawer .separator {
    border-top-color: rgba(246, 198, 116, 0.2);
  }

  .ant-drawer .profile-header {
    background-color: rgba(246, 198, 116, 0.05);
    border-color: rgba(246, 198, 116, 0.1);
  }

  .ant-drawer .pro-name {
    color: #A5765C;
    color: var(--brown);
  }

  /* Badge pour les messages non lus */
  .badge {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .unread-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  /* Suppression des animations d'entrée pour le drawer */
  .ant-drawer .sidebar-list>li {
    opacity: 1;
  }

  /* Masquer le bouton hamburger old style */
  .bubble-hamburger-max {
    display: none !important;
  }

  /* Premium button adapté pour mobile */
  .ant-drawer .premium-button {
    background: linear-gradient(45deg, #FFB347, #FFCC33, #FFD700, #FFC125);
    color: #793e00;
    font-size: 1rem;
    padding: 14px 20px;
    margin-top: 16px;
  }

  /* Safe area padding pour iOS */
  .ant-drawer .sidebar {
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }

  /* Amélioration du scroll sur mobile */
  .ant-drawer .sidebar {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
}

/* Overlay sombre du drawer mobile - géré par Ant Design */
.ant-drawer-mask {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Transition fluide du drawer */
.ant-drawer-content {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-drawer .ant-drawer-content,
.mobile-drawer .ant-drawer-wrapper-body,
.mobile-drawer .ant-drawer-body,
.mobile-drawer .ant-drawer-content-wrapper {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}


/* Style pour les éléments désactivés */
.dropdown-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: #999;
  pointer-events: none;
}

.dropdown-link.disabled .anticon {
  color: #999;
}

.dropdown-link.disabled:hover {
  background-color: transparent;
}

.dropdown-link.disabled:hover .anticon {
  color: #999;
}

/* Contenu du lien désactivé */
.dropdown-link.disabled .disabled-link-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dropdown-link.disabled .coming-soon-text {
  font-size: 10px;
  color: #bbb;
  font-weight: 400;
  font-style: italic;
}

/* ======================= */
/*  MODE ASSOCIATION       */
/* ======================= */

/* Header association */
.sidebar.association-mode .sidebar-title.association-header {
  padding: 1rem;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(246, 198, 116, 0.3);
  background: linear-gradient(135deg, rgba(246, 198, 116, 0.15), rgba(238, 159, 153, 0.15));
}

.association-header-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.association-header-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.association-header-link:active {
  transform: translateY(0);
}

.association-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.association-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #F6C674;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 12px rgba(165, 118, 92, 0.2);
}

.association-logo-icon {
  font-size: 32px;
  color: #A5765C;
  color: var(--brown);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(246, 198, 116, 0.2), rgba(238, 159, 153, 0.2));
  border: 3px solid #F6C674;
  border: 3px solid var(--gold);
}

.association-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #A5765C;
  color: var(--brown);
  text-align: center;
  flex: 1 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bouton retour au compte pro */
.association-back-section {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 198, 116, 0.2);
}

.association-back-button {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(165, 118, 92, 0.1), rgba(246, 198, 116, 0.1));
  border: 2px solid rgba(165, 118, 92, 0.3);
  border-radius: 12px;
  color: #A5765C;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.association-back-button:hover {
  background: linear-gradient(135deg, rgba(165, 118, 92, 0.2), rgba(246, 198, 116, 0.2));
  border-color: #A5765C;
  border-color: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 118, 92, 0.2);
}

.association-back-button:active {
  transform: translateY(0);
}

.association-back-button .anticon {
  color: #A5765C;
  color: var(--brown);
  transition: all 0.3s ease;
}

.association-back-button:hover .anticon {
  color: #F6C674;
  color: var(--gold);
  transform: translateX(-3px);
}

/* Démarrage (onboarding) — fun gamified link */
.sidebar-startup-banner {
  margin: 6px 8px 10px;
  padding: 2px;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e, #F6C674);
  border-radius: 14px;
  background-size: 200% 200%;
  animation: startup-gradient-shift 4s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes startup-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.sidebar-startup-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
}

.sidebar-startup-banner .startup-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 0.92rem;
  background: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 !important;
  letter-spacing: -0.1px;
}

.sidebar-startup-banner .startup-link .anticon {
  color: #ff6b35 !important;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-startup-banner:hover .startup-link .anticon {
  transform: rotate(-12deg) scale(1.15);
}

.sidebar-startup-banner .startup-link:hover {
  background: rgba(255, 255, 255, 0.95);
}

.sidebar-startup-banner .startup-link.active {
  background: rgba(255, 255, 255, 0.95);
  color: #ff6b35 !important;
}

.sidebar-startup-banner .startup-link.active .anticon {
  color: #ff6b35 !important;
}

.startup-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff6b35;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  animation: startup-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.4);
}

@keyframes startup-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(255, 107, 53, 0.3); }
  50% { opacity: 0.7; transform: scale(1.4); box-shadow: 0 0 12px rgba(255, 107, 53, 0.6); }
}

/* Styles spécifiques pour le mode association */
.sidebar.association-mode {
  border-right-color: rgba(246, 198, 116, 0.3);
}

.sidebar.association-mode .sidebar-link.active {
  background: linear-gradient(to right, #A5765C, rgba(165, 118, 92, 0.8));
  background: linear-gradient(to right, var(--brown), rgba(165, 118, 92, 0.8));
}

.sidebar.association-mode .sidebar-link:hover {
  background-color: rgba(246, 198, 116, 0.15);
}

/* Responsive pour le mode association */
@media screen and (max-width: 767px) {
  .ant-drawer .sidebar.association-mode .association-header-content {
    flex-direction: column;
    gap: 8px;
  }

  .ant-drawer .sidebar.association-mode .association-name {
    font-size: 1rem;
    text-align: center;
  }

  .ant-drawer .sidebar.association-mode .association-back-button {
    font-size: 0.9rem;
    padding: 12px;
  }
}

/* Pied de sidebar : CTA Laika + centre d'aide */
.sidebar-footer-desktop {
  margin-top: auto;
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: -webkit-sticky;
  position: sticky;
  bottom: 8px;
  z-index: 2;
  background: linear-gradient(to top, #ffffff 75%, rgba(255, 255, 255, 0.9) 100%);
  border-top: 1px solid rgba(246, 198, 116, 0.25);
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.08);
  border-radius: 14px 14px 0 0;
}

.sidebar-laika-cta-wrapper {
  position: relative;
  width: 100%;
}

.sidebar-laika-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px 14px;
  padding-right: 32px; /* place pour la croix de fermeture en haut à droite */
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, #A5765C 0%, #8B5E47 100%);
  box-shadow: 0 4px 14px rgba(165, 118, 92, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.sidebar-laika-cta-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sidebar-laika-cta-close:hover {
  background: rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: scale(1.05);
}

.sidebar-laika-cta-close:focus-visible {
  outline: 2px solid #F6C674;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sidebar-laika-cta-close .anticon {
  font-size: 11px;
}

.sidebar-laika-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(165, 118, 92, 0.5);
}

.sidebar-laika-cta.active {
  outline: 2px solid #F6C674;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sidebar-laika-cta .anticon {
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-laika-dog-image {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px;
  flex-shrink: 0;
}

.sidebar-laika-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  min-height: 20px;
  border-radius: 999px;
  background: rgba(246, 198, 116, 0.22);
  border: 1px solid rgba(246, 198, 116, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.sidebar-help-link-desktop {
  display: flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.sidebar-help-link-desktop:hover {
  background: rgba(246, 198, 116, 0.12);
}

@media screen and (max-width: 767px) {
  .sidebar-footer-desktop {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    bottom: 6px;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.14);
  }

  .profile-section {
    margin-bottom: 132px;
    position: relative;
    z-index: 5;
  }

  .profile-dropdown {
    position: relative;
    z-index: 6;
  }

  .sidebar-footer-desktop--mobile-hidden {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .sidebar-laika-cta {
    padding: 11px 12px;
    font-size: 12px;
  }

  .sidebar-laika-dog-image {
    width: 40px;
    height: 40px;
  }

  .sidebar-help-link-desktop {
    font-size: 13px;
  }
}
/* MobileFooter.css */

.mobile-footer {
  position: fixed;
  bottom: 20px;
  /* Légèrement plus haut pour l'ombre */
  left: 20px;
  right: 20px;

  /* Fond de secours (Android anciens / Navigateurs sans blur) */
  background: rgba(255, 255, 255, 0.92);

  /* Glassmorphism Ultra-Premium (Détecté via @supports) */
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) or (-webkit-backdrop-filter: blur(1px)) {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px) saturate(200%) contrast(100%);
    -webkit-backdrop-filter: blur(25px) saturate(200%) contrast(100%);
  }

  border-radius: 40px;

  /* Ombre plus forte et multicouche pour l'effet de profondeur */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
  0 1px 3px rgba(0, 0, 0, 0.1),
  inset 0 0 0 1px rgba(255, 255, 255, 0.6),
  inset 0 1px 0 0 rgba(255, 255, 255, 0.8);

  z-index: 1002;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* Floating adaptation */
  margin-bottom: env(safe-area-inset-bottom);
  padding: 6px;
}

/* Effet de brillance "Liquid" au survol/actif */
.mobile-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 32px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.2) 100%);
  pointer-events: none;
}

.mobile-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 50px;
  padding: 0 8px;
  position: relative;
}

.mobile-footer-item {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  color: #8e8e93;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-footer-item:active {
  transform: scale(0.92);
}

.mobile-footer-item.active {
  color: #F6C674;
}

.mobile-footer-icon {
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-footer-item.active .mobile-footer-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px rgba(246, 198, 116, 0.5));
}

/* Bouton central : au milieu maintenant */
.mobile-footer .mobile-footer-add {
  flex: 0 0 auto;
  margin: 0 4px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #966d58 0%, #7d5a49 100%) !important;
  box-shadow:
    0 8px 20px rgba(150, 109, 88, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  transform: translateY(-16px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  z-index: 5;
}

.mobile-footer .mobile-footer-add:active {
  transform: translateY(-14px) scale(0.92);
  box-shadow: 0 4px 12px rgba(150, 109, 88, 0.3);
}

/* Icône calendrier + petit plus (blanc sur le cercle) */
.mobile-footer-add-icon.calendar-plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.mobile-footer-add-icon.calendar-plus .icon-overlay {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 12px;
  color: #fff;
}

/* Badge pour les messages non lus */
.mobile-footer-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-footer-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff3b30;
  color: white;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Safe area pour les appareils avec encoche - désactivé car géré par padding */
.mobile-footer-safe-area {
  height: 0;
  display: none;
}

/* Animation d'apparition */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.mobile-footer {
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de sélection iOS */
.mobile-footer-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(246, 198, 116, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-footer-item:active::before {
  width: 48px;
  height: 48px;
}

/* Masquer sur desktop */
@media (min-width: 768px) {
  .mobile-footer {
    display: none;
  }
}

/* Optimisations pour très petits écrans */
@media (max-width: 320px) {
  .mobile-footer-inner {
    padding: 0 4px;
  }

  .mobile-footer-icon {
    font-size: 22px;
  }



  .mobile-footer-add {
    width: 50px;
    height: 50px;
  }

  .mobile-footer-add-icon {
    font-size: 24px;
  }
}
/* MobileHeader.css */

.mobile-header-advanced {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(56px + env(safe-area-inset-top, 0px));
  height: calc(var(--mobile-header-height, 56px) + env(safe-area-inset-top, 0px));
  background: #ffffff;
  border-bottom: 1px solid rgba(246, 198, 116, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  /* Support pour les appareils avec encoche */
  padding-top: env(safe-area-inset-top, 0px);
}

.mobile-header-left,
.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-header-button {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: #A5765C;
  color: var(--brown, #A5765C);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.mobile-header-button:active {
  background: rgba(246, 198, 116, 0.1);
  transform: scale(0.95);
}

.mobile-header-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(246, 198, 116, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-header-button:hover::before {
  width: 36px;
  height: 36px;
}

.mobile-header-title {
  flex: 1 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  color: var(--black, #1a1a1a);
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

/* Force colors on Logo in the white header */
.mobile-header-title .logo-text-main {
  color: #1a1a1a !important;
}

.mobile-header-title .logo-text-pro {
  color: #f6c674 !important;
  /* Gold */
}


.mobile-header-dot {
  color: #F6C674;
  color: var(--primary-color, #F6C674);
  font-size: 20px;
  font-weight: 900;
}

.mobile-header-spacer {
  width: 40px;
  height: 40px;
}

/* Badge pour les notifications */
.mobile-header-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff3b30;
  color: white;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border: 2px solid #ffffff;
  /* Pour détacher le badge du fond s'il y a chevauchement */
}

/* États spéciaux */
.mobile-header-advanced.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-header-advanced.transparent {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.mobile-header-advanced.transparent .mobile-header-button,
.mobile-header-advanced.transparent .mobile-header-title {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Animation de transition entre pages */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-header-title {
  animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-header-button {
  animation: slideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive pour très petits écrans */
@media (max-width: 320px) {
  .mobile-header-advanced {
    padding: 0 4px;
  }

  .mobile-header-button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .mobile-header-title {
    font-size: 16px;
  }

  .mobile-header-spacer {
    width: 36px;
  }
}

/* Support pour le mode paysage */
@media (orientation: landscape) and (max-height: 500px) {
  .mobile-header-advanced {
    height: 48px;
  }

  .mobile-header-button {
    width: 36px;
    height: 36px;
  }
}

/* Masquer sur desktop */
@media (min-width: 768px) {
  .mobile-header-advanced {
    display: none;
  }
}
/* PrivateLayout.css */

/* Variables CSS pour une gestion cohérente */
:root {
  --mobile-header-height: 56px;
  --mobile-footer-height: 58px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --primary-color: #F6C674;
  --sidebar-width: 220px;
}

/* Le conteneur global du layout privé */
.private-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: #f8f9fa;
  position: relative;
}

/* Layout desktop */
.private-layout.desktop {
  flex-direction: row;
}

/* Layout mobile */
.private-layout.mobile {
  flex-direction: column;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  padding-top: calc(var(--mobile-header-height) + var(--safe-area-top));
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(var(--mobile-footer-height) + var(--safe-area-bottom));
}

/* Header mobile */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(56px + env(safe-area-inset-top, 0px));
  height: calc(var(--mobile-header-height) + var(--safe-area-top));
  background: linear-gradient(135deg, #A5765C 0%, #C08B6F 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  /* Support pour les appareils avec encoche */
  padding-top: env(safe-area-inset-top, 0px);
  padding-top: var(--safe-area-top);
}

.mobile-menu-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff;
  padding: 8px;
  margin-left: -8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-button:active {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-header-title {
  flex: 1 1;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
}

.mobile-header-dot {
  color: #F6C674;
  font-size: 24px;
}

.mobile-header-spacer {
  width: 40px;
  /* Même largeur que le bouton menu pour centrer le titre */
}

/* Le conteneur droit (main content) */
.private-layout-right {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 100%;
  width: 100%;
}

/* Desktop: décalage pour la sidebar */
.private-layout.desktop .private-layout-right {
  margin-left: calc(220px + 20px);
  margin-left: calc(var(--sidebar-width) + 20px);
  /* 10px left margin + sidebar + 10px gap */
}

.private-layout.desktop.account-limited .private-layout-right {
  margin-left: 0;
}

/* Mobile: pas de décalage */
.private-layout.mobile .private-layout-right {
  margin-left: 0;
}

/* La partie qui contient le contenu principal des pages */
.private-layout-content {
  flex: 1 1;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.account-limited .private-layout-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 198, 116, 0.18), transparent 32%),
    linear-gradient(135deg, #17120f 0%, #2a211c 100%);
}

.account-limited-placeholder {
  width: min(560px, calc(100vw - 48px));
  padding: 32px;
  border-radius: 28px;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.account-limited-eyebrow {
  margin: 0 0 10px;
  color: #f6c674;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-limited-placeholder h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
}

.account-limited-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .private-layout-content {
    padding-top: 80px;
    /* Donne de l'espace pour l'îlot du header desktop fixe */
  }
}

/* Optimisations mobile */
@media (max-width: 767px) {
  .private-layout-content {
    padding: 16px;
    padding-bottom: 20px;
    /* Espace supplémentaire pour le footer */
  }

  /* Gestion du scroll avec le footer fixe */
  .private-layout.mobile {
    height: 100vh;
    overflow: hidden;
  }

  .private-layout.mobile .private-layout-right {
    height: calc(100vh - 56px - 58px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    height: calc(100vh - var(--mobile-header-height) - var(--mobile-footer-height) - var(--safe-area-top) - var(--safe-area-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Drawer mobile personnalisé */
.ant-drawer.mobile-drawer .ant-drawer-body {
  padding: 0;
  background: #1a1a1a;
}

.ant-drawer.mobile-drawer .ant-drawer-content-wrapper {
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

/* Masquer la sidebar sur mobile */
@media (max-width: 767px) {
  .private-layout .sidebar {
    display: none;
  }
}

/* Animations fluides */
.mobile-header,
.private-layout-content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* États de chargement */
.private-layout-content.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Optimisations pour les très petits écrans */
@media (max-width: 374px) {
  .mobile-header-title {
    font-size: 16px;
  }

  .private-layout-content {
    padding: 12px;
  }
}

/* Support pour les écrans larges (tablettes en mode paysage) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .private-layout-content {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Optimisation pour l'impression */
@media print {

  .mobile-header,
  .mobile-footer,
  .sidebar {
    display: none !important;
  }

  .private-layout-content {
    padding: 0;
    margin: 0;
  }
}

/* Desktop Header */
.desktop-header {
  position: fixed;
  /* Floats over content, taking no space */
  top: 16px;
  right: 24px;
  width: auto;
  height: auto;
  z-index: 1000;
  pointer-events: none;
  /* Let clicks pass through the empty areas */
  background: transparent;
  /* Transparent to create "invisible top bar" effect */
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  border-bottom: none;
  /* No border for island mode */
}

.desktop-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
/**
 * iOS-specific fixes - Version minimaliste
 * Seules les corrections essentielles pour éviter les conflits
 */

/* =====================================================
   1. BOUTON DU FOOTER - Ne pas écraser le fond marron (style screen 2)
   ===================================================== */
/* Le bouton central garde son fond marron et son picto blanc définis dans MobileFooter.css */

/* =====================================================
   2. INPUTS - Éviter le zoom sur iOS
   ===================================================== */

/* Font-size minimum 16px pour éviter le zoom automatique */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
  font-size: 16px !important;
}

/* =====================================================
   3. SCROLL MOMENTUM
   ===================================================== */

/* Activer le scroll momentum natif iOS sur les conteneurs scrollables */
.private-layout-content,
.private-layout-right {
  -webkit-overflow-scrolling: touch;
}

/* =====================================================
   4. TAP HIGHLIGHT
   ===================================================== */

/* Désactiver le highlight bleu sur les éléments cliquables */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Notification Bell Container */
.notification-bell-container {
    position: relative;
    display: inline-block;
}

/* Bell Button */
.notification-bell {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.notification-bell:hover {
    background: rgba(165, 118, 92, 0.1);
    color: #A5765C;
}

.notification-bell.active {
    background: rgba(0, 0, 0, 0.1);
}

.bell-icon {
    font-size: 24px;
    display: block;
    line-height: 1;
}

/* Badge */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #F44336;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    /* Slight offset adjustment if needed */
    width: 360px;
    max-height: 500px;
    background: white;
    border-radius: 20px;
    /* More rounded */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: dropdownSlide 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    /* Clips corners */
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #444;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #A5765C;
    /* Brand Color */
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    transition: all 0.2s;
    font-weight: 600;
    background: rgba(165, 118, 92, 0.05);
}

.mark-all-read-btn:hover {
    background: rgba(165, 118, 92, 0.15);
    color: #8c5e45;
}

/* Notification List */
.notification-list {
    flex: 1 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-list::-webkit-scrollbar {
    width: 5px;
}

.notification-list::-webkit-scrollbar-track {
    background: #F5F5F5;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #BDBDBD;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #9E9E9E;
}

/* Notification Item */
.notification-item {
    display: flex;
    gap: 16px;
    /* Increased gap */
    padding: 16px 20px;
    /* Increased padding */
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border-left: 4px solid transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #FAFAFA;
}

.notification-item.unread {
    background: rgba(246, 198, 116, 0.05);
    /* Light Gold Tint */
    border-left-color: #F6C674;
    /* Gold Border */
}

.notification-item.unread:hover {
    background: rgba(246, 198, 116, 0.1);
}

.notification-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #FFF;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* White circle with shadow */
    color: #A5765C;
}

.notification-content {
    flex: 1 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.notification-time {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background: #F6C674;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
    box-shadow: 0 0 0 4px rgba(246, 198, 116, 0.2);
}

/* Loading State */
.notification-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(165, 118, 92, 0.1);
    border-top-color: #A5765C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    background: linear-gradient(to bottom, white, #fafafa);
}

.empty-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
    color: #A5765C;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Footer */
.notification-footer {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    background: #fff;
}

.view-all-link {
    color: #A5765C;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.view-all-link:hover {
    color: #8c5e45;
    text-decoration: none;
    opacity: 0.8;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        /* Sheet from bottom on mobile? Or just standard fullscreen? Stick to standard for simplicity if not requested otherwise. top:0 is safe. */
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 9999;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .notification-header {
        padding: 20px 16px;
        background: #fff;
        /* Ensure bg */
    }

    .notification-list {
        max-height: calc(100vh - 120px);
    }
}

/* Dark Mode Support (Optional) - Removed blue tints */
@media (prefers-color-scheme: dark) {
    /* ... keep simplified or update if critically needed. For now assuming Light Mode priority based on screenshots. */
}
.messages-popover {
    position: absolute;
    top: calc(100% + 15px);
    left: -150px;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(165, 118, 92, 0.1);
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.messages-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 52px;
}

.messages-popover-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #444;
    font-weight: 700;
}

.popover-header-chat {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.back-btn,
.full-view-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.back-btn:hover,
.full-view-btn:hover {
    background: #f5f5f5;
    color: #A5765C;
}

.header-user-info {
    flex: 1 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-user-info img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.header-user-info .user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Area */
.messages-popover-content {
    max-height: 400px;
    overflow-y: auto;
}

.messages-popover-content.chat-view {
    height: 350px;
    background: #fbfbfc;
}

/* List View Styles */
.messages-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.message-item:hover {
    background: #f8f8f8;
}

.message-item.unread {
    background: rgba(165, 118, 92, 0.03);
}

.message-item-avatar {
    position: relative;
    flex-shrink: 0;
}

.message-item-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.unread-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #A5765C;
    border-radius: 50%;
    border: 2px solid white;
}

.message-item-info {
    flex: 1 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.message-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.message-item-name {
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-item-time {
    font-size: 0.7rem;
    color: #999;
    flex-shrink: 0;
}

.message-item-last {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.last-msg-you {
    font-weight: 500;
    color: #999;
}

.unread .message-item-last {
    color: #333;
    font-weight: 600;
}

/* Chat View Styles */
.popover-chat-messages {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popover-msg {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.popover-msg.sent {
    align-self: flex-end;
}

.popover-msg.received {
    align-self: flex-start;
}

.popover-msg-bubble {
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}

.sent .popover-msg-bubble {
    background: #A5765C;
    color: white;
    border-bottom-right-radius: 4px;
}

.received .popover-msg-bubble {
    background: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 4px;
}

.popover-msg-time {
    font-size: 0.65rem;
    color: #999;
    margin-top: 2px;
    padding: 0 4px;
}

.sent .popover-msg-time {
    text-align: right;
}

/* Footer & Input */
.messages-popover-footer {
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: #A5765C;
    font-weight: 600;
    cursor: pointer;
    background: #fdfdfd;
    border-top: 1px solid #f0f0f0;
}

.popover-chat-input {
    padding: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
    background: white;
}

.popover-chat-input input {
    flex: 1 1;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    outline: none;
}

.popover-chat-input input:focus {
    border-color: #A5765C;
}

.popover-chat-input button {
    background: #A5765C;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.popover-chat-input button:disabled {
    background: #ccc;
}

/* Utilities */
.view-all-btn {
    background: transparent;
    border: none;
    color: #A5765C;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(165, 118, 92, 0.1);
    border-top-color: #A5765C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.messages-popover-empty,
.messages-popover-loading {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.desktop-header-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align island to right */
    height: 100%;
    width: 100%;
    pointer-events: none;
    /* Container is transparent to clicks */
}

/* The floating island */
.header-island {
    background: white;
    border-radius: 32px;
    /* Nicely rounded like a pill */
    padding: 6px 12px;
    /* Reduced inner spacing */
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    /* Plus d'assombrissement pour faire ressortir l'îlot */
    display: flex;
    align-items: center;
    gap: 12px;
    /* Reduced gap */
    pointer-events: auto;
    /* Re-enable clicks on the island itself */
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-right: 0;
    height: 48px;
    /* Slightly reduced height */
}

.messages-relative-container {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-weight: 600;
    transition: color 0.2s;
    padding: 6px;
    /* Reduced padding */
    border-radius: 8px;
    text-decoration: none;
}

.desktop-header-link:hover {
    background-color: #f5f5f5;
    color: #A5765C;
}

.desktop-header-link.active {
    color: #A5765C;
    background-color: rgba(165, 118, 92, 0.1);
}

.icon-wrapper {
    position: relative;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.icon-wrapper.laika-icon svg {
    display: block;
}

.unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.link-text {
    font-size: 14px;
}

.desktop-header-item {
    display: flex;
    align-items: center;
}


/* Profile Section */
.desktop-profile-section {
    position: relative;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    /* Optional: separator if desired, or just space */
    padding-left: 4px;
    /* Slight separation */
}

.desktop-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
    cursor: pointer;
    padding: 4px 8px;
    /* Reduced padding */
    border-radius: 24px;
    /* Pill shape */
    border: 1px solid transparent;
    /* Cleaner default */
    background-color: transparent;
    transition: all 0.2s;
}

.desktop-profile-trigger:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.profile-pic-small {
    width: 28px;
    /* Reduced size */
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.desktop-profile-name {
    font-weight: 600;
    color: #A5765C;
    font-size: 13px;
    /* Increased to be legible but neat */
    max-width: 140px;
    /* Allow more space for long names, island will grow */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 1000;
    border: 1px solid #f0f0f0;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    font-size: 14px;
    position: relative;
}

.dropdown-item:hover {
    background-color: #f9f9f9;
    color: #A5765C;
}

.dropdown-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.premium-item {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 12px;
    color: #A5765C;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.premium-item:hover {
    background-color: #fff8f5;
}

.alert-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4d4f;
    border-radius: 50%;
    margin-left: auto;
}
/* App.css */


.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  display: flex;
  flex: 1 1;
}

@media screen and (min-width: 768px) {
  .main-content {
    flex-direction: row;
  }
}

@media screen and (max-width: 767px) {
  .main-content {
    flex-direction: column;
  }
}

.sidebar {
  flex: 0 0 220px;
}

.content-wrapper {
  flex: 1 1;
  padding: 20px;
}

/* Footer */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  z-index: 1001;
}

/* Global fixes pour les dropdowns Ant Design */

/* Fix prioritaire pour tous les dropdowns Ant Design */
.ant-select-dropdown {
  z-index: 9999 !important;
}

/* Fix spécifique pour les dropdowns dans les modals */
.ant-modal .ant-select-dropdown,
.custom-modal .ant-select-dropdown {
  z-index: 10000 !important;
}

/* Correction du bug Chrome avec les animations de dropdown */
.ant-select-dropdown.ant-slide-up-appear,
.ant-select-dropdown.ant-slide-up-enter {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation-duration: 0.2s !important;
}

.ant-select-dropdown.ant-slide-up-appear-active,
.ant-select-dropdown.ant-slide-up-enter-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Amélioration de la visibilité des options */
.ant-select-item-option {
  transition: background-color 0.2s ease !important;
  padding: 8px 12px !important;
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
}

/* Harmonisation avec la charte (suppression du bleu AntD par défaut) */
.ant-select-item-option:hover {
  background-color: rgba(165, 118, 92, 0.08) !important;
  /* brown */
}

.ant-select-item-option-selected {
  background-color: rgba(246, 198, 116, 0.18) !important;
  /* gold */
  font-weight: 600 !important;
}

.ant-select-item-option-selected:hover {
  background-color: rgba(246, 198, 116, 0.28) !important;
  /* gold stronger */
}

/* Fix pour éviter que le dropdown disparaisse */
.ant-select-dropdown-placement-bottomLeft,
.ant-select-dropdown-placement-bottomRight,
.ant-select-dropdown-placement-topLeft,
.ant-select-dropdown-placement-topRight {
  pointer-events: auto !important;
}

/* Amélioration de l'accessibilité */
.ant-select-selector:focus {
  border-color: #A5765C !important;
  box-shadow: 0 0 0 2px rgba(165, 118, 92, 0.18) !important;
  outline: none !important;
}

/* Pagination globale (fond blanc, brand) */
.ant-pagination-item {
  border-radius: 8px !important;
}

.ant-pagination-item-active {
  background: #fff !important;
  border-color: #F6C674 !important;
  border-color: var(--gold, #F6C674) !important;
}

.ant-pagination-item-active a {
  color: #A5765C !important;
  color: var(--brown, #A5765C) !important;
}

/* Tag bleu AntD → brand */
.ant-tag-blue {
  color: #A5765C !important;
  color: var(--brown, #A5765C) !important;
  background: rgba(165, 118, 92, 0.08) !important;
  border-color: rgba(165, 118, 92, 0.2) !important;
}

/* Utilitaires éventuels hérités (text-blue-600 etc.) */
.text-blue-600 {
  color: #A5765C !important;
  color: var(--brown, #A5765C) !important;
}

.bg-blue-50 {
  background: rgba(165, 118, 92, 0.05) !important;
}

.border-blue-200 {
  border-color: rgba(165, 118, 92, 0.2) !important;
}
:root {
  /* Brand palette */
  --brown: #A5765C;
  --brown-700: #8e6651;
  --brown-500: #A5765C;
  --brown-300: #c59b86;
  --gold: #F6C674;
  --gold-600: #E6B664;
  --gold-300: #ffd89a;
  --peach: #EE9F99;

  /* Neutrals */
  --white: #ffffff;
  --black: #1a1a1a;
  --light-gray: #f5f5f5;
  --gray-100: #fafafa;
  --gray-300: #e9ecef;
  --gray-500: #999999;
  --text-color: #333333;

  /* Effects */
  --border-radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Ant Design harmonization for brand look (non-invasive) */
.ant-btn-primary {
  border-radius: 24px;
}

.ant-tag-gold {
  color: #A5765C;
  color: var(--brown);
}





/*# sourceMappingURL=main.ba4b59a3.css.map*/