/* =============================================================
   Trade Medical — Homepage styles
   Mobile-first : base < 768px | tablet 768px | desktop 1024px
   ============================================================= */

/* -----------------------------------------------
   Tokens DS
   ----------------------------------------------- */
:root {
    --tm-blue:          #015ee7;
    --tm-yellow:        #fbd537;
    --tm-black:         #0a0f1a;
    --tm-pale-blue:     #e3dffe;
    --tm-green:         #6fae6e;
    --tm-orange:        #ee7c4c;

    --tm-blue-50:   #eff4ff;
    --tm-blue-100:  #dbe6ff;
    --tm-blue-200:  #b8ccff;
    --tm-blue-500:  #015ee7;
    --tm-blue-600:  #0149bc;
    --tm-blue-700:  #023b97;
    --tm-blue-800:  #072f73;
    --tm-blue-900:  #0b2456;

    --tm-pale-100:  #e3dffe;
    --tm-yellow-100:#fff1c2;
    --tm-yellow-300:#fbd537;
    --tm-yellow-400:#e8ba0d;
    --tm-yellow-solid: #F5C400;
    --tm-green-50:  #eff7ee;
    --tm-green-300: #6fae6e;
    --tm-green-400: #4e8e4d;
    --tm-orange-50: #fef3ec;
    --tm-orange-400:#d4652a;

    --tm-neutral-0:   #ffffff;
    --tm-neutral-25:  #fafbfd;
    --tm-neutral-50:  #f4f6fa;
    --tm-neutral-100: #e9edf3;
    --tm-neutral-200: #d6dce6;
    --tm-neutral-500: #606a7d;
    --tm-neutral-700: #2f3644;
    --tm-neutral-900: #0a0f1a;

    --fg-1:       var(--tm-neutral-900);
    --fg-2:       var(--tm-neutral-700);
    --fg-3:       var(--tm-neutral-500);
    --fg-brand:   var(--tm-blue-500);
    --fg-inverse: #ffffff;

    --bg-app:      var(--tm-neutral-25);
    --bg-surface:  var(--tm-neutral-0);

    --border-subtle:  var(--tm-neutral-100);
    --border-default: var(--tm-neutral-200);

    --font-sans:    'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, serif;

    --shadow-sm:  0 2px 6px rgba(11,36,86,.06), 0 1px 2px rgba(11,36,86,.04);
    --shadow-md:  0 6px 18px rgba(11,36,86,.08), 0 2px 6px rgba(11,36,86,.04);
    --shadow-lg:  0 16px 36px rgba(11,36,86,.12), 0 4px 10px rgba(11,36,86,.06);
    --shadow-focus: 0 0 0 4px rgba(1,94,231,.18);

    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   20px;
    --radius-2xl:  28px;
    --radius-pill: 999px;

    --ease-out:    cubic-bezier(.22,1,.36,1);
    --dur-fast:    140ms;
    --dur-normal:  220ms;
}

/* -----------------------------------------------
   Reset partiel homepage
   ----------------------------------------------- */
#tm-home,
#tm-home * { box-sizing: border-box; }

#tm-home {
    padding: 0 !important;
    margin: 0;
    background: var(--bg-app);
}

/* Neutralise les font-weight hérités du thème Besa */
#tm-home p,
#tm-home li { font-weight: 400; }

/* Corrige [hidden] que Besa peut écraser */
#tm-home [hidden] { display: none !important; }

/* -----------------------------------------------
   Typographie utilitaire
   ----------------------------------------------- */
.tm-h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--fg-1);
    margin: 0;
}

.tm-h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--fg-1);
    margin: 0 0 6px;
}

.tm-body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fg-2);
    margin: 0;
}

.tm-body-lg {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--fg-2);
    margin: 0;
}

.tm-eyebrow {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-brand);
    margin: 0 0 12px;
    display: block;
}

.tm-eyebrow--light    { color: rgba(255,255,255,.7); }
.tm-eyebrow--yellow   { color: var(--tm-yellow-solid); }
.tm-eyebrow--centered { text-align: center; }

/* -----------------------------------------------
   Layout
   ----------------------------------------------- */
