:root {
  --mt-ink: #211816;
  --mt-muted: #6c5d58;
  --mt-coffee: #3f2e28;
  --mt-cocoa: #594238;
  --mt-rose: #9a6542;
  --mt-coral: #c58a5f;
  --mt-teal: #73523f;
  --mt-cream: #fff7f0;
  --mt-blush: #fde8e4;
  --mt-line: #ead8ce;
  --mt-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #fffaf6;
  color: var(--mt-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--mt-teal);
}

a:hover,
a:focus {
  color: var(--mt-coffee);
  text-decoration: none;
}

.mt-site-header {
  position: relative;
  z-index: 20;
  background: var(--mt-white);
  border-bottom: 1px solid var(--mt-line);
  box-shadow: 0 8px 26px rgba(63, 46, 40, .08);
}

.mt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.mt-logo,
.mt-logo img {
  display: inline-flex;
  align-items: center;
}

.mt-logo img {
  max-width: 230px;
  height: auto;
}

.mt-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.mt-header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  color: var(--mt-coffee);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.mt-header-nav a:hover,
.mt-header-nav a:focus {
  background: var(--mt-cream);
}

.mt-nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mt-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  background: var(--mt-cream);
  cursor: pointer;
}

.mt-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--mt-coffee);
  border-radius: 99px;
}

.mt-hero {
  padding: 58px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(32, 18, 13, .9) 0%, rgba(45, 27, 20, .78) 42%, rgba(45, 27, 20, .44) 72%, rgba(32, 18, 13, .58) 100%),
    linear-gradient(180deg, rgba(32, 18, 13, .22), rgba(32, 18, 13, .5)),
    url("../img/meetissimo-community-patchwork.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.mt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  gap: 34px;
  align-items: center;
}

.mt-kicker,
.mt-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mt-card-kicker {
  color: var(--mt-rose);
  background: var(--mt-blush);
  border-color: #f7c8c4;
}

.mt-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 52px;
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

.mt-hero h1 span {
  color: #f1c193;
}

.mt-hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, .94);
  font-size: 19px;
}

.mt-hero-actions,
.mt-link-row,
.mt-profile-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mt-hero-actions {
  margin-top: 22px;
}

.mt-btn-primary,
.mt-btn-secondary,
.bouton_fiche a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
}

.mt-btn-primary,
.bouton_fiche a {
  color: #fff !important;
  background: linear-gradient(135deg, #4f2d20, #9a6542);
  box-shadow: 0 12px 28px rgba(79, 45, 32, .28);
}

.mt-btn-secondary {
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
}

.mt-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 22px;
}

.mt-hero-stats div {
  padding: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
}

.mt-hero-stats strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.mt-hero-stats span {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
}

.mt-signup-card {
  padding: 28px;
  color: var(--mt-ink);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 210, 197, .62);
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(20, 12, 10, .28);
}

.mt-signup-card h2 {
  margin: 0 0 10px;
  color: var(--mt-coffee);
  font-size: 28px;
}

.mt-signup-card p {
  color: #4b3b36;
}

.mt-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.mt-proof-list span {
  min-height: 38px;
  padding: 9px 8px;
  color: var(--mt-coffee);
  background: var(--mt-cream);
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.mt-login-link {
  display: block;
  margin-top: 12px;
  color: var(--mt-teal);
  font-weight: 800;
  text-align: center;
}

.mt-external-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.mt-external-form iframe {
  display: block;
  width: 100%;
  height: 410px;
  border: 0;
  border-radius: 8px;
  background: var(--mt-cream);
}

section {
  padding: 46px 0;
}

.mt-section-soft {
  background: var(--mt-cream);
  border-top: 1px solid var(--mt-line);
  border-bottom: 1px solid var(--mt-line);
}

.mt-section-head {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.mt-section-head h2,
.mt-content h2,
.mt-card h3,
.mt-step h3,
.mt-profile-card h3 {
  color: var(--mt-coffee);
  letter-spacing: 0;
}

.mt-section-head h2 {
  margin-top: 0;
  font-size: 34px;
}

.mt-section-head p {
  color: var(--mt-muted);
  font-size: 18px;
}

.mt-profile-shell,
.mt-content,
.mt-faq,
.mt-cta-band {
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(63, 46, 40, .07);
}

.mt-profile-shell {
  padding: 24px;
}

.mt-community-banner {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: var(--mt-coffee);
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(63, 46, 40, .12);
}

.mt-community-banner img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.mt-community-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 21, 17, .9), rgba(31, 21, 17, .56) 48%, rgba(31, 21, 17, .18)),
    linear-gradient(180deg, rgba(31, 21, 17, .08), rgba(31, 21, 17, .42));
}

.mt-community-banner-content {
  position: absolute;
  top: 50%;
  left: 34px;
  z-index: 2;
  max-width: 500px;
  transform: translateY(-50%);
}

.mt-community-banner-content .mt-card-kicker {
  color: #fff8f2;
  background: rgba(255, 248, 242, .13);
  border-color: rgba(241, 193, 147, .34);
}

.mt-community-banner-content h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 36px;
  line-height: 1.08;
}

.mt-community-banner-content p {
  margin: 0 0 18px;
  color: rgba(255, 248, 242, .9);
  font-size: 18px;
}

#caruser:empty,
#caruserf:empty,
#caruserh:empty {
  display: none;
}

