/* Styles communs MoneyTips (repris de la vue « MoneyTips : style commun »).
   Les couleurs des bandeaux foncés (o_cc5) sont à vérifier : elles ont été reprises
   de la lecture du thème, pas d'une capture. */

:root {
    --mt-dark: #0B4F5C;      /* fond des bandeaux foncés (o_cc5) */
    --mt-green: #007A55;
    --mt-green-light: #DDF5EC;
    --mt-accent: #02A071;
    --mt-blue-light: #E3F6FD;
    --mt-blue: #0B6E99;
}

body {
    background-color: #FFFFFF;
    color: #1F2A2E;
}

a { color: var(--mt-green); }
a:hover { color: var(--mt-accent); }
.mt-footer a:not(.btn) { color: #1F2A2E; text-decoration: none; }
.mt-footer a:not(.btn):hover { color: var(--mt-green); }

h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.01em; }

.display-4-fs { font-size: 3rem; }
.h3-fs { font-size: 2rem; }
.h4-fs { font-size: 1.5rem; }
.h5-fs { font-size: 1.15rem; }
.fs-4 { font-size: 1.25rem; }

.o_cc5 { background-color: var(--mt-dark); color: #FFFFFF; }
.o_cc5 .lead,
.o_cc5 .fs-4 { color: var(--mt-blue-light) !important; }
.o_cc5 ul.list-unstyled li { color: var(--mt-blue-light); }
.o_cc5 .text-o-color-2 { color: #7FE3C4 !important; }
.o_cc5 .btn-outline-light { border-radius: 999px; }

.o_cc1 { background-image: linear-gradient(180deg, #F5FCF9 0%, #FFFFFF 100%); }
.o_cc2 { background-color: #FFFFFF; }

section + section { border-top: 1px solid #E6F4EF; }

.rounded-4 { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rounded-4.bg-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 122, 85, 0.12) !important;
}

.accordion-item { transition: box-shadow 0.2s ease; }
.accordion-item:hover { box-shadow: 0 6px 18px rgba(0, 122, 85, 0.08); }
.accordion-button:not(.collapsed) {
    color: var(--mt-green);
    background-color: var(--mt-green-light);
    box-shadow: none;
}

.btn-primary {
    background-color: var(--mt-accent);
    border-color: var(--mt-accent);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(2, 160, 113, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
    background-color: var(--mt-green);
    border-color: var(--mt-green);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(2, 160, 113, 0.35);
}
.btn-outline-primary {
    color: var(--mt-green);
    border-color: var(--mt-accent);
    border-radius: 999px;
}
.btn-outline-primary:hover {
    background-color: var(--mt-green-light);
    color: var(--mt-green);
}

/* Menu : angles légèrement arrondis, page en cours soulignée d'un trait vert */
.navbar-nav .nav-link {
    position: relative;
    border-radius: 6px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--mt-green) !important;
    background-color: #F2FAF7;
    text-decoration: none;
}
.navbar-nav .nav-link.active {
    color: var(--mt-green) !important;
    font-weight: 600;
    text-decoration: none;
}
.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: var(--bs-navbar-nav-link-padding-x, 0.5rem);
    right: var(--bs-navbar-nav-link-padding-x, 0.5rem);
    bottom: 2px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--mt-accent);
}
.mt-header .btn-primary { border-radius: 8px; }

.text-o-color-2 { color: var(--mt-accent); }

.mt-footer {
    background-color: #F5FCF9;
    border-top: 1px solid #E6F4EF;
}
.mt-footer .mt-copyright {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E6F4EF;
    text-align: center;
    color: #5B6B70;
}
.mt-footer .mt-copyright a { font-weight: 600; }

img.img-fluid { max-width: 100%; height: auto; }

.o_cc5 a:not(.btn) { color: #FFFFFF; }

/* Pastille numérotée des étapes */
.mt-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 50%;
    font-weight: 700;
    background-color: var(--mt-green-light);
    color: var(--mt-green);
}

/* Carré d'icône des cartes */
.mt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}
.mt-icon-green { background-color: var(--mt-green-light); color: var(--mt-green); }
.mt-icon-blue { background-color: var(--mt-blue-light); color: var(--mt-blue); }

/* Pastille de disponibilite d'une marque de terminal (page Pourboire sur TPE) */
.mt-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
}
.mt-badge-dispo { background-color: var(--mt-green-light); color: var(--mt-green); }
.mt-badge-bientot { background-color: #FFF4D6; color: #8A5A00; }

/* Espacements repris d'Odoo (pt = haut, pb = bas, en pixels) */
.pt8 { padding-top: 8px; } .pb8 { padding-bottom: 8px; }
.pt12 { padding-top: 12px; } .pb12 { padding-bottom: 12px; }
.pt16 { padding-top: 16px; } .pb16 { padding-bottom: 16px; }
.pt24 { padding-top: 24px; } .pb24 { padding-bottom: 24px; }
.pt32 { padding-top: 32px; } .pb32 { padding-bottom: 32px; }
.pt40 { padding-top: 40px; } .pb40 { padding-bottom: 40px; }
.pt48 { padding-top: 48px; } .pb48 { padding-bottom: 48px; }
.pt64 { padding-top: 64px; } .pb64 { padding-bottom: 64px; }
.pt80 { padding-top: 80px; } .pb80 { padding-bottom: 80px; }
.pt96 { padding-top: 96px; } .pb96 { padding-bottom: 96px; }
.pt112 { padding-top: 112px; } .pb112 { padding-bottom: 112px; }

@media (max-width: 767px) {
    .pt96, .pt112 { padding-top: 56px; }
    .pb96, .pb112 { padding-bottom: 56px; }
    .pt80 { padding-top: 48px; }
    .pb80 { padding-bottom: 48px; }
    .display-4-fs { font-size: 2.2rem; }
}

/* Marge latérale d'au moins 16 px, y compris sous une barre système de téléphone */
.container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Barre d'appel sur mobile */
.mt-callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background-color: #FFFFFF;
    border-top: 1px solid #E6F4EF;
    box-shadow: 0 -6px 18px rgba(0, 122, 85, 0.08);
}
.mt-callbar-status {
    margin: 6px 0 0;
    font-size: 0.8rem;
    text-align: center;
    color: #4A5A5F;
}
.mt-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: #9AA8AC;
    vertical-align: middle;
}
.mt-dot.is-open { background-color: var(--mt-accent); }
@media (max-width: 991px) {
    body { padding-bottom: calc(80px + 2rem + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* ===== Lisibilité : public de 45 à 60 ans =====
   Texte plus grand, gris plus foncés, zones à toucher d'au moins 48 px. */
html { font-size: 17px; }
@media (max-width: 767px) { html { font-size: 18px; } }

body { line-height: 1.6; }
.lead { font-size: 1.15rem; line-height: 1.55; }
.small, small { font-size: 0.9rem; }
.text-muted { color: #3D4B50 !important; }
.o_cc5 .text-muted { color: var(--mt-blue-light) !important; }
p.text-uppercase.small { font-size: 0.85rem; }

/* Boutons, champs et liens du menu faciles à toucher */
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding-left: 1.25rem; padding-right: 1.25rem; }
.btn-sm { min-height: 44px; }
.btn-lg { min-height: 56px; font-size: 1.1rem; }
.form-control, .form-select { min-height: 52px; font-size: 1rem; }
textarea.form-control { min-height: 140px; }
.form-label { font-weight: 600; }
.accordion-button { font-size: 1.05rem; padding: 1.1rem 1.25rem; line-height: 1.4; }
.accordion-body { font-size: 1rem; }

.mt-menu-btn {
    min-height: 48px;
    padding: 0 16px;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--mt-green);
    border: 2px solid var(--mt-green-light);
    border-radius: 8px;
    background: #FFFFFF;
}
.mt-menu-btn:focus { box-shadow: 0 0 0 3px var(--mt-green-light); }

@media (max-width: 1199px) {
    .navbar-collapse { padding: 8px 0 12px; }
    .navbar-nav .nav-link { font-size: 1.1rem; padding: 12px 16px; }
    /* Menu déplié (téléphone, tablette) : trait vert à gauche de la page en cours */
    .navbar-nav .nav-link.active { background-color: #F2FAF7; }
    .navbar-nav .nav-link.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
    .mt-footer li.pb8 { padding-bottom: 12px; }
    .mt-footer li a { display: inline-block; padding: 4px 0; }
}

/* Téléphone : boutons principaux sur toute la largeur, un par ligne */
@media (max-width: 575px) {
    main .btn-lg { width: 100%; margin-right: 0 !important; }
    .h3-fs { font-size: 1.6rem; }
    h1 { font-size: 2rem; }
    .display-4-fs { font-size: 2.2rem; }
    .mt-callbar-status { font-size: 0.9rem; }
    .p-5 { padding: 1.75rem !important; }
}

/* Menu : texte foncé, sans retour à la ligne */
.navbar-nav .nav-link { color: #1F2A2E; white-space: nowrap; }
@media (max-width: 575px) {
    .o_cc5 .fs-4 { font-size: 1.1rem; }
}

.mt-menu-btn:focus-visible { outline: 3px solid var(--mt-accent); outline-offset: 2px; }
.navbar-brand img { width: auto; }
@media (max-width: 400px) {
    .navbar-brand img { height: 40px; }
}

/* En-tête : taille fixe du bouton Menu pour que logo et Menu tiennent sur une ligne */
.mt-menu-btn { font-size: 17px; }
@media (max-width: 400px) {
    .navbar-brand { margin-right: 8px; }
    .mt-menu-btn { padding: 0 12px; gap: 6px; }
}

/* Accueil : raccourcis « Que cherchez-vous ? » */
.mt-raccourci {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    min-height: 96px;
    padding: 16px 20px;
    color: #1F2A2E;
    text-decoration: none;
    background: #FFFFFF;
    border: 2px solid #E6F4EF;
    border-radius: 16px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mt-raccourci:hover, .mt-raccourci:focus-visible { color: #1F2A2E; border-color: var(--mt-accent); background-color: #F5FCF9; }
.mt-raccourci strong { display: block; font-size: 1.05rem; }
.mt-raccourci small { display: block; color: #3D4B50; font-size: 0.9rem; line-height: 1.4; }
.mt-raccourci .mt-icon { flex-shrink: 0; }
.mt-raccourci .fa-chevron-right { color: var(--mt-green); }

/* Ancres : laisser un peu d'air au-dessus quand on arrive par un lien */
#demo, #terminaux, [data-mt-theme] { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Aide : champ de recherche */
.mt-recherche { max-width: 640px; }
.mt-recherche .form-control { padding-left: 52px; border: 2px solid #CFE7DE; }
.mt-recherche .form-control:focus { border-color: var(--mt-accent); box-shadow: 0 0 0 3px var(--mt-green-light); }
.mt-recherche-icone { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--mt-green); font-size: 1.2rem; }
.mt-recherche-info { font-weight: 600; color: var(--mt-green); }
.o_cc5 .mt-recherche-info { color: var(--mt-blue-light); font-weight: 400; }
.o_cc5 .mt-recherche-info a { color: #FFFFFF; font-weight: 700; }
.o_cc5 .mt-recherche label { cursor: pointer; }
[data-mt-question] { scroll-margin-top: 16px; }

/* Cartes blanches dans un bandeau foncé : texte gris foncé lisible */
.o_cc5 .bg-white .text-muted { color: #3D4B50 !important; }

/* Grand écran : logo à gauche, menu au centre de la page, téléphone à droite */
@media (min-width: 1200px) {
    .mt-header .navbar-brand { flex: 1 1 0; margin-right: 0; }
    .mt-header .navbar-collapse { flex-grow: 0; }
    .mt-header .order-xl-last { flex: 1 1 0; justify-content: flex-end; margin-left: 0 !important; }
}

/* Accueil : tuiles « MoneyTips dans votre commerce » */
.mt-metier {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 128px;
    padding: 16px 12px;
    text-align: center;
    color: #1F2A2E;
    text-decoration: none;
    background: #FFFFFF;
    border: 2px solid #E3F1F7;
    border-radius: 16px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mt-metier:hover, .mt-metier:focus-visible { color: #1F2A2E; border-color: var(--mt-blue); background-color: #F4FBFE; }
.mt-metier strong { font-size: 1.05rem; line-height: 1.3; }

/* Page métier */
.mt-metier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    font-size: 96px;
    color: #7FE3C4;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(127, 227, 196, 0.35);
    border-radius: 50%;
}
.mt-exemple { border-left: 6px solid var(--mt-accent); }

/* Bandeau de saison */
.mt-bandeau { background-color: var(--mt-green-light); border-bottom: 1px solid #C5EBDD; }
.mt-bandeau .container { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.mt-bandeau p { flex: 1; color: #1F2A2E; }
.mt-bandeau a { font-weight: 700; white-space: nowrap; }
.mt-bandeau-icone { font-size: 1.4rem; color: var(--mt-green); }
.mt-bandeau-fermer {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--mt-green);
    background: transparent;
    border: 0;
    border-radius: 50%;
}
.mt-bandeau-fermer:hover { background-color: #FFFFFF; }

/* Actualités : liste des articles */
.mt-article-carte {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #1F2A2E;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #E6F4EF;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.mt-article-carte:hover, .mt-article-carte:focus-visible {
    color: #1F2A2E;
    border-color: var(--mt-accent);
    box-shadow: 0 12px 28px rgba(0, 122, 85, 0.12);
    transform: translateY(-3px);
}
.mt-article-carte-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #F5FCF9; }
.mt-article-sans-image { display: flex; align-items: center; justify-content: center; background: #FFFFFF; border-bottom: 1px solid #E6F4EF; }
.mt-article-sans-image img { width: 55%; max-width: 220px; height: auto; }
.mt-article-carte-corps { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 22px 22px; }
.mt-article-infos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.9rem; color: #3D4B50; }
.mt-article-categorie { padding: 2px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mt-green); background-color: var(--mt-green-light); }
.mt-article-carte-titre { font-size: 1.2rem; line-height: 1.35; }
.mt-article-carte-resume { color: #3D4B50; line-height: 1.5; }
.mt-article-lire { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--mt-green); }

/* Actualités : page d'un article */
.mt-article-colonne { max-width: 760px; margin: 0 auto; }
.mt-fil a { color: var(--mt-blue-light); text-decoration: none; font-weight: 600; }
.mt-fil a:hover { color: #FFFFFF; }
.mt-article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--mt-blue-light); }
.mt-article-image { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 32px; }
.mt-article-texte { font-size: 1.1rem; line-height: 1.75; color: #1F2A2E; }
.mt-article-texte h2 { font-size: 1.6rem; font-weight: 700; margin: 2.2rem 0 1rem; }
.mt-article-texte h3 { font-size: 1.3rem; font-weight: 700; margin: 1.8rem 0 0.8rem; }
.mt-article-texte p, .mt-article-texte ul, .mt-article-texte ol { margin-bottom: 1.2rem; }
.mt-article-texte li { margin-bottom: 0.4rem; }
.mt-article-texte img { max-width: 100%; height: auto; border-radius: 10px; margin: 0.5rem 0; }
.mt-article-texte blockquote { margin: 1.5rem 0; padding: 12px 20px; border-left: 4px solid var(--mt-accent); background: #F5FCF9; border-radius: 0 8px 8px 0; }
.mt-article-texte blockquote p:last-child { margin-bottom: 0; }
.mt-article-texte table { width: 100%; margin-bottom: 1.2rem; border-collapse: collapse; font-size: 1rem; }
.mt-article-texte th, .mt-article-texte td { padding: 10px 12px; border: 1px solid #E6F4EF; }
.mt-article-texte th { background: #F5FCF9; }
.mt-article-texte iframe { max-width: 100%; }
.mt-article-appel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding: 24px;
    border: 1px solid #CFE7DE;
    border-radius: 12px;
    background: #F5FCF9;
}
@media (max-width: 575px) {
    .mt-article-texte { font-size: 1.05rem; }
    .mt-article-appel .btn { width: 100%; }
}

/* Actualités : sommaire et partage */
.mt-sommaire { margin-bottom: 32px; padding: 20px 24px; border: 1px solid #E6F4EF; border-left: 4px solid var(--mt-accent); border-radius: 8px; background: #FFFFFF; }
.mt-sommaire-titre { margin-bottom: 8px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--mt-green); }
.mt-sommaire ol { margin: 0; padding-left: 1.2rem; }
.mt-sommaire li { padding: 3px 0; }
.mt-sommaire a { color: #1F2A2E; text-decoration: none; }
.mt-sommaire a:hover { color: var(--mt-green); text-decoration: underline; }
.mt-article-texte h2[id] { scroll-margin-top: 16px; }
.mt-partage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #E6F4EF; }
.mt-partage-titre { margin-right: 8px; font-weight: 700; }
.mt-partage-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; color: var(--mt-green); background: #FFFFFF; border: 1px solid #CFE7DE; border-radius: 8px; font-size: 1.1rem; text-decoration: none; cursor: pointer; }
.mt-partage-btn:hover { color: #FFFFFF; background: var(--mt-accent); border-color: var(--mt-accent); }
.mt-partage-lien { font-size: 0.95rem; font-weight: 600; }

/* Actualités : blocs interactifs (includes/blocs/) */
.mt-bloc { margin: 1.75rem 0; font-size: 1rem; line-height: 1.55; }
.mt-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mt-chiffre { padding: 18px 16px; text-align: center; border-radius: 12px; background: var(--mt-dark); color: var(--mt-blue-light); }
.mt-chiffre strong { display: block; font-size: 2.2rem; line-height: 1.1; color: #7CE0BC; }
.mt-chiffre span { display: block; margin-top: 6px; font-size: 0.92rem; }
@media (max-width: 575px) { .mt-chiffres { grid-template-columns: 1fr; } .mt-chiffre { display: flex; align-items: center; gap: 16px; text-align: left; } .mt-chiffre strong { min-width: 108px; flex-shrink: 0; } .mt-chiffre span { margin-top: 0; } }

.mt-outil { padding: 24px; border: 1px solid #CFE7DE; border-radius: 12px; background: #F5FCF9; }
.mt-outil-titre { margin-bottom: 12px; font-size: 1.15rem; font-weight: 700; color: var(--mt-dark); }
.mt-outil-titre .fa { color: var(--mt-accent); }
.mt-outil-note { font-size: 0.88rem; color: #3D4B50; }
.mt-outil-resultat { margin: 12px 0; padding: 12px 16px; border-radius: 8px; background: #FFFFFF; border-left: 4px solid #CFE7DE; }
.mt-outil .input-group-text { min-width: 44px; justify-content: center; }
.mt-outil.is-ok .mt-outil-resultat { border-left-color: var(--mt-accent); }
.mt-outil.is-ko .mt-outil-resultat { border-left-color: #D9822B; }

.mt-jauge { position: relative; height: 12px; margin: 20px 0 8px; border-radius: 6px; background: #E1EEE9; }
.mt-jauge-barre { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--mt-accent); transition: width 0.3s ease, background-color 0.3s ease; }
.mt-outil.is-ko .mt-jauge-barre { background: #D9822B; }
.mt-jauge-repere { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--mt-dark); }
.mt-jauge-repere::after { content: "plafond"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 700; color: var(--mt-dark); }
.mt-rebours-dates { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; color: var(--mt-dark); }
.mt-rebours .mt-jauge { margin-top: 8px; }

.mt-curseurs { display: grid; gap: 14px; margin: 8px 0 20px; }
.mt-curseur { display: block; margin: 0; }
.mt-curseur > span { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.mt-curseur output { min-width: 64px; text-align: right; color: var(--mt-green); font-weight: 700; }
.mt-curseur input[type="range"] { width: 100%; height: 32px; accent-color: var(--mt-accent); cursor: pointer; }
.mt-resultats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mt-resultats > div { padding: 14px; text-align: center; border-radius: 8px; background: #FFFFFF; border: 1px solid #E6F4EF; }
.mt-resultats span { display: block; font-size: 0.85rem; color: #3D4B50; }
.mt-resultats strong { display: block; font-size: 1.5rem; color: var(--mt-green); }
@media (max-width: 575px) { .mt-resultats { grid-template-columns: 1fr; } .mt-resultats > div { display: flex; justify-content: space-between; align-items: center; text-align: left; } }

.mt-quiz-liste { margin: 0; padding-left: 1.3rem; }
.mt-quiz-question { margin-bottom: 18px; }
.mt-quiz-affirmation { margin-bottom: 8px; font-weight: 600; }
.mt-quiz-choix { display: flex; gap: 8px; }
.mt-quiz-btn { min-width: 96px; min-height: 44px; padding: 0 18px; font-weight: 700; color: var(--mt-green); background: #FFFFFF; border: 2px solid #CFE7DE; border-radius: 8px; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.mt-quiz-btn:hover:not(:disabled) { border-color: var(--mt-accent); background: var(--mt-green-light); }
.mt-quiz-btn:disabled { cursor: default; opacity: 0.55; }
.mt-quiz-btn.is-bonne { opacity: 1; color: #FFFFFF; background: var(--mt-accent); border-color: var(--mt-accent); }
.mt-quiz-btn.is-choisi:not(.is-bonne) { opacity: 1; color: #FFFFFF; background: #C0392B; border-color: #C0392B; }
.mt-quiz-explication { margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; background: #FFFFFF; font-size: 0.95rem; }
.is-juste .mt-quiz-explication strong { color: var(--mt-green); }
.is-faux .mt-quiz-explication strong { color: #C0392B; }
.mt-quiz-score { font-weight: 700; color: var(--mt-dark); }
.mt-quiz-score:empty { display: none; }

/* Actualités : carte de renvoi vers un autre article (blocs lien-…) */
.mt-renvoi { display: flex; align-items: center; gap: 18px; padding: 20px 22px; color: #FFFFFF; text-decoration: none; border-radius: 12px; background: var(--mt-dark); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.mt-renvoi:hover, .mt-renvoi:focus-visible { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 79, 92, 0.25); }
.mt-renvoi-icone { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 10px; font-size: 1.5rem; color: var(--mt-dark); background: #7CE0BC; }
.mt-renvoi-texte { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mt-renvoi-etiquette { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #7CE0BC; }
.mt-renvoi-texte strong { font-size: 1.15rem; line-height: 1.3; }
.mt-renvoi-texte span:last-child { color: var(--mt-blue-light); font-size: 0.95rem; }
.mt-renvoi-fleche { flex-shrink: 0; font-size: 1.3rem; color: #7CE0BC; }
@media (max-width: 575px) { .mt-renvoi { flex-wrap: wrap; } .mt-renvoi-fleche { display: none; } }

/* Formulaire de contact : champ piège anti-robots, hors écran. */
.mt-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Page Avis Google sur TPE */
.mt-avis-ecrans { display: flex; gap: 16px; justify-content: center; }
.mt-avis-ecrans img { width: calc(50% - 8px); max-width: 230px; height: auto; }
.mt-avis-ecrans img:last-child { margin-top: 48px; }
.mt-comparatif { border: 1px solid #E6F4EF; border-radius: 12px; background: #FFFFFF; }
.mt-comparatif table { min-width: 720px; }
.mt-comparatif th, .mt-comparatif td { padding: 14px 16px; text-align: center; }
.mt-comparatif tbody th { text-align: left; font-weight: 600; }
.mt-comparatif thead th { font-size: 0.95rem; vertical-align: bottom; }
.mt-comparatif .fa-check { color: var(--mt-green); font-size: 1.2rem; }
.mt-comparatif .fa-times { color: #C0392B; font-size: 1.2rem; }
.mt-comparatif .mt-comparatif-nous { background-color: #F2FAF7; }
.mt-comparatif thead .mt-comparatif-nous { color: #007A55; }
.mt-faq summary { padding: 16px 20px; cursor: pointer; list-style: none; position: relative; padding-right: 48px; }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--mt-green); }
.mt-faq details[open] summary::after { content: "–"; }
.mt-faq details p { padding: 0 20px 18px; }