.tm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.tm-container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.tm-section {
    padding: 56px 0;
    background: var(--bg-surface);
}

.tm-section--soft { background: var(--bg-app); }

.tm-section__title {
    text-align: center;
    margin-bottom: 40px;
}

.tm-section__intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.tm-section__intro .tm-h2 { margin-bottom: 16px; }

.tm-section__subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* -----------------------------------------------
   Boutons — préfixe #tm-home pour battre Besa
   ----------------------------------------------- */
#tm-home .tm-btn,
#tm-home a.tm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border-radius: 10px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
    white-space: nowrap;
}

#tm-home .tm-btn--primary,
#tm-home a.tm-btn--primary {
    background: #015ee7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(11,36,86,.12);
}

#tm-home .tm-btn--primary:hover,
#tm-home a.tm-btn--primary:hover {
    background: #0149bc !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(11,36,86,.14);
    transform: translateY(-1px);
}

#tm-home .tm-btn--ghost,
#tm-home a.tm-btn--ghost {
    background: transparent !important;
    color: #0149bc !important;
    border: 1.5px solid #dbe6ff;
}

#tm-home .tm-btn--ghost:hover,
#tm-home a.tm-btn--ghost:hover {
    background: #eff4ff !important;
    border-color: #b8ccff;
    color: #023b97 !important;
}

#tm-home .tm-btn--yellow-solid,
#tm-home a.tm-btn--yellow-solid {
    background: #F5C400 !important;
    color: #0a0f1a !important;
    box-shadow: 0 2px 8px rgba(245,196,0,.3);
}

#tm-home .tm-btn--lg  { padding: 14px 24px !important; font-size: 1rem !important; }
#tm-home .tm-btn--sm  { padding: 10px 16px !important; font-size: 1rem !important; }
#tm-home .tm-btn--full { width: 100%; justify-content: center; }

#tm-home .tm-btn:active { transform: scale(.98); }
#tm-home .tm-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(1,94,231,.18); }

/* -----------------------------------------------
   HERO
   ----------------------------------------------- */
.tm-hero {
    background: radial-gradient(ellipse at 70% 0, var(--tm-pale-blue) 0%, transparent 55%), var(--bg-app);
    padding: 56px 0 64px;
    border-bottom: 1px solid var(--border-subtle);
}

.tm-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tm-hero__title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 2.875rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--fg-1);
    margin: 0 0 20px;
}

.tm-hero__title-hl {
    background: linear-gradient(transparent 62%, var(--tm-yellow-300) 62%);
    padding: 0 3px;
}

.tm-hero__subtitle {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--fg-2);
    max-width: 520px;
    margin: 0 0 28px;
}

.tm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.tm-hero__reassurances {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-hero__reassurances li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg-2);
}

.tm-hero__reassurances svg { flex-shrink: 0; color: var(--tm-green-400); }

.tm-hero__visual { display: none; }

.tm-hero__img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.tm-hero__img-decor {
    position: absolute;
    inset: -22px -22px auto auto;
    width: 200px;
    height: 200px;
    background: var(--tm-pale-blue);
    border-radius: 50%;
    z-index: 0;
}

.tm-hero__img-slot {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--tm-pale-100);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-blue-200);
    overflow: hidden;
}

.tm-hero__img-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-xl); }

.tm-hero__badge {
    position: absolute;
    z-index: 2;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-hero__badge--secure { bottom: 36px; left: -18px; }

.tm-hero__badge-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: var(--tm-green-50);
    color: var(--tm-green-400);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-hero__badge-title { font-weight: 600; font-size: 1rem; color: var(--fg-1); line-height: 1.1; }
.tm-hero__badge-sub   { font-size: 1rem; font-weight: 400; color: var(--fg-3); }
#tm-home .tm-hero__badge-sub { font-weight: 400 !important; }

.tm-hero__badge--stat {
    right: -12px;
    top: 28px;
    background: var(--tm-blue-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 18px;
}

.tm-hero__badge-number {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.625rem;
    line-height: 1;
    color: #fff;
}

.tm-hero__badge-label { font-size: 1rem; font-weight: 400; opacity: .78; letter-spacing: .02em; color: #fff; }
#tm-home .tm-hero__badge-label { font-weight: 400 !important; }

/* -----------------------------------------------
   CATÉGORIES — tabs pilule sur fond neutre
   ----------------------------------------------- */
.tm-categories {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.tm-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--tm-neutral-100);
    border-radius: var(--radius-pill);
    width: fit-content;
    margin: 0 auto 32px;
}

#tm-home .tm-tab {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #606a7d !important;
    background: transparent !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 9px 22px !important;
    cursor: pointer;
    line-height: 1;
    transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

#tm-home .tm-tab:hover {
    color: #023b97 !important;
    background: rgba(255,255,255,.65) !important;
}

#tm-home .tm-tab--active {
    background: #ffffff !important;
    color: #023b97 !important;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(11,36,86,.12), 0 0 0 1px rgba(11,36,86,.06) !important;
}