.mt-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mt-profile-card {
  padding: 18px;
  background: var(--mt-cream);
  border: 1px solid var(--mt-line);
  border-radius: 8px;
}

.mt-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4f2d20, #9a6542);
  border-radius: 50%;
  font-weight: 900;
}

.mt-profile-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.mt-profile-card p {
  margin-bottom: 0;
  color: var(--mt-muted);
}

.mt-card-grid,
.mt-step-grid,
.mt-link-grid,
.mt-faq-grid {
  display: grid;
  gap: 16px;
}

.mt-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mt-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mt-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mt-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-card,
.mt-step,
.mt-faq article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(63, 46, 40, .06);
}

.mt-card i,
.mt-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--mt-teal);
  border-radius: 8px;
  font-weight: 900;
}

.mt-card h3,
.mt-step h3,
.mt-faq h3 {
  margin-top: 0;
  font-size: 20px;
}

.mt-content {
  padding: 28px;
}

.mt-content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 24px;
  align-items: start;
}

.mt-content p,
.mt-card p,
.mt-step p,
.mt-faq p {
  color: var(--mt-muted);
}

.mt-chat-preview {
  padding: 22px;
  background: var(--mt-cream);
  border: 1px solid var(--mt-line);
  border-radius: 8px;
}

.mt-bubble {
  max-width: 90%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--mt-ink);
  background: #fff;
  border: 1px solid var(--mt-line);
}

.mt-bubble-alt {
  margin-left: auto;
  color: #fff;
  background: var(--mt-teal);
  border-color: var(--mt-teal);
}

.mt-link-card {
  display: block;
  min-height: 100%;
  padding: 16px;
  color: var(--mt-coffee);
  background: #fff;
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  font-weight: 900;
}

.mt-link-card span {
  display: block;
  margin-top: 4px;
  color: var(--mt-muted);
  font-size: 13px;
  font-weight: 600;
}

.mt-link-card:hover,
.mt-link-card:focus {
  background: var(--mt-blush);
}

.mt-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, #fff, var(--mt-blush));
}

.mt-cta-band h2,
.mt-cta-band p {
  margin: 0;
}

.mt-cta-band p {
  color: var(--mt-muted);
}

footer {
  padding: 28px 0 0;
  color: #fdf5ef;
  background: var(--mt-coffee);
}

footer a {
  color: #fff;
}

.mt-footer-links {
  text-align: center;
}

.mt-footer-links p {
  margin: 0 0 12px;
  color: #ffd2c5;
  font-weight: 900;
  text-transform: uppercase;
}

.mt-footer-links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mt-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

footer .copyright {
  margin-top: 22px;
  padding: 14px 0;
  background: rgba(0, 0, 0, .18);
}

.bouton_fiche {
  width: auto;
  margin: 0 auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 991px) {
  .mt-hero-grid,
  .mt-content-columns,
  .mt-cta-band {
    grid-template-columns: 1fr;
  }

  .mt-card-grid,
  .mt-step-grid,
  .mt-link-grid,
  .mt-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt-profile-grid {
    grid-template-columns: 1fr;
  }

  .mt-cta-band .mt-btn-primary {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .mt-header-inner {
    min-height: 68px;
    position: relative;
  }

  .mt-logo img {
    max-width: 190px;
  }

  .mt-burger {
    display: inline-flex;
  }

  .mt-header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 15px;
    right: 15px;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--mt-line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(63, 46, 40, .16);
  }

  .mt-header-nav a {
    justify-content: center;
    min-height: 42px;
    background: var(--mt-cream);
  }

  .mt-nav-toggle:checked ~ .mt-header-nav {
    display: flex;
  }

  .mt-community-banner {
    min-height: 0;
  }

  .mt-community-banner img {
    height: 280px;
    min-height: 280px;
  }

  .mt-community-banner::after {
    background: linear-gradient(180deg, rgba(31, 21, 17, .08), rgba(31, 21, 17, .5));
  }

  .mt-community-banner-content {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
    padding: 20px;
    background: var(--mt-coffee);
    transform: none;
  }

  .mt-community-banner-content h2 {
    font-size: 28px;
  }

  .mt-community-banner-content p {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  section,
  .mt-hero {
    padding: 34px 0;
  }

  .mt-hero h1 {
    font-size: 34px;
  }

  .mt-hero-lead,
  .mt-section-head p {
    font-size: 17px;
  }

  .mt-hero-stats,
  .mt-card-grid,
  .mt-step-grid,
  .mt-link-grid,
  .mt-faq-grid,
  .mt-proof-list {
    grid-template-columns: 1fr;
  }

  .mt-btn-primary,
  .mt-btn-secondary,
  .mt-hero-actions a {
    width: 100%;
  }
}

/* Liens populaires en cartes compactes. */
.mt-profile-links {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 22px;
  align-items: stretch;
}

.mt-profile-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 42px 14px 16px;
  color: var(--mt-coffee) !important;
  background: linear-gradient(135deg, #fff, var(--mt-blush));
  border: 1px solid var(--mt-line);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(63, 46, 40, .07);
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none !important;
}

.mt-profile-links a::after {
  content: "\2192";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--mt-coffee);
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 13px;
}

.mt-profile-links a:hover,
.mt-profile-links a:focus {
  background: #fff;
  border-color: #c49b7f;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .mt-profile-links {
    grid-template-columns: 1fr;
  }
}