.tm-cat-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tm-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 8px rgba(11, 36, 86, 0.07);
    transition: background var(--dur-normal) var(--ease-out),
                border-color var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
    color: var(--fg-1);
}

.tm-cat-card:hover {
    background: var(--tm-blue-50);
    border-color: var(--tm-blue-200);
    box-shadow: var(--shadow-sm);
    color: var(--tm-blue-700);
}

.tm-cat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-pill);
    background: var(--tm-pale-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-blue-500);
    flex-shrink: 0;
    transition: background var(--dur-normal) var(--ease-out);
}

.tm-cat-card:hover .tm-cat-card__icon { background: var(--tm-blue-100); }

.tm-cat-card__label {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: inherit;
}

.tm-cat-card--all {
    background: var(--tm-blue-500);
    border-color: var(--tm-blue-600);
    color: #fff;
    box-shadow: 0 2px 12px rgba(1, 94, 231, 0.22);
}
.tm-cat-card--all .tm-cat-card__icon {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.tm-cat-card--all .tm-cat-card__label { color: #fff; }
.tm-cat-card--all:hover {
    background: var(--tm-blue-600);
    border-color: var(--tm-blue-700);
    color: #fff;
    box-shadow: 0 4px 18px rgba(1, 94, 231, 0.32);
}

/* -----------------------------------------------
   ANNONCES — slider horizontal snap + nav
   ----------------------------------------------- */
.tm-annonces { border-top: 1px solid var(--border-subtle); }

.tm-annonces__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.tm-annonces__nav-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Boutons prev/next */
#tm-home .tm-ann-nav {
    width: 40px;
    height: 40px;
    border-radius: 999px !important;
    border: 1.5px solid #d6dce6 !important;
    background: #ffffff !important;
    color: #2f3644 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
    flex-shrink: 0;
    padding: 0 !important;
}

#tm-home .tm-ann-nav:hover:not(:disabled) {
    background: #eff4ff !important;
    border-color: #b8ccff !important;
    color: #0149bc !important;
}

#tm-home .tm-ann-nav:disabled { opacity: .35; cursor: default; }

/* Slider */
.tm-ann-slider {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 20px;
    margin: 0 -20px;
    cursor: grab;
}

.tm-ann-slider:active { cursor: grabbing; }
.tm-ann-slider::-webkit-scrollbar { display: none; }

.tm-ann-track {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 2px 2px 6px;
    margin: 0;
}

.tm-ann-track li {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.tm-ann-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--fg-1);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: box-shadow var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-out);
}

.tm-ann-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--fg-1); }

.tm-ann-card__img {
    aspect-ratio: 1 / 1;
    background: var(--tm-pale-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tm-ann-card__img img { width: 100%; height: 100%; object-fit: cover; }
.tm-ann-card__img-ph { color: var(--tm-blue-200); }

.tm-ann-card__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.tm-ann-card__title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--fg-1);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tm-ann-card__price {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--tm-blue-600);
    margin: 0;
}

.tm-ann-card__price .woocommerce-Price-amount { color: var(--tm-blue-600); }

.tm-ann-card__city {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--fg-3);
    margin: 0;
}

.tm-ann-empty { text-align: center; color: var(--fg-3); padding: 40px 0; }
.tm-ann-empty a { color: var(--fg-brand); }

/* -----------------------------------------------
   STATS — 2x2 mobile, 4 en ligne desktop
   ----------------------------------------------- */
.tm-stats {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 0;
}

.tm-stats__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 24px;
}

.tm-stats__sep { display: none; }

.tm-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0 16px;
}

.tm-stats__number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1;
    letter-spacing: -.02em;
}

.tm-stats__number--blue  { color: var(--tm-blue-500); }
.tm-stats__number--green { color: var(--tm-green-400); }

.tm-stats__label {
    font-size: 1rem;
    font-weight: 400;
    color: var(--fg-3);
    max-width: 140px;
    line-height: 1.4;
}

/* -----------------------------------------------
   ÉTAPES — cercle numéroté + icône + bandeau
   ----------------------------------------------- */
.tm-steps__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tm-steps__item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

/* Tête : cercle icône + badge numéro */
.tm-steps__head {
    position: relative;
    flex-shrink: 0;
}

.tm-steps__circle {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-pill);
    background: var(--tm-blue-50);
    border: 1.5px solid var(--tm-blue-100);
    color: var(--tm-blue-500);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-steps__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-pill);
    background: var(--tm-blue-500);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tm-steps__body { flex: 1; }
.tm-steps__body .tm-body { font-weight: 400; margin-top: 6px; }

/* Bandeau valorisation */
.tm-steps__banner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--tm-pale-blue);
    border: 1.5px solid var(--tm-blue-200);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.tm-steps__banner-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1.5px solid var(--tm-blue-200);
    color: var(--tm-blue-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-steps__banner-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--tm-blue-800);
    line-height: 1.6;
}

.tm-steps__banner-text strong {
    display: block;
    font-weight: 600;
    color: var(--tm-blue-900);
    margin-bottom: 6px;
}

/* -----------------------------------------------
   AVANTAGES — icônes colorées selon DS
   ----------------------------------------------- */
.tm-avantages__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tm-avantage {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-out);
}

.tm-avantage:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tm-avantage__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-pill);
    background: var(--tm-pale-100);
    color: var(--tm-blue-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-avantage__icon--green  { background: var(--tm-green-50);   color: var(--tm-green-400); }
.tm-avantage__icon--yellow { background: var(--tm-yellow-100); color: #a07800; }
.tm-avantage__icon--orange { background: var(--tm-orange-50);  color: var(--tm-orange-400); }

.tm-avantage .tm-body { font-weight: 400; color: var(--fg-2); margin-top: 4px; }

/* -----------------------------------------------
   TÉMOIGNAGES
   ----------------------------------------------- */
.tm-testimonials__subtitle {
    text-align: center;
    max-width: 560px;
    margin: -24px auto 40px;
}

.tm-testimonials__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tm-testimonial {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-out);
}

.tm-testimonial:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tm-testimonial__stars {
    display: flex;
    gap: 3px;
    color: var(--tm-yellow-solid);
    margin-bottom: 16px;
}

.tm-testimonial__text {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fg-2);
    margin: 0;
    flex: 1;
}

.tm-testimonial__author {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.tm-testimonial__name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--fg-1);
    margin: 0 0 2px;
}

.tm-testimonial__role {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    color: var(--fg-3);
    margin: 0;
}

/* -----------------------------------------------
   SERVICES — icônes colorées selon DS
   ----------------------------------------------- */
.tm-services__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tm-service {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tm-service__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-pill);
    background: var(--tm-pale-100);
    color: var(--tm-blue-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Couleurs par service */
.tm-service__icon--blue   { background: var(--tm-blue-50);    color: var(--tm-blue-500); }
.tm-service__icon--green  { background: var(--tm-green-50);   color: var(--tm-green-400); }
.tm-service__icon--yellow { background: var(--tm-yellow-100); color: #a07800; }

.tm-service .tm-body { font-weight: 400; color: var(--fg-2); margin-top: 4px; }

/* -----------------------------------------------
   GRANDS COMPTES
   ----------------------------------------------- */
.tm-gc {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--tm-blue-700) 0%, var(--tm-blue-900) 100%);
}

.tm-gc__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.tm-gc__title  { color: #fff; margin: 12px 0 16px; }

.tm-gc__desc {
    font-weight: 400;
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 4px;
}

.tm-gc__advantages {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tm-gc__advantages li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,.9);
    line-height: 1.4;
}

.tm-gc__advantages svg { flex-shrink: 0; color: var(--tm-yellow-solid); }

/* En-tête formulaire */
.tm-gc__form-wrap {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
}

.tm-gc__form-header { margin-bottom: 24px; }

.tm-gc__form-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 8px;
}

.tm-gc__form-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,.7);
    margin: 0;
    line-height: 1.5;
}

.tm-gc__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tm-gc__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tm-field { display: flex; flex-direction: column; gap: 6px; }

.tm-field label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
}

.tm-field__req { color: rgba(255,255,255,.5); }
.tm-field__optional { font-weight: 400; color: rgba(255,255,255,.5); font-size: 1rem; margin-left: 4px; }

#tm-home .tm-input {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.1);
    color: #fff;
    outline: none;
    width: 100%;
    transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
}

#tm-home .tm-input::placeholder { color: rgba(255,255,255,.35); }
#tm-home .tm-input:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
#tm-home .tm-textarea { resize: vertical; min-height: 90px; }

.tm-gc__success {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: rgba(111,174,110,.15);
    border: 1px solid rgba(111,174,110,.4);
    border-radius: var(--radius-lg);
    color: #fff;
}

.tm-gc__success svg { flex-shrink: 0; margin-top: 2px; color: var(--tm-green-300); }
.tm-gc__success strong { display: block; margin-bottom: 4px; font-weight: 600; }
.tm-gc__success p { margin: 0; color: rgba(255,255,255,.8); font-size: 1rem; }

.tm-gc__form-error {
    padding: 12px 16px;
    background: rgba(217,58,58,.15);
    border: 1px solid rgba(217,58,58,.35);
    border-radius: var(--radius-md);
    color: #fbbcbc;
    font-size: 1rem;
    margin: 0 0 4px;
}

/* Contact Form 7 — reprend la mise en page/tokens du formulaire "Grands Comptes" */
.tm-gc__form-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tm-gc__form-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.tm-gc__form-wrap .wpcf7-not-valid-tip {
    display: block;
    margin-top: 4px;
    color: #fbbcbc;
    font-size: 1rem;
    font-weight: 400;
}

.tm-gc__form-wrap .tm-input.wpcf7-not-valid {
    border-color: rgba(217,58,58,.6);
}

.tm-gc__form-wrap .wpcf7-response-output {
    margin: 0 0 4px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: rgba(217,58,58,.15);
    border: 1px solid rgba(217,58,58,.35);
    color: #fbbcbc;
}

.tm-gc__form-wrap form.sent .wpcf7-response-output {
    background: rgba(111,174,110,.15);
    border-color: rgba(111,174,110,.4);
    color: #fff;
}

.tm-gc__form-wrap .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* -----------------------------------------------
   FAQ — texte sombre sur fond blanc, accordéon propre
   ----------------------------------------------- */
.tm-faq__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
}

.tm-faq__item {
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.tm-faq__item:last-child { border-bottom: none; }

/* Question — texte sombre sur fond blanc */
#tm-home .tm-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600 !important;
    color: #0a0f1a !important;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
    transition: background 140ms ease;
    -webkit-appearance: none;
    appearance: none;
}

#tm-home .tm-faq__q:hover {
    background: #fafbfd !important;
}

#tm-home .tm-faq__item--open .tm-faq__q {
    background: #ffffff !important;
    color: #0149bc !important;
}

#tm-home .tm-faq__chevron {
    flex-shrink: 0;
    transition: transform 220ms ease;
    color: #606a7d;
}

#tm-home .tm-faq__q[aria-expanded="true"] .tm-faq__chevron {
    transform: rotate(180deg);
    color: #015ee7;
}

/* Réponse — fond très légèrement teinté, texte sombre */
.tm-faq__a {
    display: block;
    padding: 0 24px 20px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--fg-2);
    background: var(--tm-neutral-25);
    border-top: 1px solid var(--border-subtle);
}

#tm-home .tm-faq__a[hidden] {
    display: none !important;
    padding: 0 !important;
    border-top: none !important;
}

.tm-faq__a p { margin: 12px 0 0; font-weight: 400; }
.tm-faq__a p:first-child { margin-top: 0; }

/* -----------------------------------------------
   PARTENAIRES
   ----------------------------------------------- */
.tm-partners { border-top: 1px solid var(--border-subtle); }

.tm-partners__logos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 64px;
    margin-top: 28px;
}

.tm-partners__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 60px;
    flex-shrink: 0;
}

.tm-partners__item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(15%);
    opacity: 0.82;
    transition: filter 220ms ease, opacity 220ms ease;
}

.tm-partners__item:hover img { filter: grayscale(0%); opacity: 1; }

@media (max-width: 767px) {
    .tm-partners__logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        justify-items: center;
    }
    .tm-partners__item {
        width: 120px;
        height: 48px;
    }
    .tm-partners__item img {
        max-height: 48px;
    }
}

/* =====================================================
   BREAKPOINT TABLET — 768px
   ===================================================== */
@media (min-width: 768px) {

    .tm-section { padding: 72px 0; }

    /* Hero */
    .tm-hero { padding: 72px 0 84px; }
    .tm-hero__inner { flex-direction: row; align-items: center; gap: 56px; }
    .tm-hero__content { flex: 1.06; }
    .tm-hero__visual { display: block; flex: 0.94; position: relative; }
    .tm-hero__reassurances { flex-direction: row; flex-wrap: wrap; gap: 16px 24px; }

    /* Categories */
    .tm-cat-grid { grid-template-columns: repeat(4, 1fr); }

    /* Annonces */
    .tm-ann-track li { flex: 0 0 300px; }

    /* Stats desktop : en ligne avec séparateurs, s'adapte au nombre d'éléments */
    .tm-stats__list {
        flex-wrap: nowrap;
        gap: 0;
        align-items: center;
    }

    .tm-stats__item {
        flex: 1;
    }

    .tm-stats__sep {
        display: block;
        width: 1px;
        height: 52px;
        background: var(--border-default);
        margin: 0 8px;
        flex-shrink: 0;
    }

    /* Steps */
    .tm-steps__list { flex-direction: row; gap: 16px; }
    .tm-steps__item { flex-direction: column; gap: 16px; align-items: flex-start; }
    .tm-steps__body { width: 100%; }

    .tm-steps__banner {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .tm-steps__banner-text { flex: 1; }

    /* Avantages */
    .tm-avantages__grid { grid-template-columns: repeat(2, 1fr); }

    /* Témoignages */
    .tm-testimonials__grid { grid-template-columns: repeat(2, 1fr); }

    /* Services */
    .tm-services__grid { grid-template-columns: repeat(3, 1fr); }

    /* GC form row */
    .tm-gc__row { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   BREAKPOINT DESKTOP — 1024px
   ===================================================== */
@media (min-width: 1024px) {

    .tm-section { padding: 84px 0; }
    .tm-container { padding: 0 24px; }
    .tm-container--narrow { padding: 0 24px; }

    /* Hero */
    .tm-hero { padding: 80px 0 96px; }
    .tm-hero__title { font-size: 2.875rem; }

    /* Categories */
    .tm-cat-card {
        flex-direction: row;
        text-align: left;
        gap: 14px;
        padding: 22px 20px;
    }
    .tm-cat-card__label { font-size: 1rem; }

    /* Annonces */
    .tm-ann-slider { padding: 4px 24px 24px; margin: 0 -24px; }
    .tm-ann-track li { flex: 0 0 320px; }

    /* Avantages */
    .tm-avantages__grid { grid-template-columns: repeat(3, 1fr); }

    /* Témoignages */
    .tm-testimonials__grid { grid-template-columns: repeat(3, 1fr); }

    /* GC */
    .tm-gc__inner { flex-direction: row; align-items: flex-start; gap: 72px; }
    .tm-gc__content { flex: 1; }
    .tm-gc__form-wrap { flex: 0 0 460px; }

    /* FAQ */
    .tm-faq__q { font-size: 1rem; padding: 22px 28px; }
    .tm-faq__a { padding: 0 28px 22px; font-size: 1rem; }
    #tm-home .tm-faq__a[hidden] { padding: 0 !important; }
}
